.profile-page {
    padding: 140px 50px 80px 50px;
    min-height: 85vh;
    max-width: 1200px;
    margin: 0 auto;
}

/* CABEÇALHO DO PAINEL: Empilhado em coluna para o nome do servidor ter espaço total */
.profile-header-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    gap: 20px;
}

.profile-header-box h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    color: var(--text-muted);
}

.server-main-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 5px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.2;
}

.profile-header-box p {
    color: var(--text-muted);
    font-size: 14px;
}

/* CARD DE ESTOQUE VIP (Posicionado abaixo do nome no modo PC) */
.vip-stock-card {
    display: inline-flex; /* Faz o card encolher e abraçar o conteúdo */
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(20, 26, 35, 0.8));
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 12px 25px;
    border-radius: 10px;
    width: auto; /* Remove o 100% que esticava a caixa */
    max-width: 100%;
}

.vip-stock-card i {
    font-size: 32px;
    color: #ffd700;
}

.vip-stock-card span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vip-stock-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    color: #ffd700;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.stat-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: white;
    font-family: 'Rajdhani', sans-serif;
}

.stat-sub {
    font-size: 18px;
    color: var(--text-muted);
}

.stat-sub-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
}

.text-green { color: #2ecc71 !important; }
.text-red { color: #e74c3c !important; }
.text-gold { color: #ffd700 !important; }

/* SEÇÃO DE COMANDOS DO DISCORD */
.discord-commands-section {
    margin-bottom: 40px;
}

.discord-commands-section h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-commands-section h3 i {
    color: #5865F2;
}

.section-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.command-box {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #5865F2;
    padding: 25px;
    border-radius: 8px;
}

.command-tag {
    display: inline-block;
    background-color: rgba(88, 101, 242, 0.2);
    color: #7983f5;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    margin-bottom: 12px;
}

.command-box h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-family: 'Rajdhani', sans-serif;
}

.command-box p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.command-example {
    font-size: 12px;
    color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 4px;
}

.command-example code {
    color: #fff;
    font-family: monospace;
}

/* TABELA DE RANKING */
.ranking-preview {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
}

.ranking-preview h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-preview h3 i {
    color: #ffd700;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

th {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}