    :root {
      --bg-black: #000000;
      --bg-card: #12131A;
      --bg-card-hover: #161822;
      --bg-card-sub: #1A1C28;
      --border-subtle: rgba(255, 255, 255, 0.08);
      --border-hover: rgba(255, 255, 255, 0.2);
      --text-white: #FFFFFF;
      --text-muted: #9CA3AF;
      --text-dim: #6B7280;
      --accent-peach: #F5B8A8;
      --accent-lavender: #C5BBE8;
      --accent-ice: #E2E6FF;
      --accent-purple: #7C65E8;
      --accent-blue: #5BB2F6;
      --accent-emerald: #10B981;
      --accent-amber: #F59E0B;
      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --radius-pill: 9999px;
      --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
    }

    body {
      background-color: var(--bg-black);
      color: var(--text-white);
      font-family: var(--font-main);
      overflow-x: hidden;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }
    
    /* Ambient Background Glow (100% Synced with Home Screen) */
    .ambient-glow {
      position: fixed;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100vw;
      height: 100vh;
      background: radial-gradient(circle at 50% 20%, rgba(124, 101, 232, 0.12) 0%, rgba(245, 184, 168, 0.05) 40%, transparent 70%);
      pointer-events: none;
      z-index: 0;
      animation: ambientBreathing 10s ease-in-out infinite alternate;
    }

    @keyframes ambientBreathing {
      0% { opacity: 0.7; transform: translateX(-50%) scale(0.98); }
      50% { opacity: 1; transform: translateX(-50%) scale(1.03); }
      100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    }

    .obsidian-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
      transition: border-color 0.2s ease, transform 0.2s ease;
    }

    .obsidian-card:hover {
      border-color: var(--border-hover);
    }

    .obsidian-panel {
      background: var(--bg-card-sub);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
    }

    /* Floating Pill Navbar (100% Synced with Index) */
    .navbar-container {
      position: fixed;
      top: 24px;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: center;
      z-index: 1000;
      padding: 0 16px;
    }

    .navbar-pill {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(18, 19, 26, 0.85);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-pill);
      padding: 6px 10px;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      text-decoration: none;
      color: var(--text-white);
      font-weight: 700;
      font-size: 15px;
      letter-spacing: -0.02em;
    }

    .nav-brand-icon {
      width: 20px;
      height: 20px;
      background: linear-gradient(135deg, var(--accent-peach), var(--accent-purple));
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 800;
      color: #000;
      transition: transform 0.25s ease;
    }

    .nav-brand:hover .nav-brand-icon {
      transform: rotate(8deg) scale(1.08);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 2px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-link {
      padding: 8px 14px;
      font-size: 13.5px;
      font-weight: 500;
      color: var(--text-muted);
      text-decoration: none;
      border-radius: var(--radius-pill);
      transition: all 0.2s ease;
    }

    .nav-link:hover, .nav-link.active {
      color: var(--text-white);
      background: rgba(255, 255, 255, 0.06);
    }

    .nav-cta {
      background: #FFFFFF;
      color: #000000;
      padding: 8px 18px;
      border-radius: var(--radius-pill);
      font-size: 13.5px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.2s ease;
      margin-left: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .nav-cta:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3);
    }

    .nav-login-link {
      color: var(--text-muted);
      font-size: 13.5px;
      font-weight: 500;
      text-decoration: none;
      padding: 8px 14px;
      border-radius: var(--radius-pill);
      transition: all 0.2s ease;
    }

    .nav-login-link:hover {
      color: var(--text-white);
      background: rgba(255, 255, 255, 0.06);
    }

    /* Navbar User Auth Pill (Last Position) */
    .nav-profile-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(16, 185, 129, 0.12);
      border: 1px solid rgba(16, 185, 129, 0.35);
      color: #FFFFFF;
      padding: 5px 12px 5px 6px;
      border-radius: var(--radius-pill);
      font-size: 13px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.2s ease;
      margin-left: 6px;
    }
    .nav-profile-pill:hover {
      background: rgba(16, 185, 129, 0.22);
      border-color: rgba(16, 185, 129, 0.6);
      box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
      transform: translateY(-1px);
    }
    .nav-profile-avatar {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #10B981;
      color: #000000;
      font-size: 10px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .nav-profile-name {
      font-family: inherit;
    }
    .nav-profile-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #10B981;
    }
    @media (max-width: 1024px) {
      .navbar-container {
        top: 14px !important;
        padding: 0 12px !important;
      }
      .navbar-pill {
        padding: 5px 10px !important;
        gap: 6px !important;
      }
      .nav-links {
        display: none !important;
      }
      main {
        padding-top: 80px !important;
      }
    }
    @media (max-width: 768px) {
      main {
        padding-top: 68px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        gap: 14px !important;
      }
      .obsidian-card {
        padding: 20px 16px !important;
        border-radius: 18px !important;
      }
      #vault-login-screen {
        margin-top: 4px !important;
        margin-bottom: 8px !important;
      }
    }

    /* Live Vault Real-Time Unlock Animations */
    @keyframes vaultGrandEntrance {
      0% {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
        filter: brightness(1.4) blur(4px);
      }
      60% {
        filter: brightness(1.1) blur(0);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: brightness(1) blur(0);
      }
    }
    .vault-grand-entrance {
      animation: vaultGrandEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes celebrationPop {
      0% {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
      }
      50% {
        transform: scale(1.04) translateY(-4px);
      }
      100% {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }
    .celebration-pop {
      animation: celebrationPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    @keyframes goldenLockSpin {
      0% {
        transform: scale(0.85) rotate(-10deg);
        filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
      }
      50% {
        transform: scale(1.15) rotate(10deg);
        filter: drop-shadow(0 0 35px rgba(16, 185, 129, 0.9));
      }
      100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 20px rgba(124, 101, 232, 0.8));
      }
    }
    .golden-lock-anim {
      animation: goldenLockSpin 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
    }

    @keyframes ringPulseGlow {
      0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
      }
      70% {
        box-shadow: 0 0 0 24px rgba(16, 185, 129, 0);
      }
      100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
      }
    }
    .ring-pulse-glow {
      animation: ringPulseGlow 1.8s infinite;
    }

    @keyframes cardCelebrationHighlight {
      0% {
        box-shadow: 0 0 0 rgba(16, 185, 129, 0);
        border-color: rgba(245, 158, 11, 0.4);
      }
      50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.45);
        border-color: rgba(16, 185, 129, 0.8);
      }
      100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
        border-color: rgba(16, 185, 129, 0.6);
      }
    }
    .celebration-highlight {
      animation: cardCelebrationHighlight 1.5s ease-out forwards;
    }

/* Refer & Earn card (compact): code + link on the left, the three counters beside them on a wide screen, a row of three on a phone. */
.ref-compact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ref-compact > * { min-width: 0; }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) {
  .ref-compact { grid-template-columns: minmax(0, 1fr) 190px; }
  .ref-stats { grid-template-columns: minmax(0, 1fr); }
  .ref-stats > div { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 520px) { /* narrow phone: the link on its own line, the two buttons share the next one */
  .ref-linkrow { flex-wrap: wrap; }
  .ref-linkrow > div { flex: 1 1 100%; }
  .ref-linkrow > button { flex: 1 1 0; justify-content: center; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
  .ref-stats > div > span:last-child { white-space: nowrap; font-size: 15px; }
}

/* My Support Tickets: one list for desktop and phone (the old table + a second phone list + a second empty card are gone). */
.tkt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tkt-summary { font-family: ui-monospace, monospace; font-size: 11px; color: #9ca3af; }
.tkt-newbtn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 10px; background: #fff; color: #000; font-size: 12px; font-weight: 700; cursor: pointer; border: 0; }
.tkt-newbtn:hover { background: #e2e8f0; }
.tkt-form { margin-bottom: 12px; padding: 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.tkt-list { display: flex; flex-direction: column; gap: 8px; }
.tkt-note { padding: 18px 8px; text-align: center; font-family: ui-monospace, monospace; font-size: 12px; color: #9ca3af; }
.tkt-row { --tk: #9ca3af; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px 11px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); border-left: 3px solid var(--tk); background: rgba(255,255,255,.025); cursor: pointer; transition: background .15s, border-color .15s; color: inherit; }
.tkt-row:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); border-left-color: var(--tk); }
.tkt-OPEN { --tk: #f87171; } .tkt-IN_PROGRESS { --tk: #facc15; } .tkt-RESOLVED { --tk: #34d399; } .tkt-ESCALATED { --tk: #c084fc; } .tkt-CLOSED { --tk: #6b7280; }
.tkt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tkt-subject { font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: ui-monospace, monospace; font-size: 10.5px; color: #9ca3af; }
.tkt-id { color: #c4b5fd; font-weight: 700; }
.tkt-chip { padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #34d399; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); }
.tkt-badge { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-family: ui-monospace, monospace; font-size: 10.5px; font-weight: 700; color: var(--tk); background: color-mix(in srgb, var(--tk) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tk) 35%, transparent); }
.tkt-go { flex-shrink: 0; font-size: 20px; color: #6b7280; }
.tkt-row:hover .tkt-go { color: #fff; }
.tkt-empty { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.14); }
.tkt-empty.hidden { display: none; }
.tkt-empty > .material-symbols-outlined { font-size: 24px; color: #a78bfa; }
.tkt-empty h5 { margin: 0; font-size: 12px; font-weight: 700; color: #fff; }
.tkt-empty p { margin: 2px 0 0; font-size: 11px; color: #9ca3af; line-height: 1.5; }
@media (max-width: 520px) { .tkt-row { gap: 8px; padding: 10px; } .tkt-badge { font-size: 10px; padding: 2px 8px; } .tkt-go { display: none; } }
