.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.auth-card h1 {
    font-size: 22px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 13px;
}

.auth-card .btn { width: 100%; padding: 12px; margin-top: 8px; }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-footer a { color: var(--accent-green); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.password-toggle {
    position: relative;
}
.password-toggle input { padding-right: 40px; }
.password-toggle button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* Profile / Cabinet */
.profile-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .profile-layout { grid-template-columns: 1fr; }
}

.profile-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.profile-user {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.profile-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; color: #fff;
    margin: 0 auto 12px;
}

.profile-balance {
    background: rgba(255,183,3,0.1);
    border: 1px solid rgba(255,183,3,0.3);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 16px;
}

.profile-balance .amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
}

.profile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    margin-bottom: 4px;
    transition: all 0.2s;
}
.profile-nav a:hover, .profile-nav a.active {
    background: var(--bg-card-hover);
    color: var(--text-main);
}
.profile-nav a.active { color: var(--accent-green); border-left: 3px solid var(--accent-green); }

.profile-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.profile-content h2 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.server-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}
.server-row:hover { background: var(--bg-card-hover); }

.server-info { flex: 1; }
.server-info .name { font-weight: 600; margin-bottom: 4px; }
.server-info .meta { font-size: 11px; color: var(--text-muted); }

.server-services { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }

.server-actions { display: flex; gap: 8px; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }

.ticket-item {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.ticket-item:hover { background: var(--bg-card-hover); }

.transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}
.transaction-row:last-child { border-bottom: none; }
.transaction-amount.positive { color: var(--accent-green); }
.transaction-amount.negative { color: var(--accent-red); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.stat-card .value { font-size: 22px; font-weight: 700; color: var(--accent-gold); }
.stat-card .label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
