
    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;
    }

    @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;
      backdrop-filter: blur(8px) !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;
    }
  

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

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

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

      /* Adjust content pad */
      html:not([data-page="admin"]) .content {
        padding-top: 0px !important;
      }

      /* Logo branding inside the header on desktop */
      html:not([data-page="admin"]) .desktop-brand {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-right: 16px !important;
        text-decoration: none !important;
        color: var(--text) !important;
      }
      
      html:not([data-page="admin"]) .topbar .topbar-inner .desktop-brand .brand-mark {
        width: 40px !important; /* Enlarged emblem to match other elements perfectly */
        height: 40px !important;
        border-radius: 10px !important;
        background: rgba(239, 68, 68, 0.1) !important;
        border: 2px solid #ef4444 !important;
        color: #ef4444 !important;
        font-weight: 900 !important;
        font-size: 1.4rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25) !important;
        flex-shrink: 0 !important;
      }
      
      html:not([data-page="admin"]) .desktop-brand strong {
        font-size: 0.95rem !important;
        font-weight: 750 !important;
        color: var(--text) !important;
        display: block !important;
        line-height: 1.1 !important;
      }

      html:not([data-page="admin"]) .desktop-brand small {
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        color: var(--accent) !important;
        display: block !important;
        line-height: 1 !important;
      }

      /* FIX: Position topbar relatively to prevent left margin voids entirely */
      html:not([data-page="admin"]) .topbar {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin: 10px 0 6px 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        z-index: 99999 !important;
      }

      /* Style topbar-inner as a premium floating card */
      html:not([data-page="admin"]) .topbar-inner {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 16px !important;
        background: rgba(24, 26, 31, 0.75) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid var(--line) !important;
        border-radius: 16px !important;
        min-height: 64px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.18) !important;
        gap: 12px !important;
        z-index: 99999 !important;
      }

      /* Light theme topbar panel background */
      html[data-theme="light"]:not([data-page="admin"]) .topbar-inner {
        background: rgba(255, 255, 255, 0.75) !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
      }

      /* Horizontal navigation tabs bar with responsive gaps */
      html:not([data-page="admin"]) .topbar-nav-tabs {
        display: flex !important;
        align-items: center !important;
        gap: clamp(6px, 0.8vw, 10px) !important;
        margin-right: auto;
        margin-left: 12px;
      }

      /* Premium Dropdown Menus and micro-animations */
      html:not([data-page="admin"]) .nav-tab-wrapper {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
      }

      html:not([data-page="admin"]) .nav-dropdown-menu {
        position: absolute !important;
        top: calc(100% + 12px) !important;
        left: 50% !important;
        transform: translateX(-50%) scale(0.95) !important;
        background: rgba(15, 17, 22, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        padding: 6px !important;
        min-width: 180px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 9999 !important;
        pointer-events: none !important;
      }

      /* Invisible bridge to cover the 6px gap and keep hover active */
      html:not([data-page="admin"]) .nav-dropdown-menu::before {
        content: '' !important;
        position: absolute !important;
        top: -10px !important;
        left: 0 !important;
        width: 100% !important;
        height: 10px !important;
        background: transparent !important;
      }

      html:not([data-page="admin"]) .nav-tab-wrapper:hover .nav-dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        top: calc(100% + 6px) !important;
        transform: translateX(-50%) scale(1) !important;
        pointer-events: auto !important;
      }

      /* Disable overlapping tooltips on dropdown-enabled tabs to prevent text collisions */
      html:not([data-page="admin"]) .nav-tab-wrapper .nav-tab-tooltip,
      html:not([data-page="admin"]) .nav-tab-wrapper .nav-tab-item .nav-tab-tooltip,
      html:not([data-page="admin"]) .nav-tab-wrapper .nav-tab-item:hover .nav-tab-tooltip,
      html:not([data-page="admin"]) .nav-tab-wrapper:hover .nav-tab-tooltip,
      html:not([data-page="admin"]) .nav-tab-wrapper:hover .nav-tab-item .nav-tab-tooltip,
      html:not([data-page="admin"]) .nav-tab-wrapper:hover .nav-tab-item:hover .nav-tab-tooltip {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
      }

      html:not([data-page="admin"]) .nav-dropdown-item {
        display: flex !important;
        align-items: center !important;
        padding: 8px 14px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 0.82rem !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        transition: all 0.18s ease !important;
        white-space: nowrap !important;
      }

      html:not([data-page="admin"]) .nav-dropdown-item:hover {
        background: rgba(var(--tab-color-rgb), 0.12) !important;
        color: var(--tab-color) !important;
        transform: translateX(2px) !important;
      }

      /* Custom responsive pill search box to prevent navbar overflows */
      html:not([data-page="admin"]) .search {
        flex: 1 1 320px !important;
        max-width: 420px !important;
        min-width: 180px !important;
        width: auto !important;
        height: 40px !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 20px !important;
        border: 1px solid var(--line) !important;
        padding: 0 16px !important;
        display: flex !important;
        align-items: center !important;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.12) !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
      }

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

      html:not([data-page="admin"]) .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:not([data-page="admin"]) .search input {
        height: 100% !important;
        padding: 0 6px !important;
        font-size: 0.88rem !important;
        width: 100% !important;
      }

      /* Hide mobile hamburger on desktop */
      html:not([data-page="admin"]) .hamburger {
        display: none !important;
      }

      /* Clean spacing and alignments for auth/theme actions - Relative Flow Fix */
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important; /* Compact actions spacing */
        margin-left: auto !important; /* Push it to the absolute right side of the flex container! */
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
      }

      /* Theme toggle matching standard heights */
      html:not([data-page="admin"]) .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: 10px !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.2s ease !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
      }
      
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .theme-toggle:hover {
        background: rgba(255,255,255,0.1) !important;
        border-color: var(--text) !important;
      }

      /* Discord Login Button - Cutoff proof with modern Blurple styling */
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-login-button {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 155px !important; /* Safe space to prevent wrapping or cutoffs */
        padding: 0 16px !important;
        height: 40px !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #5865F2 !important;
        color: #fff !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2) !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
        line-height: 1 !important;
        background-image: none !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
      }
      
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-login-button::before,
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-login-button::after,
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-login-button *::before,
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-login-button *::after {
        display: none !important;
        content: none !important;
        background: none !important;
        background-image: none !important;
      }
      
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-login-button:hover {
        background: #4752C4 !important;
        box-shadow: 0 6px 16px rgba(88, 101, 242, 0.35) !important;
        
      }

html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-login-viewport {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  background: transparent !important;
}

      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-login-button:not([hidden]) {
  display: flex !important;
}

html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-login-button[hidden],
html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-auth-menu[hidden],
html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-user-button[hidden] {
  display: none !important;
}

      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-login-text {
        display: inline-block !important;
        width: auto !important;
        max-width: none !important;
        color: #fff !important;
        background: none !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        animation: none !important; /* Disables marquee animation to avoid scrollbar calculation bugs */
        transform: none !important;
      }

      /* Support CTA Button Override */
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .support-link {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        height: 40px !important;
        padding: 0 16px !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(16, 185, 129, 0.1) !important;
        color: #10b981 !important;
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
      }
      
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .support-link:hover {
        background: rgba(16, 185, 129, 0.18) !important;
        border-color: #10b981 !important;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important;
        
      }

      /* Discord User Signed-in Button Override */
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-user-button {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 120px !important;
        padding: 0 16px !important;
        height: 40px !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #5865F2 !important;
        color: #fff !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2) !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
        line-height: 1 !important;
        background-image: none !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
      }
      
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-user-button::before,
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-user-button::after,
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-user-button *::before,
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-user-button *::after {
        display: none !important;
        content: none !important;
        background: none !important;
        background-image: none !important;
      }
      
      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-user-button:hover {
        background: #4752C4 !important;
        box-shadow: 0 6px 16px rgba(88, 101, 242, 0.35) !important;
      }

      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-user-viewport {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        background: transparent !important;
      }

      html:not([data-page="admin"]) .topbar .topbar-inner .topbar-actions .discord-user-text {
        display: inline-block !important;
        width: auto !important;
        max-width: none !important;
        color: #fff !important;
        background: none !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        animation: none !important;
        transform: none !important;
      }
    }

    /* GLOWING NEON GLASS TABS */
    .nav-tab-item {
      transform: translateZ(0);box-sizing: border-box;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: rgba(var(--tab-color-rgb), 0.08);
      border: 1px solid rgba(var(--tab-color-rgb), 0.28);
      color: var(--tab-color);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      user-select: none;
    }

    .nav-tab-item .nav-tab-icon {
      width: 20px;
      height: 20px;
      stroke-width: 2.2px;
      transition: transform 0.24s ease;
    }

    .nav-tab-item:hover {
      background: rgba(var(--tab-color-rgb), 0.18);
      border-color: var(--tab-color);
      
      box-shadow: 0 6px 16px rgba(var(--tab-color-rgb), 0.24);
      color: var(--tab-color);
    }

    .nav-tab-item:hover .nav-tab-icon {
      
    }

    .nav-tab-item:active {
      box-shadow: 0 2px 4px rgba(var(--tab-color-rgb), 0.12);
      background: rgba(var(--tab-color-rgb), 0.24);
    }

    /* Active Underline Glow Indicator */
    .nav-tab-item.active {
      background: rgba(var(--tab-color-rgb), 0.22);
      border-color: var(--tab-color);
      box-shadow: 0 4px 12px rgba(var(--tab-color-rgb), 0.2);
    }

    .nav-tab-item.active::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 25%;
      width: 50%;
      height: 3px;
      border-radius: 2px;
      background: var(--tab-color);
      box-shadow: 0 0 10px var(--tab-color), 0 0 4px var(--tab-color);
      animation: activeTabPulse 1.5s infinite alternate;
    }

    @keyframes activeTabPulse {
      0% {
        opacity: 0.6;
        transform: scaleX(0.85);
      }
      100% {
        opacity: 1;
        transform: scaleX(1);
        box-shadow: 0 0 12px var(--tab-color), 0 0 4px var(--tab-color);
      }
    }

    /* LIGHT THEME GLOW ENHANCEMENTS */
    html[data-theme="light"] .nav-tab-item {
      transform: translateZ(0);box-sizing: border-box;
      background: rgba(var(--tab-color-rgb), 0.05);
      border: 1px solid rgba(var(--tab-color-rgb), 0.22);
      box-shadow: 0 2px 4px rgba(var(--tab-color-rgb), 0.05);
    }
    
    html[data-theme="light"] .nav-tab-item:hover {
      background: rgba(var(--tab-color-rgb), 0.12);
    }

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

    /* 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);
      backdrop-filter: blur(8px);
      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 PREMIUM GLASSMORPHISM REDESIGN
       ========================================================================== */
    
    /* Staff Dashboard Flex/Grid Container */
    .staff-dashboard-cards {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 20px !important;
      margin: 32px 0 !important;
      align-items: stretch !important;
      max-width: 100% !important;
    }
    
    @media (min-width: 1024px) {
      .staff-dashboard-cards {
        grid-template-columns: 2fr 1fr !important;
      }
    }

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

    .staff-overview .staff-overview-card {
      padding: 24px !important;
      min-width: 0 !important;
      height: 100% !important;
    }

    .staff-overview-title {
      font-size: 1.5rem !important;
    }

    .staff-overview-stats strong {
      font-size: 1.25rem !important;
    }

    /* Modern Segmented Tabs */
    .staff-tabs {
      background: rgba(16, 17, 20, 0.6) !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      border: 1px solid rgba(255, 255, 255, 0.05) !important;
      border-radius: 99px !important;
      padding: 6px !important;
      display: inline-flex !important;
      gap: 4px !important;
      margin: 0 0 32px 0 !important;
      box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2) !important;
      width: max-content !important;
      max-width: 100% !important;
    }

    .staff-tab {
      background: transparent !important;
      border: 1px solid transparent !important;
      color: var(--text-muted) !important;
      border-radius: 99px !important;
      padding: 8px 20px !important;
      font-weight: 700 !important;
      font-size: 0.9rem !important;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
      box-shadow: none !important;
    }

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

    .staff-tab.is-active {
      background: rgba(143, 124, 255, 0.25) !important;
      color: #fff !important;
      border-color: rgba(143, 124, 255, 0.4) !important;
      box-shadow: 0 4px 16px rgba(143, 124, 255, 0.2) !important;
    }

    /* Holographic / Glassmorphic Staff Cards */
    #staffGrid {
      gap: 24px !important;
    }

    #staffGrid .staff-card {
      background: rgba(20, 22, 27, 0.4) !important;
      backdrop-filter: blur(16px) !important;
      -webkit-backdrop-filter: blur(16px) !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      border-radius: 20px !important;
      padding: 24px !important;
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
      position: relative !important;
      overflow: hidden !important;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    }

    /* Role-based subtle glows */
    #staffGrid .staff-card-empire, #staffGrid .staff-card-empress {
      border-top: 3px solid #ef4444 !important;
      background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, rgba(20, 22, 27, 0.4) 100%) !important;
    }
    #staffGrid .staff-card-supervisor, #staffGrid .staff-card-deputy {
      border-top: 3px solid #a855f7 !important;
      background: linear-gradient(180deg, rgba(168, 85, 247, 0.05) 0%, rgba(20, 22, 27, 0.4) 100%) !important;
    }
    #staffGrid .staff-card-guardian {
      border-top: 3px solid #06b6d4 !important;
      background: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, rgba(20, 22, 27, 0.4) 100%) !important;
    }
    #staffGrid .staff-card-royal {
      border-top: 3px solid #eab308 !important;
      background: linear-gradient(180deg, rgba(234, 179, 8, 0.05) 0%, rgba(20, 22, 27, 0.4) 100%) !important;
    }

    #staffGrid .staff-card:hover {
      
      background: rgba(30, 33, 40, 0.6) !important;
      border-color: rgba(255, 255, 255, 0.15) !important;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.05) !important;
    }
    
    #staffGrid .staff-card-empire:hover, #staffGrid .staff-card-empress:hover {
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 24px rgba(239, 68, 68, 0.15) !important;
    }
    #staffGrid .staff-card-supervisor:hover, #staffGrid .staff-card-deputy:hover {
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 24px rgba(168, 85, 247, 0.15) !important;
    }
    #staffGrid .staff-card-guardian:hover {
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 24px rgba(6, 182, 212, 0.15) !important;
    }

    /* Redesigned Premium "Join the Team" Banner */
    .staff-join-callout {
      background: linear-gradient(135deg, rgba(16, 17, 20, 0.8), rgba(24, 26, 31, 0.9)) !important;
      backdrop-filter: blur(24px) !important;
      border: 1px solid rgba(143, 124, 255, 0.25) !important;
      border-radius: 16px !important;
      padding: 16px 20px !important;
      text-align: center !important;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
      position: relative !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      margin-top: 0 !important;
    }

    .staff-join-callout::before {
      content: '' !important;
      position: absolute !important;
      top: -50% !important;
      left: -50% !important;
      width: 200% !important;
      height: 200% !important;
      background: radial-gradient(circle at center, rgba(143, 124, 255, 0.08) 0%, transparent 40%) !important;
      pointer-events: none !important;
      animation: calloutPulse 8s infinite alternate !important;
    }

    @keyframes calloutPulse {
      0% { transform: scale(1) translate(0, 0); }
      100% { transform: scale(1.1) translate(2%, 2%); }
    }

    .staff-join-callout .staff-overview-label {
      color: #8f7cff !important;
      font-size: 0.75rem !important;
      font-weight: 850 !important;
      letter-spacing: 0.05em !important;
      text-transform: uppercase !important;
      margin-bottom: 0 !important;
      display: inline-block !important;
      padding: 4px 12px !important;
      background: rgba(143, 124, 255, 0.1) !important;
      border-radius: 100px !important;
    }

    .staff-join-callout h3 {
      font-size: 1.15rem !important;
      font-weight: 800 !important;
      color: #fff !important;
      margin: 0 !important;
      z-index: 1 !important;
    }

    .staff-join-callout p {
      color: var(--text-muted) !important;
      font-size: 0.85rem !important;
      max-width: 600px !important;
      margin: 0 auto !important;
      line-height: 1.5 !important;
      z-index: 1 !important;
    }

    /* Light theme overrides for Staff Page */
    html[data-theme="light"] .staff-tabs {
      background: rgba(0, 0, 0, 0.03) !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
    }
    
    html[data-theme="light"] .staff-tab {
      color: #4b5563 !important;
    }
    
    html[data-theme="light"] .staff-tab:hover {
      color: #111827 !important;
      background: rgba(0, 0, 0, 0.04) !important;
    }

    html[data-theme="light"] .staff-tab.is-active {
      background: linear-gradient(135deg, rgba(143, 124, 255, 0.15), rgba(106, 154, 240, 0.15)) !important;
      color: #4338ca !important;
      border-color: rgba(143, 124, 255, 0.3) !important;
    }
    
    html[data-theme="light"] #staffGrid .staff-card {
      background: rgba(255, 255, 255, 0.8) !important;
      border-color: rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    }

    html[data-theme="light"] .staff-join-callout {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95)) !important;
      border-color: rgba(143, 124, 255, 0.3) !important;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06) !important;
    }

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

    /* STAFF CARD PREMIUM DESIGN INTEGRATION (OPTION 1) */
    .premium-tilt-card {
      transform-style: preserve-3d;
      transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.1s;
      position: relative;
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
      border: 1px solid rgba(255, 255, 255, 0.05) !important;
      box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    }

    .premium-tilt-card:hover {
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px color-mix(in srgb, var(--staff-tone, #4f46e5) 30%, transparent) !important;
      border-color: rgba(255, 255, 255, 0.1) !important;
    }

    .premium-tilt-card .staff-card-head,
    .premium-tilt-card .staff-card-body,
    .premium-tilt-card .staff-overview-hero,
    .premium-tilt-card .staff-overview-stats,
    .premium-tilt-card .staff-overview-footnote {
      transform: translateZ(30px);
    }
    
    html[data-theme="light"] .premium-tilt-card {
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%) !important;
      border: 1px solid rgba(0, 0, 0, 0.05) !important;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    }

    /* CLASSIC ANIMATION FOR OVERVIEW CARD */
    .classic-hover-card {
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    }
    .classic-hover-card:hover {
      
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
      border-color: rgba(255, 255, 255, 0.15) !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);
              backdrop-filter: blur(8px);
              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);
      backdrop-filter: blur(12px);
      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;
          }

          /* Episodes Directory Light Theme Fixes */
          :root[data-theme='light'] .episode-card {
            background: #ffffff;
            border-color: rgba(0,0,0,0.08);
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
          }
          :root[data-theme='light'] .episode-card:hover {
            border-color: rgba(236, 72, 153, 0.4);
            box-shadow: 0 8px 24px rgba(0,0,0,0.06);
            
          }
          :root[data-theme='light'] .episode-title {
            color: #111827;
          }
          :root[data-theme='light'] .episode-synopsis {
            color: #4b5563;
          }
          :root[data-theme='light'] .episode-tab {
            color: #4b5563;
          }
          :root[data-theme='light'] .episode-tab:hover {
            background: rgba(0,0,0,0.05);
            color: #111827;
          }
          :root[data-theme='light'] .episode-tab.is-active {
            background: rgba(236, 72, 153, 0.1);
            color: #db2777;
          }
          :root[data-theme='light'] .episode-number {
            color: #db2777;
          }
          :root[data-theme='light'] .badge-aired {
            background: rgba(16, 185, 129, 0.1);
            color: #059669;
            border-color: rgba(16, 185, 129, 0.2);
          }
          :root[data-theme='light'] .badge-upcoming {
            background: rgba(245, 158, 11, 0.1);
            color: #d97706;
            border-color: rgba(245, 158, 11, 0.2);
          }
          :root[data-theme='light'] .badge-upcoming span {
            background: rgba(217, 119, 6, 0.15) !important;
            color: #b45309 !important;
          }
          /* --- END OF LIGHT THEME & CONTACT BLOCK FIXES --- */
        





