/**
 * LOBBYNITE - User Profile & Dashboard Layout
 * Shared glassmorphism styles for profile and dashboard pages
 * 
 * @package LOBBYNITE
 * @version 1.0
 */

/* ============================================
   1. DESIGN TOKENS
   ============================================ */
:root {
    /* Glass effects */
    --glass-bg: rgba(15, 20, 30, 0.72);
    --glass-bg-soft: rgba(15, 20, 30, 0.55);
    --glass-bg-light: rgba(15, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-strong: rgba(0, 212, 255, 0.22);
    --glass-blur: blur(20px);
    --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    
    /* Brand colors */
    --showcase-cyan: #00d4ff;
    --showcase-violet: #7b2cbf;
    --showcase-gradient: linear-gradient(135deg, var(--showcase-cyan), var(--showcase-violet));
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 28px;
    --spacing-xl: 40px;

    /* Container */
    --container-padding: 24px;

    /* Border radius */
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ============================================
   2. SHARED UTILITY CLASSES
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--glass-border-strong);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.glass-card-soft {
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.glass-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.glass-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.glass-pill-primary {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--showcase-cyan);
}

.glass-pill-warning {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.glass-pill-success {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
    color: #28a745;
}

/* ============================================
   3. AVATAR PREMIUM
   ============================================ */
.avatar-glow-premium {
    border: 3px solid rgba(123, 44, 191, 0.8);
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.4);
    border-radius: 50%;
}

.avatar-frame-premium {
    position: relative;
    border-radius: 50%;
}

/* ============================================
   4. HERO / SHOWCASE HELPERS
   ============================================ */
.showcase-backdrop {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.showcase-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Fallback: gradiente brand */
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(123, 44, 191, 0.08));
    pointer-events: none;
    z-index: 0;
}

/* Se disponibile immagine mappa Fortnite, sovrascrivi */
.showcase-backdrop.showcase-with-bg::before {
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px);
    transform: scale(1.06);
    opacity: 0.15;
}

.showcase-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    pointer-events: none;
    z-index: 0;
}

.showcase-backdrop > * {
    position: relative;
    z-index: 1;
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    padding: var(--spacing-xl);
}

.showcase-content {
    flex: 1;
    min-width: 0;
}

.showcase-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

/* ============================================
   5. LOCKER GRID (Shared)
   ============================================ */
.locker-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: var(--spacing-md);
}

.locker-slot {
    text-align: center;
    transition: transform 0.3s ease;
}

.locker-slot:hover {
    transform: translateY(-4px);
}

.locker-slot-media {
    padding: 12px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.28));
    border: 1px solid rgba(0, 212, 255, 0.28);
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.locker-slot-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(123, 44, 191, 0.12));
    pointer-events: none;
}

.locker-slot-media img {
    width: 100%;
    max-width: 64px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.locker-slot-icon {
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.locker-slot-label {
    margin-top: 8px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.locker-slot-name {
    font-size: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
    min-height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

/* ============================================
   10. DASHBOARD HUB
   ============================================ */
.dashboard-hub {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.dashboard-hub-balance {
    text-align: right;
    min-width: 150px;
}

.dashboard-hub-balance .balance-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.dashboard-hub-balance .balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--showcase-cyan);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-hub {
        padding: var(--spacing-md);
    }

    .dashboard-hub .card-body > div {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-hub-balance {
        text-align: left;
        margin-bottom: var(--spacing-md);
    }

    .dashboard-hub-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dashboard-hub-actions .btn {
        flex: 1;
        min-width: 140px;
    }
}

/* ============================================
   11. DASHBOARD STATS GRID
   ============================================ */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.dashboard-stat-card {
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-strong);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
}

.dashboard-stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--showcase-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* XP Progress Bar */
.dashboard-xp-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.dashboard-xp-fill {
    height: 100%;
    background: var(--showcase-gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ============================================
   13. GRID SYSTEM (12 Columns)
   ============================================ */
.lobbynite-layout-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: start;
    margin: 0;
    padding: 0;
}

/* Column Spans */
.col-full {
    grid-column: span 12;
}

.col-main {
    grid-column: span 8;
}

.col-sidebar {
    grid-column: span 4;
}

.col-half {
    grid-column: span 6;
}

.col-third {
    grid-column: span 4;
}

.col-quarter {
    grid-column: span 3;
}

/* Responsive */
@media (max-width: 992px) {
    .col-main,
    .col-sidebar,
    .col-half,
    .col-third,
    .col-quarter {
        grid-column: span 12;
    }
    
    .lobbynite-layout-grid {
        gap: 16px;
    }
}

/* ============================================
   14. STATS V2 GRID
   ============================================ */
.stat-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-v2-box {
    padding: 20px;
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-v2-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.stat-v2-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    background: var(--showcase-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-v2-label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================
   15. TOURNAMENT SECTIONS
   ============================================ */
.set-summary-card {
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.set-summary-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 44, 191, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.set-summary-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.set-summary-content {
    flex: 1;
    min-width: 0;
}

.set-summary-content h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.set-summary-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.set-summary-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* ============================================
   8. TOURNAMENT SECTIONS
   ============================================ */
.tournament-section {
    margin-bottom: var(--spacing-xl);
}

.tournament-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--glass-border);
}

.tournament-section-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tournament-section-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* ============================================
   9. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .locker-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .dashboard-hub {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-hub-balance {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .locker-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .showcase-header {
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .dashboard-hub-welcome h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .locker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .set-summary-card {
        flex-direction: column;
        text-align: center;
    }
    
    .set-summary-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   16. REUSABLE UTILITY CLASSES
   ============================================ */

/* Section Cards */
.section-card {
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.section-card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.section-card-body {
    padding: var(--spacing-lg);
}

/* Stack Layouts */
.stack {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.stack-sm {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.stack-lg {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Tournament Row */
.tournament-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.tournament-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

.tournament-row-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tournament-row-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.tournament-row-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Sidebar Stack */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Profile Stats Section */
.profile-stats-section {
    margin-bottom: var(--spacing-xl);
}

.profile-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--glass-border);
}

.profile-stats-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* List Group */
.list-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.list-group-item-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.list-group-item-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: var(--spacing-md);
}

.empty-state-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.empty-state-description {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

/* Hero Badges Row */
.hero-badges-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Bio Card */
.profile-bio-card-compact {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.profile-bio-title-compact {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-bio-text-compact {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   17. DASHBOARD REFACTORED
   ============================================ */

/* ---- XP Hero Section ---- */
.dash-xp-hero {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

.dash-xp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(123, 44, 191, 0.06) 100%);
    pointer-events: none;
    z-index: 0;
}

.dash-xp-hero > * {
    position: relative;
    z-index: 1;
}

.dash-hero-top {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    justify-content: space-between;
}

.dash-hero-left {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    max-width: 760px;
}

.dash-hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.dash-hero-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(123, 44, 191, 0.6);
    box-shadow: 0 0 24px rgba(123, 44, 191, 0.35);
}

.dash-hero-level-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    color: #fff;
    border: 2px solid #0a0a0f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dash-hero-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.dash-hero-name {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-hero-epic-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #94ffca;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dash-hero-epic-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
}

.dash-hero-level-line {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.dash-hero-level-line strong {
    color: var(--showcase-cyan);
    font-weight: 800;
}

.dash-xp-progress-wrap {
    margin-bottom: 6px;
    width: 100%;
    max-width: 560px;
}

.dash-xp-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.dash-xp-progress-header strong {
    color: var(--text-primary);
    font-weight: 700;
}

.dash-xp-progress-bar {
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.dash-xp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff 0%, #7b2cbf 100%);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dash-xp-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: dash-shimmer 2.5s infinite;
}

@keyframes dash-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.dash-xp-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

.dash-xp-hint.is-max {
    color: #ffd700;
}

.dash-xp-completion-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: center;
}

.dash-xp-completion-hint a {
    color: var(--showcase-cyan);
    text-decoration: underline;
}

.dash-hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    min-width: 220px;
    justify-content: space-between;
}

.dash-hero-wallet {
    text-align: right;
    min-width: 140px;
}

.dash-hero-wallet-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.dash-hero-wallet-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--showcase-cyan);
}

.dash-hero-cta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---- Quick Actions Bar ---- */
.dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
}

.dash-action-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    min-height: 42px;
}

.dash-action-chip:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
    color: var(--text-primary);
}

.dash-action-chip.has-badge .chip-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff4757;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---- Tab System ---- */
.dash-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 6px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.dash-tab {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
}

.dash-tab:hover {
    background: rgba(0, 212, 255, 0.08);
    color: var(--text-primary);
}

.dash-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.2);
}

.dash-tab-count {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 1px 7px;
    border-radius: 999px;
}

.dash-tab.active .dash-tab-count {
    background: rgba(255, 255, 255, 0.22);
}

.dash-tab-panel {
    display: none;
}

.dash-tab-panel.active {
    display: block;
    animation: dashFadeIn 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 18px;
}

@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Stats Tab ---- */
.dash-section-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 14px;
}

.dash-content-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.dash-content-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-content-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--glass-border);
}
.dash-content-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}
.dash-content-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.15);
}
.dash-content-row-info {
  flex: 1;
  min-width: 0;
}
.dash-content-row-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-content-row-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-content-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.dash-stat-card {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.dash-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.dash-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--showcase-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.dash-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Top 3 placement stat variant */
.dash-stat-card--top3 {
    border-color: rgba(123, 44, 191, 0.2);
}

.dash-stat-value--top3 {
    font-size: 1.4rem;
}

.dash-stats-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
}

.dash-stats-locked-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.dash-stats-locked-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.dash-stats-locked-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 350px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.5;
}

/* ---- Tournaments Tab ---- */
.dash-tournament-section {
    margin-bottom: var(--spacing-lg);
}

.dash-tournament-section:last-child {
    margin-bottom: 0;
}

.dash-tournament-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--glass-border);
}

.dash-tournament-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-tournament-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.dash-tournament-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.15);
}

.dash-tournament-row-info {
    flex: 1;
    min-width: 0;
}

.dash-tournament-row-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-tournament-row-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--text-secondary);
}

.dash-empty-state-icon {
    font-size: 2.5rem;
    opacity: 0.4;
    margin-bottom: var(--spacing-md);
}

.dash-empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.dash-empty-state-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ---- Activity Tab ---- */
.dash-activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-activity-item {
    display: block;
    text-decoration: none;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.dash-activity-item:hover {
    border-color: rgba(0, 212, 255, 0.25);
    transform: translateY(-1px);
}

.dash-activity-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dash-activity-message {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.dash-activity-time {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 6px;
}

.dash-activity-metrics {
    display: flex;
    gap: 12px;
    margin-bottom: var(--spacing-md);
}

.dash-activity-metric {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    text-align: center;
}

.dash-activity-metric-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.dash-activity-metric-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.dash-activity-metric-value.is-positive {
    color: #7ef7b8;
}

.dash-activity-metric-value.is-warning {
    color: #ffcc7a;
}

/* ---- Mate Finder Tab ---- */
.dash-mf-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.dash-mf-status-info {
    flex: 1;
    min-width: 0;
}

.dash-mf-status-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.dash-mf-status-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dash-mf-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-mf-empty {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.dash-mf-empty-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.4;
}

.dash-mf-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.dash-mf-empty-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.5;
}

.dash-mf-empty-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Sidebar ---- */
.dash-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-side-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.dash-side-card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--glass-border);
}

.dash-side-card-header h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-side-card-body {
    padding: var(--spacing-md) var(--spacing-lg);
}

.dash-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.dash-status-item strong {
    color: var(--text-primary);
    font-size: 0.8rem;
}

.dash-status-item strong.is-positive {
    color: #7ef7b8;
}

.dash-status-item strong.is-warning {
    color: #ffcc7a;
}

.dash-privacy-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-privacy-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.dash-privacy-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(0, 212, 255, 0.3);
}

.dash-privacy-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dash-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dash-quick-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.dash-quick-link:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.06);
    transform: translateY(-1px);
}

.dash-quick-link i {
    color: var(--showcase-cyan);
    font-size: 1rem;
}

.dash-quick-link span {
    font-size: 0.78rem;
    line-height: 1.3;
}

.dash-mini-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.dash-mini-metric {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    text-align: center;
}

.dash-mini-metric span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.dash-mini-metric strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 800;
}

/* ---- Dashboard Container ---- */
.dash-container {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.dash-dashboard-main {
    min-width: 0;
}

/* ---- Unified personal area navigation ---- */
.account-hub-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    background: color-mix(in srgb, var(--bg-secondary) 94%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary) 22%, var(--glass-border));
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
    scrollbar-width: none;
}

.dash-container > .account-hub-nav {
    margin-top: 24px;
}

.account-hub-nav::-webkit-scrollbar {
    display: none;
}

.account-hub-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.account-hub-nav a > i {
    color: var(--color-primary);
    font-size: 0.95rem;
}

.account-hub-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: color-mix(in srgb, var(--color-primary) 48%, var(--glass-border));
    transform: translateY(-2px);
}

.account-hub-nav a.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 7px 16px color-mix(in srgb, var(--color-primary) 24%, transparent);
}

.account-hub-nav a.is-active > i {
    color: #fff;
}

.account-hub-nav .account-hub-nav-profile-edit {
    margin-left: auto;
}

.account-hub-nav .account-hub-nav-public {
    margin-left: 0;
}

@media (min-width: 1024px) {
    .container.dash-container,
    .container.settings-page {
        display: grid;
        grid-template-columns: clamp(260px, 17vw, 330px) minmax(0, 1fr);
        column-gap: clamp(24px, 2vw, 36px);
        align-items: start;
        width: calc(100% - 2rem);
        max-width: 1760px;
    }

    .dash-container {
        padding-top: 24px;
    }

    .dash-container > :not(.account-hub-nav),
    .settings-page > :not(.account-hub-nav) {
        grid-column: 2;
        min-width: 0;
    }

    .dash-container > .account-hub-nav,
    .settings-page > .account-hub-nav {
        position: sticky;
        top: 88px;
        z-index: 4;
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
        padding: 10px;
        overflow: visible;
    }

    .account-hub-nav a {
        justify-content: flex-start;
        width: 100%;
        min-height: 62px;
        padding: 12px 15px;
        font-size: 0.94rem;
        line-height: 1.25;
        white-space: normal;
    }

    .account-hub-nav a > i {
        display: grid;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        place-items: center;
        border-radius: 11px;
        background: color-mix(in srgb, var(--color-primary) 14%, transparent);
    }

    .account-hub-nav a:hover {
        transform: translateX(3px);
    }

    .account-hub-nav a.is-active > i {
        background: rgba(255, 255, 255, 0.17);
    }

    .account-hub-nav .account-hub-nav-profile-edit,
    .account-hub-nav .account-hub-nav-public {
        margin-left: 0;
    }

    .account-hub-nav .account-hub-nav-public {
        margin-top: 4px;
    }
}

/* ---- Layout Grid ---- */
.dash-layout {
    display: grid;
    grid-template-columns: minmax(0, 880px) 300px;
    gap: 20px;
    justify-content: center;
    align-items: start;
}

.dash-layout .dash-main,
.dash-layout .dash-side {
    grid-column: auto;
    min-width: 0;
}

.dash-main {
    max-width: 880px;
}

.dash-side {
    position: static;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .dash-layout {
        grid-template-columns: 1fr;
    }

    .dash-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-hero-side {
        align-items: flex-start;
        width: 100%;
    }

    .dash-hero-wallet {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .dash-quick-actions {
        grid-template-columns: 1fr;
    }

    .dash-tab-panel.active {
        padding: 14px;
    }

    .dash-xp-hero {
        padding: var(--spacing-md);
    }

    .dash-hero-avatar {
        width: 64px;
        height: 64px;
    }

    .dash-hero-name {
        font-size: 1.15rem;
    }

    .dash-tabs {
        gap: 2px;
        padding: 4px;
    }

    .dash-tab {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .dash-stat-value {
        font-size: 1.4rem;
    }

    .dash-quick-actions {
        flex-wrap: wrap;
    }

    .dash-action-chip {
        font-size: 0.78rem;
        padding: 8px 12px;
    }

    .dash-quick-links {
        grid-template-columns: 1fr;
    }
}

/* ---- Utility Classes ---- */
.dash-inline-center {
    text-align: center;
}

.dash-mt-sm {
    margin-top: 8px;
}

.dash-mt-md {
    margin-top: var(--spacing-md);
}

.dash-mt-lg {
    margin-top: var(--spacing-lg);
}

.dash-muted-sm {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dash-text-secondary {
    color: var(--text-secondary);
}

.dash-btn-full {
    width: 100%;
    margin-top: var(--spacing-md);
    text-align: center;
    justify-content: center;
}

.dash-mf-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #94ffca;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dash-mf-active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
}

/* Toast for login bonus */
.dash-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    color: #0a0a0f;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: slideInRight 0.5s ease-out, fadeOut 0.5s ease-out 4.5s forwards;
    max-width: 450px;
}

.dash-toast-icon {
    font-size: 1.5rem;
}

.dash-toast-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-toast-title {
    font-size: 1rem;
    font-weight: 700;
}

.dash-toast-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ============================================
   18. SETTINGS PAGE
   ============================================ */
.settings-page {
    padding: var(--spacing-2xl) 0;
    max-width: 1120px;
}

@media (min-width: 1024px) {
    .container.settings-page {
        width: calc(100% - 2rem);
        max-width: 1760px;
        padding-right: 20px;
        padding-left: 20px;
    }
}

/* ============================================
   PROFILE / SETTINGS INFORMATION ARCHITECTURE
   ============================================ */
.settings-header-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.settings-header-actions .btn {
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 0.76rem;
    box-shadow: none;
}

.settings-profile-progress {
    margin-bottom: var(--spacing-xl);
    padding: 18px;
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 12%, rgba(123, 44, 191, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(15, 18, 33, 0.94));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.settings-profile-progress.is-complete {
    border-color: rgba(57, 217, 138, 0.3);
}

.settings-profile-progress-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.settings-profile-progress-kicker {
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-profile-progress-head h2 {
    margin: 3px 0 0;
    color: var(--text-primary);
    font-size: 1.12rem;
}

.settings-profile-progress-head > strong {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.settings-profile-progress-bar {
    height: 7px;
    margin: 13px 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.settings-profile-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-primary), #9966ff);
}

.settings-profile-progress-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.settings-profile-progress-steps a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.settings-profile-progress-steps a:hover,
.settings-profile-progress-steps a:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.07);
}

.settings-profile-progress-steps a > i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    color: #aeb5ca;
    background: rgba(255, 255, 255, 0.07);
}

.settings-profile-progress-steps a.is-current {
    color: var(--text-primary);
    border-color: rgba(0, 212, 255, 0.34);
    background: rgba(0, 212, 255, 0.08);
}

.settings-profile-progress-steps a.is-current > i {
    color: #07131a;
    background: var(--color-primary);
}

.settings-profile-progress-steps a.is-complete > i {
    color: #39d98a;
    background: rgba(57, 217, 138, 0.12);
}

.settings-profile-progress-steps strong,
.settings-profile-progress-steps small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-profile-progress-steps strong {
    color: var(--text-primary);
    font-size: 0.82rem;
}

.settings-profile-progress-steps small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.35;
}

.settings-tab-state {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-left: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.settings-tab-state.is-complete {
    background: #39d98a;
    box-shadow: 0 0 0 4px rgba(57, 217, 138, 0.08);
}

.settings-tab-state + .settings-tab-arrow {
    margin-left: 0;
}

.settings-section-intro {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
    padding: 3px 2px 8px;
}

.settings-section-intro-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    color: var(--color-primary);
    border: 1px solid rgba(0, 212, 255, 0.24);
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.08);
}

.settings-section-intro h2 {
    margin: 0 0 3px;
    color: var(--text-primary);
    font-size: 1.18rem;
}

.settings-section-intro p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.4;
}

.settings-access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: var(--spacing-lg);
}

.settings-access-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 14px;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.settings-access-card:hover,
.settings-access-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.34);
    background: rgba(0, 212, 255, 0.07);
}

.settings-access-card.is-restricted {
    border-color: rgba(255, 184, 77, 0.28);
    background: rgba(255, 184, 77, 0.055);
}

.settings-access-card.is-restricted:hover,
.settings-access-card.is-restricted:focus-visible {
    border-color: rgba(255, 184, 77, 0.48);
    background: rgba(255, 184, 77, 0.1);
}

.settings-access-card.is-restricted .settings-access-icon,
.settings-access-card.is-restricted .settings-access-action {
    color: #ffc766;
}

.settings-access-icon {
    display: grid;
    width: 40px;
    height: 40px;
    grid-row: 1 / span 2;
    place-items: center;
    color: #c8b8ff;
    border-radius: 11px;
    background: rgba(123, 44, 191, 0.13);
}

.settings-access-card strong,
.settings-access-card small {
    display: block;
}

.settings-access-card small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.settings-access-action {
    grid-column: 2;
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 750;
}

#tab-connections .btn.btn-sm,
#tab-account .btn.btn-sm {
    min-height: 34px;
    padding: 0.42rem 0.7rem;
    border-radius: 8px;
    gap: 6px;
    font-size: 0.75rem;
    letter-spacing: 0;
    box-shadow: none;
}

#tab-connections .btn-subtle-danger,
#tab-connections .btn-danger {
    color: #ef9a9f !important;
    background: transparent !important;
    border-color: rgba(239, 106, 115, 0.36) !important;
    box-shadow: none !important;
}

.dash-onboarding-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 13px;
    padding-top: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
}

.dash-onboarding-footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dash-onboarding-footer a {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-weight: 750;
    text-decoration: none;
}

.dash-onboarding-footer-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.dash-onboarding-dismiss {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    color: var(--text-muted);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.dash-onboarding-dismiss:hover,
.dash-onboarding-dismiss:focus-visible {
    color: var(--color-primary);
}

.dash-onboarding-dismiss:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 820px) {
    .settings-header-actions {
        width: 100%;
        margin-left: 58px;
        justify-content: flex-start;
    }

    .settings-profile-progress-steps,
    .settings-access-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .settings-header-actions {
        margin-left: 0;
    }

    .settings-header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .settings-profile-progress-head,
    .dash-onboarding-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

.settings-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: 22px 24px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 193, 7, 0.13), transparent 28%),
        linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(17, 20, 38, 0.92));
    border: 1px solid rgba(137, 224, 255, 0.22);
    border-radius: var(--radius-lg);
}

.settings-back-link {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.settings-back-link:hover {
    transform: translateX(-2px);
    background: rgba(0, 212, 255, 0.13);
    border-color: rgba(0, 212, 255, 0.35);
}

.settings-user-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(0, 212, 255, 0.42);
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.settings-header-text h1 {
    font-size: 1.75rem;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-weight: 700;
}

.settings-header-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.settings-header-text p strong {
    color: var(--text-primary);
    font-weight: 700;
}

.settings-badges {
    margin-left: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-epic,
.badge-local {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-epic {
    background: rgba(0, 212, 255, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-local {
    background: rgba(255, 165, 0, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.settings-page .alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
    border: 1px solid;
}

.settings-page .alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--color-success);
    color: var(--text-primary);
}

.settings-page .alert-error,
.settings-page .alert-danger {
    background: rgba(255, 68, 68, 0.1);
    border-color: var(--color-danger);
    color: var(--text-primary);
}

.settings-page .alert-warning {
    background: rgba(255, 165, 0, 0.1);
    border-color: var(--color-warning);
    color: var(--text-primary);
}

.settings-workspace {
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: var(--spacing-xl);
    align-items: start;
}

.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 92px;
    padding: 10px;
    background: rgba(15, 18, 33, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    grid-column: 1;
    grid-row: 1 / span 6;
    align-self: start;
}

.settings-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #d0d0e2;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
}

.settings-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.settings-tab-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: #aeb5ca;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.settings-tab-label {
    min-width: 0;
    line-height: 1.25;
}

.settings-tab-arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.72rem;
}

.settings-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(0, 212, 255, 0.08));
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 6px 18px rgba(0, 212, 255, 0.12);
}

.settings-tab-btn.active .settings-tab-icon {
    color: #07131a;
    background: var(--color-primary);
    box-shadow: 0 5px 14px rgba(0, 212, 255, 0.22);
}

.settings-tab-btn.active .settings-tab-arrow {
    color: var(--color-primary);
}

.settings-tab-btn:focus-visible,
.settings-back-link:focus-visible {
    outline: 3px solid rgba(0, 212, 255, 0.42);
    outline-offset: 2px;
}

.settings-tab-panel {
    display: block;
    grid-column: 2;
    min-width: 0;
    scroll-margin-top: 104px;
}

.settings-tab-panel.active {
    display: block;
}

#tab-profile { grid-row: 1; }
#tab-privacy { grid-row: 2; }
#tab-connections { grid-row: 3; }
#tab-notifications { grid-row: 4; }
#tab-appearance { grid-row: 5; }
#tab-account { grid-row: 6; }

.settings-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

#settings-epic-connection {
    scroll-margin-top: 104px;
}

@media (max-width: 820px) {
    #settings-epic-connection {
        scroll-margin-top: 148px;
    }
}

.settings-card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
    background: rgba(255, 255, 255, 0.055);
}

.settings-card-header h2 {
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text-primary);
}

.settings-card-header h2 i {
    color: var(--color-primary);
    width: 20px;
    text-align: center;
}

.lobbynite-team-help-box {
    padding: 16px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.18);
    margin-bottom: 16px;
}

.lobbynite-team-help-box p {
    margin-bottom: 10px;
}

.lobbynite-team-help-box p:last-child {
    margin-bottom: 0;
}

.settings-card-body {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.credentials-card { scroll-margin-top: 112px; }
.credentials-card .settings-card-header { padding: 24px 28px; background: linear-gradient(110deg, rgba(54, 191, 255, .07), transparent); }
.credentials-card .settings-card-header .form-desc { margin-top: 10px; max-width: 72ch; font-size: .875rem; line-height: 1.6; }
.credentials-heading-icon { width: 22px; height: 22px; flex: 0 0 22px; color: #80dcff; }
.credentials-card .settings-card-body { container-type: inline-size; padding: 24px; }
.credentials-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.credentials-panel { display: flex; flex-direction: column; min-width: 0; padding: 24px; scroll-margin-top: 112px; border: 1px solid rgba(117, 214, 255, .16); border-radius: 16px; background: linear-gradient(145deg, #151e2d, #111522); }
.credentials-panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.credentials-panel-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: rgba(54, 191, 255, .12); color: #8de4ff; }
.credentials-panel-icon svg { width: 22px; height: 22px; }
.credentials-panel h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; color: #f4f7ff; overflow-wrap: anywhere; }
.credentials-panel p { margin: 0 0 20px; color: #bbc5d8; font-size: .875rem; line-height: 1.6; }
.credentials-current { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; margin-bottom: 20px; border: 1px solid rgba(117, 214, 255, .12); border-radius: 10px; background: rgba(54, 191, 255, .045); overflow-wrap: anywhere; }
.credentials-current span { color: #bbc5d8; font-size: .8rem; }
.credentials-current strong { color: #edf4ff; font-size: .9375rem; font-weight: 500; }
.credentials-panel form { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.settings-page .credentials-panel [data-credentials-feedback] { margin: 0; overflow-wrap: anywhere; }
.credentials-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.credentials-panel .form-label { margin: 0; font-size: .875rem; line-height: 1.4; color: #e4ecfa; }
.credentials-panel .form-control { box-sizing: border-box; height: 48px; min-height: 48px; padding: 12px 14px; border: 1px solid #354259; border-radius: 10px; background: #0b1120; color: #edf4ff; font-size: 16px; line-height: 1.4; color-scheme: dark; }
.credentials-panel .form-control:focus-visible { outline: 2px solid #80dcff; outline-offset: 3px; border-color: #80dcff; }
.credentials-panel .form-control:is(:autofill, :-webkit-autofill) { -webkit-text-fill-color: #edf4ff; caret-color: #edf4ff; box-shadow: inset 0 0 0 1000px #17243a; }
.credentials-visibility { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #bbc5d8; font-size: .875rem; cursor: pointer; }
.credentials-visibility[hidden] { display: none; }
.credentials-visibility input { width: 18px; height: 18px; margin: 0; accent-color: #80dcff; flex-shrink: 0; }
.credentials-panel form .btn { box-sizing: border-box; margin-top: auto; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 10px; font-size: .875rem; line-height: 1.5; white-space: normal; box-shadow: 0 5px 16px rgba(16, 110, 220, .16); }
.credentials-panel :is(button, input[type="checkbox"]):focus-visible { outline: 2px solid #80dcff; outline-offset: 3px; }
.credentials-panel .form-hint { padding: 14px; border-radius: 10px; background: rgba(54, 191, 255, .06); }
@container (min-width: 660px) { .credentials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .credentials-card, .credentials-panel { scroll-margin-top: 160px; } }
@media (max-width: 480px) { .credentials-card .settings-card-header, .credentials-card .settings-card-body { padding: 18px; } .credentials-panel { padding: 18px; } }

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-control-disabled {
    cursor: not-allowed;
    opacity: 1;
    color: #d7d7e5;
    background: #20202c;
    border-color: #4a4a61;
}

.form-hint {
    font-size: 0.85rem;
    color: #aeb0c9;
    margin: 0;
}

.form-desc {
    font-size: 0.80rem;
    color: var(--text-secondary);
    margin: 0;
}

.form-note {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.form-warning {
    font-size: 0.85rem;
    color: var(--color-warning);
    margin: 0;
}

.form-warning a {
    font-weight: 700;
    color: var(--color-warning);
}

.form-help-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.form-actions-row {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

.form-actions-end {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

.form-cooldown-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.display-name-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(14px, 2vw, 18px);
    background: rgba(4, 8, 24, 0.42);
    border: 1px solid rgba(116, 136, 186, 0.24);
    border-radius: 14px;
}

.display-name-form .form-control {
    min-height: 54px;
}

.nickname-appeal-form {
    margin-top: 16px;
}

.nickname-appeal-form textarea {
    min-height: 110px;
    resize: vertical;
}

.display-name-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.display-name-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
}

.display-name-status.is-ready {
    color: #8cebc8;
    background: rgba(45, 201, 145, 0.1);
    border-color: rgba(45, 201, 145, 0.26);
}

.display-name-status.is-waiting {
    color: #ffd38a;
    background: rgba(255, 174, 66, 0.1);
    border-color: rgba(255, 174, 66, 0.26);
}

.display-name-save-btn {
    min-height: 42px;
    padding-inline: 18px;
    white-space: nowrap;
}

.required-mark {
    color: var(--color-danger);
}

.result-message {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
}

.display-name-epic-row {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.display-name-epic-row .form-control {
    flex: 1;
}

.bio-gender-section {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.055);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    border-left: 3px solid var(--color-primary);
    margin-top: var(--spacing-md);
}

.settings-page .section-title {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bio-moderation-status {
    display: grid;
    gap: 0.35rem;
    margin: 0.45rem 0 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid;
    border-radius: var(--radius-md);
    line-height: 1.45;
}
.bio-moderation-status.is-pending {
    border-color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
    color: #f5d76e;
}
.bio-moderation-status.is-rejected {
    border-color: #ff5f6d;
    background: rgba(255, 95, 109, 0.1);
    color: #ff8994;
}
.bio-moderation-field-label {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid #ff5f6d;
    border-radius: 999px;
    color: #ff8994;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: none;
}
.bio-moderation-input-rejected {
    border: 2px solid #ff5f6d !important;
    background: rgba(255, 95, 109, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(255, 95, 109, 0.12);
}
.bio-moderation-input-pending:disabled {
    border-color: rgba(241, 196, 15, 0.55) !important;
    background: rgba(241, 196, 15, 0.06) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed;
    opacity: 0.82;
}

.settings-page .section-title i {
    color: currentColor;
}

.bio-gender-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.gender-select-wrap {
    position: relative;
}

.gender-select-wrap select {
    appearance: none;
    min-height: 52px;
    padding-right: 52px;
    cursor: pointer;
}

.gender-select-wrap::after {
    content: '';
    position: absolute;
    right: 21px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.gender-select-wrap:focus-within select {
    border-color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.avatar-mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.avatar-mode-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avatar-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.avatar-mode-btn:hover {
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.avatar-mode-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.avatar-mode-input:checked + .avatar-mode-btn {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.35) inset;
}

.avatar-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.avatar-access-card {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.avatar-access-card.available {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.08);
}

.avatar-access-card.locked {
    opacity: 0.75;
}

.avatar-access-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.avatar-access-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.avatar-access-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 10px;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.avatar-access-link:hover,
.avatar-access-link:focus-visible {
    color: var(--text-primary);
}

.set-skin-preview {
    padding: var(--spacing-md);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.set-skin-info-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.set-skin-preview-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.set-skin-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.set-skin-preview-img i {
    color: var(--text-secondary);
}

.set-skin-details {
    flex: 1;
}

.set-skin-name {
    font-weight: 700;
    color: var(--text-primary);
}

.set-skin-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.set-skin-prompt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-sm);
}

.avatar-upload-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-control-file {
    padding: var(--spacing-md);
}

.avatar-preview-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.avatar-preview-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}

.avatar-preview-new {
    border-color: var(--color-success);
}

.avatar-actions-row {
    display: flex;
    gap: var(--spacing-md);
}

.avatar-confirm-box {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    background: rgba(0, 212, 255, 0.1);
}

.confirm-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.confirm-header i {
    color: var(--color-success);
    font-size: 1.2rem;
}

.confirm-title {
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.confirm-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.dicebear-section {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px dashed var(--border-primary);
}

.dicebear-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.dicebear-controls {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

.dicebear-style-select {
    max-width: 260px;
    border: 1px solid rgba(0, 212, 255, 0.4) !important;
    background: rgba(0, 212, 255, 0.08) !important;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.2) inset;
}

.dicebear-style-select:focus {
    outline: none;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.25);
}

.dicebear-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 6px 0 0;
}

.random-avatar-actions {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.random-avatar-prompt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.random-avatar-btns {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.avatar-info-box {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
}

.avatar-info-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.notifications-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.notification-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.notification-toggle-info {
    flex: 1;
}

.notification-label {
    color: var(--text-primary);
    font-weight: 500;
}

.notification-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#tab-notifications .toggle-switch input:focus-visible + .toggle-slider {
    outline: 2px solid #80dcff;
    outline-offset: 3px;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-input);
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid var(--border-primary);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: white;
}

.account-info-grid {
    display: grid;
    gap: var(--spacing-md);
}

.account-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.account-info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.account-info-value {
    color: var(--text-primary);
}

.account-info-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.danger-zone {
    border-color: rgba(255, 255, 255, 0.14);
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.danger-zone-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
}

.danger-zone-copy {
    min-width: 0;
}

.danger-zone-copy h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    color: var(--text-primary);
    font-size: 1rem;
}

.danger-zone-copy h2 i {
    color: #d97a82;
    font-size: 0.85rem;
}

.danger-zone-desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
}

.danger-zone .danger-zone-action {
    flex: 0 0 auto;
    background: transparent;
    color: #ef9a9f;
    border: 1px solid rgba(239, 106, 115, 0.42);
    box-shadow: none;
}

.danger-zone .danger-zone-action:hover {
    transform: none;
    color: #fff;
    background: rgba(220, 62, 74, 0.72);
    border-color: rgba(239, 106, 115, 0.72);
    box-shadow: none;
}

.account-action-row {
    gap: 0.5rem;
}

.account-action-row .btn-sm,
.danger-zone-action {
    min-height: 34px;
    padding: 0.42rem 0.7rem;
    font-size: 0.75rem;
}

#tab-account .btn.btn-sm {
    min-height: 34px;
    padding: 0.42rem 0.7rem;
    border-radius: 8px;
    gap: 6px;
    font-size: 0.75rem;
    letter-spacing: 0;
    box-shadow: none;
}

#tab-account .btn-subtle-danger {
    color: #ef9a9f !important;
    background: transparent !important;
    border-color: rgba(239, 106, 115, 0.36) !important;
    box-shadow: none !important;
}

#tab-account .btn-subtle-danger:hover {
    color: #fff !important;
    background: rgba(220, 62, 74, 0.32) !important;
    border-color: rgba(239, 106, 115, 0.62) !important;
    transform: none;
}

@media (max-width: 640px) {
    .avatar-mode-selector {
        grid-template-columns: 1fr;
    }
    .avatar-access-grid {
        grid-template-columns: 1fr;
    }
    .settings-tabs {
        flex-wrap: nowrap;
    }
    .settings-tab-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    .display-name-epic-row {
        flex-direction: column;
        align-items: stretch;
    }
    .display-name-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .display-name-status {
        width: 100%;
        border-radius: 10px;
    }
    .display-name-save-btn {
        width: 100%;
        justify-content: center;
    }
    .notification-toggle-row {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .avatar-access-grid {
        grid-template-columns: 1fr;
    }
}

/* Privacy Controls Component */
.privacy-controls-card {
    padding: var(--spacing-md);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.privacy-controls-header {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-epic-invite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: var(--radius-md);
    background: rgba(0, 212, 255, 0.08);
}

.privacy-epic-invite-copy strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.privacy-epic-invite-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.privacy-epic-invite .btn {
    flex-shrink: 0;
}

.privacy-controls-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.privacy-control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(14px, 2vw, 18px);
    border: 1px solid rgba(116, 136, 186, 0.22);
    border-radius: var(--radius-md);
    background: rgba(4, 8, 24, 0.34);
}

.privacy-control-group-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 750;
}

.privacy-control-group-intro {
    margin: -4px 0 4px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.follow-people-card {
    margin-top: var(--spacing-lg);
}

.follow-people-intro,
.follow-people-empty {
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-md);
}

.follow-people-search-label {
    display: block;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.follow-people-search {
    margin-bottom: var(--spacing-md);
    max-width: 420px;
}

.follow-people-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.follow-person-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
}

.follow-person-row[hidden] {
    display: none;
}

.follow-person-row .toggle-switch {
    flex: 0 0 50px;
}

.follow-person-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    border-radius: 50%;
}

.follow-person-info {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
}

.follow-person-info strong {
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-person-info span,
.follow-people-feedback {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.follow-person-info span {
    overflow-wrap: anywhere;
}

.follow-people-feedback {
    min-height: 1.2em;
    margin-top: 10px;
}

.follow-people-feedback.is-error {
    color: var(--color-danger);
}

.settings-twitch-connection {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(145, 70, 255, 0.24);
    border-radius: var(--radius-md);
    background: rgba(145, 70, 255, 0.06);
}

.settings-twitch-connection.is-connected {
    border-color: rgba(0, 212, 255, 0.24);
    background: rgba(0, 212, 255, 0.05);
}

.settings-twitch-connection__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #9146ff, #6431d0);
    font-size: 1.15rem;
}

.settings-twitch-connection__copy {
    min-width: 0;
}

.settings-twitch-connection__copy strong,
.settings-twitch-connection__copy span {
    display: block;
}

.settings-twitch-connection__copy span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

@media (max-width: 820px) {
    .account-hub-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 14px;
        overflow: visible;
        border-radius: 14px;
    }
    .dash-container > .account-hub-nav {
        margin-top: 16px;
    }
    .account-hub-nav a {
        justify-content: flex-start;
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.78rem;
        line-height: 1.25;
        white-space: normal;
    }
    .account-hub-nav .account-hub-nav-profile-edit,
    .account-hub-nav .account-hub-nav-public {
        margin-left: 0;
    }
    .settings-page {
        padding-top: var(--spacing-lg);
    }
    .settings-header {
        padding: 16px;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .settings-user-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
    }
    .settings-header-text {
        flex: 1 1 180px;
    }
    .settings-header-text h1 {
        font-size: 1.4rem;
    }
    .settings-badges {
        width: 100%;
        margin-left: 58px;
    }
    .settings-workspace {
        display: flex;
        flex-direction: column;
    }
    .settings-tabs { order: 0; }
    #tab-profile { order: 1; }
    #tab-privacy { order: 2; }
    #tab-connections { order: 3; }
    #tab-notifications { order: 4; }
    #tab-appearance { order: 5; }
    #tab-account { order: 6; }
    .settings-tab-panel {
        margin-top: var(--spacing-xl);
        scroll-margin-top: 148px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .settings-tab-panel .settings-card { min-width: 0; max-width: 100%; }
    .settings-tab-panel:first-of-type {
        margin-top: 0;
    }
    .settings-tabs {
        position: sticky;
        z-index: 10;
        top: 70px;
        flex-direction: row;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        margin: 0 0 var(--spacing-lg);
        padding: 8px var(--spacing-md);
        border-radius: 12px;
        scrollbar-width: thin;
    }
    .settings-tab-btn {
        width: auto;
        min-width: max-content;
        min-height: 46px;
        padding: 7px 12px 7px 7px;
    }
    .settings-tab-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
    .settings-tab-arrow {
        display: none;
    }
}

@media (max-width: 520px) {
    .account-hub-nav {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .account-hub-nav a {
        min-height: 44px;
    }
}

@media (max-width: 640px) {
    .danger-zone-body {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-twitch-connection {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .settings-twitch-connection > .btn {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }
}

.privacy-toggle-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.privacy-checkbox {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.privacy-toggle-item-secondary {
    margin-left: 28px;
    border-left: 3px solid rgba(0, 212, 255, 0.32);
}

.privacy-toggle-item-secondary.is-parent-disabled,
.privacy-toggle-item-secondary.is-epic-disabled {
    cursor: not-allowed;
    opacity: 0.48;
    border-left-color: rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.015);
}

.privacy-toggle-item-secondary.is-parent-disabled .privacy-checkbox,
.privacy-toggle-item-secondary.is-epic-disabled .privacy-checkbox {
    cursor: not-allowed;
}

.privacy-toggle-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.privacy-toggle-title {
    font-weight: 600;
    color: var(--text-primary);
}

.privacy-toggle-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.privacy-toggle-requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
}

.privacy-toggle-status {
    font-size: 0.82rem;
}

.privacy-toggle-status.status-active {
    color: var(--color-success);
}

.privacy-toggle-status.status-inactive {
    color: var(--color-warning);
}

.privacy-advanced-unavailable {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    background: rgba(255, 165, 2, 0.08);
    border: 1px solid rgba(255, 165, 2, 0.2);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.privacy-controls-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================
   20. SOCIAL PAGE - Final Polish
   ============================================ */
@media (max-width: 640px) {
    .privacy-epic-invite {
        flex-direction: column;
        align-items: flex-start;
    }

    .privacy-controls-card {
        padding: var(--spacing-sm);
    }

    .privacy-control-group {
        padding: 12px;
    }

    .privacy-toggle-item-secondary {
        margin-left: 12px;
    }
}

.hidden {
    display: none !important;
}

/* Twitch Brand Colors */
.twitch-icon-color {
    color: #9146ff;
}

.btn-twitch-accent {
    border-color: #9146ff !important;
    color: #9146ff !important;
}

.btn-twitch-accent:hover {
    background: rgba(145, 70, 255, 0.1) !important;
    border-color: #772ce8 !important;
}

.btn-twitch-gradient {
    background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%) !important;
    border: none !important;
    color: #fff !important;
}

.btn-twitch-gradient:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.3);
}

.twitch-avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* Referral Empty Content */
.ref-empty-content {
    text-align: center;
    padding: var(--spacing-lg);
}

.ref-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.ref-empty-text {
    color: var(--text-secondary);
}

.ref-empty-hint {
    font-size: 0.85rem;
    margin-top: var(--spacing-sm);
    color: var(--text-muted);
}

/* Disabled Button Link */
.btn-disabled-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Referral Avatar Icon */
.referral-avatar-icon {
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    border: 2px solid rgba(0, 212, 255, 0.4);
}

/* ============================================
   21. FAQ PAGE
   ============================================ */
.faq-page {
    padding: var(--spacing-2xl) 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* FAQ Header */
.faq-header {
    margin-bottom: var(--spacing-xl);
}

.faq-header-body {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.faq-header-info {
    flex: 1;
    text-align: center;
}

.faq-header-info h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.faq-header-icon {
    font-size: 2rem;
}

.faq-header-info p {
    color: var(--text-secondary);
    margin: 0;
}

/* FAQ Search */
.faq-search-box {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.faq-search-input-wrap {
    flex: 1;
    position: relative;
}

.faq-search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 2.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
}

.faq-search-clear {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.faq-search-clear:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* FAQ Categories */
.faq-category {
    margin-bottom: var(--spacing-2xl);
}

.faq-category-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.faq-category-icon {
    font-size: 1.5rem;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* FAQ Item (details/summary) */
.faq-item {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: background 0.2s ease;
}

.faq-item summary {
    padding: var(--spacing-lg);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question-prefix {
    color: var(--color-primary);
    font-weight: 700;
    flex-shrink: 0;
}

.faq-question-text {
    flex: 1;
}

.faq-chevron {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer-body {
    border-top: 1px solid var(--border-primary);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.faq-answer-body strong {
    color: var(--color-primary);
}

/* FAQ No Results */
.faq-no-results {
    text-align: center;
    padding: var(--spacing-2xl);
}

.faq-no-results-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.faq-no-results h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.faq-no-results p {
    color: var(--text-secondary);
}

/* FAQ CTA */
.faq-cta {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    text-align: center;
}

.faq-cta h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.faq-cta-icon {
    font-size: 1.5rem;
}

.faq-cta p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.faq-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .faq-header-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-header-info h1 {
        font-size: 1.5rem;
    }

    .faq-search-box {
        flex-direction: column;
    }

    .faq-category-title {
        font-size: 1.25rem;
    }

    .faq-cta-buttons {
        flex-direction: column;
    }

    .faq-cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   22. CONTACT PAGE
   ============================================ */
.contact-page {
    padding: var(--spacing-2xl) 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Contact Header */
.contact-header {
    margin-bottom: var(--spacing-xl);
}

.contact-header-body {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-header-info {
    flex: 1;
    text-align: center;
}

.contact-header-info h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.contact-header-icon {
    font-size: 2rem;
}

.contact-header-info p {
    color: var(--text-secondary);
    margin: 0;
}

/* Contact Options Grid */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.contact-option-card {
    text-align: center;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.contact-option-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.contact-option-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.contact-option-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

/* Contact Sections */
.contact-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-section-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
}

.contact-section-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-section-icon {
    font-size: 1.5rem;
}

.contact-section-body {
    padding: var(--spacing-lg);
}

/* Direct Email Box */
.contact-direct-email {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
}

.contact-email-box {
    background: var(--bg-input);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-primary);
}

.contact-email-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-email-link:hover {
    text-decoration: underline;
}

.contact-email-hint {
    margin: var(--spacing-sm) 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
}

.form-select {
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Account Buttons */
.contact-account-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-account-buttons .btn {
    justify-content: flex-start;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Contact Info List */
.contact-info-list {
    color: var(--text-secondary);
    line-height: 2;
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    padding: var(--spacing-xs) 0;
}

.contact-info-list li strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .contact-header-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-header-info h1 {
        font-size: 1.5rem;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }

    .contact-section-header h2 {
        font-size: 1.25rem;
    }

    .contact-account-buttons .btn {
        width: 100%;
        text-align: center;
    }
}
/* ==========================================
   SOCIAL DASHBOARD - REFACTORED STYLES
   ========================================== */
.social-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

/* Social Hero Header */
.social-hero {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(123, 44, 191, 0.08) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-lg);
}

.social-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 var(--spacing-xs);
}

.social-hero p {
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-md);
}

.social-hero-counters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-hero-counters span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.social-hero-counters .counter-value {
    font-weight: 700;
    color: var(--color-primary);
}

/* Quick Status Row */
.social-status-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.social-status-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    transition: all var(--transition-base);
}

.social-status-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-status-card.twitch-card {
    border-color: rgba(145, 70, 255, 0.25);
    background: rgba(145, 70, 255, 0.03);
}

.social-status-card.referral-card {
    border-color: rgba(0, 212, 255, 0.25);
    background: rgba(0, 212, 255, 0.03);
}

.status-card-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 0;
}

.status-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.status-card-avatar.twitch-avatar {
    border-color: #9146ff;
}

.status-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.status-avatar-placeholder.twitch-placeholder {
    background: linear-gradient(135deg, #9146ff, #772ce8);
    border: 2px solid #9146ff;
}

.status-card-text {
    min-width: 0;
}

.status-card-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-card-sublabel {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.status-card-stats {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.status-stat {
    text-align: center;
}

.status-stat-value {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.status-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Social Tabs */
.social-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    border-bottom: 3px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.social-tab-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--color-primary);
}

.social-tab-btn.active {
    color: white;
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.social-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
}

.social-tab-badge {
    background: white;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 900;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    min-width: 24px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-primary);
}

.social-tab-btn.active .social-tab-badge {
    background: white;
    color: var(--color-primary);
    border-color: white;
    box-shadow: 0 3px 15px rgba(255, 255, 255, 0.4);
}

/* Tab Panels */
.social-panel {
    display: none;
}

.social-panel.active {
    display: block;
}

.social-panel-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.social-panel-header h2 {
    margin: 0 0 var(--spacing-xs);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.social-panel-header p {
    color: var(--text-secondary);
    margin: 0;
}

/* Grid & Cards */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.social-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: all var(--transition-base);
    min-height: 180px;
}

.social-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.social-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    align-self: center;
}

.social-card-info {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.social-card-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.social-card-actions {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Request Cards */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.request-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.request-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.request-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Followers Anonymous */
.followers-anonymous-info {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.followers-anonymous-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.followers-count-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.followers-label-display {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.followers-anonymous-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.3;
}

.empty-state-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-state-text {
    color: var(--text-secondary);
}

/* Buttons */
.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Search */
.search-container {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.search-input-wrapper {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-clear-btn {
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-results-info {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.search-results-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Referral Panel */
.ref-page {
    max-width: 1200px;
    margin: 0 auto;
}

.ref-hero {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.14) 0%, rgba(123, 44, 191, 0.14) 100%);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.ref-hero h1 {
    margin: 0 0 var(--spacing-xs);
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.ref-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.ref-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.ref-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ref-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00d4ff;
    margin-top: 6px;
}

.ref-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ref-card-head {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

.ref-link-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-sm);
}

.ref-link-input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.ref-link-card-body {
    padding: var(--spacing-md);
}

.referrals-list-section {
    margin-top: var(--spacing-xl);
}

.referrals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.referral-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    transition: all var(--transition-base);
}

.referral-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.15);
}

.referral-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.referral-card-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.3);
    flex-shrink: 0;
}

.referral-card-info {
    flex: 1;
    min-width: 0;
}

.referral-card-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.referral-card-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.referral-card-actions {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-top: var(--spacing-xs);
}

.referral-epic-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(108, 92, 231, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(108, 92, 231, 0.4);
}

.ref-empty {
    padding: 24px;
    color: var(--text-secondary);
}

.ref-warning {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 165, 2, 0.5);
    background: rgba(255, 165, 2, 0.12);
    color: #ffe8b3;
    font-size: 0.92rem;
}

#refCopyMsg {
    margin-top: 8px;
    color: #00ff88;
    font-weight: 700;
    display: none;
}

/* Twitch Panel */
.twitch-details {
    max-width: 600px;
    margin: 0 auto;
}

.twitch-profile-card {
    background: var(--bg-input);
    border: 1px solid rgba(145, 70, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.twitch-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #9146ff;
}

.twitch-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.twitch-profile-login {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.twitch-profile-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--spacing-sm);
}

.twitch-not-connected {
    text-align: center;
    padding: var(--spacing-3xl);
}

.twitch-not-connected-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.3;
}

/* Block type labels */
.social-block-type {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.social-block-desc {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.modal-icon.warning {
    background: rgba(241, 196, 15, 0.15);
    border: 2px solid #f1c40f;
}

.modal-icon.danger {
    background: rgba(231, 76, 60, 0.15);
    border: 2px solid #e74c3c;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.5rem 0;
}

.modal-text strong {
    color: var(--text-primary);
}

.modal-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.modal-text li {
    margin: 0.25rem 0;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.modal-btn-cancel {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modal-btn-cancel:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
}

.modal-btn-confirm {
    background: var(--gradient-primary);
    color: white;
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.modal-btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.modal-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .ref-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
    }

    .request-card {
        flex-direction: column;
        text-align: center;
    }

    .request-info {
        flex-direction: column;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }

    .social-status-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ref-link-box {
        grid-template-columns: 1fr;
    }

    .ref-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   20. RULES PAGE
   ============================================ */

/* Page Wrapper */
.rules-page-wrapper {
    padding: var(--spacing-2xl) 0;
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero Section */
.rules-hero {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.rules-hero h1 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.2;
}

.rules-hero-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rules-hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Quick Navigation */
.rules-nav {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.rules-nav-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: var(--spacing-md);
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rules-nav-pill:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--showcase-cyan);
    transform: translateY(-2px);
}

.rules-nav-pill:focus-visible {
    outline: 2px solid var(--showcase-cyan);
    outline-offset: 3px;
}

/* Sections */
.rules-section {
    margin-bottom: var(--spacing-2xl);
    scroll-margin-top: 100px;
}

.rules-section-header {
    margin-bottom: var(--spacing-lg);
}

.rules-section-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.rules-section-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Rule Cards */
.rules-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#referral {
    scroll-margin-top: 120px;
}

.rules-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rules-card-icon {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.rules-card-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.15rem;
    font-weight: 600;
}

.rules-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Rule list variant */
.rules-card-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0 0;
}

.rules-card-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.rules-card-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.rules-card-list--ordered {
    list-style: decimal;
    padding-left: 1.5rem;
}

.rules-card-list--ordered li {
    padding-left: 0.35rem;
}

.rules-card-list--ordered li::before {
    content: none;
}

/* CTA Section */
.rules-cta-section {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.94), rgba(17, 24, 39, 0.95));
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: var(--spacing-2xl);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.rules-cta-section h2 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.rules-cta-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-lg);
    font-size: 1.05rem;
}

.rules-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.rules-cta-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    backdrop-filter: blur(2px);
}

.rules-cta-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    opacity: 0.9;
    transform: translateY(-2px);
}

.rules-cta-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .rules-page-wrapper {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .rules-hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .rules-hero h1 {
        font-size: 1.6rem;
    }

    .rules-hero-subtitle {
        font-size: 1rem;
    }

    .rules-hero-buttons {
        flex-direction: column;
    }

    .rules-hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .rules-nav-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-sm);
    }

    .rules-nav-pill {
        width: 100%;
        justify-content: center;
    }

    .rules-section-title {
        font-size: 1.3rem;
    }

    .rules-cta-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .rules-cta-buttons {
        flex-direction: column;
    }

    .rules-cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   COMMUNITY RULES — editorial layout polish
   Solo presentazione: l'ordine, gli anchor e tutti i contenuti rimangono
   invariati. Le card vengono disposte in una griglia per rendere le regole
   piu' rapide da esplorare.
   ============================================ */
.rules-page-wrapper {
    max-width: 1240px;
    padding: clamp(32px, 5vw, 64px) 24px clamp(56px, 7vw, 96px);
}

.rules-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 24px;
    padding: clamp(42px, 6vw, 76px) 32px;
    border-color: rgba(0, 212, 255, 0.18);
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 212, 255, 0.16), transparent 33%),
        radial-gradient(circle at 88% 92%, rgba(157, 78, 221, 0.20), transparent 37%),
        linear-gradient(125deg, rgba(14, 24, 35, 0.98), rgba(21, 16, 34, 0.98));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.rules-hero::before,
.rules-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 50%;
    pointer-events: none;
}

.rules-hero::before {
    top: -160px;
    right: 8%;
    width: 280px;
    height: 280px;
    box-shadow: 0 0 0 32px rgba(0, 212, 255, 0.024);
}

.rules-hero::after {
    bottom: -140px;
    left: 10%;
    width: 210px;
    height: 210px;
    border-color: rgba(157, 78, 221, 0.14);
}

.rules-hero h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: 12px;
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    letter-spacing: -0.7px;
}

.rules-hero h1::before {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(0, 212, 255, 0.20);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.16), rgba(157, 78, 221, 0.14));
    color: #9ff1ff;
    content: '\f132';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-size: 1.25rem;
    font-weight: 900;
}

.rules-hero-subtitle {
    max-width: 610px;
    margin-bottom: 24px;
    color: #b6bfd4;
    line-height: 1.65;
}

.rules-hero-buttons { gap: 12px; }

.rules-hero-buttons .btn {
    min-height: 52px;
    text-align: left;
    padding: 0 17px;
    border-radius: 11px;
}

.rules-nav {
    margin-bottom: clamp(34px, 5vw, 58px);
    padding: 12px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(18, 19, 29, 0.88);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.rules-nav-pills {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 8px;
}

.rules-nav-pill {
    min-height: 42px;
    padding: 9px 12px;
    border-color: rgba(255, 255, 255, 0.075);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: #bac2d7;
    font-size: 0.82rem;
    font-weight: 700;
}

.rules-nav-pill i { color: #71ddec; }

.rules-nav-pill:hover {
    border-color: rgba(0, 212, 255, 0.27);
    background: rgba(0, 212, 255, 0.075);
    color: #e0fbff;
    transform: translateY(-2px);
}

.rules-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: clamp(42px, 6vw, 68px);
    scroll-margin-top: 116px;
}

.rules-section-header {
    grid-column: 1 / -1;
    margin: 0 0 6px;
    padding: 0 2px;
}

.rules-section-title {
    align-items: center;
    margin-bottom: 7px;
    font-size: clamp(1.45rem, 2.3vw, 1.85rem);
    letter-spacing: -0.35px;
}

.rules-section-title i {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid rgba(0, 212, 255, 0.16);
    border-radius: 11px;
    background: rgba(0, 212, 255, 0.08);
    color: #79e5f4;
    font-size: 0.95rem;
}

.rules-section-intro {
    max-width: 760px;
    margin: 0;
    color: #aeb8ce;
}

.rules-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    padding: 21px;
    border-color: rgba(255, 255, 255, 0.085);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(24, 23, 35, 0.98), rgba(16, 17, 27, 0.98));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.rules-card:hover {
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.20), 0 0 20px rgba(0, 212, 255, 0.045);
    transform: translateY(-4px);
}

.rules-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
    place-items: center;
    border: 1px solid rgba(157, 78, 221, 0.20);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(157, 78, 221, 0.14), rgba(0, 212, 255, 0.07));
    font-size: 1.35rem;
}

.rules-card-title {
    margin-bottom: 9px;
    color: #f1f4ff;
    font-size: 1.03rem;
    font-weight: 750;
    line-height: 1.35;
}

.rules-card-desc,
.rules-card-list li {
    color: #afb8ce;
    font-size: 0.88rem;
    line-height: 1.62;
}

.rules-card-list { margin-top: 3px; }

.rules-card-list li {
    padding: 8px 0 8px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.rules-card-list li:last-child { border-bottom: 0; }
.rules-card-list li::before { color: #66dce8; }

.rules-section > .rules-card-list--ordered {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px 22px 18px 42px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 15px;
    background: linear-gradient(100deg, rgba(0, 212, 255, 0.06), rgba(157, 78, 221, 0.05));
}

.rules-section > .rules-card-list--ordered li {
    padding: 8px 0 8px 5px;
}

.rules-cta-section {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 56px) 28px;
    border-color: rgba(0, 212, 255, 0.18);
    background:
        radial-gradient(circle at 8% 10%, rgba(0, 212, 255, 0.15), transparent 35%),
        linear-gradient(130deg, rgba(10, 19, 29, 0.98), rgba(28, 19, 42, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.rules-cta-section h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.rules-cta-section p { max-width: 620px; margin-right: auto; margin-left: auto; color: #c0c8da; }

@media (max-width: 980px) {
    .rules-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .rules-page-wrapper { padding: 25px 16px 52px; }
    .rules-hero { padding: 34px 20px; }
    .rules-hero h1 { align-items: flex-start; font-size: 1.75rem; text-align: left; }
    .rules-hero h1::before { width: 42px; height: 42px; flex: 0 0 42px; }
    .rules-hero-subtitle { text-align: left; }
    .rules-section { grid-template-columns: 1fr; gap: 12px; }
    .rules-section-header { margin-bottom: 4px; }
    .rules-nav { padding: 9px; }
    .rules-nav-pills { grid-template-columns: 1fr 1fr; gap: 7px; }
    .rules-nav-pill { min-height: 40px; padding: 8px; font-size: 0.76rem; }
    .rules-card { padding: 18px; }
    .rules-section > .rules-card-list--ordered { padding: 15px 16px 15px 36px; }
}

/* ============================================
   21. INFO PAGES (Privacy, Terms, Cookies)
   ============================================ */

/* Page Wrapper */
.info-page-wrapper {
    padding: var(--spacing-2xl) 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Hero Section */
.info-hero {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.info-hero h1 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.2;
}

.info-hero-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.info-hero-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.info-hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Quick Navigation */
.info-nav {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.info-nav-pills {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.info-nav-pill:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--showcase-cyan);
    transform: translateY(-2px);
}

/* Sections */
.info-section {
    margin-bottom: var(--spacing-2xl);
}

.info-section-header {
    margin-bottom: var(--spacing-lg);
}

.info-section-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.info-section-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Info Cards */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-card-icon {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.info-card-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.15rem;
    font-weight: 600;
}

.info-card-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

.info-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Info Contact Box */
.info-contact-box {
    background: var(--bg-input);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

.info-contact-box p {
    margin: var(--spacing-xs) 0;
    color: var(--text-secondary);
}

.info-contact-box a {
    color: var(--color-primary);
    text-decoration: none;
}

.info-contact-box a:hover {
    text-decoration: underline;
}

/* Info Rights Grid */
.info-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.info-rights-card {
    background: var(--bg-input);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-rights-card h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.info-rights-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Info Third-Party Box */
.info-third-box {
    background: var(--bg-input);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

.info-third-box h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.info-third-box p {
    margin: var(--spacing-xs) 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-third-box p small {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-third-box a {
    color: var(--color-primary);
    text-decoration: none;
}

.info-third-box a:hover {
    text-decoration: underline;
}

/* AI Moderation Box */
.info-ai-box {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-md) 0;
}

.info-ai-box h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.info-ai-box ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.info-ai-box li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

/* CTA Section */
.info-cta-section {
    background: var(--gradient-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.info-cta-section h2 {
    color: var(--bg-darker);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.info-cta-section p {
    color: rgba(10, 10, 15, 0.8);
    margin-bottom: var(--spacing-lg);
    font-size: 1.05rem;
}

.info-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.info-cta-btn {
    background: var(--bg-darker) !important;
    color: var(--text-primary) !important;
}

.info-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Info page utility extras */
.info-cta-link {
    margin-top: var(--spacing-md);
}

.info-card-highlight {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.info-card-note {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Cookie/Info Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
}

.info-table thead tr {
    border-bottom: 2px solid var(--border-primary);
}

.info-table th {
    text-align: left;
    padding: var(--spacing-sm) var(--spacing-xs);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-table tbody tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: var(--spacing-sm) var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
    vertical-align: top;
}

.info-table td code,
.info-table td .mono {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Info page note box */
.info-note-box {
    background: rgba(0, 212, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
    margin: var(--spacing-md) 0;
}

/* Info option box (colored left border variants) */
.info-option-box {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

.info-option-box.info-option-primary {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--color-primary);
}

.info-option-box.info-option-purple {
    background: rgba(123, 44, 191, 0.1);
    border-left: 4px solid #9b4ddf;
}

.info-option-box.info-option-success {
    background: rgba(0, 255, 136, 0.05);
    border-left: 4px solid var(--color-success);
}

.info-option-box.info-option-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--color-warning);
}

.info-option-box h2,
.info-option-box h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.info-option-box p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.info-option-box .btn:last-child {
    margin-top: var(--spacing-sm);
}

/* Info actions row */
.info-actions-row {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* Tournament Invites */
.invites-page-wrapper {
    padding: var(--spacing-2xl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.invites-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.invites-header h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-primary);
}

.invite-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: border-color 0.2s ease;
}

.invite-card:hover {
    border-color: var(--color-primary);
}

.invite-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.invite-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.invite-meta {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.invite-meta-item {
    margin-bottom: var(--spacing-xs);
}

.invite-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.invite-form-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.invite-form-row form {
    flex: 1;
}

.invite-badge {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Invite empty state */
.invites-empty {
    text-align: center;
    padding: var(--spacing-2xl);
}

.invites-empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

/* Invite state variants */
.invite-card--success {
    border-color: var(--color-success);
    margin-bottom: var(--spacing-xl);
}

.invite-card--success .card-body {
    color: var(--color-success);
}

.invite-card--error {
    border-color: var(--color-danger);
    margin-bottom: var(--spacing-xl);
}

.invite-errors-title {
    color: var(--color-danger);
    margin-bottom: var(--spacing-md);
}

.invite-errors-list {
    color: var(--text-secondary);
    padding-left: var(--spacing-lg);
    margin: 0;
}

.invite-errors-list li {
    margin-bottom: var(--spacing-xs);
}

/* Invite header icon */
.invites-header-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* Invite empty text */
.invites-empty-title {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.invites-empty-desc {
    color: var(--text-muted);
    margin: 0 0 var(--spacing-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .info-page-wrapper {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .info-hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .info-hero h1 {
        font-size: 1.6rem;
    }

    .info-hero-subtitle {
        font-size: 1rem;
    }

    .info-hero-buttons {
        flex-direction: column;
    }

    .info-hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .info-nav-pills {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .info-nav-pill {
        width: 100%;
        justify-content: center;
    }

    .info-section-title {
        font-size: 1.3rem;
    }

    .info-rights-grid {
        grid-template-columns: 1fr;
    }

    .info-cta-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .info-cta-buttons {
        flex-direction: column;
    }

    .info-cta-btn {
        width: 100%;
        text-align: center;
    }

    .info-third-box {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .info-third-box .info-table {
        display: block;
        width: max-content;
        min-width: 100%;
    }
}

/* ==========================================
   Tournament Detail — Premium Hero
   ========================================== */

/* --- Hero Section --- */
.tournament-hero-section {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.tournament-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(10,10,30,0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.tournament-hero-section--gradient {
    min-height: 320px;
}

.tournament-hero-section--cover {
    min-height: 360px;
}

.tournament-hero-bg {
    position: absolute;
    inset: 0;
}

.tournament-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.tournament-hero-body {
    position: relative;
    z-index: 2;
    padding: clamp(24px, 5vw, 48px) clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: inherit;
}

/* Kicker */
.tournament-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: fit-content;
    margin-bottom: var(--spacing-md);
}

/* Title */
.tournament-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 var(--spacing-sm);
    max-width: 700px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Pills */
.tournament-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--spacing-sm);
}

.tournament-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.tournament-pill--mode {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.tournament-pill--status {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tournament-pill--status--full {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.tournament-pill--status--closed {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-pill--status--registered {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.tournament-pill--status--epic {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.tournament-pill--gate {
    background: rgba(145, 70, 255, 0.15);
    color: #b388ff;
    border: 1px solid rgba(145, 70, 255, 0.3);
}

/* Submeta */
.tournament-hero-submeta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.tournament-hero-submeta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tournament-hero-submeta-item i {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Mini description */
.tournament-hero-excerpt {
    margin-top: var(--spacing-sm);
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Top layout: two columns --- */
.tournament-top-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-xl);
    align-items: start;
}

.tournament-top-main {
    min-width: 0;
}

.tournament-top-side {
    position: sticky;
    top: var(--spacing-md);
}

/* --- Registration Card — Premium --- */
.tournament-register-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    overflow: hidden;
    position: relative;
}

.tournament-register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tournament-register-card:hover::before {
    opacity: 1;
}

.tournament-register-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tournament-register-header-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.tournament-register-header-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 999px;
}

.tournament-register-header-badge--open {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.tournament-register-header-badge--full {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
}

.tournament-register-header-badge--closed {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.35);
}

.tournament-register-header-badge--registered {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.tournament-register-header-badge--warning {
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

.tournament-register-count {
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.tournament-register-count-number {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.tournament-register-count-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tournament-register-progress {
    margin-bottom: var(--spacing-md);
}

.tournament-register-progress .progress-bar {
    height: 6px;
}

.tournament-register-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.tournament-register-actions .btn {
    font-size: 0.88rem;
    padding: 10px 16px;
}

.tournament-register-note {
    margin-top: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.4;
}

/* --- Fact Cards --- */
.tournament-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.tournament-fact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.2s ease;
}

.tournament-fact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.tournament-fact-icon {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    opacity: 0.7;
}

.tournament-fact-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tournament-fact-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.tournament-fact-value--muted {
    color: var(--text-secondary);
}

.tournament-fact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 4px;
}

/* Requirement badges */
.tournament-requirement-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
}

.tournament-requirement-badge--epic {
    background: rgba(0, 212, 255, 0.12);
    color: var(--color-primary);
}

.tournament-requirement-badge--twitch {
    background: rgba(145, 70, 255, 0.12);
    color: #b388ff;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .tournament-top-layout {
        grid-template-columns: 1fr;
    }

    .tournament-top-side {
        position: static;
        order: 2;
    }

    .tournament-top-main {
        order: 1;
    }

    .tournament-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tournament-hero-section--gradient {
        min-height: 260px;
    }

    .tournament-hero-section--cover {
        min-height: 280px;
    }

    .tournament-hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .tournament-hero-submeta {
        font-size: 0.8rem;
    }

    .tournament-register-card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .tournament-facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .tournament-pill-row {
        justify-content: center;
    }

    .tournament-hero-submeta {
        justify-content: center;
    }
}

/* ==========================================
   Tournament Detail — Hero V2 Premium
   ========================================== */

/* --- Hero V2 Section --- */
.tournament-hero-v2 {
    position: relative;
    overflow: visible;
    border-radius: 0;
    margin-bottom: calc(var(--spacing-xl) + 30px);
    margin-left: calc(var(--container-padding) * -1);
    margin-right: calc(var(--container-padding) * -1);
    width: calc(100% + var(--container-padding) * 2);
}

.tournament-hero-v2--gradient {
    min-height: 440px;
}

.tournament-hero-v2--cover {
    min-height: 480px;
}

/* Background layer */
.tournament-hero-v2-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tournament-hero-v2-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

/* Overlay layer — molto scuro, cinematico */
.tournament-hero-v2-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(10, 10, 30, 0.7) 40%,
            rgba(10, 10, 30, 0.92) 75%,
            rgba(10, 10, 30, 0.98) 100%
        );
    pointer-events: none;
}

/* Content layer */
.tournament-hero-v2-inner {
    position: relative;
    z-index: 2;
    padding: clamp(28px, 4vw, 44px) clamp(28px, 5vw, 52px);
    max-width: min(860px, calc(100% - 400px));
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Main content */
.tournament-hero-v2-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Kicker */
.tournament-hero-v2-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: fit-content;
    backdrop-filter: blur(10px);
}

/* Title — dominante */
.tournament-hero-v2-title {
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0 0 4px;
    max-width: 700px;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Short description */
.tournament-hero-v2-desc {
    margin: 0 0 2px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row */
.tournament-hero-v2-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.tournament-hero-v2-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tournament-hero-v2-meta-item i {
    font-size: 0.75rem;
    opacity: 0.55;
}

/* Pills row */
.tournament-hero-v2-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tournament-hero-v2-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.tournament-hero-v2-pill--status {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tournament-hero-v2-pill--full {
    background: rgba(255, 68, 68, 0.16);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.tournament-hero-v2-pill--closed {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-hero-v2-pill--registered {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.tournament-hero-v2-pill--epic {
    background: rgba(255, 193, 7, 0.16);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.tournament-hero-v2-pill--gate {
    background: rgba(145, 70, 255, 0.16);
    color: #b388ff;
    border: 1px solid rgba(145, 70, 255, 0.3);
}

/* ==========================================
   Tournament Entry — Floating Panel
   ========================================== */
.tournament-entry-floating {
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.tournament-entry-floating-card {
    position: absolute;
    bottom: -32px;
    right: clamp(24px, 5vw, 52px);
    width: 320px;
    background: rgba(12, 16, 30, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: auto;
}

/* Glow line on top */
.tournament-entry-floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), transparent);
    border-radius: 999px;
}

/* Header */
.tournament-entry-floating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tournament-entry-floating-header-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: rgba(255, 255, 255, 0.4);
}

.tournament-entry-floating-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 999px;
}

.tournament-entry-floating-badge--open {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.tournament-entry-floating-badge--full {
    background: rgba(255, 68, 68, 0.18);
    color: #ff4444;
}

.tournament-entry-floating-badge--closed {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.35);
}

.tournament-entry-floating-badge--registered {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.tournament-entry-floating-badge--warning {
    background: rgba(255, 193, 7, 0.14);
    color: #ffc107;
}

/* Count */
.tournament-entry-floating-count {
    text-align: center;
    margin-bottom: 10px;
}

.tournament-entry-floating-count-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.tournament-entry-floating-count-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* Progress */
.tournament-entry-floating-progress {
    margin-bottom: 16px;
}

.tournament-entry-floating-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
}

.tournament-entry-floating-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Actions */
.tournament-entry-floating-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tournament-entry-floating-actions .btn {
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.tournament-entry-floating-actions > * {
    width: 100%;
}

.tournament-entry-floating-actions #register-tournament-message:empty,
.tournament-entry-floating-actions #checkin-container:empty,
.tournament-entry-floating-actions #waitlist-container:empty {
    display: none;
}

.tournament-entry-floating-note {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.4;
}

/* ==========================================
   Tournament Facts V2 — Compact Info Tiles
   ========================================== */
.tournament-facts-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    margin-top: 0;
}

.tournament-fact-v2 {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tournament-fact-v2:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(0, 212, 255, 0.18);
    transform: translateY(-2px);
}

.tournament-fact-v2-icon {
    font-size: 0.95rem;
    color: var(--color-primary);
    opacity: 0.7;
    margin-bottom: 2px;
}

.tournament-fact-v2-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 2px;
}

.tournament-fact-v2-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.25;
}

.tournament-fact-v2-value--muted {
    color: rgba(255, 255, 255, 0.5);
}

.tournament-fact-v2-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tournament-fact-v2-pill--epic {
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-primary);
    border-color: rgba(0, 212, 255, 0.22);
}

/* ==========================================
   Tournament V2 — Responsive
   ========================================== */
@media (max-width: 1100px) {
    .tournament-hero-v2--gradient {
        min-height: 420px;
    }

    .tournament-hero-v2--cover {
        min-height: 460px;
    }

    .tournament-hero-v2-inner {
        max-width: min(820px, calc(100% - 360px));
    }

    .tournament-entry-floating-card {
        width: 300px;
        right: clamp(16px, 3vw, 36px);
    }
}

@media (max-width: 960px) {
    .tournament-hero-v2--gradient {
        min-height: 420px;
    }

    .tournament-hero-v2--cover {
        min-height: 460px;
    }

    .tournament-hero-v2-inner {
        padding: clamp(28px, 5vw, 40px) clamp(24px, 4vw, 36px);
        max-width: 100%;
    }

    .tournament-hero-v2-title {
        font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    }

    .tournament-entry-floating-card {
        width: 280px;
        padding: 20px;
    }

    .tournament-facts-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tournament-hero-v2 {
        margin-left: calc(var(--container-padding) * -1);
        margin-right: calc(var(--container-padding) * -1);
        width: calc(100% + var(--container-padding) * 2);
    }

    .tournament-hero-v2--gradient {
        min-height: 340px;
    }

    .tournament-hero-v2--cover {
        min-height: 380px;
    }

    .tournament-hero-v2-inner {
        padding: clamp(24px, 5vw, 34px) clamp(20px, 4vw, 26px);
        max-width: 100%;
    }

    .tournament-hero-v2-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .tournament-hero-v2-desc {
        font-size: 0.9rem;
    }

    .tournament-hero-v2-meta {
        font-size: 0.8rem;
    }

    /* Floating panel becomes static below hero */
    .tournament-entry-floating {
        position: relative;
        margin: 0 clamp(16px, 3vw, 24px);
        margin-top: -22px;
    }

    .tournament-entry-floating-card {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    }

    .tournament-facts-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 clamp(16px, 3vw, 24px);
    }
}

@media (max-width: 480px) {
    .tournament-hero-v2--gradient {
        min-height: 280px;
    }

    .tournament-hero-v2--cover {
        min-height: 320px;
    }

    .tournament-hero-v2-inner {
        padding: 22px 16px;
    }

    .tournament-hero-v2-kicker {
        font-size: 0.62rem;
        padding: 4px 11px;
        letter-spacing: 1.8px;
    }

    .tournament-hero-v2-pills {
        justify-content: center;
    }

    .tournament-hero-v2-meta {
        justify-content: center;
    }

    .tournament-facts-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   Tournament Page — Compact Lower Sections
   ========================================== */

/* Reduce gap between card sections below hero */
.tournament-page .card + .card,
.tournament-page > .card:not(:first-child) {
    margin-top: 16px !important;
}

/* Compact card headers in lower sections */
.tournament-page .card-header h3 {
    font-size: 0.95rem !important;
}

.tournament-page .card-header {
    padding: 12px 16px !important;
}

.tournament-page .card-body {
    padding: 14px 16px !important;
}

/* Compact announcement section */
#announcements .card-body {
    padding: 12px 14px !important;
}

/* Compact empty state icon spacing */
.tournament-page .card-body > i[class*="fa-"] {
    font-size: 2rem !important;
    margin-bottom: 10px !important;
}

.tournament-page .card-body > i[class*="fa-"] + h3 {
    font-size: 0.95rem !important;
    margin-bottom: 6px !important;
}

/* Compact grid gaps in match sections */
.tournament-page .card-body .grid {
    gap: 10px !important;
}

/* Compact CTA / empty state cards */
.tournament-page .card[style*="text-align: center"] {
    padding: 20px 14px !important;
}

.tournament-page .card[style*="text-align: center"] i {
    font-size: 2.5rem !important;
}

/* Compact match cards in multi-stage */
.tournament-page .card .card .card-body {
    padding: 12px !important;
}

/* Compact announcement items */
#announcements .card-body > div,
#announcements .card-body > .announcement-item {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
}

/* Compact leaderboard rows */
#leaderboard tbody tr td {
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
}

/* Compact multi-stage banner content */
.tournament-page .card[style*="rgba(123"] .card-body {
    padding: 14px 16px !important;
}

.tournament-page .card[style*="rgba(123"] i {
    font-size: 1.5rem !important;
}

/* Compact participants table */
.tournament-page .table-responsive {
    font-size: 0.85rem !important;
}

/* Compact description section */
.tournament-page .card > .card-body > div[style*="border-left"] {
    padding: 14px 16px !important;
}

/* Prize pool section compact */
.tournament-page .card[style*="rgba(255, 215, 0"] .card-header {
    padding: 10px 16px !important;
}

.tournament-page .card[style*="rgba(255, 215, 0"] .card-body {
    padding: 14px !important;
}

/* ============================================
    PROFILE PAGE - Header, Tabs, Stats, Highlights, Empty States
   ============================================ */

/* ---- Profile Header ---- */
.profile-header-standard {
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
}

.profile-header-verified {
    border: 2px solid rgba(123, 44, 191, 0.5);
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.15), rgba(0, 212, 255, 0.15));
    box-shadow: 0 0 80px rgba(123, 44, 191, 0.35);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.profile-header-verified::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7b2cbf, #00d4ff, #7b2cbf);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.profile-header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    padding: 40px;
}

.profile-header-avatar {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    align-self: start;
    padding: 12px 12px 0;
}

.profile-header-avatar img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.profile-header-avatar .avatar-icon {
    font-size: 5.5rem;
    color: white;
}

.profile-header-level {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #21c8ff, #5f6bff);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 20px rgba(33, 200, 255, 0.18);
}

.profile-header-xp-badge {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 150px;
    width: 100%;
    max-width: 176px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.xp-badge-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.xp-badge-progress {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.xp-badge-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.xp-badge-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.xp-badge-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.xp-badge-max {
    border-color: rgba(255, 215, 0, 0.6);
}

.xp-badge-max .xp-badge-label {
    color: #ffd700;
    font-size: 0.7rem;
}

.profile-header-totem-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border: 3px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.profile-header-totem-badge i {
    color: white;
    font-size: 1.2rem;
}

.profile-header-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: stretch;
}

.profile-header-team {
    margin-bottom: 0;
    display: inline-flex;
}

.profile-header-name-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-public-handle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.profile-header-name {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #7b2cbf, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.profile-header-name.standard {
    background: none;
    -webkit-text-fill-color: var(--text-primary);
}

.profile-header-badges-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-header-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.profile-header-meta-item {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-header-bio {
    min-width: 0;
    max-width: 460px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    align-self: flex-start;
    width: min(100%, 460px);
}

.profile-header-bio .profile-bio-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-header-bio .profile-bio-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.profile-header-bio .profile-bio-empty-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Profile Tabs ---- */
.profile-tabs-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 76px;
    z-index: 20;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.profile-tab-btn {
    border: 2px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.profile-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 150, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.profile-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

.profile-tab-btn:hover::before {
    opacity: 1;
}

.profile-tab-btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, #00d4ff 0%, #0096ff 100%);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.35), 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(0);
    font-weight: 700;
}

.profile-tab-btn.is-active::before {
    opacity: 1;
}

.profile-tab-btn .tab-icon {
    margin-right: 8px;
    font-size: 1rem;
}
+

/* Make profile section tabs read as clearly interactive controls. */
.profile-tabs-nav {
    padding: 8px;
    background: rgba(8, 18, 34, 0.82);
    border-color: rgba(0, 212, 255, 0.18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.profile-tabs-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 4px 10px;
}

.profile-tabs-guide strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.profile-tabs-guide strong i {
    color: #00d4ff;
}

.profile-tabs-guide span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.profile-tab-btn {
    flex: 1 1 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.055);
    isolation: isolate;
}

.profile-tab-btn:hover {
    color: #fff;
    background: rgba(0, 212, 255, 0.11);
    border-color: rgba(0, 212, 255, 0.55);
}

.profile-tab-btn:focus-visible {
    outline: 3px solid rgba(0, 212, 255, 0.42);
    outline-offset: 3px;
}

.profile-tab-btn.is-active::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 7px;
    left: 12px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

.profile-tab-btn .tab-icon {
    margin-right: 0;
}

.profile-tab-btn .tab-action-icon {
    margin-left: auto;
    font-size: 0.72rem;
    opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-tab-btn:hover .tab-action-icon {
    opacity: 1;
    transform: translateX(3px);
}

.profile-tab-btn.is-active .tab-action-icon {
    opacity: 0.9;
    transform: rotate(90deg);
}

@media (max-width: 640px) {
    .profile-tabs-guide {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .profile-tabs-nav {
        gap: 7px;
    }

    .profile-tab-btn {
        flex-basis: auto;
        min-height: 46px;
        padding: 10px 12px;
    }

    .profile-tab-btn .tab-action-icon {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-tab-btn,
    .profile-tab-btn .tab-action-icon {
        transition: none;
    }
}


.profile-tab-panel {
    display: none;
}

.profile-tab-panel.is-active {
    display: block;
}

/* ---- Empty State ---- */
.profile-empty-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    text-align: center;
    color: var(--text-secondary);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    border: 1px dashed rgba(255,255,255,0.14);
}

.profile-empty-card i {
    font-size: 1.7rem;
    color: var(--showcase-cyan);
    opacity: 0.85;
    margin-bottom: var(--spacing-sm);
}

.profile-empty-card h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0 0 var(--spacing-xs);
}

.profile-empty-card p {
    margin: 0 auto var(--spacing-md);
    max-width: 520px;
    line-height: 1.6;
}

/* ---- Highlights ---- */
.profile-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.profile-highlight-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-highlight-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}

.profile-highlight-link {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.profile-highlight-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-highlight-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-highlight-card:hover .profile-highlight-thumbnail img {
    transform: scale(1.05);
}

.profile-highlight-placeholder {
    color: var(--text-muted);
    font-size: 3rem;
}

.profile-highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-highlight-card:hover .profile-highlight-overlay {
    opacity: 1;
}

.profile-highlight-overlay i {
    color: white;
    font-size: 2rem;
}

.profile-highlight-info {
    padding: 16px;
}

.profile-highlight-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-highlight-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-highlight-source {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-highlight-source i {
    font-size: 0.9rem;
}

.profile-highlight-watch {
    margin-top: 12px;
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.82);
}

.profile-video-modal.is-open {
    display: flex;
}

.profile-video-dialog {
    width: min(960px, 100%);
    background: rgba(12, 16, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.profile-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-video-title {
    color: var(--text-primary);
    font-weight: 800;
    margin: 0;
}

.profile-video-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    cursor: pointer;
}

.profile-video-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.profile-video-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Competitive Prefs ---- */
.competitive-prefs-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.competitive-prefs-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.competitive-prefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
}

.pref-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.pref-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.pref-icon {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-xs);
}

.pref-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pref-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.competitive-prefs-invite {
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
}

.competitive-prefs-invite .invite-icon {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: var(--spacing-md);
}

.competitive-prefs-invite .invite-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.competitive-prefs-invite .invite-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 420px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.5;
}

/* Profile Stats Grid (overrides for profile page) */
.profile-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}

.profile-page .stat-card {
    background: rgba(15, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-page .stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
}

.profile-page .stat-value {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.1;
    background: linear-gradient(135deg, currentColor, rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-page .stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}

.profile-page .fortnite-stats-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(123, 44, 191, 0.08));
    border-color: rgba(0, 212, 255, 0.3);
}

/* Responsive profile */
@media (max-width: 992px) {
    .profile-header-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .profile-header-info {
        align-items: center;
    }

    .profile-header-badges-row,
    .profile-header-meta,
    .profile-header-actions {
        justify-content: center;
    }

    .profile-header-bio {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .profile-header-content {
        padding: 25px;
        gap: 25px;
    }

    .profile-header-avatar img {
        width: 120px;
        height: 120px;
    }

    .profile-header-level {
        min-width: 28px;
        width: 28px;
        height: 28px;
        padding: 0;
        font-size: 0.68rem;
    }

    .profile-header-xp-badge {
        max-width: 160px;
    }

    .profile-header-totem-badge {
        width: 35px;
        height: 35px;
    }

    .profile-header-totem-badge i {
        font-size: 1rem;
    }

    .profile-header-name {
        font-size: 1.5rem;
    }

    .profile-header-bio {
        width: 100%;
    }

    .profile-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: thin;
    }

    .profile-tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .profile-header-content {
        padding: 20px;
        gap: 20px;
    }

    .profile-header-avatar img {
        width: 100px;
        height: 100px;
    }

    .profile-header-name {
        font-size: 1.3rem;
    }

    .profile-header-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .profile-header-avatar {
        padding-inline: 0;
    }
}

.dash-onboarding {
    margin: 0 0 16px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 0%, rgba(123, 44, 191, 0.15), transparent 34%),
        linear-gradient(135deg, rgba(0, 212, 255, 0.09), rgba(13, 17, 36, 0.96));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.dash-onboarding.is-collapsed {
    box-shadow: none;
}

.dash-onboarding.is-collapsed .dash-onboarding-kicker {
    display: none;
}

.dash-onboarding-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.dash-onboarding-heading {
    min-width: 0;
}

.dash-onboarding-header h2,
.dash-onboarding-copy h3 {
    margin: 0;
}

.dash-onboarding-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-onboarding-header h2 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.dash-onboarding-header p,
.dash-onboarding-copy p {
    margin: 5px 0 0;
    color: var(--text-secondary);
}

.dash-onboarding-progress {
    color: var(--color-primary);
    font-size: 1.35rem;
    line-height: 1;
}

.dash-onboarding-progress-wrap {
    display: grid;
    justify-items: end;
    gap: 3px;
    flex: 0 0 auto;
}

.dash-onboarding-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.dash-onboarding-toggle {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 9px;
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.08);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.dash-onboarding-toggle:hover,
.dash-onboarding-toggle:focus-visible {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.15);
}

.dash-onboarding-toggle:disabled {
    cursor: wait;
    opacity: 0.65;
}

.dash-onboarding-details[hidden] {
    display: none;
}

.dash-onboarding-intro {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.dash-onboarding-progress-wrap span {
    color: var(--text-muted);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dash-onboarding-bar {
    height: 6px;
    margin: 9px 0 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.dash-onboarding-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
}

.dash-onboarding-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-onboarding-step {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 7px 9px;
    min-width: 0;
    min-height: 132px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
}

.dash-onboarding-step.is-complete {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.045);
}

.dash-onboarding-step.is-current {
    border-color: rgba(0, 212, 255, 0.44);
    background: rgba(0, 212, 255, 0.085);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.08), 0 10px 24px rgba(0, 212, 255, 0.08);
}

.dash-onboarding-index {
    position: absolute;
    display: grid;
    width: 22px;
    height: 22px;
    margin: -21px 0 0 -21px;
    place-items: center;
    border: 2px solid #0c1428;
    border-radius: 999px;
    color: #07131a;
    background: var(--color-primary);
    font-size: 0.66rem;
    font-weight: 900;
}

.dash-onboarding-step.is-complete .dash-onboarding-index {
    color: #06170f;
    background: var(--color-success);
}

.dash-onboarding-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.12);
}

.dash-onboarding-copy h3 {
    font-size: 0.98rem;
}

.dash-onboarding-copy p {
    font-size: 0.78rem;
    line-height: 1.35;
}

.dash-onboarding-step .btn,
.dash-onboarding-done {
    grid-column: 1 / -1;
    align-self: end;
    min-height: 36px;
    border-radius: 9px;
}

.dash-onboarding-step .btn {
    width: 100%;
    justify-content: center;
    box-shadow: none;
}

.dash-onboarding-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--color-success);
    font-weight: 700;
    font-size: 0.85rem;
}

@media (max-width: 820px) {
    .dash-onboarding-steps {
        grid-template-columns: 1fr;
    }

    .dash-onboarding-step {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        grid-template-rows: auto;
        min-height: 0;
    }

    .dash-onboarding-step .btn,
    .dash-onboarding-done {
        grid-column: 3;
        align-self: center;
        width: auto;
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .dash-onboarding {
        padding: 14px;
        border-radius: 14px;
    }

    .dash-onboarding-header {
        align-items: flex-start;
    }

    .dash-onboarding-header-actions {
        align-items: flex-end;
        flex-direction: column;
        gap: 8px;
    }

    .dash-onboarding-step {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .dash-onboarding-step .btn,
    .dash-onboarding-done {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* ============================================
   DASHBOARD — SIMPLE OVERVIEW
   ============================================ */
.dash-overview {
    display: grid;
    gap: 20px;
    margin-top: 18px;
    scroll-behavior: smooth;
}

.dash-overview-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(0, 212, 255, 0.075), rgba(123, 44, 191, 0.055));
}

.dash-first-use-launchpad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dash-first-use-launchpad > a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 82px;
    padding: 14px;
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 14px;
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.045);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dash-first-use-launchpad > a:hover,
.dash-first-use-launchpad > a:focus-visible {
    border-color: rgba(0, 212, 255, 0.42);
    background: rgba(0, 212, 255, 0.085);
    transform: translateY(-2px);
}

.dash-first-use-launchpad-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.11);
}

.dash-first-use-launchpad > a > span:nth-child(2) {
    display: grid;
    min-width: 0;
}

.dash-first-use-launchpad strong {
    font-size: 0.86rem;
}

.dash-first-use-launchpad small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.35;
}

.dash-first-use-launchpad > a > .fa-arrow-right {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.dash-container.is-first-use .dash-dashboard-main > .dash-xp-hero {
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: none;
}

.dash-container.is-first-use .dash-dashboard-main > .dash-xp-hero .dash-hero-avatar {
    width: 64px;
    height: 64px;
}

.dash-container.is-first-use .dash-dashboard-main > .dash-xp-hero .dash-hero-level-badge {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
}

.dash-container.is-first-use .dash-dashboard-main > .dash-xp-hero .dash-hero-name {
    font-size: 1.2rem;
}

.dash-container.is-first-use .dash-dashboard-main > .dash-xp-hero .dash-xp-progress-bar {
    height: 9px;
}

.dash-container.is-first-use .dash-dashboard-main > .dash-xp-hero .dash-xp-completion-hint {
    display: none;
}

.dash-overview-kicker {
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dash-overview-intro h2 {
    margin: 4px 0 5px;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.dash-overview-intro p,
.dash-overview-section-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
}

.dash-overview-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 330px;
}

.dash-overview-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.14);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.dash-overview-nav a:hover,
.dash-overview-nav a:focus-visible {
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.08);
}

.dash-overview-nav i {
    width: 17px;
    color: var(--color-primary);
    text-align: center;
}

.dash-overview-section {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(123, 44, 191, 0.055), transparent 34%),
        rgba(7, 10, 25, 0.38);
    scroll-margin-top: 92px;
}

.dash-overview-section-attention {
    border-color: rgba(0, 212, 255, 0.16);
    background:
        radial-gradient(circle at 100% 0, rgba(0, 212, 255, 0.075), transparent 36%),
        rgba(7, 10, 25, 0.42);
}

.dash-overview-section-head {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.dash-overview-section-head > div {
    min-width: 0;
}

.dash-overview-section-head h2 {
    margin: 0 0 3px;
    color: var(--text-primary);
    font-size: clamp(1.04rem, 1.8vw, 1.2rem);
    line-height: 1.2;
}

.dash-overview-section-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(0, 212, 255, 0.24);
    border-radius: 12px;
    color: var(--color-primary);
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.13), rgba(123, 44, 191, 0.1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
    font-size: 0.95rem;
}

.dash-dashboard-main > .dash-xp-hero {
    padding: 28px;
}

.dash-dashboard-main > .dash-xp-hero .dash-hero-top {
    align-items: center;
    margin-bottom: 0;
}

.dash-dashboard-main > .dash-xp-hero .dash-hero-side {
    justify-content: center;
}

.dash-overview-counters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dash-overview-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dash-overview-counter:hover {
    border-color: rgba(0, 212, 255, 0.34);
    background: rgba(0, 212, 255, 0.07);
    transform: translateY(-2px);
}

.dash-overview-counter.has-attention {
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(245, 158, 11, 0.07);
}

.dash-overview-counter-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.2rem;
}

.dash-overview-counter-copy {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.dash-overview-counter-copy strong {
    font-size: 1.25rem;
}

.dash-overview-counter-copy span {
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-overview-alert,
.dash-overview-ok {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
}

.dash-overview-alert {
    border: 1px solid rgba(245, 158, 11, 0.42);
    color: var(--text-primary);
    background: rgba(245, 158, 11, 0.09);
    text-decoration: none;
}

.dash-overview-alert > span:nth-child(2) {
    display: grid;
    flex: 1;
}

.dash-overview-alert small,
.dash-overview-ok {
    color: var(--text-secondary);
}

.dash-overview-ok {
    border: 1px solid rgba(34, 197, 94, 0.26);
    background: rgba(34, 197, 94, 0.07);
}

.dash-overview-ok i {
    color: var(--color-success);
}

.dash-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.dash-overview-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.12));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.dash-overview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 34px;
    margin-bottom: 15px;
}

.dash-overview-card-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.dash-overview-card-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.04rem;
    line-height: 1.2;
}

.dash-overview-eyebrow {
    font-size: 1.05rem;
}

.dash-overview-header-links {
    display: flex;
    gap: 10px;
}

.dash-overview-header-links a,
.dash-overview-see-all {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.dash-overview-list {
    display: grid;
    flex: 1;
    gap: 8px;
}

.dash-overview-editable-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.dash-overview-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid rgba(0, 212, 255, 0.24);
    border-radius: 10px;
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.07);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.dash-overview-edit-btn:hover {
    border-color: rgba(0, 212, 255, 0.48);
    background: rgba(0, 212, 255, 0.12);
}

.dash-overview-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 11px;
    border-radius: 12px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.17);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dash-overview-row:hover {
    background: rgba(0, 212, 255, 0.08);
}

.dash-overview-row-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
}

.dash-overview-row-copy {
    display: grid;
    min-width: 0;
}

.dash-overview-row-copy strong,
.dash-overview-row-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-overview-row-copy strong {
    font-size: 0.9rem;
}

.dash-overview-row-copy small {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.dash-overview-state {
    color: var(--color-primary);
    font-weight: 800;
}

.dash-overview-state.is-managed {
    color: var(--color-warning);
}

.dash-overview-row > .fa-chevron-right {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.dash-overview-empty {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 124px;
    padding: 20px;
    place-content: center;
    color: var(--text-secondary);
    text-align: center;
}

.dash-overview-empty > span {
    margin-bottom: 3px;
    font-size: 1.55rem;
}

.dash-overview-empty strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.dash-overview-empty small {
    color: var(--text-muted);
}

.dash-overview-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 15px;
}

.dash-overview-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dash-overview-shortcuts > a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.14);
    text-decoration: none;
}

.dash-overview-shortcuts > a:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.dash-overview-shortcuts i {
    color: var(--color-primary);
}

.dash-overview-shortcuts span {
    display: grid;
    min-width: 0;
}

.dash-overview-shortcuts strong,
.dash-overview-shortcuts small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-overview-shortcuts strong {
    font-size: 0.85rem;
}

.dash-overview-shortcuts small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.dash-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.dash-overview-action-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-overview-action-cards .btn {
    justify-content: flex-start;
    min-height: 58px;
    padding: 10px 12px;
    text-align: left;
    white-space: normal;
}

.dash-overview-action-cards .btn > i {
    width: 20px;
    color: var(--color-primary);
    text-align: center;
}

.dash-overview-action-cards .btn > span {
    display: grid;
    gap: 2px;
}

.dash-overview-action-cards strong {
    color: var(--text-primary);
    font-size: 0.78rem;
}

.dash-overview-action-cards small {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1.3;
}

.dash-role-section {
    border-color: rgba(0, 212, 255, 0.13);
}

.dash-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dash-role-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 250px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.043), rgba(0, 0, 0, 0.13));
}

.dash-role-card > header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.dash-role-card > header > i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
}

.dash-role-card h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dash-role-card > p,
.dash-role-list > p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
}

.dash-role-list,
.dash-role-links {
    display: grid;
    gap: 7px;
}

.dash-role-list {
    flex: 1;
}

.dash-role-list > a,
.dash-role-links > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 10px 11px;
    border-radius: 11px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.16);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.dash-role-list > a:hover,
.dash-role-links > a:hover {
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.075);
}

.dash-role-list > a > span {
    display: grid;
    min-width: 0;
}

.dash-role-list strong,
.dash-role-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-role-list strong,
.dash-role-links > a {
    font-size: 0.8rem;
    font-weight: 750;
}

.dash-role-list small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.68rem;
}

.dash-role-list .fa-chevron-right,
.dash-role-links .fa-chevron-right {
    color: var(--text-muted);
    font-size: 0.66rem;
}

.dash-role-links {
    margin-top: 12px;
}

.dash-role-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}

.dash-role-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    white-space: normal;
}

.dash-feature-explorer {
    border-color: rgba(123, 44, 191, 0.17);
    background:
        radial-gradient(circle at 100% 0, rgba(123, 44, 191, 0.085), transparent 38%),
        rgba(7, 10, 25, 0.4);
}

.dash-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.dash-feature-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 94px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.02));
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dash-feature-card:hover,
.dash-feature-card:focus-visible {
    border-color: rgba(0, 212, 255, 0.34);
    background: rgba(0, 212, 255, 0.06);
    transform: translateY(-2px);
}

.dash-feature-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
}

.dash-feature-card > span:nth-child(2) {
    display: grid;
    min-width: 0;
}

.dash-feature-card strong {
    font-size: 0.84rem;
}

.dash-feature-card small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.71rem;
    line-height: 1.35;
}

.dash-feature-card > .fa-arrow-right {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.dash-overview-organizer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 14px;
    color: var(--text-primary);
    background: rgba(245, 158, 11, 0.06);
    text-decoration: none;
}

.dash-overview-organizer.is-risk {
    border-color: rgba(239, 68, 68, 0.52);
    background: rgba(239, 68, 68, 0.08);
}

.dash-overview-organizer > span {
    color: var(--color-warning);
}

.dash-overview-organizer > div {
    display: grid;
    flex: 1;
}

.dash-overview-organizer small {
    color: var(--text-secondary);
}

@media (max-width: 820px) {
    .dash-overview-intro {
        grid-template-columns: 1fr;
    }

    .dash-overview-nav {
        min-width: 0;
    }

    .dash-overview-grid {
        grid-template-columns: 1fr;
    }

    .dash-overview-counters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-role-grid {
        grid-template-columns: 1fr;
    }

    .dash-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-first-use-launchpad {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dash-overview {
        gap: 14px;
    }

    .dash-overview-intro {
        padding: 18px;
    }

    .dash-container.is-first-use .dash-overview-nav {
        display: none;
    }

    .dash-overview-nav {
        display: flex;
        margin-inline: -3px;
        padding: 0 3px 4px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .dash-overview-nav a {
        flex: 0 0 auto;
    }

    .dash-dashboard-main > .dash-xp-hero {
        padding: 20px;
    }

    .dash-dashboard-main > .dash-xp-hero .dash-hero-top {
        gap: 18px;
    }

    .dash-dashboard-main > .dash-xp-hero .dash-hero-side {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
    }

    .dash-dashboard-main > .dash-xp-hero .dash-hero-wallet {
        min-width: 0;
    }

    .dash-overview-counters {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dash-overview-section {
        gap: 14px;
        padding: 15px;
        border-radius: 17px;
    }

    .dash-overview-section-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 11px;
        font-size: 0.86rem;
    }

    .dash-overview-section-head p {
        font-size: 0.78rem;
        line-height: 1.42;
    }

    .dash-overview-counter {
        padding: 11px 13px;
    }

    .dash-overview-counter-copy {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: baseline;
        gap: 8px;
    }

    .dash-overview-counter-copy span {
        white-space: normal;
    }

    .dash-overview-card {
        padding: 16px;
        border-radius: 15px;
    }

    .dash-role-card {
        min-height: 0;
        padding: 16px;
    }

    .dash-overview-card-header {
        align-items: flex-start;
    }

    .dash-overview-header-links {
        gap: 8px;
    }

    .dash-overview-shortcuts {
        grid-template-columns: 1fr;
    }

    .dash-feature-grid {
        grid-template-columns: 1fr;
    }

    .dash-overview-edit-btn span {
        display: none;
    }

    .dash-overview-card-actions,
    .dash-overview-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dash-overview-card-actions .btn,
    .dash-overview-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
