
    html[data-page='chests']:not(.chests-ready) #chestDashboard {
      display: none !important;
    }

    html[data-page='chests']:not(.chests-ready) #chestLoginWarning {
      display: none !important;
    }

    html[data-page='chests']:not(.chests-ready) #chestStatus {
      display: block !important;
    }

    

    /* Fix light theme miraculous popover close button hover contrast */
    :root[data-theme='light'] .patreon-popover.patreon-popover--miraculous .patreon-popover-close:hover {
      background: rgba(111, 216, 255, 0.22) !important;
      border-color: rgba(111, 216, 255, 0.6) !important;
      color: #0284c7 !important;
    }

    /* ==========================================================================
       LIGHT THEME LEADERBOARD OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .lb-hero h1 {
      color: #1a1a1a !important;
      -webkit-text-fill-color: #1a1a1a !important;
      background: none !important;
    }

    :root[data-theme='light'] .lb-hero p {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .lb-hero svg {
      color: #d97706 !important;
    }

    :root[data-theme='light'] .lb-tab {
      background: #fcfbf9 !important;
      color: #4b5563 !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    :root[data-theme='light'] .lb-tab:hover {
      background: #f3f4f6 !important;
    }

    :root[data-theme='light'] .lb-tab.active {
      background: #ffffff !important;
      color: #1a1a1a !important;
      border-color: #6a9af0 !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }

    :root[data-theme='light'] .chest-login-warning {
      background: #fffbeb !important;
      border-color: #fde68a !important;
      box-shadow: 0 4px 15px rgba(253, 230, 138, 0.2) !important;
    }

    :root[data-theme='light'] .chest-login-warning strong {
      color: #92400e !important;
    }

    :root[data-theme='light'] .chest-login-warning span {
      color: #b45309 !important;
    }

    /* Leaderboard podium overrides */
    :root[data-theme='light'] .podium-item:not(.lb-has-bg) {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    }
    
    :root[data-theme='light'] .podium-item:not(.lb-has-bg) .podium-name {
      color: #1a1a1a !important;
      text-shadow: none !important;
    }

    :root[data-theme='light'] .podium-item:not(.lb-has-bg) .stat-pill {
      background: #f3f4f6 !important;
      border-color: rgba(0,0,0,0.08) !important;
      color: #4b5563 !important;
    }

    :root[data-theme='light'] .podium-item:not(.lb-has-bg) .stat-pill span[style*="color:#f8fafc"],
    :root[data-theme='light'] .podium-item:not(.lb-has-bg) .stat-pill span[style*="color:#d1d5db"] {
      color: #4b5563 !important;
    }

    /* Leaderboard list overrides */
    :root[data-theme='light'] .lb-row:not(.lb-has-bg) {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    }

    :root[data-theme='light'] .lb-row:not(.lb-has-bg) .lb-row-rank {
      color: #6b7280 !important;
      text-shadow: none !important;
    }

    :root[data-theme='light'] .lb-row:not(.lb-has-bg) .lb-row-name {
      color: #1a1a1a !important;
      text-shadow: none !important;
    }

    /* Keep text white for items with backgrounds */
    :root[data-theme='light'] .podium-item.lb-has-bg .podium-name,
    :root[data-theme='light'] .lb-row.lb-has-bg .lb-row-name,
    :root[data-theme='light'] .lb-row.lb-has-bg .lb-row-rank {
      color: #ffffff !important;
      text-shadow: 0 2px 6px rgba(0,0,0,0.8) !important;
    }

    :root[data-theme='light'] .lb-row:not(.lb-has-bg) .stat-pill span[style*="color:#f8fafc"],
    :root[data-theme='light'] .lb-row:not(.lb-has-bg) .stat-pill span[style*="color:#d1d5db"] {
      color: #6b7280 !important;
    }

    /* ==========================================================================
       LIGHT THEME ADMIN ANNOUNCEMENT OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .admin-announcement-card-v2 {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    }

    :root[data-theme='light'] .admin-announcement-v2-title {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .admin-announcement-v2-copy {
      color: #4b5563 !important;
    }

    :root[data-theme='light'] .admin-announcement-v2-footer {
      border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    :root[data-theme='light'] .v2-pill {
      background: #f3f4f6 !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      color: #374151 !important;
    }

    /* ==========================================================================
       LIGHT THEME FAQ OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .support-faq-premium {
      background: #fcfbf9 !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      border-radius: 12px !important;
      padding: 24px !important;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    }
    
    :root[data-theme='light'] .faq-premium-title {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .faq-item {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      border-radius: 8px !important;
      margin-bottom: 12px !important;
    }

    :root[data-theme='light'] .faq-toggle {
      color: #1a1a1a !important;
    }
    
    :root[data-theme='light'] .faq-toggle:hover {
      background: #f3f4f6 !important;
    }

    :root[data-theme='light'] .faq-icon {
      color: #6a9af0 !important;
    }
    
    :root[data-theme='light'] .faq-answer {
      color: #4b5563 !important;
      border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
    
    :root[data-theme='light'] .faq-answer p {
      color: #4b5563 !important;
    }

    :root[data-theme='light'] .faq-answer code {
      background: rgba(0, 0, 0, 0.04) !important;
      color: #1a1a1a !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    /* ==========================================================================
       LIGHT THEME GACHA REWARD CHEST OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .gacha-modal .gacha-card-value {
      color: #ffffff !important;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
    }
    
    :root[data-theme='light'] .gacha-modal .gacha-card-label {
      color: rgba(255, 255, 255, 0.8) !important;
    }

    :root[data-theme='light'] .gacha-modal .gacha-prompt {
      color: #ffffff !important;
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 25px var(--chest-accent), 0 4px 12px rgba(0, 0, 0, 0.6) !important;
    }

    /* ==========================================================================
       LIGHT THEME RANK PREVIEW OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .rank-preview-card .rank-preview-kicker {
      color: var(--rank-preview-tone, #8f7cff) !important;
      text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
    }
    :root[data-theme='light'] .rank-preview-card strong {
      color: #ffffff !important;
      text-shadow: 0 2px 10px rgba(0,0,0,0.6) !important;
    }
    :root[data-theme='light'] .rank-preview-card span,
    :root[data-theme='light'] .rank-preview-card small {
      color: rgba(255, 255, 255, 0.85) !important;
      text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    }
  

    /* Balanced comfortable page width */
    :root {
      --content-width: 1520px !important;
    }

    .page-frame,
    .patreon-ticker-banner {
      width: 100% !important;
      max-width: 1520px !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    .topbar-inner,
    .breadcrumbs,
    .section,
    .stats-grid {
      width: 100% !important;
      max-width: 1520px !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    /* ==========================================================================
       KWAMI & MIRACULOUS - PREMIUM DASHBOARD HUB REDESIGN
       ========================================================================== */
    .miraculous-dashboard {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 24px;
      align-items: start;
      margin-top: 24px;
    }

    @media (max-width: 1080px) {
      .miraculous-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
      }
    }

    /* Premium adopt card and command lists */
    .kwami-card-premium {
      background: radial-gradient(circle at top left, rgba(143, 124, 255, 0.08), transparent 45%), var(--surface-strong);
      border: 1px solid rgba(143, 124, 255, 0.15);
      border-top: 4px solid #8f7cff;
      border-radius: 20px;
      padding: 24px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    }

    /* Steps flow */
    .kwami-flow-premium {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin: 16px 0 0;
    }

    @media (max-width: 960px) {
      .kwami-flow-premium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 520px) {
      .kwami-flow-premium {
        grid-template-columns: 1fr;
      }
    }

    .kwami-step-premium {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 12px;
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 6px;
      transform: scale(1) translateZ(0);
      will-change: transform;
    }

    .kwami-step-premium:hover {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(143, 124, 255, 0.25);
      /* No scale on hover to prevent jitter */
    }

    .kwami-step-num {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: rgba(143, 124, 255, 0.15);
      color: #8f7cff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.8rem;
    }

    .kwami-step-premium strong {
      color: #fbf7ef;
      font-size: 0.9rem;
      margin-top: 2px;
    }

    .kwami-step-premium .command-pills {
      margin-top: auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 4px;
    }

    .kwami-step-premium .command-pills code {
      font-size: 0.72rem;
      padding: 2px 6px;
    }

    /* Transform / Combat cards grid */
    .roleplay-combat-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 16px;
    }

    @media (max-width: 640px) {
      .roleplay-combat-grid {
        grid-template-columns: 1fr;
      }
    }

    .roleplay-combat-card {
      border-radius: 20px;
      padding: 20px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
      transition: all 0.2s ease;
      transform: scale(1) translateZ(0);
      will-change: transform;
    }

    .roleplay-combat-card:hover {
      /* No scale on hover to prevent jitter */
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    }

    /* Right Column: Activities */
    .activities-card-premium {
      background: radial-gradient(circle at top right, rgba(143, 124, 255, 0.05), transparent 40%), var(--surface-strong);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    }

    .activity-section-premium {
      margin-bottom: 24px;
    }

    .activity-section-premium:last-child {
      margin-bottom: 0;
    }

    .activity-section-premium h4 {
      color: #8f7cff;
      font-size: 0.75rem;
      font-weight: 850;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .activity-list-premium {
      display: grid;
      gap: 10px;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .activity-item-premium {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(16, 17, 20, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.03);
      border-radius: 12px;
      padding: 12px 16px;
      transition: all 0.2s ease;
      gap: 12px;
    }

    @media (max-width: 520px) {
      .activity-item-premium {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
    }

    .activity-item-premium:hover {
      background: rgba(16, 17, 20, 0.6);
      border-color: rgba(143, 124, 255, 0.15);
      transform: translateX(3px);
    }

    .activity-item-premium code {
      font-size: 0.8rem;
      font-weight: 700;
      color: #fff3c8;
      background: rgba(143, 124, 255, 0.1);
      border: 1px solid rgba(143, 124, 255, 0.2);
      border-radius: 99px;
      padding: 4px 12px;
    }

    .activity-item-premium span {
      color: var(--text-muted);
      font-size: 0.88rem;
      text-align: right;
    }

    @media (max-width: 520px) {
      .activity-item-premium span {
        text-align: left;
      }
    }

    /* Premium interactive simulator/calculator card */
    .calculator-card-premium {
      background: var(--surface-strong);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
      margin-top: 24px;
    }

    .calculator-card-premium .reward-controls {
      display: grid;
      grid-template-columns: 1.3fr 0.7fr;
      gap: 12px;
      margin: 16px 0;
    }

    @media (max-width: 480px) {
      .calculator-card-premium .reward-controls {
        grid-template-columns: 1fr;
      }
    }

    .calculator-card-premium .reward-control {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .calculator-card-premium .reward-control span {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--text-muted);
    }

    .calculator-card-premium select,
    .calculator-card-premium input {
      background: rgba(16, 17, 20, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #fff;
      padding: 10px 14px;
      border-radius: 10px;
      font-size: 0.9rem;
      width: 100%;
      outline: none;
      transition: all 0.2s ease;
    }

    .calculator-card-premium select:focus,
    .calculator-card-premium input:focus {
      border-color: #8f7cff;
      box-shadow: 0 0 0 2px rgba(143, 124, 255, 0.2);
    }

    .calculator-card-premium .reward-output {
      background: rgba(16, 17, 20, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.04);
      border-radius: 14px;
      padding: 16px;
      margin-top: 14px;
    }

    .calculator-card-premium .reward-output-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      padding-bottom: 12px;
      margin-bottom: 12px;
    }

    .calculator-card-premium .reward-output-kicker {
      font-size: 0.72rem;
      color: #8f7cff;
      text-transform: uppercase;
      font-weight: 850;
      margin: 0 0 4px;
    }

    .calculator-card-premium .reward-output-head strong {
      font-size: 1.1rem;
      color: #fff;
    }

    .calculator-card-premium .reward-output-grid {
      display: grid;
      gap: 10px;
    }

    .calculator-card-premium .reward-output-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.88rem;
    }

    .calculator-card-premium .reward-output-row span {
      color: var(--text-muted);
    }

    .calculator-card-premium .reward-output-row strong {
      color: #fff;
    }

    .calculator-card-premium .reward-note {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 12px;
      text-align: center;
    }

    /* Premium integrated bakery styling */
    .bakery-card-premium {
      background: radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.08), transparent 45%), var(--surface-strong);
      border: 1px solid rgba(236, 72, 153, 0.15);
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
      margin-top: 24px;
    }

    .bakery-flex {
      display: flex;
      gap: 24px;
      align-items: center;
    }

    @media (max-width: 640px) {
      .bakery-flex {
        flex-direction: column;
        align-items: stretch;
      }
    }

    .bakery-art-premium {
      width: 100px;
      height: 100px;
      flex-shrink: 0;
      background: rgba(236, 72, 153, 0.1);
      border: 1px solid rgba(236, 72, 153, 0.2);
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .bakery-art-premium img {
      width: 80px;
      height: 80px;
      object-fit: contain;
    }

    .bakery-info-premium {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .bakery-stocks-premium {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 8px 0;
    }

    .bakery-stock-item {
      background: rgba(16, 17, 20, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.03);
      border-radius: 12px;
      padding: 10px 14px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .bakery-stock-item span {
      font-size: 0.76rem;
      color: var(--text-muted);
    }

    .bakery-stock-item strong {
      font-size: 1.25rem;
      color: #fff;
      font-weight: 800;
    }

    .bakery-order-form {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    @media (max-width: 480px) {
      .bakery-order-form {
        flex-direction: column;
        align-items: stretch;
      }
    }

    .bakery-order-form label {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(16, 17, 20, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 10px;
      padding: 6px 12px;
      flex: 1;
    }

    .bakery-order-form label span {
      font-size: 0.8rem;
      color: var(--text-muted);
      font-weight: 700;
    }

    .bakery-order-form label input {
      background: transparent;
      border: none;
      color: #fff;
      font-size: 0.95rem;
      font-weight: 700;
      flex: 1;
      width: 0;
      min-width: 50px;
      outline: none;
    }

    .bakery-order-form label input::-webkit-outer-spin-button,
    .bakery-order-form label input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    .bakery-order-form label input[type=number] {
      -moz-appearance: textfield;
    }

    /* STAFF HUB - ABSOLUTE FULL SCREEN REDESIGN */
    html[data-page='admin'],
    html[data-page='admin'] body,
    html[data-page='admin'] .page-frame,
    html[data-page='admin'] .app-shell,
    html[data-page='admin'] main.content,
    html[data-page='admin'] .section,
    html[data-page='admin'] .admin-section,
    html[data-page='admin'] .empire-panel-shell,
    html[data-page='admin'] .empire-panel-root,
    html[data-page='admin'] .admin-shell {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow-x: hidden !important;
      min-height: 100vh !important;
    }

    /* Ensure background gradient covers full screen on admin page */
    html, body {
      min-height: 100vh !important;
      background: var(--body-bg) !important;
      background-attachment: fixed !important;
      overflow-x: hidden !important;
    }

    body {
      padding-bottom: 0 !important;
    }

    @media (min-width: 961px) {
      html[data-page='admin'] .empire-panel-layout {
        display: grid !important;
        grid-template-columns: 300px 1fr !important;
        grid-template-areas: "sidebar main" !important;
        width: 100% !important;
        max-width: none !important;
        gap: 0 !important;
      }
    }

    @media (max-width: 960px) {
      html[data-page='admin'] .empire-panel-layout,
      html[data-page='admin'] .staffhub-v2 .empire-panel-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 24px !important;
      }
      html[data-page='admin'] .empire-panel-sidebar,
      html[data-page='admin'] .empire-panel-rail,
      html[data-page='admin'] .staffhub-v2 .empire-panel-rail,
      html[data-page='admin'] .empire-panel-main,
      html[data-page='admin'] .staffhub-v2 .empire-panel-main {
        width: 100% !important;
        position: relative !important;
        z-index: 10;
        margin-top: 0 !important;
      }
    }

    html[data-page='admin'] .admin-section {
      padding: 24px !important;
    }

    /* =====================================================
       FIX: Staff Hub - remove double scrollbar & content cutoff
       The rail has overflow:auto + max-height which creates
       a second scrollbar inside the page. We remove it so
       only the page body scrolls naturally.
       ===================================================== */
    html[data-page='admin'] .empire-panel-rail,
    html[data-page='admin'] .empire-panel-sidebar,
    html[data-page='admin'] .staffhub-v2 .empire-panel-rail {
      max-height: none !important;
      overflow: visible !important;
      overflow-y: visible !important;
    }

    /* Remove forced min-height that caused content to be clipped */
    html[data-page='admin'] .page-frame #admin.admin-section {
      min-height: auto !important;
    }

    /* Ensure the main content area has no unwanted height cap */
    html[data-page='admin'] .empire-panel-main,
    html[data-page='admin'] .empire-panel-stage,
    html[data-page='admin'] .empire-panel-layout,
    html[data-page='admin'] .empire-panel-shell,
    html[data-page='admin'] #empirePanelShell,
    html[data-page='admin'] .empire-panel-shell-premium,
    html[data-page='admin'] .empire-preview-column,
    html[data-page='admin'] .empire-preview-shell,
    html[data-page='admin'] .page-frame,
    html[data-page='admin'] .app-shell,
    html[data-page='admin'] main.content,
    html[data-page='admin'] .section,
    html[data-page='admin'] #admin,
    html[data-page='admin'] .admin-section,
    html[data-page='admin'] .admin-shell,
    html[data-page='admin'] .empire-panel-root {
      max-height: none !important;
      height: auto !important;
      overflow: visible !important;
    }

    /* Prevent body from having its own scrollbar, forcing it to the html root */
    html[data-page='admin'] {
      overflow-y: scroll !important;
      overflow-x: hidden !important;
    }
    html[data-page='admin'] body {
      overflow: visible !important;
    }

    /* FIX: Hide the website sidebar nav on admin page (it has its own scroll) */
    html[data-page='admin'] .sidebar {
      display: none !important;
    }

    /* FIX: Make app-shell full width when sidebar is hidden on admin page */
    html[data-page='admin'] .app-shell {
      grid-template-columns: 1fr !important;
      min-height: unset !important;
      height: auto !important;
    }

    /* --- STAFF NOTES MODAL V2 FIX --- */
    .sn-modal-backdrop {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 100vh !important;
      background: rgba(0, 0, 0, 0.7) !important;
      z-index: 99999 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 20px !important;
    }
    .sn-modal {
      background: #181a1f !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      border-radius: 16px !important;
      width: 100% !important;
      max-width: 500px !important;
      display: flex !important;
      flex-direction: column !important;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
      animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    @keyframes modalFadeIn {
      from { opacity: 0; transform: translateY(20px) scale(0.95); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .sn-modal-header {
      padding: 24px !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: flex-start !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .sn-modal-header-copy h4 {
      margin: 0 0 8px 0 !important;
      font-size: 20px !important;
      font-weight: 700 !important;
      color: #fff !important;
    }
    .sn-modal-header-copy p {
      margin: 0 !important;
      font-size: 13px !important;
      color: #888 !important;
      line-height: 1.4 !important;
    }
    .sn-modal-close-btn {
      background: rgba(255,255,255,0.05) !important;
      border: none !important;
      color: #aaa !important;
      width: 32px !important;
      height: 32px !important;
      border-radius: 50% !important;
      cursor: pointer !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 18px !important;
      transition: all 0.2s !important;
    }
    .sn-modal-close-btn:hover {
      background: rgba(255,255,255,0.1) !important;
      color: #fff !important;
    }
    .sn-modal-author-bar {
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      padding: 16px 24px !important;
      background: rgba(255, 255, 255, 0.02) !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .sn-modal-avatar {
      width: 36px !important;
      height: 36px !important;
      border-radius: 50% !important;
      background: #333 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 13px !important;
      font-weight: 700 !important;
      color: #fff !important;
    }
    .sn-modal-author-info {
      display: flex !important;
      flex-direction: column !important;
    }
    .sn-modal-author-label {
      font-size: 11px !important;
      color: #888 !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
    }
    .sn-modal-author-name {
      font-size: 14px !important;
      font-weight: 600 !important;
      color: #fff !important;
    }
    .sn-modal-author-role {
      font-size: 11px !important;
      color: #aaa !important;
    }
    .sn-modal-body {
      padding: 24px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 20px !important;
    }
    .sn-modal-field {
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
    }
    .sn-modal-field label {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: #ccc !important;
    }
    .sn-modal-field input, .sn-modal-field textarea {
      background: rgba(0, 0, 0, 0.2) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      border-radius: 8px !important;
      padding: 12px 16px !important;
      color: #fff !important;
      font-size: 14px !important;
      outline: none !important;
      transition: border-color 0.2s !important;
      font-family: inherit !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
    .sn-modal-field input:focus, .sn-modal-field textarea:focus {
      border-color: #6366f1 !important;
    }
    .sn-modal-field textarea {
      min-height: 120px !important;
      resize: vertical !important;
    }
    .sn-modal-field small {
      font-size: 12px !important;
      color: #888 !important;
    }
    .sn-modal-cat-grid {
      display: grid !important;
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 10px !important;
    }
    .sn-cat-btn {
      background: rgba(255, 255, 255, 0.05) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      border-radius: 8px !important;
      padding: 12px 8px !important;
      color: #aaa !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      cursor: pointer !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 6px !important;
      transition: all 0.2s !important;
    }
    .sn-cat-btn:hover {
      background: rgba(255, 255, 255, 0.08) !important;
    }
    .sn-cat-btn[data-active="true"] {
      background: rgba(255, 255, 255, 0.1) !important;
      border-color: var(--sn-cat-color) !important;
      color: var(--sn-cat-color) !important;
    }
    .sn-cat-select-hidden {
      display: none !important;
    }
    .sn-modal-footer {
      padding: 20px 24px !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
      background: rgba(0, 0, 0, 0.1) !important;
      border-bottom-left-radius: 16px !important;
      border-bottom-right-radius: 16px !important;
    }
    .sn-modal-buttons {
      display: flex !important;
      gap: 12px !important;
      margin-left: auto !important;
    }
    .sn-modal-status {
      font-size: 13px !important;
      color: #ef4444 !important;
      margin: 0 !important;
    }

    /* --- STAFF NOTES V2 FIX --- */
    .sn-page {
      display: flex !important;
      flex-direction: column !important;
      gap: 24px !important;
    }
    .sn-filters {
      display: flex !important;
      align-items: center !important;
      flex-wrap: wrap !important;
      gap: 10px !important;
      width: 100% !important;
    }
    .sn-filter-btn {
      background: rgba(255, 255, 255, 0.05) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      color: #aaa !important;
      padding: 6px 14px !important;
      border-radius: 8px !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
    }
    .sn-filter-btn:hover {
      background: rgba(255, 255, 255, 0.1) !important;
      color: #fff !important;
    }
    .sn-filter-btn[data-active="true"] {
      background: rgba(255, 255, 255, 0.15) !important;
      border-color: rgba(255, 255, 255, 0.3) !important;
      color: #fff !important;
    }
    .sn-grid {
      display: grid !important;
      grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)) !important;
      gap: 20px !important;
      align-items: stretch !important;
    }
    .sn-card {
      position: relative !important;
      border-radius: 12px !important;
      background: #181a1f !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      border-left: 4px solid var(--sn-tone, #888) !important;
      overflow: hidden !important;
      display: flex;
      flex-direction: column !important;
      height: 100% !important;
      transform: scale(1) translateZ(0) !important;
      will-change: transform, border-color, box-shadow;
      transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    }
    .sn-card:hover {
      border-color: rgba(255, 255, 255, 0.18) !important;
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
    }
    .sn-card-inner {
      padding: 24px !important;
      display: flex !important;
      flex-direction: column !important;
      flex-grow: 1 !important;
    }
    .sn-card-head {
      display: flex !important;
      justify-content: space-between !important;
      align-items: flex-start !important;
      margin-bottom: 16px !important;
      gap: 12px !important;
    }
    .sn-card-pills {
      display: flex !important;
      gap: 8px !important;
      flex-wrap: wrap !important;
      align-items: center !important;
    }
    .sn-pill {
      font-size: 11px !important;
      font-weight: 700 !important;
      padding: 4px 10px !important;
      border-radius: 100px !important;
      background: rgba(255, 255, 255, 0.08) !important;
      color: #ccc !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
    }
    .sn-pill--cat {
      color: var(--sn-tone, #fff) !important;
      background: rgba(255, 255, 255, 0.06) !important;
      border: 1px solid color-mix(in srgb, var(--sn-tone) 40%, transparent) !important;
    }
    .sn-pill--target {
      text-transform: none !important;
      letter-spacing: normal !important;
    }
    .sn-card-date {
      font-size: 11px !important;
      color: #666 !important;
      white-space: nowrap !important;
    }
    .sn-card-body {
      font-size: 14px !important;
      line-height: 1.6 !important;
      color: #eee !important;
      margin-bottom: 24px !important;
      flex-grow: 1 !important;
    }
    .sn-card-footer {
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      padding-top: 16px !important;
      border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
      margin-top: auto !important;
    }
    .sn-card-author {
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
    }
    .sn-card-avatar {
      width: 36px !important;
      height: 36px !important;
      border-radius: 50% !important;
      background: #333 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 12px !important;
      font-weight: bold !important;
      color: #fff !important;
      flex-shrink: 0 !important;
    }
    .sn-card-author-info {
      display: flex !important;
      flex-direction: column !important;
    }
    .sn-card-author-name {
      font-size: 14px !important;
      font-weight: 600 !important;
      color: #fff !important;
    }
    .sn-card-author-role {
      font-size: 11px !important;
      color: #888 !important;
    }
    .sn-card-actions {
      display: flex !important;
      gap: 8px !important;
    }

    /* --- COMPREHENSIVE MOBILE RESPONSIVENESS FIXES --- */
    @media (max-width: 768px) {
      .sn-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
      }
      .sn-card-inner {
        padding: 16px !important;
      }
      .empire-mail-detail {
        padding: 16px !important;
      }
      .empire-mail-sender-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
      }
    }

    @media (max-width: 640px) {
      .sn-filters {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
      }
      .sn-filters > div:last-child {
        margin-left: 0 !important;
        width: 100% !important;
      }
      .sn-filters input#snNameFilterInput {
        width: 100% !important;
      }
      .sn-modal-overlay {
        padding: 12px !important;
      }
      .sn-modal {
        max-width: 100% !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
      }
      .sn-modal-header,
      .sn-modal-body,
      .sn-modal-footer {
        padding: 16px !important;
      }
    }

    @media (max-width: 480px) {
      .sn-modal-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
      }
      .sn-modal-footer {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
      }
      .sn-modal-buttons {
        margin-left: 0 !important;
        width: 100% !important;
      }
      .sn-modal-buttons button {
        flex: 1 !important;
      }
    }

    /* --- STAFF MAIL V2 FIX --- */
    .empire-mail-detail {
      background: #181a1f !important;
      border-radius: 16px !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      padding: 30px !important;
      margin-bottom: 24px !important;
    }
    .empire-mail-detail-header-new {
      margin-bottom: 24px !important;
    }
    .empire-mail-sender-row {
      display: flex !important;
      align-items: center !important;
      gap: 16px !important;
      margin-bottom: 24px !important;
    }
    .empire-mail-sender-avatar {
      width: 48px !important;
      height: 48px !important;
      border-radius: 50% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 18px !important;
      font-weight: bold !important;
      color: #fff !important;
      flex-shrink: 0 !important;
    }
    .empire-mail-sender-info {
      display: flex !important;
      flex-direction: column !important;
      gap: 4px !important;
    }
    .empire-mail-sender-top {
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
    }
    .empire-mail-sender-name {
      font-size: 16px !important;
      font-weight: bold !important;
      color: #fff !important;
    }
    .empire-mail-sender-date {
      font-size: 13px !important;
      color: #888 !important;
    }
    .empire-mail-recipient-line-compact {
      font-size: 13px !important;
      color: #aaa !important;
    }
    .empire-mail-subject-row {
      margin-bottom: 16px !important;
      padding-bottom: 16px !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .empire-mail-subject-row h4 {
      font-size: 24px !important;
      font-weight: 800 !important;
      color: #fff !important;
      margin: 0 !important;
      line-height: 1.3 !important;
    }
    .empire-mail-body-new {
      font-size: 15px !important;
      line-height: 1.6 !important;
      color: #eee !important;
      margin-bottom: 32px !important;
      white-space: pre-wrap !important;
    }
    .empire-mail-actions-new {
      display: flex !important;
      gap: 12px !important;
      flex-wrap: wrap !important;
      border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
      padding-top: 24px !important;
    }

    /* --- ANNOUNCEMENT V2 --- */
    .admin-announcement-card-v2 {
      position: relative !important;
      border-radius: 20px !important;
      background: #181a1f !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      padding: 24px !important;
      margin-bottom: 24px !important;
      display: block !important;
    }

    .admin-announcement-v2-header {
      display: flex !important;
      justify-content: space-between !important;
      margin-bottom: 15px !important;
    }

    .v2-pill {
      font-size: 0.7rem !important;
      padding: 4px 12px !important;
      border-radius: 100px !important;
      background: #111214 !important;
      color: #aaa59a !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .admin-announcement-v2-title {
      font-size: 1.6rem !important;
      font-weight: 800 !important;
      color: #fff !important;
      margin-bottom: 10px !important;
    }

    .admin-announcement-v2-copy {
      color: #ccc !important;
      line-height: 1.6 !important;
      margin-bottom: 20px !important;
    }

    .admin-announcement-v2-footer {
      display: flex !important;
      justify-content: space-between !important;
      border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
      padding-top: 15px !important;
    }

    .v2-author-avatar {
      width: 36px !important;
      height: 36px !important;
      border-radius: 8px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      background: #6a9af0 !important;
      color: #fff !important;
      font-weight: 800 !important;
    }

    /* ==========================================================================
       LIGHT THEME POLISH OVERRIDES FOR KWAMI DASHBOARD
       ========================================================================== */
    :root[data-theme='light'] .kwami-card-premium,
    :root[data-theme='light'] .activities-card-premium,
    :root[data-theme='light'] .calculator-card-premium,
    :root[data-theme='light'] .bakery-card-premium {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    }

    :root[data-theme='light'] .kwami-card-premium h3,
    :root[data-theme='light'] .activities-card-premium h3,
    :root[data-theme='light'] .calculator-card-premium h3,
    :root[data-theme='light'] .bakery-card-premium h3 {
      color: #1a1a1a !important;
    }

    /* Left Column: Progression & Step flow light theme */
    :root[data-theme='light'] .kwami-step-premium {
      background: rgba(0, 0, 0, 0.02) !important;
      border-color: rgba(0, 0, 0, 0.06) !important;
    }

    :root[data-theme='light'] .kwami-step-premium:hover {
      background: rgba(0, 0, 0, 0.04) !important;
      border-color: rgba(143, 124, 255, 0.4) !important;
    }

    :root[data-theme='light'] .kwami-step-premium strong {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .kwami-step-num {
      background: rgba(143, 124, 255, 0.12) !important;
      color: #583cff !important;
    }

    /* Right Column: Activities section light theme */
    :root[data-theme='light'] .activity-item-premium {
      background: rgba(0, 0, 0, 0.02) !important;
      border-color: rgba(0, 0, 0, 0.05) !important;
    }

    :root[data-theme='light'] .activity-item-premium:hover {
      background: rgba(0, 0, 0, 0.04) !important;
      border-color: rgba(143, 124, 255, 0.3) !important;
    }

    :root[data-theme='light'] .activity-item-premium code {
      background: rgba(143, 124, 255, 0.08) !important;
      color: #3b2a9f !important;
      border-color: rgba(143, 124, 255, 0.2) !important;
    }

    :root[data-theme='light'] .activity-item-premium span {
      color: #374151 !important;
      font-weight: 500;
    }

    /* Command pills general */
    :root[data-theme='light'] .command-pills code {
      background: rgba(0, 0, 0, 0.04) !important;
      color: #374151 !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
    }

    /* Simulator Calculator and Dynamic Output light theme */
    :root[data-theme='light'] .calculator-card-premium select,
    :root[data-theme='light'] .calculator-card-premium input {
      background: #ffffff !important;
      border-color: rgba(0, 0, 0, 0.15) !important;
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .calculator-card-premium select:focus,
    :root[data-theme='light'] .calculator-card-premium input:focus {
      border-color: #8f7cff !important;
    }

    :root[data-theme='light'] .calculator-card-premium .reward-output {
      background: rgba(0, 0, 0, 0.02) !important;
      border-color: rgba(0, 0, 0, 0.06) !important;
    }

    :root[data-theme='light'] .calculator-card-premium .reward-output-head {
      border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    }

    :root[data-theme='light'] .calculator-card-premium .reward-output-head strong {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .calculator-card-premium .reward-output-row strong {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .calculator-card-premium .reward-output-row span {
      color: #6b7280 !important;
    }

    /* Roleplay & Combat light theme overrides */
    :root[data-theme='light'] .roleplay-combat-card {
      background: #ffffff !important;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
    }

    :root[data-theme='light'] .roleplay-combat-card h3 {
      color: #1a1a1a !important;
    }

    /* Integrated Bakery light theme overrides */
    :root[data-theme='light'] .bakery-card-premium {
      background: #ffffff !important;
    }

    :root[data-theme='light'] .bakery-stock-item {
      background: rgba(0, 0, 0, 0.02) !important;
      border-color: rgba(0, 0, 0, 0.06) !important;
    }

    :root[data-theme='light'] .bakery-stock-item span {
      color: #6b7280 !important;
    }

    :root[data-theme='light'] .bakery-stock-item strong {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .bakery-order-form label {
      background: rgba(0, 0, 0, 0.02) !important;
      border-color: rgba(0, 0, 0, 0.06) !important;
    }

    :root[data-theme='light'] .bakery-order-form label span {
      color: #6b7280 !important;
    }

    :root[data-theme='light'] .bakery-order-form label input {
      background: #ffffff !important;
      border-color: rgba(0, 0, 0, 0.15) !important;
      color: #1a1a1a !important;
    }

    /* ==========================================================================
       LIGHT THEME NAV DROPDOWN MENU OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .nav-dropdown-menu {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    }

    :root[data-theme='light'] .nav-dropdown-item {
      color: #374151 !important;
    }

    :root[data-theme='light'] .nav-dropdown-item:hover {
      background: rgba(var(--tab-color-rgb), 0.08) !important;
      color: var(--tab-color) !important;
    }

    /* ==========================================================================
       LIGHT THEME FEEDBACK & ROADMAP GLOBAL OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .feedback-section,
    :root[data-theme='light'] .roadmap-section,
    :root[data-theme='light'] .miraculous-feedback-section {
      background: #fcfbf9 !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    }

    /* Section headings */
    :root[data-theme='light'] .feedback-section h2,
    :root[data-theme='light'] .roadmap-section h2,
    :root[data-theme='light'] .miraculous-feedback-section h2 {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .feedback-section .section-intro,
    :root[data-theme='light'] .roadmap-section .section-intro,
    :root[data-theme='light'] .miraculous-feedback-section .section-intro {
      color: #4b5563 !important;
    }

    /* Intro and process cards */
    :root[data-theme='light'] .feedback-process-card,
    :root[data-theme='light'] .miraculous-feedback-info-card,
    :root[data-theme='light'] .miraculous-feedback-form-card {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
      color: var(--text) !important;
    }

    /* Step flow inside process/info cards */
    :root[data-theme='light'] .feedback-step,
    :root[data-theme='light'] .miraculous-feedback-step {
      background: rgba(0, 0, 0, 0.02) !important;
      border-color: rgba(0, 0, 0, 0.06) !important;
    }

    :root[data-theme='light'] .feedback-step strong,
    :root[data-theme='light'] .miraculous-feedback-step strong {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .feedback-step p,
    :root[data-theme='light'] .miraculous-feedback-step small {
      color: #4b5563 !important;
    }

    :root[data-theme='light'] .feedback-step span,
    :root[data-theme='light'] .miraculous-feedback-step span {
      background: rgba(106, 154, 240, 0.12) !important;
      color: #3b74db !important;
    }

    /* Summary statistic tiles */
    :root[data-theme='light'] .feedback-summary > div,
    :root[data-theme='light'] .roadmap-summary > div,
    :root[data-theme='light'] .website-feedback-stat {
      background: #ffffff !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    }

    :root[data-theme='light'] .feedback-summary > div small,
    :root[data-theme='light'] .roadmap-summary > div small,
    :root[data-theme='light'] .website-feedback-stat small {
      color: #6b7280 !important;
    }

    :root[data-theme='light'] .feedback-summary > div p,
    :root[data-theme='light'] .roadmap-summary > div p {
      color: #4b5563 !important;
    }

    /* Feedback dynamic board list items / cards */
    :root[data-theme='light'] .feedback-board .feedback-card,
    :root[data-theme='light'] .roadmap-item,
    :root[data-theme='light'] .website-feedback-card {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    }

    :root[data-theme='light'] .feedback-board .feedback-card h3,
    :root[data-theme='light'] .roadmap-item h4,
    :root[data-theme='light'] .website-feedback-card h4 {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .feedback-board .feedback-card p,
    :root[data-theme='light'] .roadmap-item p,
    :root[data-theme='light'] .website-feedback-card p,
    :root[data-theme='light'] .website-feedback-description {
      color: #4b5563 !important;
    }

    /* Form Fields for Miraculous Feedback */
    :root[data-theme='light'] .site-feedback-field > span {
      color: #374151 !important;
    }

    :root[data-theme='light'] .site-feedback-field input,
    :root[data-theme='light'] .site-feedback-field select,
    :root[data-theme='light'] .site-feedback-field textarea {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.15) !important;
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .site-feedback-field input:focus,
    :root[data-theme='light'] .site-feedback-field select:focus,
    :root[data-theme='light'] .site-feedback-field textarea:focus {
      border-color: #6a9af0 !important;
    }

    /* Fix light theme miraculous popover close button hover contrast */
    :root[data-theme='light'] .patreon-popover.patreon-popover--miraculous .patreon-popover-close:hover {
      background: rgba(111, 216, 255, 0.22) !important;
      border-color: rgba(111, 216, 255, 0.6) !important;
      color: #0284c7 !important;
    }

    /* ==========================================================================
       LIGHT THEME LEADERBOARD OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .lb-hero h1 {
      color: #1a1a1a !important;
      -webkit-text-fill-color: #1a1a1a !important;
      background: none !important;
    }

    :root[data-theme='light'] .lb-hero p {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .lb-hero svg {
      color: #d97706 !important;
    }

    :root[data-theme='light'] .lb-tab {
      background: #fcfbf9 !important;
      color: #4b5563 !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    :root[data-theme='light'] .lb-tab:hover {
      background: #f3f4f6 !important;
    }

    :root[data-theme='light'] .lb-tab.active {
      background: #ffffff !important;
      color: #1a1a1a !important;
      border-color: #6a9af0 !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }

    :root[data-theme='light'] .chest-login-warning {
      background: #fffbeb !important;
      border-color: #fde68a !important;
      box-shadow: 0 4px 15px rgba(253, 230, 138, 0.2) !important;
    }

    :root[data-theme='light'] .chest-login-warning strong {
      color: #92400e !important;
    }

    :root[data-theme='light'] .chest-login-warning span {
      color: #b45309 !important;
    }

    /* Leaderboard podium overrides */
    :root[data-theme='light'] .podium-item:not(.lb-has-bg) {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    }
    
    :root[data-theme='light'] .podium-item:not(.lb-has-bg) .podium-name {
      color: #1a1a1a !important;
      text-shadow: none !important;
    }

    :root[data-theme='light'] .podium-item:not(.lb-has-bg) .stat-pill {
      background: #f3f4f6 !important;
      border-color: rgba(0,0,0,0.08) !important;
      color: #4b5563 !important;
    }

    :root[data-theme='light'] .podium-item:not(.lb-has-bg) .stat-pill span[style*="color:#f8fafc"],
    :root[data-theme='light'] .podium-item:not(.lb-has-bg) .stat-pill span[style*="color:#d1d5db"] {
      color: #4b5563 !important;
    }

    /* Leaderboard list overrides */
    :root[data-theme='light'] .lb-row:not(.lb-has-bg) {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    }

    :root[data-theme='light'] .lb-row:not(.lb-has-bg) .lb-row-rank {
      color: #6b7280 !important;
      text-shadow: none !important;
    }

    :root[data-theme='light'] .lb-row:not(.lb-has-bg) .lb-row-name {
      color: #1a1a1a !important;
      text-shadow: none !important;
    }

    /* Keep text white for items with backgrounds */
    :root[data-theme='light'] .podium-item.lb-has-bg .podium-name,
    :root[data-theme='light'] .lb-row.lb-has-bg .lb-row-name,
    :root[data-theme='light'] .lb-row.lb-has-bg .lb-row-rank {
      color: #ffffff !important;
      text-shadow: 0 2px 6px rgba(0,0,0,0.8) !important;
    }

    :root[data-theme='light'] .lb-row:not(.lb-has-bg) .stat-pill span[style*="color:#f8fafc"],
    :root[data-theme='light'] .lb-row:not(.lb-has-bg) .stat-pill span[style*="color:#d1d5db"] {
      color: #6b7280 !important;
    }

    /* ==========================================================================
       LIGHT THEME ADMIN ANNOUNCEMENT OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .admin-announcement-card-v2 {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    }

    :root[data-theme='light'] .admin-announcement-v2-title {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .admin-announcement-v2-copy {
      color: #4b5563 !important;
    }

    :root[data-theme='light'] .admin-announcement-v2-footer {
      border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    :root[data-theme='light'] .v2-pill {
      background: #f3f4f6 !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      color: #374151 !important;
    }

    /* ==========================================================================
       LIGHT THEME FAQ OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .support-faq-premium {
      background: #fcfbf9 !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      border-radius: 12px !important;
      padding: 24px !important;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    }
    
    :root[data-theme='light'] .faq-premium-title {
      color: #1a1a1a !important;
    }

    :root[data-theme='light'] .faq-item {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      border-radius: 8px !important;
      margin-bottom: 12px !important;
    }

    :root[data-theme='light'] .faq-toggle {
      color: #1a1a1a !important;
    }
    
    :root[data-theme='light'] .faq-toggle:hover {
      background: #f3f4f6 !important;
    }

    :root[data-theme='light'] .faq-icon {
      color: #6a9af0 !important;
    }
    
    :root[data-theme='light'] .faq-answer {
      color: #4b5563 !important;
      border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
    
    :root[data-theme='light'] .faq-answer p {
      color: #4b5563 !important;
    }

    :root[data-theme='light'] .faq-answer code {
      background: rgba(0, 0, 0, 0.04) !important;
      color: #1a1a1a !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    /* ==========================================================================
       LIGHT THEME GACHA REWARD CHEST OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .gacha-modal .gacha-card-value {
      color: #ffffff !important;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
    }
    
    :root[data-theme='light'] .gacha-modal .gacha-card-label {
      color: rgba(255, 255, 255, 0.8) !important;
    }

    :root[data-theme='light'] .gacha-modal .gacha-prompt {
      color: #ffffff !important;
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 25px var(--chest-accent), 0 4px 12px rgba(0, 0, 0, 0.6) !important;
    }

    /* ==========================================================================
       LIGHT THEME RANK PREVIEW OVERRIDES
       ========================================================================== */
    :root[data-theme='light'] .rank-preview-card .rank-preview-kicker {
      color: var(--rank-preview-tone, #8f7cff) !important;
      text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
    }
    :root[data-theme='light'] .rank-preview-card strong {
      color: #ffffff !important;
      text-shadow: 0 2px 10px rgba(0,0,0,0.6) !important;
    }
    :root[data-theme='light'] .rank-preview-card span,
    :root[data-theme='light'] .rank-preview-card small {
      color: rgba(255, 255, 255, 0.85) !important;
      text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    }
  

    /* Kwami Perks is intentionally kept in the HTML for future use, but it is disabled from navigation and direct routing. */
    [data-page-link][data-page='kwami-perks'],
    a[href*='page=kwami-perks'] {
      display: none !important;
    }

    /* Kwami Bakery is intentionally kept in the HTML for future use, but it is disabled from navigation and direct routing. */
    [data-page-link][data-page='kwami-food'],
    a[href*='page=kwami-food'],
    a[href*='page=bakery'],
    a[href*='page=food'],
    a[href*='page=kwamifood'] {
      display: none !important;
    }

    /* Hide the Kwami & Miraculous dropdown expand button since all subpages are hidden. */
    [data-nav-group-toggle='kwami'] {
      display: none !important;
    }
  

    [data-staff-activity-link][hidden],
    html:not(.staff-activity-allowed) [data-staff-activity-link],
    html:not(.staff-activity-allowed) [data-nav-group-toggle="staff"],
    html:not(.staff-activity-allowed) [data-nav-group-panel="staff"] {
      display: none !important;
    }

    [data-empire-panel-link][hidden],
    html:not(.empire-panel-allowed) [data-empire-panel-link] {
      display: none !important;
    }
  

    /* Absolutely Eradicate Bounding Card Outlines, Borders, and Glassy Backgrounds on Chest Open Stage */
    .gacha-stage.chest-open-stage,
    .gacha-modal .chest-open-stage,
    .gacha-modal.chest-open-burst--bronze .chest-open-stage,
    .gacha-modal.chest-open-burst--silver .chest-open-stage,
    .gacha-modal.chest-open-burst--gold .chest-open-stage,
    .gacha-modal.chest-open-burst--diamond .chest-open-stage {
      border: none !important;
      background: transparent !important;
      box-shadow: none !important;
      background-image: none !important;
      overflow: visible !important;
    }

    .gacha-chest-wrapper {
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }

    .chest-open-box {
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }

    .chest-open-lid {
      border: none !important;
      border-bottom: 4px solid rgba(15, 10, 5, 0.88) !important;
      outline: none !important;
    }

    .chest-open-body {
      border: none !important;
      border-top: 4px solid rgba(25, 15, 5, 0.85) !important;
      outline: none !important;
    }

    .gacha-chest-seams {
      border: none !important;
      box-shadow: none !important;
      outline: none !important;
    }

    /* Gacha Animation Keyframes */
    @keyframes chestDrop {
      0% { transform: translateY(-300px) scale(0.8); opacity: 0; }
      60% { transform: translateY(20px) scale(1.05); opacity: 1; }
      80% { transform: translateY(-10px) scale(0.95); }
      100% { transform: translateY(0) scale(1); }
    }

    @keyframes chestShakeGlow {
      0% { transform: rotate(0deg) scale(1); filter: brightness(1) drop-shadow(0 0 0px rgba(255,255,255,0)); }
      20% { transform: rotate(-4deg) scale(1.05); filter: brightness(1.2) drop-shadow(0 0 10px rgba(255,255,255,0.5)); }
      40% { transform: rotate(4deg) scale(1.05); filter: brightness(1.4) drop-shadow(0 0 20px rgba(255,255,255,0.7)); }
      60% { transform: rotate(-4deg) scale(1.08); filter: brightness(1.6) drop-shadow(0 0 30px rgba(255,255,255,0.9)); }
      80% { transform: rotate(4deg) scale(1.08); filter: brightness(1.8) drop-shadow(0 0 40px rgba(255,255,255,1)); }
      100% { transform: rotate(0deg) scale(1.1); filter: brightness(2) drop-shadow(0 0 50px rgba(255,255,255,1)); }
    }

    @keyframes cardFlyOut {
      0% { transform: translateY(80px) scale(0.5) rotateY(90deg) rotateX(-20deg); opacity: 0; }
      60% { transform: translateY(-15px) scale(1.1) rotateY(-10deg) rotateX(10deg); opacity: 1; }
      100% { transform: translateY(0) scale(1) rotateY(0deg) rotateX(0deg); opacity: 1; }
    }

    @keyframes cardFlyOutLegendary {
      0% { transform: translateY(80px) scale(0.5) rotateY(90deg) rotateX(-20deg); opacity: 0; filter: drop-shadow(0 0 0px #ffd700); }
      60% { transform: translateY(-25px) scale(1.2) rotateY(-15deg) rotateX(15deg); opacity: 1; filter: drop-shadow(0 0 25px #ffd700); }
      100% { transform: translateY(0) scale(1) rotateY(0deg) rotateX(0deg); opacity: 1; filter: drop-shadow(0 0 15px #ffd700); }
    }

    .chest-anim-drop {
      animation: chestDrop 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    .chest-anim-shake {
      animation: chestShakeGlow 1.5s ease-in-out forwards;
    }

    .gacha-reward-card-anim {
      opacity: 0; /* Start hidden */
      animation: cardFlyOut 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    .gacha-reward-card-anim-legendary {
      opacity: 0; /* Start hidden */
      animation: cardFlyOutLegendary 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }
  

    /* PREMIUM GLOWING GLASS TABS NAVIGATION & VOID BUGFIX */
    .topbar-nav-tabs {
      display: none; /* Hidden on mobile */
    }
    
    .desktop-brand {
      display: flex;
    }

    @media (min-width: 961px) {
      /* Hide standard sidebar on desktop, except for the Staff Hub */
      html .sidebar {
        display: none !important;
      }

      /* Flatten two-column grid layout */
      html .app-shell {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        min-height: calc(100vh - 36px) !important;
      }

      /* Adjust content pad */
      html .content {
        padding-top: 0px !important;
      }

      /* FIX: Position topbar relatively to prevent left margin voids entirely - STATIC */
      html .topbar {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin: 12px 0 8px 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        z-index: 1000 !important;
      }

      /* Style topbar-inner as a crisp matte architectural header bar */
      html .topbar-inner {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 6px 12px !important;
        background: #121318 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 10px !important;
        min-height: 50px !important;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 4px 16px rgba(0, 0, 0, 0.28) !important;
        gap: 12px !important;
        transition: border-color 0.2s ease !important;
      }

      /* Light theme topbar panel background */
      html[data-theme="light"] .topbar-inner {
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.09) !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
      }

      /* Modernized Desktop Brand */
      html .desktop-brand,
      html .topbar .topbar-inner .desktop-brand {
        display: inline-flex !important;
        align-items: center !important;
        gap: 9px !important;
        text-decoration: none !important;
        flex-shrink: 0 !important;
        margin-right: 0 !important;
        padding-left: 2px !important;
      }

      html .desktop-brand .brand-mark,
      html .topbar .topbar-inner .desktop-brand .brand-mark,
      html .mobile-nav-head .brand-mark {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        border-radius: 8px !important;
        background: #181920 !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        cursor: pointer !important;
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
        text-indent: 0 !important;
        transform: none !important;
        transition: border-color 0.2s ease, background 0.2s ease !important;
      }

      html .desktop-brand .brand-mark::before,
      html .topbar .topbar-inner .desktop-brand .brand-mark::before,
      html .mobile-nav-head .brand-mark::before {
        content: none !important;
        display: none !important;
      }

      html .desktop-brand .brand-mark::after,
      html .topbar .topbar-inner .desktop-brand .brand-mark::after,
      html .mobile-nav-head .brand-mark::after {
        content: '' !important;
        position: relative !important;
        z-index: 1 !important;
        width: 22px !important;
        height: 22px !important;
        background: url('/favicon.png') no-repeat center center / contain !important;
        filter: none !important;
      }

      html .desktop-brand:hover .brand-mark,
      html .topbar .topbar-inner .desktop-brand:hover .brand-mark {
        transform: none !important;
        border-color: rgba(255, 255, 255, 0.24) !important;
        background: #1e2029 !important;
        box-shadow: none !important;
      }

      html[data-theme="light"] .desktop-brand .brand-mark,
      html[data-theme="light"] .topbar .topbar-inner .desktop-brand .brand-mark {
        background: #f8fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.1) !important;
        box-shadow: none !important;
      }

      html .desktop-brand strong,
      html .topbar .topbar-inner .desktop-brand strong {
        font-size: 0.98rem !important;
        font-weight: 800 !important;
        color: #f8fafc !important;
        letter-spacing: 0.02em !important;
        display: block !important;
        line-height: 1 !important;
      }

      html[data-theme="light"] .desktop-brand strong,
      html[data-theme="light"] .topbar .topbar-inner .desktop-brand strong {
        color: #0f172a !important;
      }

      /* Horizontal navigation tabs bar - Clean flat architectural track (No nested capsule) */
      html .topbar-nav-tabs {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        justify-self: center !important;
        gap: 2px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }

      html[data-theme="light"] .topbar-nav-tabs {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
      }

      /* Premium Dropdown Menus and micro-animations */
      html .nav-tab-wrapper {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
      }

      /* Chevron dropdown arrow indicator inside the tab */
      html .nav-tab-wrapper .nav-tab-arrow {
        position: absolute !important;
        right: 9px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 12px !important;
        height: 12px !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.55) !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease !important;
        pointer-events: none !important;
        z-index: 2 !important;
      }

      html .nav-tab-wrapper .nav-tab-arrow svg {
        width: 10px !important;
        height: 10px !important;
        stroke: currentColor !important;
        stroke-width: 2.5px !important;
        display: block !important;
      }

      html[data-theme="light"] .nav-tab-wrapper .nav-tab-arrow {
        color: rgba(0, 0, 0, 0.45) !important;
        background: transparent !important;
        box-shadow: none !important;
      }

      html .nav-tab-wrapper:hover .nav-tab-arrow {
        transform: translateY(-50%) rotate(180deg) !important;
        color: var(--tab-color) !important;
        background: transparent !important;
      }

      /* Padding adjustment for dropdown tab item so text doesn't overlap chevron */
      html .nav-tab-wrapper .nav-tab-item {
        padding-right: 25px !important;
      }

      /* Dropdown Menu Popup */
      html .nav-dropdown-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(4px) scale(0.96) !important;
        background: rgba(18, 20, 26, 0.94) !important;
        backdrop-filter: blur(24px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 14px !important;
        padding: 6px !important;
        min-width: 230px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 9999 !important;
        pointer-events: none !important;
      }

      html[data-theme="light"] .nav-dropdown-menu {
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
      }

      /* Invisible bridge to cover the gap and keep hover active */
      html .nav-dropdown-menu::before {
        content: '' !important;
        position: absolute !important;
        top: -12px !important;
        left: 0 !important;
        width: 100% !important;
        height: 12px !important;
        background: transparent !important;
      }

      html .nav-tab-wrapper:hover .nav-dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) scale(1) !important;
        pointer-events: auto !important;
      }

      /* Dropdown section header */
      html .nav-dropdown-header {
        font-size: 0.68rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.07em !important;
        text-transform: uppercase !important;
        color: rgba(255, 255, 255, 0.45) !important;
        padding: 5px 10px 6px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        margin-bottom: 3px !important;
        user-select: none !important;
      }

      html[data-theme="light"] .nav-dropdown-header {
        color: rgba(0, 0, 0, 0.45) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
      }

      /* Dropdown item styling */
      html .nav-dropdown-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 8px 11px !important;
        color: rgba(255, 255, 255, 0.82) !important;
        text-decoration: none !important;
        border-radius: 9px !important;
        transition: all 0.16s ease !important;
        white-space: nowrap !important;
      }

      html[data-theme="light"] .nav-dropdown-item {
        color: #374151 !important;
      }

      html .nav-dropdown-badge {
        font-size: 1.05rem !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
      }

      html .nav-dropdown-body {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.25 !important;
        gap: 2px !important;
      }

      html .nav-dropdown-label {
        font-size: 0.84rem !important;
        font-weight: 600 !important;
        color: inherit !important;
      }

      html .nav-dropdown-desc {
        font-size: 0.72rem !important;
        color: rgba(255, 255, 255, 0.45) !important;
        font-weight: 400 !important;
      }

      html[data-theme="light"] .nav-dropdown-desc {
        color: rgba(0, 0, 0, 0.45) !important;
      }

      html .nav-dropdown-item:hover {
        background: rgba(var(--tab-color-rgb), 0.14) !important;
        color: var(--tab-color) !important;
        transform: translateX(2px) !important;
      }

      html .nav-dropdown-item:hover .nav-dropdown-desc {
        color: rgba(var(--tab-color-rgb), 0.85) !important;
      }

      /* Active dropdown item */
      html .nav-dropdown-item.active {
        background: rgba(var(--tab-color-rgb), 0.18) !important;
        color: var(--tab-color) !important;
        font-weight: 700 !important;
        border-left: 2.5px solid var(--tab-color) !important;
      }

      html .nav-dropdown-item.active .nav-dropdown-desc {
        color: rgba(var(--tab-color-rgb), 0.9) !important;
      }

      /* Active parent tab wrapper */
      html .nav-tab-wrapper.has-active-child .nav-tab-item,
      html .nav-tab-wrapper:has(.nav-dropdown-item.active) .nav-tab-item {
        background: rgba(var(--tab-color-rgb), 0.16) !important;
        color: var(--tab-color) !important;
        box-shadow: 0 0 12px rgba(var(--tab-color-rgb), 0.28) !important;
      }

      html[data-theme="light"] .nav-tab-wrapper.has-active-child .nav-tab-item,
      html[data-theme="light"] .nav-tab-wrapper:has(.nav-dropdown-item.active) .nav-tab-item {
        background: rgba(var(--tab-color-rgb), 0.14) !important;
        color: var(--tab-color) !important;
      }

      /* Mobile drawer badges */
      .mobile-nav-badge {
        display: inline-flex !important;
        margin-right: 8px !important;
        font-size: 1.05rem !important;
        vertical-align: middle !important;
      }

      /* Search elements removed */
      html .search,
      html .search-toggle {
        display: none !important;
      }

      html[data-theme="light"] .search {
        background: rgba(0, 0, 0, 0.03) !important;
      }

      html .search:focus-within {
        border-color: var(--accent) !important;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.12), 0 0 10px rgba(var(--accent-rgb), 0.15) !important;
      }

      html .search input {
        height: 100% !important;
        padding: 0 6px !important;
        font-size: 0.88rem !important;
        width: 100% !important;
      }

      /* Hide mobile hamburger on desktop */
      html .hamburger {
        display: none !important;
      }

      /* Clean spacing and alignments for auth/theme actions - Right wing */
      html .topbar .topbar-inner .topbar-actions {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        justify-self: end !important;
        gap: 8px !important;
        margin-left: 0 !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
      }

      /* Theme toggle matching standard heights and roundness */
      html .topbar .topbar-inner .topbar-actions .theme-toggle {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        background: rgba(255,255,255,0.05) !important;
        border: 1px solid var(--line) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: var(--text) !important;
        transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
      }
      
      html .topbar .topbar-inner .topbar-actions .theme-toggle:hover {
        background: rgba(255,255,255,0.1) !important;
        border-color: rgba(255,255,255,0.25) !important;
        transform: translateY(-1px) !important;
      }

    }

    /* ==========================================================================
       MODERN MOBILE NAVIGATION ECOSYSTEM (TABLET & MOBILE <= 960px)
       Header Bar, Hamburger, Brand Emblem, Page Rail & Glass Drawer
       ========================================================================== */
    @media (max-width: 960px) {
      /* Mobile Topbar Container - Sleek Frosted Glass Header */
      html .topbar {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
        margin: 0 0 10px 0 !important;
        padding: 10px 16px !important;
        background: rgba(16, 18, 24, 0.88) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
        box-sizing: border-box !important;
      }

      html .topbar-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
      }

      /* 1. Mobile Hamburger Button - Squircle Glass Button */
      html .hamburger {
        display: flex !important;
        order: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.25) !important;
        cursor: pointer !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
      }

      html .hamburger:active {
        transform: scale(0.92) !important;
        background: rgba(255, 255, 255, 0.1) !important;
      }

      html .hamburger span,
      html .hamburger span::before,
      html .hamburger span::after {
        background: #ffffff !important;
        width: 16px !important;
        height: 2px !important;
        border-radius: 2px !important;
      }

      /* 2. Mobile Brand - Emblem + Bold Name */
      html .desktop-brand,
      html .topbar .topbar-inner .desktop-brand {
        display: flex !important;
        order: 2 !important;
        align-items: center !important;
        gap: 8px !important;
        text-decoration: none !important;
        margin-right: auto !important;
        margin-left: 2px !important;
        flex-shrink: 0 !important;
      }

      html .desktop-brand .brand-mark,
      html .topbar .topbar-inner .desktop-brand .brand-mark {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        border-radius: 10px !important;
        background: rgba(20, 22, 28, 0.85) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        cursor: pointer !important;
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
        text-indent: 0 !important;
        transform: none !important;
      }

      html .desktop-brand .brand-mark::before,
      html .topbar .topbar-inner .desktop-brand .brand-mark::before {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: radial-gradient(circle at 50% 50%, rgba(225, 29, 72, 0.4), transparent 70%) !important;
        pointer-events: none !important;
      }

      html .desktop-brand .brand-mark::after,
      html .topbar .topbar-inner .desktop-brand .brand-mark::after {
        content: '' !important;
        position: relative !important;
        z-index: 1 !important;
        width: 22px !important;
        height: 22px !important;
        background: url('/favicon.png') no-repeat center center / contain !important;
        filter: drop-shadow(0 2px 6px rgba(225, 29, 72, 0.55)) !important;
      }

      html .desktop-brand strong,
      html .topbar .topbar-inner .desktop-brand strong {
        font-size: 1.02rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        letter-spacing: 0.03em !important;
        line-height: 1.1 !important;
        display: block !important;
      }

      /* 3. Topbar Actions on Mobile - Theme Toggle & Discord */
      html .topbar .topbar-inner .topbar-actions {
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        margin-left: 0 !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
      }

      html .topbar .topbar-inner .topbar-actions .theme-toggle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      html .topbar .topbar-inner .topbar-actions .discord-login-button,
      html .discord-login-button {
        width: auto !important;
        max-width: none !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
        font-size: 0.8rem !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
      }

      html .topbar .topbar-inner .topbar-actions .discord-login-viewport,
      html .discord-login-viewport {
        width: auto !important;
        max-width: none !important;
        overflow: visible !important;
      }

      html .topbar .topbar-inner .topbar-actions .discord-login-text,
      html .discord-login-text {
        font-size: 0.78rem !important;
        animation: none !important;
        white-space: nowrap !important;
      }

      html .discord-user-button {
        width: auto !important;
        max-width: none !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 8px !important;
        border-radius: 10px !important;
        font-size: 0.8rem !important;
        gap: 6px !important;
      }

      /* Compact mode for narrow phones (<= 375px) */
      @media (max-width: 375px) {
        html .discord-login-text {
          display: none !important;
        }
        html .discord-login-button {
          padding: 0 9px !important;
        }
        html .desktop-brand strong {
          font-size: 0.95rem !important;
        }
      }

      /* 4. Glowing Capsule Mobile Page Rail */
      html .mobile-page-rail {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 6px 16px 12px 16px !important;
        margin: 0 -20px 12px -20px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
      }

      html .mobile-page-rail::-webkit-scrollbar {
        display: none !important;
      }

      html .mobile-page-rail a {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        color: #94a3b8 !important;
        min-height: 34px !important;
        height: 34px !important;
        padding: 0 14px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
      }

      html .mobile-page-rail a:active {
        transform: scale(0.95) !important;
      }

      html .mobile-page-rail a.active {
        border-color: rgba(225, 29, 72, 0.6) !important;
        background: rgba(225, 29, 72, 0.18) !important;
        color: #ffffff !important;
        box-shadow: 0 0 14px rgba(225, 29, 72, 0.32), inset 0 0 8px rgba(225, 29, 72, 0.15) !important;
        font-weight: 750 !important;
      }

      html .mobile-page-rail-more {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        min-height: 34px !important;
        height: 34px !important;
        padding: 0 14px !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
      }

      html .mobile-page-rail-more:active {
        transform: scale(0.95) !important;
      }

      /* 5. Mobile Drawer Menu (#mobileNav) */
      html .mobile-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        z-index: 1100 !important;
        width: min(320px, 86vw) !important;
        background: rgba(16, 18, 24, 0.97) !important;
        backdrop-filter: blur(28px) saturate(190%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.75) !important;
        padding: 20px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        transform: translateX(-100%) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
      }

      html .mobile-nav.open {
        transform: translateX(0) !important;
      }

      html .mobile-nav-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 14px !important;
        margin-bottom: 4px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
      }

      html .mobile-nav-head .brand {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        text-decoration: none !important;
      }

      html .mobile-nav-close {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
        font-size: 1.4rem !important;
        cursor: pointer !important;
        line-height: 1 !important;
        padding: 0 !important;
        transition: all 0.18s ease !important;
      }

      html .mobile-nav-close:active {
        transform: scale(0.92) !important;
      }

      html .mobile-nav .nav-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
      }

      html .mobile-nav .nav-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
      }

      html .mobile-nav .nav-section-label {
        font-size: 0.68rem !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.08em !important;
        color: #64748b !important;
        padding: 4px 8px 2px 8px !important;
        margin: 0 !important;
      }

      html .mobile-nav .nav-list a {
        min-height: 40px !important;
        padding: 8px 12px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.04) !important;
        color: #cbd5e1 !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        text-decoration: none !important;
        transition: all 0.18s ease !important;
      }

      html .mobile-nav .nav-list a:hover,
      html .mobile-nav .nav-list a:focus {
        background: rgba(255, 255, 255, 0.06) !important;
        color: #ffffff !important;
      }

      html .mobile-nav .nav-list a:active {
        transform: scale(0.98) !important;
      }

      html .mobile-nav .nav-list a.active {
        background: rgba(225, 29, 72, 0.14) !important;
        border-color: rgba(225, 29, 72, 0.45) !important;
        color: #ffffff !important;
        box-shadow: inset 0 0 12px rgba(225, 29, 72, 0.18) !important;
        font-weight: 700 !important;
      }

      html .mobile-nav-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        font-size: 0.95rem !important;
        flex-shrink: 0 !important;
        margin-right: 0 !important;
      }

      html .nav-overlay {
        background: rgba(0, 0, 0, 0.65) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
      }

      /* 6. Light Theme Overrides on Mobile */
      html[data-theme="light"] .topbar {
        background: rgba(255, 255, 255, 0.92) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
      }

      html[data-theme="light"] .hamburger {
        background: rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
      }

      html[data-theme="light"] .hamburger span,
      html[data-theme="light"] .hamburger span::before,
      html[data-theme="light"] .hamburger span::after {
        background: #111827 !important;
      }

      html[data-theme="light"] .desktop-brand strong,
      html[data-theme="light"] .topbar .topbar-inner .desktop-brand strong {
        color: #111827 !important;
      }

      html[data-theme="light"] .topbar .topbar-inner .topbar-actions .theme-toggle {
        background: rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
      }

      html[data-theme="light"] .mobile-page-rail {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
      }

      html[data-theme="light"] .mobile-page-rail a {
        background: rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        color: #4b5563 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
      }

      html[data-theme="light"] .mobile-page-rail a.active {
        background: rgba(225, 29, 72, 0.1) !important;
        border-color: rgba(225, 29, 72, 0.45) !important;
        color: #e11d48 !important;
        box-shadow: 0 2px 8px rgba(225, 29, 72, 0.15) !important;
      }

      html[data-theme="light"] .mobile-page-rail-more {
        background: rgba(0, 0, 0, 0.06) !important;
        border-color: rgba(0, 0, 0, 0.12) !important;
        color: #111827 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
      }

      html[data-theme="light"] .mobile-nav {
        background: rgba(255, 255, 255, 0.98) !important;
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.12) !important;
      }

      html[data-theme="light"] .mobile-nav-head {
        border-bottom-color: rgba(0, 0, 0, 0.08) !important;
      }

      html[data-theme="light"] .mobile-nav-close {
        background: rgba(0, 0, 0, 0.04) !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        color: #111827 !important;
      }

      html[data-theme="light"] .mobile-nav .nav-list a {
        color: #334155 !important;
        background: rgba(0, 0, 0, 0.02) !important;
        border-color: rgba(0, 0, 0, 0.04) !important;
      }

      html[data-theme="light"] .mobile-nav .nav-list a:hover {
        background: rgba(0, 0, 0, 0.05) !important;
        color: #0f172a !important;
      }

      html[data-theme="light"] .mobile-nav .nav-list a.active {
        background: rgba(225, 29, 72, 0.08) !important;
        border-color: rgba(225, 29, 72, 0.35) !important;
        color: #e11d48 !important;
        box-shadow: inset 0 0 10px rgba(225, 29, 72, 0.1) !important;
      }

      html[data-theme="light"] .mobile-nav-badge {
        background: rgba(0, 0, 0, 0.04) !important;
      }
    }

    /* ==========================================================================
       DISCORD AUTH & USER BUTTON — UNIVERSAL (MOBILE + TABLET + DESKTOP)
       Modern Dark Glassmorphic Pill with Glowing Avatar, Single-line Truncation, & Caret
       ========================================================================== */

    /* Always hide redundant support link */
    html .topbar .topbar-inner .topbar-actions .support-link,
    html .topbar .topbar-inner .topbar-actions .support-link {
      display: none !important;
    }

    /* Auth Menu Container */
    html .topbar .topbar-inner .topbar-actions .discord-auth-menu,
    .topbar .topbar-inner .topbar-actions .discord-auth-menu,
    .discord-auth-menu {
      position: relative !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      flex-shrink: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      line-height: 1 !important;
    }

    /* Universal Hidden Rules */
    html .topbar .topbar-inner .topbar-actions .discord-login-button[hidden],
    html .topbar .topbar-inner .topbar-actions .discord-auth-menu[hidden],
    html .topbar .topbar-inner .topbar-actions .discord-user-button[hidden],
    .discord-login-button[hidden],
    .discord-auth-menu[hidden],
    .discord-user-button[hidden] {
      display: none !important;
    }

    /* Base Pill Buttons: Login & User (Universal base: Mobile first) */
    html .topbar .topbar-inner .topbar-actions .discord-login-button,
    html .topbar .topbar-inner .topbar-actions .discord-user-button,
    .topbar .topbar-inner .topbar-actions .discord-login-button,
    .topbar .topbar-inner .topbar-actions .discord-user-button {
      position: relative !important;
      right: auto !important;
      top: auto !important;
      transform: none !important;
      width: auto !important;
      min-width: 0 !important;
      max-width: 145px !important;
      height: 38px !important;
      min-height: 38px !important;
      max-height: 38px !important;
      padding: 0 10px 0 6px !important;
      border-radius: 9999px !important;
      display: inline-flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 7px !important;
      background: rgba(88, 101, 242, 0.15) !important;
      color: #dee4fd !important;
      border: 1px solid rgba(88, 101, 242, 0.42) !important;
      font-weight: 600 !important;
      font-size: 0.82rem !important;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
      text-decoration: none !important;
      cursor: pointer !important;
      flex-shrink: 0 !important;
      overflow: visible !important;
      white-space: nowrap !important;
      line-height: 1 !important;
      box-sizing: border-box !important;
    }

    /* Discord Login Button specific mobile padding */
    html .topbar .topbar-inner .topbar-actions .discord-login-button,
    .topbar .topbar-inner .topbar-actions .discord-login-button {
      padding: 0 12px 0 10px !important;
      max-width: 170px !important;
    }

    /* Strip any pseudo-elements */
    html .topbar .topbar-inner .topbar-actions .discord-login-button::before,
    html .topbar .topbar-inner .topbar-actions .discord-login-button::after,
    html .topbar .topbar-inner .topbar-actions .discord-login-button *::before,
    html .topbar .topbar-inner .topbar-actions .discord-login-button *::after,
    html .topbar .topbar-inner .topbar-actions .discord-user-button::before,
    html .topbar .topbar-inner .topbar-actions .discord-user-button::after,
    html .topbar .topbar-inner .topbar-actions .discord-user-button *::before,
    html .topbar .topbar-inner .topbar-actions .discord-user-button *::after,
    .discord-user-button::before,
    .discord-user-button::after {
      display: none !important;
      content: none !important;
      background: none !important;
      background-image: none !important;
    }

    /* Hover & Active States */
    html .topbar .topbar-inner .topbar-actions .discord-login-button:hover,
    html .topbar .topbar-inner .topbar-actions .discord-user-button:hover,
    .topbar .topbar-inner .topbar-actions .discord-login-button:hover,
    .topbar .topbar-inner .topbar-actions .discord-user-button:hover {
      background: rgba(88, 101, 242, 0.26) !important;
      border-color: #5865F2 !important;
      color: #ffffff !important;
      box-shadow: 0 4px 18px rgba(88, 101, 242, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
      transform: translateY(-1px) !important;
    }

    html .topbar .topbar-inner .topbar-actions .discord-user-button:active,
    html .topbar .topbar-inner .topbar-actions .discord-login-button:active,
    .topbar .topbar-inner .topbar-actions .discord-user-button:active,
    .topbar .topbar-inner .topbar-actions .discord-login-button:active {
      transform: translateY(0) scale(0.98) !important;
    }

    /* Discord User Avatar inside button — Always perfectly round & glowing */
    html .topbar .topbar-inner .topbar-actions .discord-user-avatar,
    .topbar .topbar-inner .topbar-actions .discord-user-avatar,
    .discord-user-avatar {
      width: 26px !important;
      height: 26px !important;
      min-width: 26px !important;
      min-height: 26px !important;
      max-width: 26px !important;
      max-height: 26px !important;
      border-radius: 50% !important;
      object-fit: cover !important;
      border: 2px solid rgba(88, 101, 242, 0.75) !important;
      box-shadow: 0 0 8px rgba(88, 101, 242, 0.5) !important;
      flex-shrink: 0 !important;
      display: block !important;
      margin: 0 !important;
      padding: 0 !important;
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
      vertical-align: middle !important;
    }

    html .topbar .topbar-inner .topbar-actions .discord-user-button:hover .discord-user-avatar,
    .topbar .topbar-inner .topbar-actions .discord-user-button:hover .discord-user-avatar {
      transform: scale(1.08) !important;
      border-color: #5865F2 !important;
      box-shadow: 0 0 12px rgba(88, 101, 242, 0.75) !important;
    }

    /* Discord Icon inside login button (hidden when logged in inside user button) */
    html .topbar .topbar-inner .topbar-actions .discord-login-button .discord-btn-icon,
    .topbar .topbar-inner .topbar-actions .discord-login-button .discord-btn-icon,
    .discord-login-button .discord-btn-icon {
      width: 17px !important;
      height: 17px !important;
      min-width: 17px !important;
      min-height: 17px !important;
      flex-shrink: 0 !important;
      fill: #ffffff !important;
      filter: none !important;
      transition: transform 0.2s ease !important;
      display: block !important;
      margin: 0 !important;
      opacity: 1 !important;
    }

    html .topbar .topbar-inner .topbar-actions .discord-user-button .discord-btn-icon,
    .topbar .topbar-inner .topbar-actions .discord-user-button .discord-btn-icon,
    .discord-user-button .discord-btn-icon {
      display: none !important;
    }

    html .topbar .topbar-inner .topbar-actions .discord-login-button:hover .discord-btn-icon,
    .discord-login-button:hover .discord-btn-icon {
      transform: scale(1.08) !important;
      fill: #ffffff !important;
    }

    /* Viewports & Text Truncation */
    html .topbar .topbar-inner .topbar-actions .discord-login-viewport,
    html .topbar .topbar-inner .topbar-actions .discord-user-viewport,
    .topbar .topbar-inner .topbar-actions .discord-login-viewport,
    .topbar .topbar-inner .topbar-actions .discord-user-viewport,
    .discord-user-viewport {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
      width: auto !important;
      max-width: 78px !important;
      height: auto !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      background: transparent !important;
      flex: 0 1 auto !important;
      line-height: 1.35 !important;
      padding-block: 1px !important;
    }

    html .topbar .topbar-inner .topbar-actions .discord-login-text,
    html .topbar .topbar-inner .topbar-actions .discord-user-text,
    .topbar .topbar-inner .topbar-actions .discord-login-text,
    .topbar .topbar-inner .topbar-actions .discord-user-text,
    .discord-user-text {
      display: inline-block !important;
      width: auto !important;
      max-width: 100% !important;
      color: inherit !important;
      background: none !important;
      padding: 1px 0 !important;
      margin: 0 !important;
      font-size: inherit !important;
      font-weight: inherit !important;
      line-height: 1.35 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      animation: none !important;
      transform: none !important;
    }

    /* Caret inside user button */
    html .topbar .topbar-inner .topbar-actions .discord-btn-caret,
    .topbar .topbar-inner .topbar-actions .discord-btn-caret,
    .discord-btn-caret {
      width: 12px !important;
      height: 12px !important;
      flex-shrink: 0 !important;
      stroke: rgba(255, 255, 255, 0.6) !important;
      stroke-width: 2.5px !important;
      transition: transform 0.2s ease, stroke 0.2s ease !important;
      display: block !important;
      margin-left: -1px !important;
    }

    html .topbar .topbar-inner .topbar-actions .discord-user-button:hover .discord-btn-caret,
    .topbar .topbar-inner .topbar-actions .discord-user-button:hover .discord-btn-caret {
      stroke: #ffffff !important;
      transform: translateY(1px) !important;
    }

    html .topbar .topbar-inner .topbar-actions .discord-user-button[aria-expanded="true"] .discord-btn-caret,
    .topbar .topbar-inner .topbar-actions .discord-user-button[aria-expanded="true"] .discord-btn-caret {
      transform: rotate(180deg) !important;
      stroke: #ffffff !important;
    }

    /* Discord Auth Dropdown Positioning & Glassmorphism */
    .discord-auth-dropdown {
      position: absolute !important;
      top: calc(100% + 8px) !important;
      right: 0 !important;
      z-index: 999999 !important;
      min-width: 190px !important;
      max-width: 240px !important;
      background: rgba(18, 20, 26, 0.96) !important;
      backdrop-filter: blur(16px) !important;
      -webkit-backdrop-filter: blur(16px) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      border-radius: 14px !important;
      padding: 8px !important;
      box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 4px !important;
    }

    .discord-auth-dropdown[hidden] {
      display: none !important;
    }

    /* Desktop Enhancements for Discord User & Login Buttons */
    @media (min-width: 961px) {
      html .topbar .topbar-inner .topbar-actions .discord-login-button,
      html .topbar .topbar-inner .topbar-actions .discord-user-button,
      .topbar .topbar-inner .topbar-actions .discord-login-button,
      .topbar .topbar-inner .topbar-actions .discord-user-button {
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 0 12px 0 6px !important;
        gap: 7px !important;
        max-width: 168px !important;
        font-size: 0.83rem !important;
      }

      html .topbar .topbar-inner .topbar-actions .discord-login-button,
      .topbar .topbar-inner .topbar-actions .discord-login-button {
        padding: 0 12px !important;
      }

      html .topbar .topbar-inner .topbar-actions .discord-user-avatar,
      .topbar .topbar-inner .topbar-actions .discord-user-avatar,
      .discord-user-avatar {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        max-width: 26px !important;
        max-height: 26px !important;
      }

      html .topbar .topbar-inner .topbar-actions .discord-login-viewport,
      html .topbar .topbar-inner .topbar-actions .discord-user-viewport,
      .topbar .topbar-inner .topbar-actions .discord-login-viewport,
      .topbar .topbar-inner .topbar-actions .discord-user-viewport,
      .discord-user-viewport {
        max-width: 102px !important;
      }
    }

    /* Light Theme Discord Buttons */
    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-login-button,
    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-user-button,
    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-login-button,
    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-user-button {
      background: rgba(88, 101, 242, 0.08) !important;
      border: 1px solid rgba(88, 101, 242, 0.28) !important;
      color: #3b45a6 !important;
      box-shadow: 0 2px 8px rgba(88, 101, 242, 0.08) !important;
    }

    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-login-button:hover,
    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-user-button:hover,
    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-login-button:hover,
    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-user-button:hover {
      background: rgba(88, 101, 242, 0.16) !important;
      border-color: #5865F2 !important;
      color: #1f2560 !important;
    }

    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-login-button .discord-btn-icon {
      fill: #5865F2 !important;
    }

    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-btn-caret,
    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-btn-caret {
      stroke: rgba(0, 0, 0, 0.45) !important;
    }

    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-user-button:hover .discord-btn-caret,
    html[data-theme="light"] .topbar .topbar-inner .topbar-actions .discord-user-button:hover .discord-btn-caret {
      stroke: #1f2560 !important;
    }

    html[data-theme="light"] .discord-auth-dropdown {
      background: rgba(255, 255, 255, 0.96) !important;
      border: 1px solid rgba(0, 0, 0, 0.1) !important;
      box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    }

    /* MODERN REFINED GLASS CAPSULE TABS */
    /* ARCHITECTURAL SUPPORTER TICKER BAR */
    html .patreon-ticker-banner {
      background: #121318 !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      border-radius: 8px !important;
      box-shadow: none !important;
      height: 36px !important;
      padding: 0 10px !important;
    }

    html .patreon-ticker-label {
      background: rgba(225, 29, 72, 0.12) !important;
      border: 1px solid rgba(225, 29, 72, 0.28) !important;
      color: #fda4af !important;
      border-radius: 5px !important;
      padding: 3px 8px !important;
      font-size: 0.68rem !important;
      font-weight: 700 !important;
      letter-spacing: 0.06em !important;
      box-shadow: none !important;
    }

    html .patreon-pulse-dot {
      width: 6px !important;
      height: 6px !important;
      background: #f43f5e !important;
      box-shadow: none !important;
    }

    html .patreon-ticker-item {
      color: #cbd5e1 !important;
      font-size: 0.8rem !important;
      font-weight: 500 !important;
      letter-spacing: 0.01em !important;
    }

    html[data-theme="light"] .patreon-ticker-banner {
      background: #ffffff !important;
      border-color: rgba(15, 23, 42, 0.09) !important;
    }

    html[data-theme="light"] .patreon-ticker-label {
      background: rgba(225, 29, 72, 0.08) !important;
      border-color: rgba(225, 29, 72, 0.22) !important;
      color: #be123c !important;
    }

    html[data-theme="light"] .patreon-ticker-item {
      color: #334155 !important;
    }

    /* EDITORIAL FLAT ARCHITECTURAL TABS (NO RAINBOW NEON PILLS) */
    .nav-tab-item {
      transform: translateZ(0);
      box-sizing: border-box;
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 34px;
      border-radius: 6px;
      background: transparent;
      border: 1px solid transparent;
      color: #94a3b8;
      box-shadow: none;
      transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
      cursor: pointer;
      user-select: none;
      text-decoration: none;
    }

    .nav-tab-item .nav-tab-icon {
      width: 15px;
      height: 15px;
      stroke-width: 2px;
      opacity: 0.72;
      transition: opacity 0.16s ease, color 0.16s ease;
      flex-shrink: 0;
    }

    .nav-tab-item.nav-tab-pill,
    .nav-tab-item[data-page="overview"] {
      width: auto !important;
      min-width: unset !important;
      padding: 0 clamp(8px, 0.72vw, 12px) !important;
      gap: 6px !important;
      flex-direction: row !important;
      border-radius: 6px !important;
    }

    .nav-tab-item .nav-tab-label {
      font-size: 0.77rem !important;
      font-weight: 600 !important;
      letter-spacing: 0.02em !important;
      line-height: 1 !important;
      white-space: nowrap !important;
      color: inherit !important;
      user-select: none !important;
    }

    .nav-tab-item.nav-tab-pill .nav-tab-tooltip,
    .nav-tab-item[data-page="overview"] .nav-tab-tooltip {
      display: none !important;
    }

    @media (min-width: 961px) and (max-width: 1400px) {
      html .topbar-inner {
        padding: 6px 10px !important;
        gap: 8px !important;
      }
      html .topbar-nav-tabs {
        gap: 1.5px !important;
        padding: 0 !important;
      }
      .nav-tab-item.nav-tab-pill,
      .nav-tab-item[data-page="overview"] {
        padding: 0 clamp(6px, 0.55vw, 9px) !important;
        gap: 4.5px !important;
      }
      html .nav-tab-wrapper .nav-tab-item {
        padding-right: 21px !important;
      }
      html .nav-tab-wrapper .nav-tab-arrow {
        right: 7px !important;
      }
      .nav-tab-item .nav-tab-label {
        font-size: 0.74rem !important;
        letter-spacing: 0.015em !important;
      }
      .nav-tab-item.nav-tab-pill .nav-tab-icon,
      .nav-tab-item[data-page="overview"] .nav-tab-icon {
        width: 14px !important;
        height: 14px !important;
      }
    }

    @media (min-width: 961px) and (max-width: 1180px) {
      html .desktop-brand strong {
        font-size: 0.92rem !important;
      }
      .nav-tab-item.nav-tab-pill,
      .nav-tab-item[data-page="overview"] {
        padding: 0 5.5px !important;
        gap: 3.5px !important;
      }
      html .nav-tab-wrapper .nav-tab-item {
        padding-right: 18px !important;
      }
      html .nav-tab-wrapper .nav-tab-arrow {
        right: 5px !important;
      }
      .nav-tab-item .nav-tab-label {
        font-size: 0.69rem !important;
        letter-spacing: 0.01em !important;
      }
      html .topbar .topbar-inner .topbar-actions .discord-login-viewport,
      html .topbar .topbar-inner .topbar-actions .discord-user-viewport {
        max-width: 78px !important;
      }
    }

    .nav-tab-item:hover,
    .nav-tab-wrapper:hover .nav-tab-item {
      background: rgba(255, 255, 255, 0.05);
      border-color: transparent;
      color: #f8fafc;
      box-shadow: none;
    }

    .nav-tab-item:hover .nav-tab-icon,
    .nav-tab-wrapper:hover .nav-tab-icon {
      opacity: 1;
      transform: none;
    }

    .nav-tab-item:active,
    .nav-tab-wrapper:active .nav-tab-item {
      transform: translateY(0.5px);
      background: rgba(255, 255, 255, 0.08);
    }

    /* Active Architectural Tab State */
    .nav-tab-item.active,
    .nav-tab-wrapper.has-active-child .nav-tab-item {
      background: rgba(255, 255, 255, 0.07) !important;
      border-color: rgba(255, 255, 255, 0.11) !important;
      color: #ffffff !important;
      box-shadow: none !important;
      font-weight: 700 !important;
    }

    .nav-tab-item.active .nav-tab-icon,
    .nav-tab-wrapper.has-active-child .nav-tab-icon {
      opacity: 1 !important;
      color: #f43f5e !important;
    }

    .nav-tab-item.active::after,
    .nav-tab-wrapper.has-active-child .nav-tab-item::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 10px;
      right: 10px;
      height: 2px;
      border-radius: 2px;
      background: #e11d48;
      box-shadow: none;
      transform: none;
      width: auto;
    }

    .nav-tab-wrapper.has-active-child .nav-tab-item::after {
      left: 10px;
      right: 18px;
    }

    /* LIGHT THEME ARCHITECTURAL TABS */
    html[data-theme="light"] .nav-tab-item {
      color: #475569;
      background: transparent;
      border-color: transparent;
      box-shadow: none;
    }
    
    html[data-theme="light"] .nav-tab-item:hover,
    html[data-theme="light"] .nav-tab-wrapper:hover .nav-tab-item {
      background: rgba(15, 23, 42, 0.05);
      border-color: transparent;
      color: #0f172a;
      box-shadow: none;
    }

    html[data-theme="light"] .nav-tab-item.active,
    html[data-theme="light"] .nav-tab-wrapper.has-active-child .nav-tab-item {
      background: rgba(15, 23, 42, 0.06) !important;
      border-color: rgba(15, 23, 42, 0.1) !important;
      color: #0f172a !important;
      box-shadow: none !important;
    }

    /* GLASSMORPHIC TOOLTIPS */
    .nav-tab-item .nav-tab-tooltip {
      position: absolute;
      bottom: -40px;
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      background: rgba(20, 22, 26, 0.95);
      color: #fff;
      padding: 5px 10px;
      border-radius: 8px;
      font-size: 0.72rem;
      font-weight: 700;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
      z-index: 2000;
    }

    html[data-theme="light"] .nav-tab-item .nav-tab-tooltip {
      background: rgba(255, 255, 255, 0.96);
      color: #111827;
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .nav-tab-item:hover .nav-tab-tooltip {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  

    /* ==========================================================================
       STAFF TEAM — MODERN BENTO & GLASSMORPHISM REDESIGN
       ========================================================================== */

    /* Hero Heading & Eyebrow Pill */
    .staff-hero-heading {
      display: flex !important;
      align-items: flex-end !important;
      justify-content: space-between !important;
      gap: 20px !important;
      margin-bottom: 28px !important;
      padding-bottom: 22px !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .staff-hero-copy {
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;
      max-width: 760px !important;
    }

    .staff-eyebrow-pill {
      display: inline-flex !important;
      align-items: center !important;
      gap: 7px !important;
      width: fit-content !important;
      padding: 5px 13px !important;
      border-radius: 999px !important;
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(143, 124, 255, 0.1)) !important;
      border: 1px solid rgba(168, 85, 247, 0.32) !important;
      color: #c4b5fd !important;
      font-size: 0.74rem !important;
      font-weight: 850 !important;
      letter-spacing: 0.07em !important;
      text-transform: uppercase !important;
      box-shadow: 0 4px 16px rgba(168, 85, 247, 0.12) !important;
    }

    .staff-hero-copy h2 {
      font-size: clamp(2rem, 3.4vw, 3.1rem) !important;
      font-weight: 900 !important;
      letter-spacing: -0.02em !important;
      line-height: 1.1 !important;
      margin: 0 !important;
      background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 65%, #c4b5fd 100%) !important;
      -webkit-background-clip: text !important;
      -webkit-text-fill-color: transparent !important;
    }

    .staff-hero-copy .section-intro {
      color: #a8b0c0 !important;
      font-size: 0.98rem !important;
      line-height: 1.6 !important;
      margin: 0 !important;
    }

    .staff-contact-btn {
      display: inline-flex !important;
      align-items: center !important;
      gap: 8px !important;
      padding: 10px 18px !important;
      border-radius: 12px !important;
      font-weight: 700 !important;
      font-size: 0.88rem !important;
      background: rgba(255, 255, 255, 0.04) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      transition: all 0.22s ease !important;
    }

    .staff-contact-btn:hover {
      background: rgba(168, 85, 247, 0.14) !important;
      border-color: rgba(168, 85, 247, 0.4) !important;
      color: #ffffff !important;
      box-shadow: 0 8px 24px rgba(168, 85, 247, 0.18) !important;
    }

    /* Bento Top Dashboard Grid */
    .staff-dashboard-cards {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 20px !important;
      margin: 0 0 28px 0 !important;
      align-items: stretch !important;
      max-width: 100% !important;
    }

    @media (min-width: 1040px) {
      .staff-dashboard-cards {
        grid-template-columns: 1.75fr 1fr !important;
      }
    }

    .staff-overview {
      margin: 0 !important;
      min-width: 0 !important;
      height: 100% !important;
    }

    .staff-overview .staff-overview-card {
      position: relative !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      gap: 22px !important;
      padding: 26px !important;
      min-width: 0 !important;
      height: 100% !important;
      border-radius: 22px !important;
      background:
        radial-gradient(circle at 0% 0%, rgba(143, 124, 255, 0.12), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(67, 214, 197, 0.08), transparent 45%),
        rgba(20, 22, 28, 0.78) !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
      backdrop-filter: blur(14px) !important;
    }

    .staff-overview-hero {
      display: flex !important;
      align-items: flex-start !important;
      justify-content: space-between !important;
      gap: 20px !important;
      flex-wrap: wrap !important;
    }

    .staff-overview-head-left {
      display: flex !important;
      flex-direction: column !important;
      gap: 6px !important;
      flex: 1 1 280px !important;
    }

    .staff-overview-kicker-row {
      display: flex !important;
      align-items: center !important;
      flex-wrap: wrap !important;
      gap: 10px !important;
      margin-bottom: 2px !important;
    }

    .staff-overview-label {
      margin: 0 !important;
      color: #a78bfa !important;
      font-size: 0.74rem !important;
      font-weight: 850 !important;
      letter-spacing: 0.06em !important;
      text-transform: uppercase !important;
    }

    .staff-overview-updated-pill {
      display: inline-flex !important;
      align-items: center !important;
      padding: 3px 9px !important;
      border-radius: 999px !important;
      background: rgba(255, 255, 255, 0.05) !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      color: #94a3b8 !important;
      font-size: 0.72rem !important;
      font-weight: 600 !important;
    }

    .staff-overview-title {
      font-size: 1.55rem !important;
      font-weight: 850 !important;
      letter-spacing: -0.015em !important;
      color: #f8fafc !important;
      margin: 0 !important;
    }

    .staff-overview-summary {
      color: #94a3b8 !important;
      font-size: 0.92rem !important;
      line-height: 1.55 !important;
      margin: 0 !important;
      max-width: 62ch !important;
    }

    .staff-overview-status {
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-end !important;
      gap: 8px !important;
      text-align: right !important;
      background: rgba(15, 17, 22, 0.55) !important;
      border: 1px solid rgba(67, 214, 197, 0.18) !important;
      border-radius: 14px !important;
      padding: 10px 14px !important;
      min-width: 200px !important;
    }

    .staff-overview-online-copy {
      font-size: 0.8rem !important;
      color: #cbd5e1 !important;
      font-weight: 600 !important;
      line-height: 1.35 !important;
    }

    /* 4-Tile Bento Stats Grid */
    .staff-stat-bento-grid {
      display: grid !important;
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      gap: 12px !important;
      margin: 0 !important;
    }

    @media (max-width: 768px) {
      .staff-stat-bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }

    .staff-stat-tile {
      --stat-accent: #8f7cff;
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      padding: 14px 16px !important;
      border-radius: 16px !important;
      background:
        linear-gradient(135deg, color-mix(in srgb, var(--stat-accent) 10%, rgba(255, 255, 255, 0.02)), rgba(15, 17, 22, 0.55)) !important;
      border: 1px solid color-mix(in srgb, var(--stat-accent) 22%, rgba(255, 255, 255, 0.06)) !important;
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
    }

    .staff-stat-tile:hover {
      transform: translateY(-2px) !important;
      border-color: color-mix(in srgb, var(--stat-accent) 45%, rgba(255, 255, 255, 0.12)) !important;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 16px color-mix(in srgb, var(--stat-accent) 16%, transparent) !important;
    }

    .staff-stat-icon {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 40px !important;
      height: 40px !important;
      flex-shrink: 0 !important;
      border-radius: 12px !important;
      background: color-mix(in srgb, var(--stat-accent) 18%, rgba(16, 17, 22, 0.8)) !important;
      border: 1px solid color-mix(in srgb, var(--stat-accent) 34%, transparent) !important;
      color: var(--stat-accent) !important;
    }

    .staff-stat-info {
      display: flex !important;
      flex-direction: column !important;
      gap: 3px !important;
      min-width: 0 !important;
      background: transparent !important;
      border: none !important;
      padding: 0 !important;
    }

    .staff-stat-info strong {
      font-size: 1.4rem !important;
      font-weight: 900 !important;
      line-height: 1.05 !important;
      color: #ffffff !important;
      letter-spacing: -0.02em !important;
    }

    .staff-stat-info span {
      font-size: 0.76rem !important;
      font-weight: 700 !important;
      color: #94a3b8 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    /* Redesigned Premium "Join the Team" Callout Card */
    .staff-join-callout {
      background:
        radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.2), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.14), transparent 50%),
        linear-gradient(145deg, rgba(20, 22, 29, 0.9), rgba(26, 28, 37, 0.94)) !important;
      border: 1px solid rgba(168, 85, 247, 0.3) !important;
      border-radius: 22px !important;
      padding: 24px !important;
      text-align: left !important;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
      position: relative !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      justify-content: space-between !important;
      gap: 14px !important;
      margin: 0 !important;
    }

    .staff-join-callout::before {
      content: '' !important;
      position: absolute !important;
      top: -40% !important;
      right: -30% !important;
      width: 240px !important;
      height: 240px !important;
      background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%) !important;
      pointer-events: none !important;
    }

    .staff-join-top {
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      width: 100% !important;
      z-index: 1 !important;
    }

    .staff-join-icon-box {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 42px !important;
      height: 42px !important;
      border-radius: 12px !important;
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(99, 102, 241, 0.18)) !important;
      border: 1px solid rgba(168, 85, 247, 0.4) !important;
      color: #d8b4fe !important;
      box-shadow: 0 6px 18px rgba(168, 85, 247, 0.2) !important;
      flex-shrink: 0 !important;
    }

    .staff-join-callout .staff-overview-label {
      color: #d8b4fe !important;
      font-size: 0.72rem !important;
      font-weight: 850 !important;
      letter-spacing: 0.06em !important;
      text-transform: uppercase !important;
      padding: 4px 11px !important;
      background: rgba(168, 85, 247, 0.14) !important;
      border: 1px solid rgba(168, 85, 247, 0.28) !important;
      border-radius: 999px !important;
    }

    .staff-join-body {
      display: flex !important;
      flex-direction: column !important;
      gap: 6px !important;
      z-index: 1 !important;
    }

    .staff-join-callout h3 {
      font-size: 1.3rem !important;
      font-weight: 850 !important;
      color: #ffffff !important;
      margin: 0 !important;
      letter-spacing: -0.01em !important;
    }

    .staff-join-callout p {
      color: #94a3b8 !important;
      font-size: 0.88rem !important;
      margin: 0 !important;
      line-height: 1.55 !important;
    }

    .staff-join-perks {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 8px !important;
      z-index: 1 !important;
    }

    .staff-join-perk-pill {
      display: inline-flex !important;
      align-items: center !important;
      gap: 5px !important;
      padding: 4px 10px !important;
      border-radius: 8px !important;
      background: rgba(255, 255, 255, 0.04) !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      color: #cbd5e1 !important;
      font-size: 0.74rem !important;
      font-weight: 700 !important;
    }

    .staff-apply-btn {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      width: 100% !important;
      padding: 11px 18px !important;
      margin-top: 4px !important;
      border-radius: 12px !important;
      background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
      border: 1px solid rgba(196, 181, 253, 0.4) !important;
      color: #ffffff !important;
      font-weight: 800 !important;
      font-size: 0.9rem !important;
      box-shadow: 0 8px 22px rgba(139, 92, 246, 0.32) !important;
      transition: all 0.22s ease !important;
      z-index: 1 !important;
    }

    .staff-apply-btn:hover {
      background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%) !important;
      box-shadow: 0 12px 28px rgba(139, 92, 246, 0.45) !important;
      transform: translateY(-1px) !important;
    }

    /* Toolbar & Segmented Team Tabs */
    .staff-toolbar {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      flex-wrap: wrap !important;
      gap: 14px !important;
      margin: 0 0 26px 0 !important;
    }

    .staff-tabs {
      background: rgba(16, 18, 24, 0.78) !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      border-radius: 14px !important;
      padding: 5px !important;
      display: inline-flex !important;
      gap: 6px !important;
      margin: 0 !important;
      box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25) !important;
      width: max-content !important;
      max-width: 100% !important;
    }

    .staff-tab {
      display: inline-flex !important;
      align-items: center !important;
      gap: 8px !important;
      background: transparent !important;
      border: 1px solid transparent !important;
      color: #94a3b8 !important;
      border-radius: 10px !important;
      padding: 9px 18px !important;
      font-weight: 750 !important;
      font-size: 0.88rem !important;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
      box-shadow: none !important;
      cursor: pointer !important;
    }

    .staff-tab:hover {
      color: #f8fafc !important;
      background: rgba(255, 255, 255, 0.04) !important;
    }

    .staff-tab.is-active {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.26), rgba(99, 102, 241, 0.2)) !important;
      color: #ffffff !important;
      border-color: rgba(168, 85, 247, 0.45) !important;
      box-shadow: 0 4px 16px rgba(139, 92, 246, 0.22) !important;
    }

    .staff-tab-count {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      min-width: 22px !important;
      height: 20px !important;
      padding: 0 6px !important;
      border-radius: 999px !important;
      background: rgba(255, 255, 255, 0.08) !important;
      color: #cbd5e1 !important;
      font-size: 0.72rem !important;
      font-weight: 800 !important;
    }

    .staff-tab.is-active .staff-tab-count {
      background: rgba(168, 85, 247, 0.35) !important;
      color: #ffffff !important;
    }

    .staff-toolbar-hint {
      display: inline-flex !important;
      align-items: center !important;
      gap: 8px !important;
      padding: 7px 13px !important;
      border-radius: 999px !important;
      background: rgba(255, 255, 255, 0.03) !important;
      border: 1px solid rgba(255, 255, 255, 0.06) !important;
      color: #94a3b8 !important;
      font-size: 0.78rem !important;
      font-weight: 600 !important;
    }

    .staff-toolbar-dot {
      width: 7px !important;
      height: 7px !important;
      border-radius: 50% !important;
      background: #43d6c5 !important;
      box-shadow: 0 0 8px #43d6c5 !important;
    }

    /* Staff Groups & Section Containers */
    #staffGrid {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 24px !important;
    }

    .staff-group {
      --staff-tone: #f3c04d;
      position: relative !important;
      display: grid !important;
      gap: 20px !important;
      padding: 24px !important;
      border-radius: 22px !important;
      background:
        radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--staff-tone) 10%, transparent), transparent 45%),
        rgba(18, 20, 26, 0.76) !important;
      border: 1px solid color-mix(in srgb, var(--staff-tone) 22%, rgba(255, 255, 255, 0.07)) !important;
      border-left: 4px solid var(--staff-tone) !important;
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22) !important;
    }

    .staff-group-head {
      display: flex !important;
      align-items: flex-start !important;
      justify-content: space-between !important;
      gap: 16px !important;
      padding-bottom: 16px !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .staff-group-title-wrap {
      display: flex !important;
      align-items: flex-start !important;
      gap: 14px !important;
      min-width: 0 !important;
    }

    .staff-group-icon {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 44px !important;
      height: 44px !important;
      flex-shrink: 0 !important;
      border-radius: 13px !important;
      background: color-mix(in srgb, var(--staff-tone) 16%, rgba(16, 18, 24, 0.9)) !important;
      border: 1px solid color-mix(in srgb, var(--staff-tone) 36%, transparent) !important;
      color: var(--staff-tone) !important;
      box-shadow: 0 6px 18px color-mix(in srgb, var(--staff-tone) 15%, transparent) !important;
    }

    .staff-group-text {
      display: flex !important;
      flex-direction: column !important;
      gap: 4px !important;
      min-width: 0 !important;
    }

    .staff-group-label {
      margin: 0 !important;
      color: var(--staff-tone) !important;
      font-size: 0.7rem !important;
      font-weight: 850 !important;
      letter-spacing: 0.07em !important;
      text-transform: uppercase !important;
    }

    .staff-group h3 {
      color: #f8fafc !important;
      font-size: 1.25rem !important;
      font-weight: 850 !important;
      letter-spacing: -0.01em !important;
      margin: 0 !important;
    }

    .staff-group-copy {
      color: #94a3b8 !important;
      font-size: 0.88rem !important;
      line-height: 1.5 !important;
      margin: 0 !important;
    }

    .staff-group-badges {
      display: inline-flex !important;
      align-items: center !important;
      gap: 8px !important;
      flex-shrink: 0 !important;
      flex-wrap: wrap !important;
    }

    .staff-group-stat-pill {
      display: inline-flex !important;
      align-items: center !important;
      gap: 5px !important;
      padding: 5px 11px !important;
      border-radius: 999px !important;
      background: rgba(255, 255, 255, 0.04) !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      color: #cbd5e1 !important;
      font-size: 0.75rem !important;
      font-weight: 600 !important;
    }

    .staff-group-stat-pill strong {
      color: #ffffff !important;
      font-weight: 800 !important;
    }

    .staff-group-grid {
      display: grid !important;
      grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
      gap: 18px !important;
    }

    /* Holographic / Glassmorphic Rank Cards */
    #staffGrid .staff-card {
      --staff-tone: #f3c04d;
      position: relative !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 16px !important;
      padding: 22px !important;
      border-radius: 18px !important;
      background:
        linear-gradient(160deg, color-mix(in srgb, var(--staff-tone) 9%, rgba(26, 29, 38, 0.75)) 0%, rgba(18, 20, 26, 0.85) 60%) !important;
      border: 1px solid color-mix(in srgb, var(--staff-tone) 24%, rgba(255, 255, 255, 0.08)) !important;
      border-top: 3px solid var(--staff-tone) !important;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    }

    #staffGrid .staff-card::before {
      display: none !important;
    }

    .staff-card-glow {
      position: absolute !important;
      top: -60px !important;
      right: -60px !important;
      width: 160px !important;
      height: 160px !important;
      border-radius: 50% !important;
      background: radial-gradient(circle, color-mix(in srgb, var(--staff-tone) 18%, transparent) 0%, transparent 70%) !important;
      pointer-events: none !important;
    }

    #staffGrid .staff-card:hover {
      border-color: color-mix(in srgb, var(--staff-tone) 48%, rgba(255, 255, 255, 0.18)) !important;
      box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.35),
        0 0 24px color-mix(in srgb, var(--staff-tone) 20%, transparent) !important;
    }

    .staff-card-head {
      display: flex !important;
      align-items: flex-start !important;
      justify-content: space-between !important;
      gap: 12px !important;
      margin: 0 !important;
      position: relative !important;
      z-index: 1 !important;
    }

    .staff-card-titles {
      display: flex !important;
      flex-direction: column !important;
      gap: 6px !important;
      min-width: 0 !important;
    }

    .staff-card .staff-tier {
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      color: var(--staff-tone) !important;
      font-size: 0.7rem !important;
      font-weight: 850 !important;
      letter-spacing: 0.06em !important;
      text-transform: uppercase !important;
      margin: 0 !important;
    }

    .staff-tier-dot {
      width: 6px !important;
      height: 6px !important;
      border-radius: 50% !important;
      background: var(--staff-tone) !important;
      box-shadow: 0 0 8px var(--staff-tone) !important;
    }

    .staff-rank-title {
      color: #ffffff !important;
      font-size: 1.15rem !important;
      font-weight: 850 !important;
      line-height: 1.2 !important;
      margin: 0 !important;
    }

    .staff-card-meta {
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-end !important;
      gap: 6px !important;
      flex-shrink: 0 !important;
    }

    .staff-count {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 4px 10px !important;
      border-radius: 999px !important;
      background: color-mix(in srgb, var(--staff-tone) 14%, rgba(255, 255, 255, 0.03)) !important;
      border: 1px solid color-mix(in srgb, var(--staff-tone) 32%, transparent) !important;
      color: #f8fafc !important;
      font-size: 0.73rem !important;
      font-weight: 750 !important;
    }

    .staff-count--vacant {
      background: rgba(240, 98, 146, 0.12) !important;
      border-color: rgba(240, 98, 146, 0.32) !important;
      color: #f48fb1 !important;
    }

    /* Member Items Inside Rank Card */
    .staff-card-body {
      position: relative !important;
      z-index: 1 !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;
      flex: 1 !important;
    }

    .staff-members {
      display: grid !important;
      grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
      gap: 10px !important;
      list-style: none !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    .staff-members--single {
      grid-template-columns: 1fr !important;
    }

    .staff-members li,
    .staff-member-item {
      display: flex !important;
      align-items: center !important;
      gap: 13px !important;
      padding: 12px 14px !important;
      border-radius: 14px !important;
      background: rgba(12, 14, 18, 0.55) !important;
      border: 1px solid rgba(255, 255, 255, 0.06) !important;
      transition: all 0.2s ease !important;
    }

    .staff-members li.has-motto,
    .staff-member-item.has-motto {
      align-items: flex-start !important;
    }

    .staff-members li:hover,
    .staff-member-item:hover {
      transform: translateY(-2px) !important;
      background: rgba(20, 23, 30, 0.8) !important;
      border-color: color-mix(in srgb, var(--staff-tone) 38%, rgba(255, 255, 255, 0.12)) !important;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
    }

    /* 46px Avatar with Live Status Badge */
    .staff-avatar-wrap {
      position: relative !important;
      width: 46px !important;
      height: 46px !important;
      flex-shrink: 0 !important;
    }

    .staff-avatar {
      display: inline-grid !important;
      place-items: center !important;
      width: 46px !important;
      height: 46px !important;
      border-radius: 13px !important;
      border: 1.5px solid color-mix(in srgb, var(--staff-tone) 42%, rgba(255, 255, 255, 0.15)) !important;
      background: color-mix(in srgb, var(--staff-tone) 16%, #14161d) !important;
      color: #ffffff !important;
      font-size: 0.9rem !important;
      font-weight: 850 !important;
      object-fit: cover !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    }

    .staff-avatar-status {
      position: absolute !important;
      right: -2px !important;
      bottom: -2px !important;
      width: 13px !important;
      height: 13px !important;
      border-radius: 50% !important;
      background: var(--presence-tone, #8a8f98) !important;
      border: 2.5px solid #12141a !important;
      box-shadow: 0 0 6px color-mix(in srgb, var(--presence-tone, transparent) 55%, transparent) !important;
    }

    .staff-member-text {
      display: flex !important;
      flex-direction: column !important;
      gap: 5px !important;
      min-width: 0 !important;
      flex: 1 !important;
    }

    .staff-member-headline {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      flex-wrap: wrap !important;
      gap: 6px 8px !important;
      min-width: 0 !important;
    }

    .staff-name {
      color: #f8fafc !important;
      font-size: 0.96rem !important;
      font-weight: 750 !important;
      line-height: 1.25 !important;
      overflow-wrap: anywhere !important;
    }

    .staff-member-motto {
      margin: 0 !important;
      padding: 5px 9px !important;
      border-radius: 8px !important;
      background: rgba(255, 255, 255, 0.03) !important;
      border-left: 2px solid color-mix(in srgb, var(--staff-tone) 55%, transparent) !important;
      color: #cbd5e1 !important;
      font-size: 0.8rem !important;
      font-style: italic !important;
      line-height: 1.4 !important;
      overflow-wrap: anywhere !important;
    }

    .staff-motto-quote {
      color: var(--staff-tone) !important;
      font-weight: 800 !important;
      font-style: normal !important;
      opacity: 0.85 !important;
      margin: 0 1px !important;
    }

    /* Vacant Seat Box */
    .staff-vacant-box {
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      padding: 14px 16px !important;
      border-radius: 14px !important;
      border: 1px dashed color-mix(in srgb, var(--staff-tone) 35%, rgba(255, 255, 255, 0.14)) !important;
      background: color-mix(in srgb, var(--staff-tone) 6%, rgba(12, 14, 18, 0.45)) !important;
    }

    .staff-vacant-icon {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 38px !important;
      height: 38px !important;
      border-radius: 10px !important;
      background: color-mix(in srgb, var(--staff-tone) 14%, transparent) !important;
      color: var(--staff-tone) !important;
      flex-shrink: 0 !important;
    }

    .staff-vacant-content {
      display: flex !important;
      flex-direction: column !important;
      gap: 2px !important;
    }

    .staff-vacant-content strong {
      font-size: 0.86rem !important;
      font-weight: 800 !important;
      color: #f1f5f9 !important;
    }

    .staff-vacant-content .staff-note {
      border: none !important;
      background: transparent !important;
      padding: 0 !important;
      margin: 0 !important;
      font-size: 0.8rem !important;
      color: #94a3b8 !important;
    }

    /* 3D Tilt Preservation */
    .premium-tilt-card {
      transform-style: preserve-3d;
    }

    .premium-tilt-card .staff-card-head,
    .premium-tilt-card .staff-card-body {
      transform: translateZ(18px);
    }

    /* ==========================================================================
       LIGHT THEME OVERRIDES FOR STAFF PAGE
       ========================================================================== */
    :root[data-theme='light'] .staff-hero-heading {
      border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    }

    :root[data-theme='light'] .staff-eyebrow-pill {
      background: rgba(139, 92, 246, 0.1) !important;
      border-color: rgba(139, 92, 246, 0.25) !important;
      color: #6d28d9 !important;
    }

    :root[data-theme='light'] .staff-hero-copy h2 {
      background: none !important;
      -webkit-text-fill-color: #111827 !important;
      color: #111827 !important;
    }

    :root[data-theme='light'] .staff-hero-copy .section-intro {
      color: #4b5563 !important;
    }

    :root[data-theme='light'] .staff-contact-btn {
      background: #ffffff !important;
      border-color: rgba(0, 0, 0, 0.1) !important;
      color: #1f2937 !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    :root[data-theme='light'] .staff-overview .staff-overview-card {
      background:
        radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.08), transparent 50%),
        #ffffff !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05) !important;
    }

    :root[data-theme='light'] .staff-overview-title {
      color: #111827 !important;
    }

    :root[data-theme='light'] .staff-overview-summary {
      color: #4b5563 !important;
    }

    :root[data-theme='light'] .staff-overview-updated-pill {
      background: #f3f4f6 !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
      color: #4b5563 !important;
    }

    :root[data-theme='light'] .staff-overview-status {
      background: #f8fafc !important;
      border-color: rgba(13, 148, 136, 0.22) !important;
    }

    :root[data-theme='light'] .staff-overview-online-copy {
      color: #334155 !important;
    }

    :root[data-theme='light'] .staff-stat-tile {
      background:
        linear-gradient(135deg, color-mix(in srgb, var(--stat-accent) 8%, #ffffff), #f8fafc) !important;
      border-color: color-mix(in srgb, var(--stat-accent) 24%, rgba(0, 0, 0, 0.08)) !important;
    }

    :root[data-theme='light'] .staff-stat-icon {
      background: color-mix(in srgb, var(--stat-accent) 14%, #ffffff) !important;
    }

    :root[data-theme='light'] .staff-stat-info strong {
      color: #0f172a !important;
    }

    :root[data-theme='light'] .staff-stat-info span {
      color: #64748b !important;
    }

    :root[data-theme='light'] .staff-join-callout {
      background:
        radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.12), transparent 55%),
        linear-gradient(145deg, #ffffff, #f8fafc) !important;
      border-color: rgba(139, 92, 246, 0.28) !important;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05) !important;
    }

    :root[data-theme='light'] .staff-join-callout .staff-overview-label {
      color: #6d28d9 !important;
      background: rgba(139, 92, 246, 0.1) !important;
    }

    :root[data-theme='light'] .staff-join-callout h3 {
      color: #111827 !important;
    }

    :root[data-theme='light'] .staff-join-callout p {
      color: #4b5563 !important;
    }

    :root[data-theme='light'] .staff-join-perk-pill {
      background: #f1f5f9 !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
      color: #334155 !important;
    }

    :root[data-theme='light'] .staff-tabs {
      background: #f1f5f9 !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
      box-shadow: none !important;
    }

    :root[data-theme='light'] .staff-tab {
      color: #475569 !important;
    }

    :root[data-theme='light'] .staff-tab:hover {
      color: #0f172a !important;
      background: rgba(0, 0, 0, 0.04) !important;
    }

    :root[data-theme='light'] .staff-tab.is-active {
      background: #ffffff !important;
      color: #4f46e5 !important;
      border-color: rgba(99, 102, 241, 0.25) !important;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    }

    :root[data-theme='light'] .staff-tab-count {
      background: rgba(0, 0, 0, 0.06) !important;
      color: #334155 !important;
    }

    :root[data-theme='light'] .staff-toolbar-hint {
      background: #ffffff !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
      color: #475569 !important;
    }

    :root[data-theme='light'] .staff-group {
      background:
        radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--staff-tone) 8%, transparent), transparent 45%),
        #ffffff !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04) !important;
    }

    :root[data-theme='light'] .staff-group-head {
      border-bottom-color: rgba(0, 0, 0, 0.07) !important;
    }

    :root[data-theme='light'] .staff-group-icon {
      background: color-mix(in srgb, var(--staff-tone) 14%, #ffffff) !important;
    }

    :root[data-theme='light'] .staff-group h3 {
      color: #0f172a !important;
    }

    :root[data-theme='light'] .staff-group-copy {
      color: #475569 !important;
    }

    :root[data-theme='light'] .staff-group-stat-pill {
      background: #f1f5f9 !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
      color: #475569 !important;
    }

    :root[data-theme='light'] .staff-group-stat-pill strong {
      color: #0f172a !important;
    }

    :root[data-theme='light'] #staffGrid .staff-card {
      background:
        linear-gradient(160deg, color-mix(in srgb, var(--staff-tone) 7%, #ffffff) 0%, #ffffff 65%) !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
    }

    :root[data-theme='light'] .staff-rank-title {
      color: #0f172a !important;
    }

    :root[data-theme='light'] .staff-count {
      color: #1e293b !important;
      background: color-mix(in srgb, var(--staff-tone) 15%, #f8fafc) !important;
    }

    :root[data-theme='light'] .staff-members li,
    :root[data-theme='light'] .staff-member-item {
      background: #f8fafc !important;
      border-color: rgba(0, 0, 0, 0.07) !important;
    }

    :root[data-theme='light'] .staff-members li:hover,
    :root[data-theme='light'] .staff-member-item:hover {
      background: #ffffff !important;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
    }

    :root[data-theme='light'] .staff-avatar-status {
      border-color: #ffffff !important;
    }

    :root[data-theme='light'] .staff-name {
      color: #0f172a !important;
    }

    :root[data-theme='light'] .staff-member-motto {
      background: rgba(0, 0, 0, 0.03) !important;
      color: #475569 !important;
    }

    :root[data-theme='light'] .staff-vacant-box {
      background: #f8fafc !important;
      border-color: rgba(0, 0, 0, 0.14) !important;
    }

    :root[data-theme='light'] .staff-vacant-content strong {
      color: #0f172a !important;
    }

    /* Mobile Responsive Refinements */
    @media (max-width: 768px) {
      .staff-hero-heading {
        flex-direction: column !important;
        align-items: flex-start !important;
      }

      .staff-overview-status {
        align-items: flex-start !important;
        text-align: left !important;
        width: 100% !important;
      }

      .staff-group {
        padding: 16px !important;
      }

      .staff-group-head {
        flex-direction: column !important;
        align-items: flex-start !important;
      }

      .staff-group-grid {
        grid-template-columns: 1fr !important;
      }

      .staff-members {
        grid-template-columns: 1fr !important;
      }
    }
  
.endcard-modal {
              display: none;
              position: fixed;
              z-index: 9999;
              left: 0;
              top: 0;
              width: 100%;
              height: 100%;
              background-color: rgba(0, 0, 0, 0.85);
              opacity: 0;
              transition: opacity 0.3s ease;
              align-items: center; justify-content: center; padding: 20px;
              box-sizing: border-box;
            }
            .endcard-modal.show {
              display: flex;
              align-items: center;
              justify-content: center;
              opacity: 1;
            }
            .endcard-modal-content {
              position: relative;
              max-width: 1280px;
              width: 100%;
              border-radius: 12px;
              overflow: visible;
              box-shadow: 0 10px 40px rgba(236, 72, 153, 0.3);
              transform: scale(0.95);
              transition: transform 0.3s ease;
              background-color: #000;
              display: flex;
              align-items: center;
              justify-content: center;
            }
            .endcard-modal.show .endcard-modal-content {
              transform: scale(1);
            }
            .endcard-modal-content img {
              display: block;
              width: 100%;
              height: auto;
              max-height: 85vh;
              object-fit: contain;
              border-radius: 12px;
            }
            .endcard-close {
              position: absolute;
              top: -20px;
              right: -20px;
              background: #ec4899;
              color: #fff;
              width: 40px;
              height: 40px;
              border-radius: 50%;
              display: flex;
              align-items: center;
              justify-content: center;
              font-size: 24px;
              font-weight: bold;
              cursor: pointer;
              box-shadow: 0 4px 12px rgba(0,0,0,0.5);
              z-index: 10;
              transition: background 0.2s, transform 0.2s;
              line-height: 1;
            }
            .endcard-close:hover {
              background: #f472b6;
              transform: scale(1.1);
            }
          

    /* Ticker Banner Style */
    .patreon-ticker-banner {
      width: 100%;
      max-width: 1520px;
      margin: 0 auto 16px;
      background: rgba(17, 18, 20, 0.45);
      border: 1px solid rgba(255, 66, 77, 0.15);
      border-radius: 12px;
      overflow: hidden;
      display: none; /* starts hidden until data loads */
      align-items: center;
      height: 38px;
      padding: 0 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
      position: relative;
      box-sizing: border-box;
      z-index: 10;
    }

    :root[data-theme='light'] .patreon-ticker-banner {
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid rgba(255, 66, 77, 0.25);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .patreon-ticker-label {
      display: flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, #ff424d, #e65b70);
      color: #fff;
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.1em;
      padding: 4px 10px;
      border-radius: 8px;
      margin-right: 16px;
      flex-shrink: 0;
      box-shadow: 0 2px 10px rgba(255, 66, 77, 0.3);
      z-index: 2;
    }

    .patreon-pulse-dot {
      width: 6px;
      height: 6px;
      background-color: #fff;
      border-radius: 50%;
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
      animation: patreon-pulse-dot-anim 1.2s infinite;
    }

    @keyframes patreon-pulse-dot-anim {
      0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
      }
      70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
      }
      100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
      }
    }

    .patreon-ticker-wrap {
      flex-grow: 1;
      overflow: hidden;
      position: relative;
      display: flex;
      align-items: center;
      height: 100%;
    }

    .patreon-ticker-move {
      display: flex;
      width: max-content;
      animation: patreon-ticker-scroll 35s linear infinite;
    }

    .patreon-ticker-move:hover {
      animation-play-state: paused;
    }

    .patreon-ticker-item {
      flex-shrink: 0;
      padding-right: 64px;
      color: #fbf7ef;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      white-space: nowrap;
      display: flex;
      align-items: center;
    }

    :root[data-theme='light'] .patreon-ticker-item {
      color: #111214;
    }

    @keyframes patreon-ticker-scroll {
      0% {
        transform: translate3d(0, 0, 0);
      }
      100% {
        transform: translate3d(-50%, 0, 0);
      }
    }
  

          @keyframes termsFadeUp {
            0% { opacity: 0; transform: translateY(20px); }
            100% { opacity: 1; }
          }
          @keyframes termsGlowRotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
          }
          
          /* Custom Premium Layout for Terms & Conditions */
          .terms-premium-container {
            width: 100%;
          }
          
          .terms-hero {
            position: relative;
            padding: 60px 40px;
            border-radius: 28px;
            background: linear-gradient(135deg, rgba(143, 124, 255, 0.08), rgba(68, 183, 139, 0.05));
            border: 1px solid rgba(255, 255, 255, 0.05);
            overflow: hidden;
            margin-bottom: 48px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            opacity: 0;
          }
          html[data-page="terms"] #terms .terms-hero,
          html[data-page="policies"] #policies .terms-hero {
            animation: termsFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
          }
          
          .terms-hero::before {
            content: '';
            position: absolute;
            top: -100%;
            left: -100%;
            width: 300%;
            height: 300%;
            background: radial-gradient(circle at center, rgba(143, 124, 255, 0.12) 0%, transparent 40%);
            animation: termsGlowRotate 20s linear infinite;
            z-index: 0;
            pointer-events: none;
          }
          
          .terms-hero-content {
            position: relative;
            z-index: 1;
            text-align: center;
          }
          
          .terms-hero-badge {
            display: inline-block;
            background: rgba(143, 124, 255, 0.15);
            color: #a58cff;
            padding: 6px 16px;
            border-radius: 100px;
            font-size: 0.8rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 24px;
            border: 1px solid rgba(143, 124, 255, 0.25);
          }
          
          .terms-hero-title {
            font-size: 3rem;
            font-weight: 900;
            color: #fff;
            margin-bottom: 20px;
            line-height: 1.1;
          }
          
          .terms-hero-desc {
            font-size: 1.1rem;
            color: #b0b5be;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.7;
          }

          .terms-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
          }
          
          .terms-item {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 16px;
            background: rgba(16, 17, 20, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 24px;
            padding: 24px;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            opacity: 0;
          }
          
          html[data-page="terms"] #terms .terms-item,
          html[data-page="policies"] #policies .terms-item {
            animation: termsFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
          }
          html[data-page="terms"] #terms .terms-item:nth-child(1), html[data-page="policies"] #policies .terms-item:nth-child(1) { animation-delay: 0.15s; }
          html[data-page="terms"] #terms .terms-item:nth-child(2), html[data-page="policies"] #policies .terms-item:nth-child(2) { animation-delay: 0.25s; }
          html[data-page="terms"] #terms .terms-item:nth-child(3), html[data-page="policies"] #policies .terms-item:nth-child(3) { animation-delay: 0.35s; }
          html[data-page="terms"] #terms .terms-item:nth-child(4), html[data-page="policies"] #policies .terms-item:nth-child(4) { animation-delay: 0.45s; }
          html[data-page="terms"] #terms .terms-item:nth-child(5), html[data-page="policies"] #policies .terms-item:nth-child(5) { animation-delay: 0.55s; }
          html[data-page="terms"] #terms .terms-item:nth-child(6), html[data-page="policies"] #policies .terms-item:nth-child(6) { animation-delay: 0.65s; }
          html[data-page="terms"] #terms .terms-item:nth-child(7), html[data-page="policies"] #policies .terms-item:nth-child(7) { animation-delay: 0.75s; }
          html[data-page="terms"] #terms .terms-item:nth-child(8), html[data-page="policies"] #policies .terms-item:nth-child(8) { animation-delay: 0.85s; }
          html[data-page="terms"] #terms .terms-item:nth-child(9), html[data-page="policies"] #policies .terms-item:nth-child(9) { animation-delay: 0.95s; }
          html[data-page="terms"] #terms .terms-item:nth-child(10), html[data-page="policies"] #policies .terms-item:nth-child(10) { animation-delay: 1.05s; }

          .terms-item:hover {
            
            background: rgba(255, 255, 255, 0.02);
            border-color: var(--terms-border-hover, rgba(143, 124, 255, 0.2));
            box-shadow: 0 24px 48px rgba(0,0,0,0.25);
          }
          
          .terms-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--terms-accent, #6a9af0);
            opacity: 0.3;
            transition: opacity 0.3s ease;
          }
          .terms-item:hover::before {
            opacity: 1;
          }
          
          .terms-icon-wrapper {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: radial-gradient(circle at top left, var(--terms-accent-light), transparent);
            border: 1px solid var(--terms-accent-dim);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--terms-accent);
            box-shadow: inset 0 2px 10px rgba(255,255,255,0.05);
            font-weight: 900;
          }

          .terms-content h3 {
            font-size: 1.5rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
          }
          
          .terms-content h3 span {
            font-size: 0.8rem;
            padding: 4px 12px;
            border-radius: 100px;
            background: rgba(255, 255, 255, 0.05);
            color: var(--terms-accent);
            text-transform: uppercase;
            letter-spacing: 0.05em;
          }

          .terms-content p {
            color: #a0a5af;
            line-height: 1.7;
            font-size: 1rem;
          }
          
          @media (max-width: 768px) {
            .terms-hero {
              padding: 40px 24px;
            }
            .terms-hero-title {
              font-size: 2.2rem;
            }
            .terms-list {
              grid-template-columns: 1fr;
            }
            .terms-item {
              padding: 20px;
              gap: 12px;
            }
            .terms-content h3 span {
              display: none;
            }
          }

          /* Light theme adjustments */
          :root[data-theme='light'] .terms-hero {
            background: linear-gradient(135deg, rgba(143, 124, 255, 0.03), rgba(68, 183, 139, 0.03));
            border-color: rgba(143, 124, 255, 0.1);
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
          }
          :root[data-theme='light'] .terms-hero-title {
            color: #1a1a1a;
          }
          :root[data-theme='light'] .terms-hero-desc {
            color: #4b5563;
          }
          :root[data-theme='light'] .terms-item {
            background: #ffffff;
            border-color: rgba(0,0,0,0.06);
            box-shadow: 0 8px 24px rgba(0,0,0,0.03);
          }
          :root[data-theme='light'] .terms-item:hover {
            background: #fafafa;
            border-color: var(--terms-border-hover, rgba(143, 124, 255, 0.3));
            box-shadow: 0 16px 40px rgba(0,0,0,0.08);
          }
          :root[data-theme='light'] .terms-content h3 {
            color: #1a1a1a;
          }
          :root[data-theme='light'] .terms-content p {
            color: #4b5563;
          }
          :root[data-theme='light'] .terms-icon-wrapper {
            background: rgba(0,0,0,0.02);
          }
          :root[data-theme='light'] .terms-content h3 span {
            background: rgba(0,0,0,0.04);
          }

          /* Premium Support Dashboard */
          .support-premium-container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 3rem;
            font-family: 'Inter', sans-serif;
          }

          .support-hero-premium {
            text-align: center;
            padding: 4rem 2rem;
            background: radial-gradient(circle at top, rgba(143, 124, 255, 0.1) 0%, transparent 50%), var(--surface);
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
            position: relative;
            overflow: hidden;
          }

          .support-hero-premium::before {
            content: '';
            position: absolute;
            top: 0; left: 50%;
            transform: translateX(-50%);
            width: 40%;
            height: 1px;
            background: linear-gradient(90deg, transparent, #8f7cff, transparent);
            box-shadow: 0 0 20px #8f7cff;
          }

          .support-hero-premium h2 {
            font-size: 3rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            background: linear-gradient(135deg, #fff, #a0a5af);
            -webkit-background-clip: text;
            color: transparent;
            margin-bottom: 1rem;
          }

          .support-hero-premium p {
            color: var(--text-muted);
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
          }

          .support-alert-premium {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 179, 71, 0.1);
            border: 1px solid rgba(255, 179, 71, 0.3);
            padding: 12px 24px;
            border-radius: 100px;
            margin-top: 2rem;
            color: #ffb347;
            font-weight: 600;
            font-size: 0.95rem;
          }

          .support-alert-pulse {
            width: 8px;
            height: 8px;
            background: #ffb347;
            border-radius: 50%;
            box-shadow: 0 0 10px #ffb347;
            animation: supportPulse 2s infinite;
          }

          @keyframes supportPulse {
            0% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(255, 179, 71, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0); }
          }

          /* Bento Grid */
          .support-bento-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
          }

          .bento-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
          }

          .bento-card:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.1);
            
          }

          .bento-wide { grid-column: span 2; }

          .bento-card h3 {
            font-size: 1.4rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 0.75rem;
          }

          .bento-card p {
            color: #a0a5af;
            font-size: 0.95rem;
            line-height: 1.6;
            flex-grow: 1;
          }

          .bento-link {
            margin-top: 1.5rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--bento-color);
            font-weight: 600;
            text-decoration: none;
            font-size: 0.95rem;
            transition: gap 0.3s ease;
          }

          .bento-link:hover {
            gap: 12px;
          }

          /* FAQ Premium Accordion */
          .support-faq-premium {
            background: transparent;
            border-radius: 0;
            padding: 2rem 0;
            border: none;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 1rem;
          }

          .faq-premium-title {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #fff, #a0a5af);
            -webkit-background-clip: text;
            color: transparent;
            text-align: center;
          }

          .support-faq-premium .faq-item {
            background: rgba(255, 255, 255, 0.02) !important;
            border: 1px solid rgba(255, 255, 255, 0.05) !important;
            border-radius: 16px !important;
            padding: 0 !important;
            margin: 0 !important;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
            overflow: hidden;
          }

          .support-faq-premium .faq-item:hover {
            background: rgba(255, 255, 255, 0.04) !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
            
          }

          .support-faq-premium .faq-toggle {
            width: 100%;
            text-align: left;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            padding: 1.5rem !important;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            color: #fff !important;
            font-size: 1.15rem;
            font-weight: 700;
            transition: color 0.3s ease;
          }

          .support-faq-premium .faq-toggle::before,
          .support-faq-premium .faq-toggle::after {
            display: none !important;
            background: none !important;
          }

          .support-faq-premium .faq-toggle[aria-expanded="true"] {
            background: transparent !important;
            border-bottom: none !important;
            box-shadow: none !important;
          }

          .support-faq-premium .faq-toggle:hover {
            color: #8f7cff !important;
          }

          .support-faq-premium .faq-icon {
            font-size: 1.2rem;
            font-weight: 400;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            color: #a0a5af;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            flex-shrink: 0;
            margin-left: 1rem;
          }

          .support-faq-premium .faq-toggle:hover .faq-icon {
            background: rgba(143, 124, 255, 0.15);
            color: #8f7cff;
          }

          .support-faq-premium .faq-toggle[aria-expanded="true"] .faq-icon {
            transform: rotate(45deg);
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
          }

          .support-faq-premium .faq-answer {
            padding: 0 1.5rem 1.5rem 1.5rem !important;
            color: #a0a5af;
            font-size: 1rem;
            line-height: 1.7;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            animation: faqFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
          }

          .support-faq-premium .faq-answer p {
            margin: 0;
          }

          @keyframes faqFadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; }
          }
          .support-ticket-btn {
            display: inline-flex;
            align-items: center;
            font-size: 1.05rem;
            font-weight: 700;
            padding: 14px 24px;
            background: linear-gradient(135deg, #8f7cff, #6a9af0);
            color: #fff !important;
            border-radius: 12px;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(143, 124, 255, 0.4);
            transition: all 0.3s ease;
            white-space: nowrap;
          }
          .support-ticket-btn:hover {
            
            box-shadow: 0 8px 25px rgba(143, 124, 255, 0.6);
            color: #fff !important;
          }

          .support-preflight-premium {
            background: linear-gradient(135deg, rgba(143, 124, 255, 0.08), rgba(106, 154, 240, 0.05));
            border: 1px solid rgba(143, 124, 255, 0.15);
            border-radius: 16px;
            padding: 1.5rem 2rem;
            display: flex;
            align-items: center;
            gap: 2rem;
            box-sizing: border-box;
          }

          .preflight-title {
            flex: 0 0 180px;
          }

          .preflight-title h3 {
            color: #fff;
            font-size: 1.25rem;
            font-weight: 800;
            margin-bottom: 0.25rem;
          }

          .preflight-title p {
            color: #a0a5af;
            font-size: 0.85rem;
            margin: 0;
          }

          .preflight-steps {
            display: flex;
            flex: 1;
            gap: 1.5rem;
          }

          .preflight-step {
            flex: 1;
            position: relative;
          }

          .preflight-step-num {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(143, 124, 255, 0.15);
            color: #8f7cff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            margin-bottom: 0.5rem;
            border: 1px solid rgba(143, 124, 255, 0.3);
            font-size: 0.9rem;
          }

          .preflight-step strong {
            display: block;
            color: #fff;
            margin-bottom: 0.2rem;
            font-size: 0.95rem;
          }

          .preflight-step span {
            display: block;
            color: #a0a5af;
            font-size: 0.85rem;
            line-height: 1.4;
          }

          .support-premium-container {
            box-sizing: border-box;
          }

          .support-premium-container *, .support-premium-container *::before, .support-premium-container *::after {
            box-sizing: border-box;
          }

          @media (max-width: 1024px) {
            .support-bento-grid {
              grid-template-columns: repeat(2, 1fr);
            }
            .bento-wide { grid-column: span 2; }
          }

          @media (max-width: 768px) {
            .support-bento-grid {
              grid-template-columns: 1fr;
            }
            .bento-wide {
              grid-column: span 1;
            }
            .support-preflight-premium {
              flex-direction: column;
              gap: 1.5rem;
              text-align: center;
            }
            .preflight-title {
              flex: auto;
            }
            .preflight-steps {
              flex-direction: column;
              gap: 1.5rem;
            }
            .preflight-step-num {
              margin: 0 auto 1rem auto;
            }
            .support-hero-premium {
              padding: 3rem 1.5rem;
            }
            .support-hero-premium h2 {
              font-size: 2.2rem;
            }
            .support-faq-premium {
              padding: 2rem 1.5rem;
            }
          }

          /* Light theme for premium support */
          :root[data-theme='light'] .support-hero-premium {
            background: linear-gradient(135deg, rgba(143, 124, 255, 0.05), #ffffff);
            border-color: rgba(0,0,0,0.05);
            box-shadow: 0 4px 20px rgba(0,0,0,0.02);
          }
          :root[data-theme='light'] .support-hero-premium h2 {
            background: linear-gradient(135deg, #1a1a1a, #4b5563);
            -webkit-background-clip: text;
          }
          :root[data-theme='light'] .bento-card {
            background: #ffffff;
            border-color: rgba(0,0,0,0.05);
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
          }
          :root[data-theme='light'] .bento-card:hover {
            border-color: rgba(0,0,0,0.1);
            box-shadow: 0 8px 30px rgba(0,0,0,0.05);
          }
          :root[data-theme='light'] .bento-card h3 {
            color: #1a1a1a;
          }
          :root[data-theme='light'] .support-faq-premium {
            background: #ffffff;
            border-color: rgba(0,0,0,0.05);
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
          }
          :root[data-theme='light'] .faq-premium-title,
          :root[data-theme='light'] .support-faq-premium .faq-toggle {
            color: #1a1a1a;
          }
          :root[data-theme='light'] .support-faq-premium .faq-item {
            border-bottom-color: rgba(0,0,0,0.05);
          }
          :root[data-theme='light'] .support-preflight-premium {
            background: linear-gradient(135deg, rgba(143, 124, 255, 0.05), rgba(106, 154, 240, 0.02));
            border-color: rgba(143, 124, 255, 0.1);
          }
          :root[data-theme='light'] .preflight-title h3,
          :root[data-theme='light'] .preflight-step strong {
            color: #1a1a1a;
          }

          /* --- START OF LIGHT THEME & CONTACT BLOCK FIXES --- */
          .contact-premium-block {
            margin-top: 40px; padding: 40px; border-radius: 20px; 
            background: linear-gradient(135deg, rgba(143, 124, 255, 0.08), rgba(106, 154, 240, 0.05)); 
            border: 1px solid rgba(143, 124, 255, 0.15); display: flex; align-items: center; 
            justify-content: space-between; flex-wrap: wrap; gap: 20px;
          }
          .contact-premium-content { flex: 1; min-width: 250px; }
          .contact-premium-title { color: #fff; font-size: 1.5rem; margin-bottom: 8px; font-weight: 800; }
          .contact-premium-desc { color: #a0a5af; font-size: 0.95rem; line-height: 1.6; margin: 0; }

          :root[data-theme='light'] .contact-premium-block {
            background: linear-gradient(135deg, rgba(143, 124, 255, 0.05), rgba(106, 154, 240, 0.02));
            border-color: rgba(143, 124, 255, 0.1);
          }
          :root[data-theme='light'] .contact-premium-title { color: #1a1a1a !important; }
          :root[data-theme='light'] .contact-premium-desc { color: #4b5563 !important; }
          
          :root[data-theme='light'] .calculator-card-premium select,
          :root[data-theme='light'] .admin-announcement-v2-title,
          :root[data-theme='light'] .staff-join-callout h3,
          :root[data-theme='light'] .podium-name,
          :root[data-theme='light'] .lb-row-name,
          :root[data-theme='light'] .preflight-title p,
          :root[data-theme='light'] .preflight-step span,
          :root[data-theme='light'] .bento-card p,
          :root[data-theme='light'] .support-faq-premium .faq-answer {
            color: #4b5563 !important;
          }

          :root[data-theme='light'] .support-faq-premium .faq-toggle,
          :root[data-theme='light'] .support-faq-premium .faq-icon,
          :root[data-theme='light'] .support-faq-premium .faq-toggle[aria-expanded="true"] .faq-icon {
            color: #1a1a1a !important;
          }

          :root[data-theme='light'] .lb-tab[data-tab="levels"].active,
          :root[data-theme='light'] .lb-tab[data-tab="economy"].active,
          :root[data-theme='light'] .lb-tab[data-tab="rep"].active {
            color: #1a1a1a !important;
          }

          /* --- END OF LIGHT THEME & CONTACT BLOCK FIXES --- */
        






/* Theme Toggle Fix */
html .topbar .topbar-inner .topbar-actions .theme-toggle.custom-theme-toggle,html[data-theme=light] .topbar .topbar-inner .topbar-actions .theme-toggle.custom-theme-toggle{width:60px!important;min-width:60px!important;max-width:60px!important;height:28px!important;min-height:28px!important;max-height:28px!important;border-radius:20px!important;padding:0!important;border:none!important;background:transparent!important;position:relative!important;overflow:hidden!important;box-shadow:inset 0 2px 5px #0006!important;cursor:pointer!important;flex:0 0 60px!important;display:block!important}html .topbar .topbar-inner .topbar-actions .theme-toggle.custom-theme-toggle:hover{background:transparent!important}.custom-theme-toggle .toggle-track{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:20px;background-color:#1a1e23;transition:background-color .5s cubic-bezier(.34,1.56,.64,1);overflow:hidden}html[data-theme=light] .custom-theme-toggle .toggle-track{background-color:#4ca3ff}.custom-theme-toggle .toggle-sun-moon{position:absolute;top:calc(50% - 11px);left:3px;width:22px;height:22px;border-radius:50%;transition:transform .6s cubic-bezier(.34,1.56,.64,1);transform:translate(32px) rotate(360deg);z-index:5}html[data-theme=light] .custom-theme-toggle .toggle-sun-moon{transform:translate(0) rotate(0)}.custom-theme-toggle:active .toggle-sun-moon{transform:translate(16px) scale(.8) rotate(180deg)!important;transition:transform .2s ease}.custom-theme-toggle .knob-body{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:50%;background-color:#fff;overflow:hidden;transition:background-color .5s ease}html[data-theme=light] .custom-theme-toggle .knob-body{background-color:#fde047}.custom-theme-toggle .halo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-color:#ffffff0f;transition:background-color .5s ease,transform .5s cubic-bezier(.34,1.56,.64,1);z-index:-1;pointer-events:none}.custom-theme-toggle .halo-1{width:56px;height:56px}.custom-theme-toggle .halo-2{width:42px;height:42px}.custom-theme-toggle .halo-3{width:28px;height:28px}html[data-theme=light] .custom-theme-toggle .halo{background-color:#fff3}.custom-theme-toggle .crater{position:absolute;background-color:#9ca3af;border-radius:50%;transition:opacity .3s ease,transform .4s cubic-bezier(.34,1.56,.64,1);opacity:1;transform:scale(1)}.custom-theme-toggle .crater-1{width:5px;height:5px;top:4px;left:5px}.custom-theme-toggle .crater-2{width:6px;height:6px;bottom:4px;left:4px}.custom-theme-toggle .crater-3{width:3.5px;height:3.5px;bottom:6px;right:5px}html[data-theme=light] .custom-theme-toggle .crater{opacity:0;transform:scale(.2) rotate(-90deg)}.custom-theme-toggle .toggle-stars{position:absolute;top:0;left:0;right:0;bottom:0;opacity:1;transition:opacity .5s ease,transform .6s cubic-bezier(.34,1.56,.64,1);transform:translateY(0) scale(1)}.custom-theme-toggle .star{position:absolute}.custom-theme-toggle .star-1{width:14px;height:14px;top:7px;left:14px}.custom-theme-toggle .star-2{width:9px;height:9px;top:3px;left:7px}.custom-theme-toggle .star-3{width:8px;height:8px;bottom:2px;left:11px}.custom-theme-toggle .star-dot{position:absolute;background:#fff;border-radius:50%;width:2.5px;height:2.5px;top:13px;left:5px}html[data-theme=light] .custom-theme-toggle .toggle-stars{opacity:0;transform:translateY(30px) scale(.5) rotate(20deg)}.custom-theme-toggle .toggle-clouds{position:absolute;bottom:0;right:0;width:40px;height:28px;opacity:0;transition:opacity .5s ease,transform .6s cubic-bezier(.34,1.56,.64,1);transform:translateY(30px) scale(.8)}html[data-theme=light] .custom-theme-toggle .toggle-clouds{opacity:1;transform:translateY(0) scale(1)}.custom-theme-toggle .cloud-bg,.custom-theme-toggle .cloud-fg{position:absolute;border-radius:50%}.custom-theme-toggle .cloud-bg{background:#cbd5e1}.custom-theme-toggle .cloud-fg{background:#fff}.custom-theme-toggle .cloud-fg.cloud-circle-1{width:18px;height:18px;right:-4px;bottom:-4px}.custom-theme-toggle .cloud-fg.cloud-circle-2{width:16px;height:16px;right:8px;bottom:-2px}.custom-theme-toggle .cloud-fg.cloud-circle-3{width:12px;height:12px;right:20px;bottom:-2px}.custom-theme-toggle .cloud-bg.cloud-circle-1{width:18px;height:18px;right:-1px;bottom:0}.custom-theme-toggle .cloud-bg.cloud-circle-2{width:16px;height:16px;right:10px;bottom:1px}.custom-theme-toggle .cloud-bg.cloud-circle-3{width:12px;height:12px;right:22px;bottom:0}

/* ==========================================================================
   ENHANCED SITE FOOTER (MODERN GLASSMORPHIC REDESIGN)
   ========================================================================== */
.content,
main.content,
.app-shell main {
  padding-bottom: 0 !important;
}

.site-footer {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  max-width: 100vw !important;
  margin-top: 64px !important;
  margin-bottom: 0 !important;
  padding: 48px 0 24px 0 !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  text-align: left !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: radial-gradient(ellipse 65% 45% at 20% 0%, rgba(230, 91, 112, 0.08), transparent 60%),
              radial-gradient(ellipse 50% 35% at 85% 10%, rgba(88, 101, 242, 0.05), transparent 50%),
              linear-gradient(180deg, #100f17 0%, #08070c 100%) !important;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.5) !important;
  z-index: 10 !important;
}

/* Distinct subtle gradient separator line */
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(230, 91, 112, 0.7) 25%, rgba(138, 75, 175, 0.5) 60%, rgba(88, 101, 242, 0.5) 85%, transparent 95%) !important;
  pointer-events: none;
}

.site-footer-inner {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 clamp(20px, 4vw, 48px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* --- Tier 1: Main Brand & Navigation Columns Grid --- */
.footer-main-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text, #f4f0e8);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease;
}

.footer-brand:hover {
  transform: translateY(-1px);
}

.footer-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-mark-bg, #22161b);
  border: 1px solid var(--brand-mark-border, rgba(230, 91, 112, 0.65));
  color: var(--brand-mark-text, #ffb8c2);
  font-weight: 900;
  font-size: 1.05rem;
}

.footer-brand-name {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent, #e65b70) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  margin: 10px 0 14px 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted, #9d988f);
  max-width: 360px;
}

.footer-community-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: #d0cacf;
  margin-bottom: 18px;
}

.footer-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #44b78b;
  box-shadow: 0 0 8px #44b78b;
  display: inline-block;
  flex-shrink: 0;
}

.footer-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  white-space: nowrap;
}

.footer-btn--discord {
  background: #5865F2;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.footer-btn--discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
  color: #ffffff !important;
}

.footer-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #f4f0e8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.footer-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.footer-btn-icon {
  flex-shrink: 0;
}

/* Nav Columns */
.footer-nav-column {
  display: flex;
  flex-direction: column;
}

.footer-column-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8e8896;
  margin: 0 0 16px 0;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list li {
  margin: 0;
  padding: 0;
}

.footer-nav-link {
  display: inline-block;
  font-size: 0.86rem;
  color: #b2adbc;
  text-decoration: none;
  transition: all 0.18s ease;
  line-height: 1.4;
}

.footer-nav-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* --- Tier 2: Refined Fair-Use & Rights Disclaimer --- */
.footer-disclaimer-section {
  padding: 22px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-disclaimer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-disclaimer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #e65b70);
  background: rgba(230, 91, 112, 0.08);
  border: 1px solid rgba(230, 91, 112, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
}

.footer-disclaimer-tag svg {
  flex-shrink: 0;
}

.footer-disclaimer-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.81rem;
  line-height: 1.62;
  color: #8a8594;
}

.footer-disclaimer-content p {
  margin: 0;
}

.footer-disclaimer-sub {
  color: #797482;
}

.footer-contact-link {
  color: var(--accent, #e65b70);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.18s ease;
}

.footer-contact-link:hover {
  color: #ff8597;
}

/* --- Tier 3: Bottom Baseline --- */
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: #85808f;
  flex-wrap: wrap;
}

.footer-copyright {
  font-weight: 500;
}

.footer-legal-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-legal-link {
  color: #9f9aa8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
}

.footer-legal-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-legal-sep {
  opacity: 0.35;
}

.footer-utilities {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.footer-tribute {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: #8e8896;
}

.footer-heart-icon {
  color: var(--accent, #e65b70);
}

.footer-back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #b2adbc;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-back-to-top-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.footer-back-to-top-icon {
  transition: transform 0.2s ease;
}

.footer-back-to-top-btn:hover .footer-back-to-top-icon {
  transform: translateY(-2px);
}

/* --- Light Theme Overrides --- */
:root[data-theme='light'] .site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: radial-gradient(ellipse 65% 45% at 20% 0%, rgba(230, 91, 112, 0.04), transparent 60%),
              radial-gradient(ellipse 50% 35% at 85% 10%, rgba(88, 101, 242, 0.03), transparent 50%),
              linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme='light'] .site-footer::before {
  background: linear-gradient(90deg, transparent 5%, rgba(230, 91, 112, 0.4) 25%, rgba(138, 75, 175, 0.3) 60%, rgba(88, 101, 242, 0.3) 85%, transparent 95%) !important;
}

:root[data-theme='light'] .footer-brand-name {
  background: linear-gradient(135deg, #111827 40%, #e65b70 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

:root[data-theme='light'] .footer-tagline {
  color: #4b5563 !important;
}

:root[data-theme='light'] .footer-community-pill {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}

:root[data-theme='light'] .footer-btn--ghost {
  background: #f8fafc !important;
  color: #1f2937 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

:root[data-theme='light'] .footer-btn--ghost:hover {
  background: #f1f5f9 !important;
  color: #111827 !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

:root[data-theme='light'] .footer-column-title {
  color: #475569 !important;
}

:root[data-theme='light'] .footer-nav-link {
  color: #64748b !important;
}

:root[data-theme='light'] .footer-nav-link:hover {
  color: #0f172a !important;
}

:root[data-theme='light'] .footer-disclaimer-section {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme='light'] .footer-disclaimer-content {
  color: #64748b !important;
}

:root[data-theme='light'] .footer-disclaimer-sub {
  color: #475569 !important;
}

:root[data-theme='light'] .footer-bottom-row {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

:root[data-theme='light'] .footer-legal-link {
  color: #475569 !important;
}

:root[data-theme='light'] .footer-legal-link:hover {
  color: #0f172a !important;
}

:root[data-theme='light'] .footer-tribute {
  color: #64748b !important;
}

:root[data-theme='light'] .footer-back-to-top-btn {
  background: #f8fafc !important;
  color: #475569 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

:root[data-theme='light'] .footer-back-to-top-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 960px) {
  .site-footer {
    padding: 36px 0 20px 0 !important;
    margin-top: 48px !important;
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }

  .footer-brand-column {
    grid-column: 1 / -1;
    max-width: 100%;
    margin-bottom: 4px;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-nav-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-utilities {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .footer-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-utilities {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
