    /* ══════════════════════════════════════════════════
       THRILLED DESIGN SYSTEM v2 — Launch Edition
       Brand: #7c3aed · Instrument Serif + Inter
       ══════════════════════════════════════════════════ */

    html { scroll-behavior: smooth; }

    /* ── Design tokens ── */
    :root {
      --t-primary:   rgba(26,16,37, 0.85);
      --t-secondary: rgba(26,16,37, 0.65);
      --t-tertiary:  rgba(26,16,37, 0.50);
      --t-muted:     rgba(26,16,37, 0.45);
      --brand-500: #a855f7;
      --brand-600: #7c3aed;
      --brand-700: #6d28d9;
      --brand-800: #5b21b6;
      --chart-line:    #7c3aed;
      --chart-line-bg: rgba(124,58,237, 0.06);
      --chart-bar-1:   rgba(167,139,250, 0.6);
      --chart-bar-2:   rgba(52,211,153, 0.6);
    }
    .t-primary   { color: var(--t-primary); }
    .t-secondary { color: var(--t-secondary); }
    .t-tertiary  { color: var(--t-tertiary); }
    .t-muted     { color: var(--t-muted); }
    .hover\:t-primary:hover   { color: var(--t-primary); }
    .hover\:t-secondary:hover { color: var(--t-secondary); }

    /* ── Custom scrollbar ── */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.12); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.25); }

    /* ── Animations ── */
    @keyframes btn-shine {
      0% { left: -100%; }
      100% { left: 200%; }
    }
    @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }
    @keyframes pulse-glow {
      0%, 100% { box-shadow: 0 0 8px rgba(124, 58, 237, 0.15); }
      50% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
    }
    @keyframes fade-in-up {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ════════════════════════════════════════
       BUTTONS — depth, dimension, delight
       ════════════════════════════════════════ */
    .btn-primary {
      position: relative;
      overflow: hidden;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 45%, #6d28d9 100%);
      box-shadow:
        0 1px 2px rgba(91, 33, 182, 0.4),
        0 4px 12px rgba(124, 58, 237, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(109, 40, 217, 0.15);
    }
    .btn-primary::before {
      content: '';
      position: absolute;
      top: 0; left: -100%; width: 60%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
      pointer-events: none;
    }
    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow:
        0 2px 4px rgba(91, 33, 182, 0.3),
        0 8px 24px rgba(124, 58, 237, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
      filter: none;
    }
    .btn-primary:hover::before {
      animation: btn-shine 0.6s ease forwards;
    }
    .btn-primary:active {
      transform: translateY(0) scale(0.98);
      box-shadow:
        0 1px 2px rgba(91, 33, 182, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.15);
      filter: none;
    }

    .btn-secondary {
      position: relative;
      overflow: hidden;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      background: white;
      border: 1.5px solid rgba(124, 58, 237, 0.3);
      color: #7c3aed;
      box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .btn-secondary:hover {
      background: #faf5ff;
      border-color: #7c3aed;
      box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
      transform: translateY(-1px);
    }
    .btn-secondary:active {
      transform: translateY(0) scale(0.98);
      background: #f3e8ff;
    }

    .btn-ghost {
      transition: all 0.15s ease;
      background: transparent;
      border: 1px solid transparent;
      color: var(--t-secondary);
    }
    .btn-ghost:hover {
      background: rgba(124, 58, 237, 0.06);
      color: #7c3aed;
      border-color: rgba(124, 58, 237, 0.1);
    }

    .btn-glow {
      position: relative;
      overflow: hidden;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
      box-shadow:
        0 4px 24px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    .btn-glow:hover {
      box-shadow:
        0 8px 40px rgba(124, 58, 237, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
      transform: translateY(-2px);
      filter: brightness(1.05);
    }
    .btn-glow:active { transform: scale(0.97) translateY(0); }

    .text-gradient {
      background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .glass {
      background: rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* ── Button sizes ── */
    .btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; border-radius: 0.5rem; font-weight: 500; }
    .btn-md { padding: 0.5rem 1rem; font-size: 0.875rem; border-radius: 0.75rem; font-weight: 500; }
    .btn-lg { padding: 0.625rem 1.25rem; font-size: 0.875rem; border-radius: 0.75rem; font-weight: 600; }

    /* ════════════════════════════════════════
       CARDS — layered shadows, subtle life
       ════════════════════════════════════════ */
    .card-auth {
      background: rgba(255,255,255, 0.85);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-radius: 1rem;
      box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 24px rgba(0,0,0,0.06);
      border: 1px solid rgba(229,231,235, 0.5);
      padding: 2rem;
    }
    .card {
      background: #fff;
      border-radius: 1rem;
      border: 1px solid rgba(229,231,235, 0.5);
      box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.02);
      transition: box-shadow 0.25s ease, border-color 0.25s ease;
    }
    .card:hover {
      box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.04);
      border-color: rgba(124, 58, 237, 0.1);
    }

    /* ════════════════════════════════════════
       FORM INPUTS — refined, tactile
       ════════════════════════════════════════ */
    .form-input {
      width: 100%;
      padding: 0.625rem 1rem;
      border: 1.5px solid #e5e7eb;
      border-radius: 0.75rem;
      font-size: 0.875rem;
      background: #fefefe;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
      box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    }
    .form-input:hover {
      border-color: #c4b5fd;
      background: #fff;
    }
    .form-input:focus {
      box-shadow: 0 0 0 3px rgba(124,58,237, 0.1), inset 0 1px 2px rgba(0,0,0,0.02);
      border-color: #a855f7;
      background: #fff;
    }
    .form-input-error { border-color: #fca5a5; }
    .form-error { margin-top: 0.25rem; font-size: 0.75rem; color: #dc2626; }

    /* ════════════════════════════════════════
       ALERTS — friendlier, more presence
       ════════════════════════════════════════ */
    .alert {
      padding: 0.75rem 1rem;
      border-radius: 0.75rem;
      font-size: 0.875rem;
      border: 1px solid;
      animation: fade-in-up 0.3s ease;
    }
    .alert-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
    .alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

    /* ════════════════════════════════════════
       TABLES — polished headers, structure
       ════════════════════════════════════════ */
    .th {
      font-size: 0.6875rem;
      font-weight: 600;
      color: var(--t-muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    /* ════════════════════════════════════════
       FILTER TABS — tighter, more refined
       ════════════════════════════════════════ */
    .filter-tab {
      padding: 0.375rem 1rem;
      border-radius: 9999px;
      font-size: 0.875rem;
      font-weight: 500;
      border: 1px solid;
      transition: all 0.2s ease;
    }
    .filter-tab:hover { transform: translateY(-1px); }

    /* ════════════════════════════════════════
       SECTION DIVIDERS — branded separators
       ════════════════════════════════════════ */
    .divider {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin: 2rem 0;
    }
    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.15), transparent);
    }
    .divider-label {
      font-size: 0.6875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--t-muted);
    }
    .divider-simple {
      height: 1px;
      background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.06), transparent);
      margin: 1.5rem 0;
      border: none;
    }

    /* ════════════════════════════════════════
       SECTION HEADERS — branded accents
       ════════════════════════════════════════ */
    .section-header {
      position: relative;
      padding-bottom: 0.75rem;
      margin-bottom: 1.5rem;
    }
    .section-header::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0;
      width: 2.5rem; height: 3px;
      background: linear-gradient(90deg, #7c3aed, #a855f7);
      border-radius: 2px;
    }
    .section-title {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 0.9375rem;
      font-weight: 600;
      color: var(--t-primary);
    }

    /* ════════════════════════════════════════
       BADGES — status pills with depth
       ════════════════════════════════════════ */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.125rem 0.5rem;
      border-radius: 9999px;
      font-size: 0.6875rem;
      font-weight: 600;
      letter-spacing: 0.02em;
    }
    .badge-pro {
      background: linear-gradient(135deg, #7c3aed, #a855f7);
      color: white;
      box-shadow: 0 1px 4px rgba(124, 58, 237, 0.3);
    }
    .badge-new {
      background: linear-gradient(135deg, #059669, #34d399);
      color: white;
      box-shadow: 0 1px 4px rgba(5, 150, 105, 0.3);
    }
    .badge-ai {
      background: linear-gradient(135deg, #7c3aed, #ec4899);
      color: white;
      box-shadow: 0 1px 4px rgba(124, 58, 237, 0.3);
    }

    /* ════════════════════════════════════════
       SIDEBAR ACTIVE STATE — accent bar
       ════════════════════════════════════════ */
    .nav-active {
      position: relative;
    }
    .nav-active::before {
      content: '';
      position: absolute;
      left: 0; top: 6px; bottom: 6px;
      width: 3px;
      background: linear-gradient(180deg, #7c3aed, #a855f7);
      border-radius: 0 2px 2px 0;
    }

    /* ════════════════════════════════════════
       UTILITY CLASSES
       ════════════════════════════════════════ */
    .animate-in { animation: fade-in-up 0.4s ease both; }
    .shine-on-hover { position: relative; overflow: hidden; }
    .shine-on-hover::after {
      content: '';
      position: absolute;
      top: 0; left: -100%; width: 60%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
      pointer-events: none;
      transition: left 0.5s ease;
    }
    .shine-on-hover:hover::after { left: 200%; }

    /* ════════════════════════════════════════
       EDITOR TABS — segmented control style
       ════════════════════════════════════════ */
    .editor-tab {
      padding: 0.5rem 1rem;
      border-radius: 0.625rem;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--t-secondary);
      background: transparent;
      border: none;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .editor-tab:hover {
      color: var(--t-primary);
      background: rgba(255,255,255,0.5);
    }
    .editor-tab-active {
      background: white !important;
      color: #7c3aed !important;
      box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
      font-weight: 600;
    }
    .editor-tab-disabled {
      opacity: 0.4;
      cursor: default;
    }
    .editor-tab-disabled:hover {
      background: transparent;
      color: var(--t-secondary);
    }
