/* 
 * 🎨 AfiliadosPRO Elite 2026 — Dark Glassmorphism 2.0 (Stitch Sync)
 * 🏛️ Orchestrated by ARES (Antigravity CEO)
 * 🛠️ Implemented by @ui-designer + @frontend-specialist
 * 📐 16 Páginas — Full Visual Parity with Stitch Output
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&family=Space+Grotesk:wght@500;600&display=swap');

/* ============================================
   🎨 DESIGN TOKENS (3-Layer Architecture)
   ============================================ */
:root {
    /* --- CAMADA 1: PRIMITIVOS --- */
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --cyan-300:  #67e8f9;
    --cyan-400:  #22d3ee;
    --cyan-500:  #06b6d4;
    --blue-400:  #60a5fa;
    --blue-500:  #3b82f6;
    --blue-600:  #2563eb;
    --violet-400:#a78bfa;
    --violet-500:#8b5cf6;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --emerald-400:#34d399;
    --emerald-500:#10b981;
    --rose-400:  #fb7185;
    --rose-500:  #f43f5e;
    --red-500:   #ef4444;
    --pink-500:  #ec4899;
    --orange-500:#f97316;

    /* --- CAMADA 2: SEMÂNTICOS --- */
    --bg-primary:    #060910;
    --bg-secondary:  #0a0e17;
    --bg-sidebar:    #04060b;
    --bg-glass:      rgba(10, 14, 23, 0.65);
    --bg-glass-hover:rgba(10, 14, 23, 0.85);
    --bg-card:       rgba(10, 14, 23, 0.75);
    --bg-elevated:   rgba(15, 23, 42, 0.6);
    --bg-input:      rgba(4, 6, 11, 0.8);

    --accent-cyan:   #25d1f4; /* Cor Exata do Stitch */
    --accent-blue:   #3b82f6;
    --accent-violet: #8b5cf6;
    --accent-gold:   #fbbf24;
    --accent-green:  #10b981;
    --accent-red:    #ef4444;
    --accent-pink:   #ec4899;
    --accent-orange: #f97316;

    --text-main:     #f1f5f9;
    --text-dim:      #94a3b8;
    --text-bright:   #ffffff;
    --text-muted:    rgba(255, 255, 255, 0.45);

    --border-glass:       rgba(255, 255, 255, 0.05);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    --border-visible:     rgba(255, 255, 255, 0.1);
    --border-glow:        rgba(37, 209, 244, 0.4);

    /* --- CAMADA 3: COMPONENTES --- */
    --glass-blur:    blur(20px);
    --glass-blur-sm: blur(12px);
    --glass-blur-lg: blur(40px);

    --radius-xs:      6px;
    --radius-sm:      8px;
    --radius-button:  10px;
    --radius-card:    14px;
    --radius-premium: 18px;
    --radius-pill:    100px;

    --shadow-elite:     0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-card:      0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow-cyan: 0 0 20px rgba(34, 211, 238, 0.15);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.15);
    --shadow-glow-gold: 0 0 15px rgba(251, 191, 36, 0.2);
    --shadow-inset:     inset 0 1px 0 rgba(255, 255, 255, 0.04);

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast:   all 0.15s ease;
    --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Tipografia */
    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'Space Grotesk', monospace;

    /* Bootstrap Overrides (para não quebrar nada) */
    --bs-body-bg: var(--bg-primary);
    --bs-body-color: var(--text-main);
    --bs-secondary-color: var(--text-dim);
    --bs-tertiary-color: var(--text-muted);
}

/* ============================================
   🔧 BASE RESET & FOUNDATION
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .outfit {
    font-family: var(--font-heading);
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }
.font-mono { font-family: var(--font-mono); }

/* ============================================
   💎 GLASSMORPHISM 2.0 — PREMIUM GLASS
   ============================================ */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-premium);
    box-shadow: var(--shadow-elite), var(--shadow-inset);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elite), 0 0 30px rgba(34, 211, 238, 0.04);
}

.glass-panel-static {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-premium);
    box-shadow: var(--shadow-elite), var(--shadow-inset);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

/* Form Inputs — Deep, Rich, Visible */
.glass-input,
.form-control,
.form-select {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-visible) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-button) !important;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.glass-input:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), var(--shadow-glow-cyan) !important;
    background: rgba(10, 14, 23, 0.85) !important;
    outline: none;
    color: #fff !important;
}

.glass-input::placeholder,
.form-control::placeholder { color: rgba(255, 255, 255, 0.25) !important; }

/* ============================================
   🏛️ LAYOUT — SIDEBAR + MAIN
   ============================================ */
.elite-sidebar {
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #070a12 0%, #0a0e17 100%);
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid var(--border-glass);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-nav-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.05) transparent;
}

.sidebar-nav-scroll::-webkit-scrollbar { width: 3px; }
.sidebar-nav-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.05); border-radius: 10px; }

/* Dashboard Content Area */
.elite-main-content {
    margin-left: 260px;
    padding: 2.5rem;
    min-height: 100vh;
    background: var(--bg-primary);
    transition: var(--transition-smooth);
}

/* Sidebar Toggle Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .elite-sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    
    .elite-sidebar.active {
        transform: translateX(0);
    }
    
    .elite-main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .bento-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-card-large { grid-column: span 2; }
}

/* ============================================
   🧭 SIDEBAR NAVIGATION — Stitch Fidelity
   ============================================ */
.nav-section-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0 16px;
    margin-bottom: 6px;
    margin-top: 4px;
}

.nav-link-elite {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--slate-400);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    font-size: 0.85rem;
    font-weight: 450;
    margin: 1px 0;
    position: relative;
}

.nav-link-elite i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.7;
}

.nav-link-elite:hover {
    background: rgba(34, 211, 238, 0.05);
    color: var(--slate-200);
}

.nav-link-elite:hover i { opacity: 1; }

.nav-link-elite.active {
    color: var(--accent-cyan);
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.1) 0%, rgba(34, 211, 238, 0.03) 100%);
    font-weight: 550;
}

.nav-link-elite.active i { opacity: 1; }

.nav-link-elite.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    width: 3px;
    height: 60%;
    background: var(--accent-cyan);
    border-radius: 0 6px 6px 0;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

.nav-divider {
    height: 1px;
    margin: 8px 16px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

/* ============================================
   📊 BENTO GRID SYSTEM
   ============================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.bento-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.bento-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.bento-card-large { grid-column: span 2; }
.bento-card-full  { grid-column: 1 / -1; }

/* ============================================
   🎯 BUTTONS — Premium Gradient & Glass
   ============================================ */
.btn-elite {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-button);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-elite:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35);
    color: #fff;
    filter: brightness(1.1);
}

.btn-glass {
    background: var(--bg-glass);
    border: 1px solid var(--border-visible);
    color: var(--text-dim);
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    border-radius: var(--radius-button);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-glass:hover {
    border-color: var(--border-glass-hover);
    color: #fff;
    background: var(--bg-glass-hover);
}

.btn-ares-master {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-gold);
    box-shadow: var(--shadow-glow-gold);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-button);
    padding: 0.7rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-ares-master:hover {
    background: rgba(251, 191, 36, 0.2);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    transform: translateY(-1px);
    color: var(--accent-gold);
}

/* ============================================
   📊 KPI CARDS — Stitch-Perfect
   ============================================ */
.kpi-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.04) 0%, transparent 70%);
    transform: translate(30%, -30%);
    pointer-events: none;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-button);
    font-size: 1.2rem;
}

.kpi-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.kpi-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================
   📋 TABLES — Dark Elite Style
   ============================================ */
.table-elite {
    color: var(--text-dim);
    font-size: 0.85rem;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table-elite thead th {
    background: rgba(10, 14, 23, 0.6);
    color: var(--slate-500);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.table-elite tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition-fast);
}

.table-elite tbody tr:hover {
    background: rgba(34, 211, 238, 0.03);
}

.table-elite tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    color: var(--text-dim);
}

/* ============================================
   🏷️ STATUS BADGES — Neon Pills
   ============================================ */
.status-pill {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.02em;
}

.status-pill-success { background: rgba(16, 185, 129, 0.12); color: var(--emerald-400); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-pill-warning { background: rgba(251, 191, 36, 0.12); color: var(--amber-400);   border: 1px solid rgba(251, 191, 36, 0.2); }
.status-pill-danger  { background: rgba(239, 68, 68, 0.12);  color: var(--rose-400);    border: 1px solid rgba(239, 68, 68, 0.2); }
.status-pill-info    { background: rgba(34, 211, 238, 0.12);  color: var(--cyan-300);    border: 1px solid rgba(34, 211, 238, 0.2); }
.status-pill-primary { background: rgba(59, 130, 246, 0.12);  color: var(--blue-400);    border: 1px solid rgba(59, 130, 246, 0.2); }

/* ============================================
   🔲 TABS — Segmented Control (Stitch Style)
   ============================================ */
.tabs-elite {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(10, 14, 23, 0.5);
    border-radius: var(--radius-button);
    border: 1px solid var(--border-glass);
    margin-bottom: 1.5rem;
}

.tab-elite {
    flex: 1;
    padding: 0.6rem 1rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: none;
    background: none;
}

.tab-elite:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }

.tab-elite.active {
    color: #fff;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.06);
    font-weight: 600;
}

/* ============================================
   🖼️ EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.06);
    border: 1px dashed rgba(34, 211, 238, 0.2);
    color: var(--accent-cyan);
    font-size: 1.8rem;
}

.empty-state h4 {
    color: #fff;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.empty-state p {
    color: var(--text-dim);
    max-width: 380px;
    margin: 0 auto 1.25rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ============================================
   📊 PROGRESS BARS
   ============================================ */
.progress-bar-elite {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.progress-bar-elite .fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   🃏 CARD GRIDS
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.bento-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.bento-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.bento-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.card-add {
    border: 2px dashed rgba(34, 211, 238, 0.15);
    background: transparent;
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--accent-cyan);
    min-height: 180px;
    text-decoration: none;
}

.card-add:hover {
    border-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.03);
    transform: translateY(-2px);
    color: var(--accent-cyan);
}

.card-add i { font-size: 1.8rem; }

/* ============================================
   🔔 ALERTS & BANNERS
   ============================================ */
.alert-elite {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid;
    font-size: 0.85rem;
}

.alert-elite-info    { background: rgba(59, 130, 246, 0.06); border-color: var(--accent-blue);  }
.alert-elite-success { background: rgba(16, 185, 129, 0.06); border-color: var(--accent-green); }
.alert-elite-warning { background: rgba(251, 191, 36, 0.06); border-color: var(--accent-gold);  }
.alert-elite-danger  { background: rgba(239, 68, 68, 0.06);  border-color: var(--accent-red);   }

/* ============================================
   🖼️ GALLERY (Backgrounds)
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 9/16;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-glass);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--accent-cyan);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .overlay { opacity: 1; }

/* ============================================
   🔐 FORM ELEMENTS — Full Override
   ============================================ */
.form-elite .form-label,
.form-label {
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.form-elite .form-control,
.form-elite .form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-visible);
    color: var(--text-main);
    border-radius: var(--radius-button);
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.form-elite .form-control:focus,
.form-elite .form-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
    background: rgba(10, 14, 23, 0.9);
    color: #fff;
}

.form-elite .form-control::placeholder { color: rgba(255, 255, 255, 0.2); }

.form-check-elite .form-check-input {
    background-color: var(--bg-input);
    border-color: var(--border-visible);
}

.form-check-elite .form-check-input:checked {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* ============================================
   ✨ MICRO-ANIMATIONS
   ============================================ */
@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 6px currentColor; }
    50%      { box-shadow: 0 0 16px currentColor; }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.animate-entrance { animation: fadeInSlideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* 💀 SKELETON LOADERS — Premium Feedback */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 37%,
        rgba(255, 255, 255, 0.03) 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
    display: inline-block;
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}

.skeleton-text { height: 1em; width: 100%; margin-bottom: 0.5rem; }
.skeleton-title { height: 1.5em; width: 60%; margin-bottom: 0.75rem; }
.skeleton-circle { border-radius: 50%; width: 40px; height: 40px; }
.skeleton-button { height: 42px; border-radius: var(--radius-button); }

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
    background-color: var(--accent-green);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.text-muted, .text-muted-elite { color: var(--text-dim) !important; }
.text-tertiary   { color: var(--slate-500) !important; }
.text-white-75   { color: rgba(255, 255, 255, 0.75) !important; }
.text-white-50   { color: rgba(255, 255, 255, 0.5) !important; }
.text-cyan        { color: var(--accent-cyan) !important; }
.text-gold        { color: var(--accent-gold) !important; }
.text-green       { color: var(--accent-green) !important; }

.small   { font-size: 0.875rem; color: var(--text-dim); }
.smaller { font-size: 0.75rem; }
.smallest{ font-size: 0.65rem; }

/* ============================================
   🎭 UTILITIES — Quick Classes
   ============================================ */
.hover-glow:hover  { text-shadow: 0 0 8px currentColor; }
.cursor-pointer    { cursor: pointer; }
.hover-white:hover { color: #fff !important; }
.bg-glass-dark     { background: rgba(0, 0, 0, 0.25); }
.border-glass      { border: 1px solid var(--border-glass); }
.rounded-elite     { border-radius: var(--radius-premium); }
.glow-cyan         { box-shadow: var(--shadow-glow-cyan); }
.bg-sidebar        { background-color: var(--bg-sidebar); }
.uppercase         { text-transform: uppercase; }
.tracking-wider    { letter-spacing: 0.1em; }

/* Gradient Borders */
.gradient-border {
    position: relative;
}
.gradient-border::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
}

/* ============================================
   📱 RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 991.98px) {
    .elite-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .elite-sidebar.show { transform: translateX(0); }
    .elite-main-content { margin-left: 0; padding: 1.5rem; }
    .bento-grid-3, .bento-grid-4 { grid-template-columns: 1fr; }
    .bento-card-large { grid-column: span 1; }
    .tabs-elite { flex-wrap: wrap; }
}

@media (max-width: 767.98px) {
    .elite-main-content { padding: 1rem; }
    .card-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-grid-3, .bento-grid-4 { grid-template-columns: 1fr; }
    .bento-card-large { grid-column: span 1; }
}

/* ============================================
   🖱️ SCROLLBAR GLOBAL
   ============================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, 0.2); }

/* ============================================
   📦 SIDEBAR OVERLAY (MOBILE)
   ============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99;
}
.sidebar-overlay.show { display: block; }

/* ============================================
   🔥 PAGE HEADER — Top Bar (Stitch Style)
   ============================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.page-header .subtitle {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* ============================================
   🧩 SECTION WRAPPER — Content Blocks
   ============================================ */
.section-block {
    background: var(--bg-card);
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-premium);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}

.section-block h5, .section-block h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}
