  :root {
    /* ═══════ COLOR TOKENS ═══════ */
    --navy-950: #060a14;
    --navy-900: #0b1120;
    --navy-800: #111a30;
    --navy-700: #172240;
    --navy-600: #1e2d54;
    --navy-500: #283d6e;
    --navy-400: #3a5a99;
    --navy-300: #5e86c4;
    --navy-200: #8aaddc;
    --navy-100: #b8d0ee;
    --navy-50:  #e0ebf7;

    --green-600: #1a9f55;
    --green-500: #2ecc71;
    --green-400: #55d98d;
    --green-300: #82e6aa;
    --green-200: #b0f0cb;
    --green-100: #dcf7e8;
    --green-glow: rgba(46, 204, 113, 0.12);

    --red-600: #c0392b;
    --red-500: #e74c3c;
    --red-400: #ec7063;
    --red-300: #f1948a;
    --red-200: #f5b7b1;
    --red-100: #fadbd8;

    --amber-600: #d68910;
    --amber-500: #f39c12;
    --amber-400: #f5b041;
    --amber-300: #f8c471;
    --amber-200: #fad7a0;
    --amber-100: #fdebd0;

    /* ═══════ SEMANTIC TOKENS ═══════ */
    --color-primary: var(--navy-400);
    --color-primary-hover: var(--navy-300);
    --color-success: var(--green-500);
    --color-error: var(--red-500);
    --color-warning: var(--amber-500);

    --text-primary: #e6ecf5;
    --text-secondary: #8fa4c4;
    --text-muted: #4e6588;
    --text-disabled: #2d3f5e;
    --text-inverse: #0b1120;

    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.12);
    --border-focus: rgba(58, 90, 153, 0.6);
    --border-error: rgba(231, 76, 60, 0.5);

    --surface-0: var(--navy-950);
    --surface-1: rgba(17, 26, 48, 0.6);
    --surface-2: rgba(23, 34, 64, 0.7);
    --surface-3: rgba(30, 45, 84, 0.6);

    /* ═══════ SPACING ═══════ */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* ═══════ RADIUS ═══════ */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* ═══════ SHADOWS ═══════ */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.25);
    --shadow-xl: 0 8px 40px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.35);
    --shadow-glow-blue: 0 0 20px rgba(58, 90, 153, 0.3);
    --shadow-glow-green: 0 0 20px rgba(46, 204, 113, 0.2);

    /* ═══════ TYPOGRAPHY ═══════ */
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    --text-xs: 0.7rem;
    --text-sm: 0.8rem;
    --text-base: 0.95rem;
    --text-md: 1rem;
    --text-lg: 1.15rem;
    --text-xl: 1.35rem;
    --text-2xl: 1.8rem;
    --text-3xl: 2.4rem;
    --text-4xl: 3.2rem;

    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.1em;
    --tracking-widest: 0.15em;

    /* ═══════ TRANSITIONS ═══════ */
    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.2s;
    --duration-slow: 0.35s;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    --noise-opacity: 0.025;
    --ambient-glow-opacity: 0.06;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html {
    background: var(--navy-950);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
  }

  body {
    min-height: 100vh;
    transition: background 0.3s ease;
    background:
      radial-gradient(ellipse 80% 60% at 20% 10%, rgba(30, 45, 84, 0.5) 0%, transparent 50%),
      radial-gradient(ellipse 60% 50% at 80% 80%, rgba(17, 26, 48, 0.6) 0%, transparent 50%),
      var(--navy-950);
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
  }

  .ambient-glow {
    opacity: var(--ambient-glow-opacity);
  }

  /* ═══════════════ LAYOUT ═══════════════ */
  .showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 120px;
  }

  .showcase-header {
    margin-bottom: 80px;
    position: relative;
  }

  .showcase-header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--navy-400);
    border-radius: 1px;
  }

  .showcase-header h1 {
    font-family: var(--font-sans);
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
    background: linear-gradient(135deg, #fff 0%, var(--navy-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
  }

  .theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface-2);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
  }

  .theme-toggle:hover {
    transform: translateY(-1px);
  }

  .theme-toggle:focus-visible {
    outline: 2px solid var(--navy-300);
    outline-offset: 2px;
  }

  .showcase-header p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
  }

  .section {
    margin-bottom: 100px;
  }

  .section-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--navy-300);
    margin-bottom: 8px;
  }

  .section-title {
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
  }

  .section-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 600px;
    margin-top: -28px;
    margin-bottom: 40px;
  }

  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

  /* ═══════════════ CARDS ═══════════════ */
  .card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(20px);
    transition: var(--transition);
  }

  .card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
  }

  .card-elevated {
    background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
    box-shadow: var(--shadow-lg);
  }

  /* ═══════════════ ANIMATIONS ═══════════════ */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .animate-in { animation: fadeUp 0.6s var(--ease-spring) both; }
  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.2s; }
  .delay-3 { animation-delay: 0.3s; }
  .delay-4 { animation-delay: 0.4s; }
  .delay-5 { animation-delay: 0.5s; }

  /* ═══════════════ COLOR SWATCHES ═══════════════ */
  .color-group { margin-bottom: 32px; }
  .color-group-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  .color-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .color-swatch {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .color-swatch-box {
    width: 80px;
    height: 56px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
  }
  .color-swatch-box:hover { transform: scale(1.05); }
  .color-swatch-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
  }
  .color-swatch-hex {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
  }

  /* ═══════════════ TYPOGRAPHY SPECIMENS ═══════════════ */
  .type-row {
    display: flex;
    align-items: baseline;
    gap: 32px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }
  .type-row:last-child { border-bottom: none; }
  .type-meta {
    min-width: 160px;
    flex-shrink: 0;
  }
  .type-meta-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--navy-300);
    font-weight: 600;
  }
  .type-meta-detail {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
  }
  .type-sample { flex: 1; }

  /* ═══════════════ SPACING VIS ═══════════════ */
  .spacing-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
  }
  .spacing-bar {
    height: 24px;
    background: linear-gradient(90deg, var(--navy-400), var(--navy-300));
    border-radius: var(--radius-xs);
    opacity: 0.6;
    transition: var(--transition);
  }
  .spacing-bar:hover { opacity: 1; }
  .spacing-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    min-width: 100px;
    flex-shrink: 0;
  }
  .spacing-value {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
  }

  /* ═══════════════ SHADOW CARDS ═══════════════ */
  .shadow-demo {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    text-align: center;
    transition: 0.3s ease;
  }
  .shadow-demo-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 8px;
  }

  /* ═══════════════ RADIUS DEMO ═══════════════ */
  .radius-demo {
    width: 80px;
    height: 80px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  .radius-demo:hover { border-color: var(--navy-400); }
  .radius-demo-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 4px;
  }
  .radius-demo-value {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-weight: 600;
  }

  /* ═══════════════ FORM ELEMENTS ═══════════════ */
  .form-group { margin-bottom: 20px; }

  .form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
  }

  .form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    transition: var(--transition);
    outline: none;
  }

  .form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(58, 90, 153, 0.2);
    background: var(--surface-2);
  }

  .form-input::placeholder { color: var(--text-muted); }

  .form-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .form-input.error {
    border-color: var(--border-error);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
  }

  .form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
  }

  .form-error {
    font-size: 0.75rem;
    color: var(--red-400);
    margin-top: 4px;
  }

  .form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }

  .form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
  }

  .form-checkbox input {
    accent-color: var(--navy-400);
    width: 16px;
    height: 16px;
  }

  .form-link {
    font-size: 0.85rem;
    color: var(--navy-300);
    text-decoration: none;
    transition: var(--transition);
  }

  .form-link:hover { color: var(--text-primary); }

  /* ═══════ TEXTAREA ═══════ */
  .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    transition: var(--transition);
    outline: none;
    resize: vertical;
    min-height: 100px;
    line-height: var(--leading-normal);
  }

  .form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(58, 90, 153, 0.2);
    background: var(--surface-2);
  }

  .form-textarea::placeholder { color: var(--text-muted); }

  /* ═══════ SELECT ═══════ */
  .form-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    transition: var(--transition);
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234e6588' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
  }

  .form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(58, 90, 153, 0.2);
  }

  /* ═══════ TOGGLE ═══════ */
  .toggle {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
  }

  .toggle input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .toggle-track {
    position: absolute;
    inset: 0;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
  }

  .toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: 0.25s var(--ease-spring);
  }

  .toggle input:checked + .toggle-track {
    background: var(--navy-400);
    border-color: var(--navy-300);
  }

  .toggle input:checked + .toggle-track::after {
    transform: translateX(20px);
    background: #fff;
  }

  .toggle input:disabled + .toggle-track {
    opacity: 0.3;
    cursor: not-allowed;
  }

  /* ═══════ RADIO ═══════ */
  .radio-group { display: flex; flex-direction: column; gap: 12px; }

  .radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: var(--text-base);
    color: var(--text-secondary);
  }

  .radio-item input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
  }

  .radio-item input[type="radio"]:checked {
    border-color: var(--navy-300);
  }

  .radio-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: var(--navy-300);
    border-radius: 50%;
  }

  /* ═══════ SLIDER ═══════ */
  .slider {
    width: 100%;
    appearance: none;
    height: 4px;
    background: var(--surface-3);
    border-radius: var(--radius-full);
    outline: none;
    transition: var(--transition);
  }

  .slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy-300);
    border: 3px solid var(--navy-900);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: var(--transition);
  }

  .slider::-webkit-slider-thumb:hover {
    background: var(--navy-200);
    transform: scale(1.15);
  }

  /* ═══════════════ BUTTONS ═══════════════ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
  }

  .btn:active {
    transform: scale(0.97);
    background-image: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--navy-400), var(--navy-300));
    color: #fff;
    box-shadow: 0 2px 12px rgba(58, 90, 153, 0.3);
  }

  .btn-primary:hover {
    box-shadow: 0 4px 20px rgba(58, 90, 153, 0.45);
    transform: translateY(-1px);
  }

  .btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  .btn-secondary {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-primary);
  }

  .btn-secondary:hover {
    background: var(--surface-3);
    border-color: var(--border-hover);
  }

  .btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
  }

  .btn-ghost:hover {
    color: var(--text-primary);
    background: var(--surface-1);
  }

  .btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red-400);
    border: 1px solid rgba(239, 68, 68, 0.2);
  }

  .btn-danger:hover { background: rgba(239, 68, 68, 0.18); }

  .btn-success {
    background: rgba(46, 204, 113, 0.1);
    color: var(--green-400);
    border: 1px solid rgba(46, 204, 113, 0.2);
  }

  .btn-success:hover { background: rgba(46, 204, 113, 0.18); }

  .btn-outline {
    background: transparent;
    color: var(--navy-300);
    border: 1px solid var(--navy-400);
  }

  .btn-outline:hover {
    background: rgba(58, 90, 153, 0.1);
    border-color: var(--navy-300);
  }

  .btn-sm { padding: 8px 16px; font-size: 0.8rem; }
  .btn-lg { padding: 16px 32px; font-size: 1rem; }
  .btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
  }
  .btn-icon.sm { width: 32px; height: 32px; font-size: 0.85rem; }

  /* ═══════════════ BADGES ═══════════════ */
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .badge-green { background: rgba(34,197,94,0.1); color: var(--green-400); }
  .badge-red { background: rgba(239,68,68,0.1); color: var(--red-400); }
  .badge-amber { background: rgba(245,158,11,0.1); color: var(--amber-500); }
  .badge-blue { background: rgba(122,156,199,0.1); color: var(--navy-300); }
  .badge-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
  }

  .badge-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
  }
  .badge-dot.green::before { background: var(--green-400); }
  .badge-dot.red::before { background: var(--red-400); }
  .badge-dot.amber::before { background: var(--amber-400); }
  .badge-dot.blue::before { background: var(--navy-300); }

  .stat-change {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
  }

  .stat-change.positive { color: var(--green-400); background: rgba(34, 197, 94, 0.1); }
  .stat-change.negative { color: var(--red-400); background: rgba(239, 68, 68, 0.1); }

  /* ═══════════════ ALERTS ═══════════════ */
  .alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: var(--leading-snug);
  }

  .alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

  .alert-info {
    background: rgba(74, 106, 155, 0.1);
    border: 1px solid rgba(74, 106, 155, 0.15);
    color: var(--navy-300);
  }

  .alert-success {
    background: var(--green-glow);
    border: 1px solid rgba(34, 197, 94, 0.15);
    color: var(--green-400);
  }

  .alert-warning {
    background: rgba(243, 156, 18, 0.08);
    border: 1px solid rgba(243, 156, 18, 0.15);
    color: var(--amber-400);
  }

  .alert-error {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.15);
    color: var(--red-400);
  }

  /* ═══════════════ TOOLTIPS ═══════════════ */
  .tooltip-wrap {
    position: relative;
    display: inline-block;
  }

  .tooltip-wrap .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--navy-700);
    color: var(--text-primary);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: 0.2s ease;
    box-shadow: var(--shadow-md);
    z-index: 10;
  }

  .tooltip-wrap .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--navy-700);
  }

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

  /* ═══════════════ TOAST ═══════════════ */
  .toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--navy-700);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    font-size: 0.85rem;
    min-width: 320px;
  }

  .toast-icon { font-size: 1.1rem; flex-shrink: 0; }
  .toast-content { flex: 1; }
  .toast-title { font-weight: 600; margin-bottom: 2px; }
  .toast-message { color: var(--text-secondary); font-size: 0.8rem; }
  .toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: var(--transition);
  }
  .toast-close:hover { color: var(--text-primary); }

  /* ═══════════════ MODAL ═══════════════ */
  .modal-overlay {
    background: rgba(6, 10, 20, 0.7);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
  }

  .modal {
    background: linear-gradient(165deg, var(--navy-800), var(--navy-900));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    position: relative;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .modal-title {
    font-size: var(--text-xl);
    font-weight: 700;
  }

  .modal-close {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .modal-close:hover { color: var(--text-primary); border-color: var(--border-hover); }

  .modal-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: var(--leading-relaxed);
  }

  .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }

  /* ═══════════════ TABS ═══════════════ */
  .tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .tab {
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    margin-bottom: -1px;
  }

  .tab:hover { color: var(--text-secondary); }

  .tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--navy-300);
  }

  .tab-pills {
    display: flex;
    gap: 4px;
    background: var(--surface-1);
    border-radius: var(--radius-sm);
    padding: 3px;
  }

  .tab-pill {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    font-family: var(--font-sans);
  }

  .tab-pill.active {
    background: var(--surface-3);
    color: var(--text-primary);
  }

  /* ═══════════════ NAVIGATION ═══════════════ */
  .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
  }

  .nav-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--navy-400), var(--navy-300));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
  }

  .nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
  }

  .nav-link {
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
  }

  .nav-link:hover { color: var(--text-primary); background: var(--surface-2); }
  .nav-link.active { color: var(--text-primary); background: var(--surface-2); }

  .nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  /* ═══════════════ BREADCRUMBS ═══════════════ */
  .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    list-style: none;
  }

  .breadcrumb-item { color: var(--text-muted); }
  .breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
  }
  .breadcrumb-item a:hover { color: var(--navy-300); }
  .breadcrumb-item.current { color: var(--text-primary); font-weight: 500; }
  .breadcrumb-sep { color: var(--text-muted); font-size: 0.7rem; }

  /* ═══════════════ PAGINATION ═══════════════ */
  .pagination {
    display: flex;
    gap: 4px;
    align-items: center;
    list-style: none;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
  }

  .page-btn:hover { background: var(--surface-2); border-color: var(--border); }
  .page-btn.active {
    background: var(--navy-400);
    color: #fff;
    border-color: var(--navy-400);
  }
  .page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
  .page-dots { color: var(--text-muted); padding: 0 4px; }

  /* ═══════════════ PROGRESS BAR ═══════════════ */
  .progress-bar {
    height: 6px;
    background: var(--surface-3);
    border-radius: var(--radius-full);
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s var(--ease-spring);
  }

  .progress-fill.blue { background: linear-gradient(90deg, var(--navy-400), var(--navy-300)); }
  .progress-fill.green { background: linear-gradient(90deg, var(--green-600), var(--green-400)); }
  .progress-fill.amber { background: linear-gradient(90deg, var(--amber-600), var(--amber-400)); }
  .progress-fill.red { background: linear-gradient(90deg, var(--red-600), var(--red-400)); }

  .progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.8rem;
  }
  .progress-label-text { color: var(--text-secondary); font-weight: 500; }
  .progress-label-value { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; }

  /* ═══════════════ SKELETON ═══════════════ */
  @keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }

  .skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease infinite;
    border-radius: var(--radius-sm);
  }

  .skeleton-circle { border-radius: 50%; }
  .skeleton-text { height: 14px; margin-bottom: 10px; }
  .skeleton-heading { height: 22px; margin-bottom: 14px; width: 60%; }
  .skeleton-avatar { width: 40px; height: 40px; }
  .skeleton-btn { height: 40px; width: 120px; border-radius: var(--radius-md); }

  /* ═══════════════ AVATARS ═══════════════ */
  .avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
    border: 2px solid var(--navy-900);
    color: #fff;
  }

  .avatar-xs { width: 24px; height: 24px; font-size: 0.6rem; }
  .avatar-sm { width: 32px; height: 32px; font-size: 0.7rem; }
  .avatar-md { width: 40px; height: 40px; font-size: 0.85rem; }
  .avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
  .avatar-xl { width: 72px; height: 72px; font-size: 1.4rem; }

  .avatar-stack {
    display: flex;
  }
  .avatar-stack .avatar { margin-left: -10px; }
  .avatar-stack .avatar:first-child { margin-left: 0; }

  .avatar-status {
    position: relative;
  }
  .avatar-status::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--navy-900);
  }
  .avatar-status.online::after { background: var(--green-400); }
  .avatar-status.offline::after { background: var(--text-muted); }
  .avatar-status.busy::after { background: var(--red-400); }

  /* ═══════════════ TAGS / CHIPS ═══════════════ */
  .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
  }

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

  .tag-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    transition: var(--transition);
    padding: 0;
  }

  .tag-remove:hover { color: var(--red-400); }

  /* ═══════════════ DROPDOWN ═══════════════ */
  .dropdown {
    position: relative;
    display: inline-block;
  }

  .dropdown-menu {
    background: var(--navy-800);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 200px;
    box-shadow: var(--shadow-xl);
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
  }

  .dropdown-item:hover {
    background: var(--surface-3);
    color: var(--text-primary);
  }

  .dropdown-item.danger { color: var(--red-400); }
  .dropdown-item.danger:hover { background: rgba(231, 76, 60, 0.1); }

  .dropdown-sep {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
  }

  .dropdown-item-icon { font-size: 0.95rem; width: 20px; text-align: center; }
  .dropdown-item-shortcut {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
  }

  /* ═══════════════ TABLES ═══════════════ */
  .table-card { padding: 0; overflow: hidden; }

  .table-card .chart-header {
    padding: 24px 28px 0;
    margin-bottom: 16px;
  }

  table { width: 100%; border-collapse: collapse; }

  thead th {
    padding: 10px 28px;
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
  }

  tbody td {
    padding: 14px 28px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
  }

  tbody tr:last-child td { border-bottom: none; }
  tbody tr:hover td { background: var(--surface-1); }

  .table-asset { display: flex; align-items: center; gap: 12px; }

  .table-asset-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
  }

  .table-asset-icon.btc { background: linear-gradient(135deg, #f7931a, #e8850f); color: #fff; }
  .table-asset-icon.eth { background: linear-gradient(135deg, #627eea, #4e6bd5); color: #fff; }
  .table-asset-icon.sol { background: linear-gradient(135deg, #9945ff, #14f195); color: #fff; }
  .table-asset-icon.ada { background: linear-gradient(135deg, #0033ad, #0052ff); color: #fff; }
  .table-asset-icon.bnb { background: linear-gradient(135deg, #f3ba2f, #e0a800); color: #fff; }

  .table-asset-name { font-weight: 600; font-size: 0.9rem; }
  .table-asset-ticker { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }

  .mono { font-family: var(--font-mono); font-size: 0.85rem; }
  .text-green { color: var(--green-400); }
  .text-red { color: var(--red-400); }
  .text-muted { color: var(--text-muted); }
  .text-right { text-align: right; }
  .sparkline { display: inline-block; vertical-align: middle; }

  /* ═══════════════ CHART ═══════════════ */
  .chart-card { padding: 28px; }

  .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .chart-title { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
  .chart-subtitle { font-size: var(--text-sm); color: var(--text-muted); }

  .chart-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface-1);
    border-radius: var(--radius-sm);
    padding: 3px;
  }

  .chart-tab {
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    font-family: var(--font-sans);
  }

  .chart-tab.active { background: var(--surface-3); color: var(--text-primary); }

  .chart-area { height: 220px; position: relative; overflow: hidden; }
  .chart-svg { width: 100%; height: 100%; }

  /* ═══════════════ DONUT ═══════════════ */
  .donut-container { display: flex; align-items: center; gap: 32px; padding: 8px 0; }
  .donut-chart { flex-shrink: 0; position: relative; }
  .donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .donut-center-value { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 600; line-height: 1; }
  .donut-center-label { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
  .donut-legend { flex: 1; display: flex; flex-direction: column; gap: 12px; }
  .donut-legend-item { display: flex; align-items: center; justify-content: space-between; }
  .donut-legend-left { display: flex; align-items: center; gap: 8px; }
  .donut-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .donut-legend-name { font-size: 0.85rem; color: var(--text-secondary); }
  .donut-legend-value { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; }

  /* ═══════════════ AUTH FORMS ═══════════════ */
  .auth-container { max-width: 420px; margin: 0 auto; }

  .auth-card {
    background: linear-gradient(165deg, rgba(21, 29, 55, 0.95), rgba(15, 22, 41, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
  }

  .auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--navy-400), transparent);
    opacity: 0.8;
  }

  .auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }

  .auth-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--navy-400), var(--navy-300));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
  }

  .auth-logo-text { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
  .auth-title { font-family: var(--font-sans); font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
  .auth-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 32px; }

  .auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
  }

  .auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  .social-buttons { display: flex; gap: 12px; }

  .btn-social {
    flex: 1;
    padding: 12px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .btn-social:hover { background: var(--surface-2); color: var(--text-primary); border-color: var(--border-hover); }

  .auth-footer { text-align: center; margin-top: 28px; font-size: 0.85rem; color: var(--text-secondary); }

  .password-wrapper { position: relative; }

  .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
  }

  .password-toggle:hover { color: var(--text-secondary); }

  .password-strength { display: flex; gap: 4px; margin-top: 8px; }

  .password-strength-bar {
    flex: 1;
    height: 3px;
    background: var(--surface-2);
    border-radius: 2px;
    transition: var(--transition);
  }

  .password-strength-bar.active { background: var(--navy-400); }
  .password-strength-bar.warn { background: var(--amber-500); }

  /* ═══════════════ STAT CARDS ═══════════════ */
  .stat-card { padding: 24px; position: relative; overflow: hidden; }

  .stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.08;
  }

  .stat-card.green::after { background: var(--green-500); }
  .stat-card.blue::after { background: var(--navy-300); }
  .stat-card.amber::after { background: var(--amber-500); }
  .stat-card.red::after { background: var(--red-500); }

  .stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 4px;
  }

  /* ═══════════════ STEPS ═══════════════ */
  .steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
  .step { display: flex; align-items: center; gap: 8px; }

  .step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
  }

  .step.active .step-dot, .step.done .step-dot {
    background: var(--navy-400);
    border-color: var(--navy-400);
    color: #fff;
  }

  .step-label { font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; }
  .step.active .step-label { color: var(--text-primary); }
  .step-line { width: 40px; height: 2px; background: var(--border); margin: 0 8px; }
  .step-line.done { background: var(--navy-400); }

  .recovery-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(58, 90, 153, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    border: 1px solid rgba(58, 90, 153, 0.2);
  }

  /* ═══════════════ EMPTY STATE ═══════════════ */
  .empty-state {
    text-align: center;
    padding: 60px 40px;
  }

  .empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
  }

  .empty-state-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 8px;
  }

  .empty-state-desc {
    color: var(--text-secondary);
    font-size: var(--text-base);
    max-width: 360px;
    margin: 0 auto 24px;
  }

  /* ═══════════════ KEYBOARD SHORTCUT ═══════════════ */
  kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
  }

  /* ═══════════════ DIVIDER ═══════════════ */
  .divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
  }

  .divider-label {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
  }
  .divider-label::before, .divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* ═══════════════ RESPONSIVE ═══════════════ */
  /* ═══════════════ CARD INTERACTIVE ═══════════════ */
  .card-interactive {
    transition: transform 0.2s var(--ease-default), border-color 0.2s var(--ease-default), box-shadow 0.2s var(--ease-default);
  }
  .card-interactive:hover {
    transform: translateY(-2px);
    border-color: rgba(58, 90, 153, 0.4);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(58, 90, 153, 0.1);
  }

  /* ═══════════════ FOCUS VISIBLE ═══════════════ */
  .btn:focus:not(:focus-visible),
  .form-input:focus:not(:focus-visible),
  .form-textarea:focus:not(:focus-visible),
  .form-select:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
  }
  .btn:focus-visible,
  .form-input:focus-visible,
  .form-textarea:focus-visible,
  .form-select:focus-visible {
    outline: 2px solid var(--navy-300);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(58, 90, 153, 0.15);
  }

  /* ═══════════════ DONUT HOVER ═══════════════ */
  .donut-segment {
    transition: opacity 0.25s ease;
    cursor: pointer;
  }
  .donut-chart svg:hover .donut-segment {
    opacity: 0.4;
  }
  .donut-chart svg:hover .donut-segment:hover {
    opacity: 1;
  }

  /* ═══════════════ TABLE ROW TRANSITIONS ═══════════════ */
  tbody tr {
    transition: background 0.15s ease;
    cursor: pointer;
  }
  tbody tr:active td {
    background: var(--surface-2);
  }

  /* ═══════════════ TABLE SHOWCASE VARIANTS ═══════════════ */
  .table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 28px 16px;
    flex-wrap: wrap;
  }

  .table-toolbar-title {
    color: var(--text-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
  }

  .table-toolbar .btn {
    min-width: auto;
  }

  .table-action-bar {
    margin: 0 28px 16px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, rgba(58, 90, 153, 0.12), rgba(11, 17, 32, 0.4));
  }

  .table-action-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
  }

  .table-action-chip strong {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-mono);
  }

  .table-action-bar .btn {
    margin-left: auto;
  }

  .table-inline-note {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: 10px;
  }

  .table-compact thead th,
  .table-compact tbody td {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.8rem;
  }

  .table-compact thead th {
    padding-left: 18px;
    padding-right: 18px;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }

  .table-compact tbody td {
    padding-left: 18px;
    padding-right: 18px;
  }

  .table-compact .mono {
    font-size: 0.74rem;
  }

  .table-striped tbody tr:nth-child(even) td {
    background: rgba(58, 90, 153, 0.08);
  }

  .table-sticky-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    max-height: 300px;
    overflow-y: auto;
  }

  .table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: blur(10px);
  }

  .table-expandable details {
    display: block;
  }

  .table-expandable summary {
    list-style: none;
    cursor: pointer;
  }

  .table-expandable summary::-webkit-details-marker {
    display: none;
  }

  .table-expand-summary-grid {
    display: grid;
    grid-template-columns: 190px 110px 120px 1fr;
    gap: 8px;
    align-items: center;
    color: var(--text-primary);
    font-size: 0.86rem;
    padding: 4px 0;
  }

  .table-expand-summary-grid .mono {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.78rem;
  }

  .table-expand-sub {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    font-size: 0.77rem;
    transition: var(--transition);
  }

  .table-expandable details:not([open]) .table-expand-sub { display: none; }

  .table-expandable tr:nth-child(even) td {
    border-bottom: 1px solid var(--border);
  }

  .table-selectable .selected td {
    background: rgba(58, 90, 153, 0.18);
  }

  .row-hover-actions {
    width: 240px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    opacity: 0;
    transform: translateX(6px);
    transition: var(--transition);
    pointer-events: none;
  }

  .table-hover tbody tr:hover .row-hover-actions {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .row-hover td {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .table-sort th {
    cursor: pointer;
  }

  .sort-indicator {
    font-size: 0.67rem;
    color: var(--text-muted);
    letter-spacing: 0;
    margin-left: 6px;
  }

  .sort-indicator.active {
    color: var(--navy-300);
  }

  .table-filter-toolbar {
    padding: 0 28px 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
  }

  .table-filter-toolbar .form-input {
    max-width: 280px;
  }

  .table-filter-row {
    background: rgba(11, 17, 32, 0.45);
  }

  .table-filter-row td {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .table-filter-input {
    width: 100%;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-1);
    color: var(--text-primary);
    font-size: 0.75rem;
  }

  .table-filter-input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--surface-2);
  }

  .table-inline-edit .form-input {
    min-width: 120px;
    padding: 8px 10px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
  }

  mark {
    background: rgba(243, 156, 18, 0.2);
    color: var(--text-primary);
    border-radius: 3px;
    padding: 1px 2px;
  }

  .skeleton-row {
    animation: shimmer 1.8s ease infinite;
  }

  .table-empty-wrap {
    text-align: center;
    padding: 48px 24px;
  }

  .table-empty-wrap .btn {
    margin: 0 auto;
  }

  .table-error-wrap {
    padding: 16px 24px 20px;
    margin: 6px 18px 18px;
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: var(--radius-md);
    background: rgba(231, 76, 60, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .table-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(184, 208, 238, 0.25);
    border-top-color: var(--navy-300);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .table-loading-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    padding: 12px 28px;
  }

  .heat-positive,
  .heat-negative {
    position: relative;
    padding-left: 10px;
  }

  .heat-positive {
    background: linear-gradient(90deg, rgba(46, 204, 113, 0.38) 0 var(--heat-level, 0%), var(--surface-1) var(--heat-level, 0%));
    color: var(--green-300);
    font-weight: 600;
  }

  .heat-negative {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.35) 0 var(--heat-level, 0%), var(--surface-1) var(--heat-level, 0%));
    color: var(--red-300);
    font-weight: 600;
  }

  .mini-bar-track {
    width: 140px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 4px;
  }

  .mini-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--navy-400), var(--navy-300));
    width: var(--bar-width);
  }

  .comparison-positive {
    color: var(--green-400);
    font-weight: 600;
  }

  .comparison-negative {
    color: var(--red-400);
    font-weight: 600;
  }

  .status-inline {
    position: relative;
    display: inline-block;
    width: 130px;
  }

  .status-inline > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-primary);
    gap: 8px;
  }

  .status-inline > summary::-webkit-details-marker {
    display: none;
  }

  .status-options {
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-1);
  }

  .status-options div {
    padding: 7px 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
  }

  .status-options div:hover {
    background: var(--surface-2);
    color: var(--text-primary);
  }

  .table-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
  }

  .table-detail-layout .table-inner-wrap {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
  }

  .table-detail-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
    height: 100%;
  }

  .slide-panel-demo {
    border-left: 1px solid var(--border);
    margin: 0 28px 20px 0;
    border-top: none;
    width: 400px;
    transform: translateX(0);
    transition: var(--transition);
  }

  .table-panel-body {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    display: grid;
    gap: 8px;
  }

  .table-panel-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .table-panel-label { color: var(--text-muted); }
  .table-panel-value { color: var(--text-primary); font-family: var(--font-mono); }

  @media (max-width: 1100px) {
    .table-detail-layout { grid-template-columns: 1fr; }
    .slide-panel-demo,
    .table-detail-panel { width: 100%; }
  }


  /* ═══════════════ SECTION DIVIDER ═══════════════ */
  .section-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 80px 0 60px;
  }
  .section-divider::before,
  .section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
  }
  .section-divider-pill {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--navy-300);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 6px 20px;
    white-space: nowrap;
  }

  /* ═══════════════ CHART CROSSHAIR ═══════════════ */
  .chart-area {
    cursor: crosshair;
  }
  .chart-crosshair {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
  }
  .chart-tooltip-bubble {
    position: absolute;
    top: 8px;
    background: var(--navy-700);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-primary);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    transform: translateX(-50%);
  }
  .chart-area:hover .chart-crosshair,
  .chart-area:hover .chart-tooltip-bubble {
    opacity: 1;
  }

  /* ═══════════════ AMBIENT GLOW ═══════════════ */
  .ambient-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, var(--green-500), transparent 70%);
    animation: ambient-breathe 8s ease-in-out infinite;
  }
  @keyframes ambient-breathe {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.05; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.08; }
  }

  /* ═══════════════ ACCORDION ═══════════════ */
  .accordion { display: flex; flex-direction: column; gap: 2px; }
  .accordion-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
  .accordion-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: var(--surface-1); cursor: pointer;
    font-weight: 600; font-size: 0.9rem; color: var(--text-primary);
    transition: var(--transition); border: none; width: 100%;
    font-family: var(--font-sans); text-align: left;
  }
  .accordion-header:hover { background: var(--surface-2); }
  .accordion-chevron {
    transition: transform 0.3s var(--ease-spring); color: var(--text-muted); font-size: 0.8rem;
  }
  .accordion-item.open .accordion-chevron { transform: rotate(180deg); }
  .accordion-body {
    max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-spring);
  }
  .accordion-item.open .accordion-body { max-height: 300px; }
  .accordion-content { padding: 16px 20px; font-size: 0.9rem; color: var(--text-secondary); line-height: var(--leading-relaxed); }

  /* ═══════════════ SIDEBAR ═══════════════ */
  .sidebar-demo {
    width: 260px; background: var(--surface-1); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px 0; display: flex;
    flex-direction: column; height: 520px; overflow: hidden;
  }
  .sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 0 20px; margin-bottom: 24px; }
  .sidebar-logo-icon {
    width: 32px; height: 32px; background: linear-gradient(135deg, var(--navy-400), var(--navy-300));
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; font-size: 0.9rem; color: #fff; font-weight: 700;
  }
  .sidebar-logo-text { font-weight: 700; font-size: 1rem; }
  .sidebar-nav { flex: 1; padding: 0 12px; }
  .sidebar-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-secondary);
    transition: var(--transition); cursor: pointer; margin-bottom: 2px;
  }
  .sidebar-item:hover { background: var(--surface-2); color: var(--text-primary); }
  .sidebar-item.active { background: var(--surface-3); color: var(--text-primary); font-weight: 500; }
  .sidebar-item-icon { width: 20px; text-align: center; font-size: 0.95rem; }
  .sidebar-section-label {
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
    letter-spacing: var(--tracking-widest); text-transform: uppercase;
    color: var(--text-muted); padding: 16px 12px 6px; margin-top: 8px;
  }
  .sidebar-user {
    display: flex; align-items: center; gap: 10px; padding: 16px 20px;
    border-top: 1px solid var(--border); margin-top: auto;
  }
  .sidebar-user-info { flex: 1; }
  .sidebar-user-name { font-size: 0.85rem; font-weight: 600; }
  .sidebar-user-email { font-size: 0.7rem; color: var(--text-muted); }

  /* ═══════════════ COMMAND PALETTE ═══════════════ */
  .cmd-palette {
    width: 100%; max-width: 560px; background: var(--navy-800);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl); overflow: hidden;
  }
  .cmd-input-wrap {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px;
    border-bottom: 1px solid var(--border);
  }
  .cmd-input-icon { color: var(--text-muted); font-size: 1rem; }
  .cmd-input {
    flex: 1; background: none; border: none; color: var(--text-primary);
    font-size: 0.95rem; font-family: var(--font-sans); outline: none;
  }
  .cmd-input::placeholder { color: var(--text-muted); }
  .cmd-results { padding: 8px; max-height: 320px; }
  .cmd-group-label {
    font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
    letter-spacing: var(--tracking-wider); text-transform: uppercase;
    color: var(--text-muted); padding: 8px 10px 4px;
  }
  .cmd-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-secondary);
    cursor: pointer; transition: var(--transition);
  }
  .cmd-item:hover, .cmd-item.highlighted { background: var(--surface-3); color: var(--text-primary); }
  .cmd-item-icon { width: 20px; text-align: center; }
  .cmd-item-shortcut { margin-left: auto; display: flex; gap: 4px; }

  /* ═══════════════ DATE PICKER ═══════════════ */
  .calendar {
    width: 300px; background: var(--navy-800); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-xl);
  }
  .calendar-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
  }
  .calendar-title { font-weight: 600; font-size: 0.95rem; }
  .calendar-nav {
    background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-secondary); width: 28px; height: 28px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; transition: var(--transition);
  }
  .calendar-nav:hover { background: var(--surface-3); }
  .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
  .calendar-dow {
    font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
    color: var(--text-muted); padding: 4px 0; text-transform: uppercase;
  }
  .calendar-day {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--text-secondary);
    cursor: pointer; transition: var(--transition); margin: 0 auto;
  }
  .calendar-day:hover { background: var(--surface-3); }
  .calendar-day.today { color: var(--navy-300); font-weight: 700; border: 1px solid var(--navy-400); }
  .calendar-day.selected { background: var(--navy-400); color: #fff; }
  .calendar-day.in-range { background: rgba(58, 90, 153, 0.15); border-radius: 0; }
  .calendar-day.range-start { background: var(--navy-400); color: #fff; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
  .calendar-day.range-end { background: var(--navy-400); color: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .calendar-day.disabled { color: var(--text-disabled); cursor: not-allowed; pointer-events: none; }

  /* ═══════════════ NOTIFICATION CENTER ═══════════════ */
  .notif-panel {
    width: 360px; background: var(--navy-800); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); overflow: hidden;
  }
  .notif-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
  }
  .notif-title { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
  .notif-badge {
    background: var(--red-500); color: #fff; font-size: 0.65rem; font-weight: 700;
    padding: 2px 7px; border-radius: var(--radius-full); min-width: 20px; text-align: center;
  }
  .notif-mark { font-size: 0.75rem; color: var(--navy-300); cursor: pointer; background: none; border: none; font-family: var(--font-sans); }
  .notif-list { max-height: 320px; }
  .notif-item {
    display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border);
    transition: var(--transition); cursor: pointer; position: relative;
  }
  .notif-item:hover { background: var(--surface-2); }
  .notif-item.unread::before {
    content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; border-radius: 50%; background: var(--navy-300);
  }
  .notif-text { flex: 1; }
  .notif-text-title { font-size: 0.85rem; font-weight: 500; margin-bottom: 2px; }
  .notif-text-desc { font-size: 0.8rem; color: var(--text-secondary); }
  .notif-time { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; }

  /* ═══════════════ SEARCH INPUT ═══════════════ */
  .search-input-wrap {
    position: relative; display: inline-flex; align-items: center; width: 100%;
  }
  .search-input-icon {
    position: absolute; left: 14px; color: var(--text-muted); font-size: 0.9rem;
    pointer-events: none;
  }
  .search-input {
    width: 100%; padding: 12px 40px 12px 40px; background: var(--surface-1);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text-primary); font-family: var(--font-sans); font-size: var(--text-base);
    transition: var(--transition); outline: none;
  }
  .search-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(58, 90, 153, 0.2); }
  .search-input::placeholder { color: var(--text-muted); }
  .search-clear {
    position: absolute; right: 14px; background: none; border: none;
    color: var(--text-muted); cursor: pointer; font-size: 1rem; transition: var(--transition);
  }
  .search-clear:hover { color: var(--text-primary); }
  .search-spinner {
    position: absolute; right: 14px; width: 16px; height: 16px;
    border: 2px solid var(--border); border-top-color: var(--navy-300);
    border-radius: 50%; animation: spin 0.6s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ═══════════════ STEPPER VERTICAL ═══════════════ */
  .stepper-v { display: flex; flex-direction: column; gap: 0; }
  .step-v { display: flex; gap: 16px; }
  .step-v-track { display: flex; flex-direction: column; align-items: center; }
  .step-v-dot {
    width: 28px; height: 28px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 0.75rem;
    font-weight: 600; border: 2px solid var(--border); color: var(--text-muted);
    flex-shrink: 0; z-index: 1; background: var(--navy-900);
  }
  .step-v.done .step-v-dot { background: var(--navy-400); border-color: var(--navy-400); color: #fff; }
  .step-v.active .step-v-dot { background: var(--navy-400); border-color: var(--navy-400); color: #fff; }
  .step-v-line { width: 2px; flex: 1; background: var(--border); min-height: 32px; }
  .step-v.done .step-v-line { background: var(--navy-400); }
  .step-v-content { padding-bottom: 24px; flex: 1; }
  .step-v-label { font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }
  .step-v.active .step-v-label { color: var(--text-primary); }
  .step-v.done .step-v-label { color: var(--text-primary); }
  .step-v-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; line-height: var(--leading-relaxed); }

  /* ═══════════════ OTP INPUT ═══════════════ */
  .otp-group { display: flex; gap: 10px; justify-content: center; }
  .otp-input {
    width: 48px; height: 56px; text-align: center; font-family: var(--font-mono);
    font-size: 1.4rem; font-weight: 600; background: var(--surface-1);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text-primary); outline: none; transition: var(--transition);
  }
  .otp-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(58, 90, 153, 0.2); background: var(--surface-2); }
  .otp-input.filled { border-color: var(--navy-400); }

  /* ═══════════════ HOVER CARD ═══════════════ */
  .hover-card {
    width: 280px; background: var(--navy-800); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-xl);
  }
  .hover-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .hover-card-name { font-weight: 600; font-size: 0.95rem; }
  .hover-card-handle { font-size: 0.8rem; color: var(--text-muted); }
  .hover-card-stats { display: flex; gap: 20px; margin-bottom: 16px; }
  .hover-card-stat-value { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; }
  .hover-card-stat-label { font-size: 0.7rem; color: var(--text-muted); }

  /* ═══════════════ INLINE CONFIRM ═══════════════ */
  .inline-confirm { display: flex; gap: 8px; align-items: center; }
  .inline-confirm-input {
    padding: 10px 14px; background: var(--surface-1); border: 1px solid var(--border);
    border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-mono);
    font-size: 0.85rem; outline: none; transition: var(--transition); width: 200px;
  }
  .inline-confirm-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(58, 90, 153, 0.2); }
  .inline-confirm-input.matched { border-color: var(--red-500); }

  /* ═══════════════ COPY FEEDBACK ═══════════════ */
  .copy-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    background: transparent; border: 1px solid var(--navy-400);
    border-radius: var(--radius-md); color: var(--navy-300);
    font-size: 0.8rem; cursor: pointer; transition: var(--transition);
    font-family: var(--font-sans);
  }
  .copy-btn:hover { border-color: var(--navy-300); color: var(--text-primary); }
  .copy-btn.copied { border-color: var(--green-500); color: var(--green-400); background: rgba(46, 204, 113, 0.08); }

  /* ═══════════════ COMPONENT STATES MATRIX ═══════════════ */
  .states-table-wrap { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
  .states-matrix-table { width: 100%; border-collapse: collapse; min-width: 760px; }
  .states-matrix-table th,
  .states-matrix-table td {
    text-align: center;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.8rem;
  }
  .states-matrix-table thead th {
    background: var(--surface-1);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
  }
  .states-matrix-table thead th:last-child,
  .states-matrix-table td:last-child {
    border-right: none;
  }
  .states-matrix-table th:first-child,
  .states-matrix-table td:first-child {
    text-align: left;
    width: 110px;
  }
  .states-matrix-table tbody tr:last-child td { border-bottom: none; }

  .state-label {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    font-weight: 600;
    text-transform: uppercase;
  }

  .state-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 76px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .state-btn { min-width: 104px; pointer-events: none; }

  .state-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .state-inline-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.28);
    border-top-color: rgba(255,255,255,0.85);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  .state-row.state-row-loading .state-inline-spinner {
    margin-right: 6px;
  }

  .state-input {
    width: 152px;
    pointer-events: none;
    margin: 0;
  }

  .state-input-wrap .state-loader {
    width: 14px;
    height: 14px;
    position: absolute;
    right: 9px;
    border: 2px solid var(--border);
    border-top-color: var(--navy-300);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  .state-badge { min-width: 88px; justify-content: center; }

  .state-card-preview {
    width: 100%;
    max-width: 150px;
    min-height: 44px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-family: var(--font-mono);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .state-row.state-row-hover .state-btn.btn-primary {
    box-shadow: 0 4px 20px rgba(58, 90, 153, 0.45);
    transform: translateY(-1px);
  }
  .state-row.state-row-focus .state-btn {
    box-shadow: 0 0 0 4px rgba(58, 90, 153, 0.15);
    outline: 2px solid var(--navy-300);
    outline-offset: 2px;
  }
  .state-row.state-row-active .state-btn {
    transform: scale(0.97);
  }

  .state-row.state-row-hover .state-input { border-color: var(--border-hover); }
  .state-row.state-row-focus .state-input {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(58, 90, 153, 0.2);
    background: var(--surface-2);
  }
  .state-row.state-row-active .state-input {
    border-color: var(--navy-300);
    box-shadow: 0 0 0 2px rgba(58, 90, 153, 0.18);
    transform: translateY(1px);
  }
  .state-row.state-row-error .state-input {
    border-color: var(--border-error);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
  }
  .state-row.state-row-disabled .state-input,
  .state-row.state-row-disabled .state-badge {
    opacity: 0.45;
    cursor: not-allowed;
  }
  .state-row.state-row-loading .state-input { padding-right: 30px; }

  .state-row.state-row-hover .state-badge {
    background: rgba(58, 90, 153, 0.1);
    border-color: var(--navy-300);
    color: var(--navy-200);
  }
  .state-row.state-row-focus .state-badge {
    border-color: var(--navy-300);
    box-shadow: 0 0 0 2px rgba(58, 90, 153, 0.16);
  }
  .state-row.state-row-active .state-badge {
    transform: scale(0.96);
  }
  .state-row.state-row-error .state-badge { border-color: rgba(231, 76, 60, 0.4); color: var(--red-400); }
  .state-row.state-row-loading .state-badge { min-width: 104px; }

  .state-row.state-row-hover .state-card-preview {
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  .state-row.state-row-focus .state-card-preview {
    border-color: var(--navy-300);
    box-shadow: 0 0 0 2px rgba(58, 90, 153, 0.17);
  }
  .state-row.state-row-active .state-card-preview { transform: scale(0.97); }
  .state-row.state-row-error .state-card-preview { border-color: rgba(231, 76, 60, 0.45); box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.14); }
  .state-row.state-row-disabled .state-card-preview { opacity: 0.45; }
  .state-row.state-row-loading .state-card-preview {
    position: relative;
    overflow: hidden;
  }
  .state-row.state-row-loading .state-card-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.09), transparent);
    animation: shimmer 1.8s ease infinite;
  }

  /* ═══════════════ TOKEN REFERENCE ═══════════════ */
  .token-reference {
    background: linear-gradient(180deg, var(--surface-1), var(--surface-0));
    border: 1px solid var(--border);
  }
  .token-reference-note {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: -8px;
    margin-bottom: 16px;
  }
  .token-categories {
    display: grid;
    gap: 16px;
  }
  .token-category {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    background: rgba(11, 17, 32, 0.35);
  }
  .token-category-title {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    font-weight: 700;
  }
  .token-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr) 130px;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px dashed var(--border);
  }
  .token-row:first-child { border-top: none; }
  .token-name {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-secondary);
    word-break: break-all;
    font-weight: 600;
  }
  .token-value {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    color: var(--text-muted);
  }
  .token-preview {
    height: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    font-size: 0.62rem;
    color: var(--text-muted);
    padding: 2px 8px;
    font-family: var(--font-mono);
  }
  .token-preview-color { width: 82px; height: 30px; }
  .token-preview-font { width: 112px; justify-content: flex-start; }
  .token-preview-spacing { width: var(--space-1); min-height: 14px; border-radius: var(--radius-full); }
  .token-preview-radius { width: 64px; height: 30px; }
  .token-preview-shadow {
    width: 100%;
    min-height: 26px;
    background: var(--surface-2);
    justify-content: flex-start;
    padding-left: 8px;
  }
  .token-preview-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    margin-right: 6px;
    display: inline-block;
  }

  /* ═══════════════ CODE SNIPPET CLIPBOARD ═══════════════ */
  .code-snippet-block {
    position: relative;
    margin: 0;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 14px 14px 14px;
    line-height: var(--leading-normal);
  }
  .code-snippet-block code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: pre;
    overflow-x: auto;
  }
  .code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 4px 8px;
    min-width: 0;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    background: rgba(58, 90, 153, 0.08);
    border: 1px solid var(--navy-300);
    color: var(--navy-300);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
  }
  .code-copy-btn:hover { background: rgba(58, 90, 153, 0.16); }
  .code-copy-btn:focus-visible { outline: 2px solid var(--navy-300); outline-offset: 2px; }
  .code-copy-btn.copied { border-color: var(--green-500); color: var(--green-400); background: rgba(46, 204, 113, 0.08); }

  /* ═══════════════ DRAG & DROP ═══════════════ */
  .drop-zone {
    border: 2px dashed var(--border); border-radius: var(--radius-lg);
    padding: 48px 32px; text-align: center; transition: var(--transition);
    cursor: pointer;
  }
  .drop-zone:hover, .drop-zone.active {
    border-color: var(--navy-400); background: rgba(58, 90, 153, 0.05);
  }
  .drop-zone-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; }
  .drop-zone-text { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 4px; }
  .drop-zone-hint { font-size: 0.75rem; color: var(--text-muted); }

  /* ═══════════════ Z-INDEX SCALE ═══════════════ */
  .zindex-layers { display: flex; flex-direction: column; gap: 4px; }
  .zindex-layer {
    display: flex; align-items: center; gap: 12px; padding: 10px 16px;
    border-radius: var(--radius-sm); font-size: 0.8rem;
  }
  .zindex-bar { height: 24px; border-radius: var(--radius-xs); }
  .zindex-label { font-family: var(--font-mono); font-size: 0.75rem; min-width: 80px; }
  .zindex-value { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

  /* ═══════════════ ANIMATION DEMOS ═══════════════ */
  .anim-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
  .anim-label { min-width: 120px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); }
  .anim-track { flex: 1; height: 32px; background: var(--surface-1); border-radius: var(--radius-sm); position: relative; overflow: hidden; }
  .anim-box {
    width: 32px; height: 32px; background: var(--navy-400); border-radius: var(--radius-sm);
    position: absolute; left: 0; animation-duration: 2s; animation-iteration-count: infinite;
    animation-direction: alternate;
  }
  @keyframes slide-ease { 0% { left: 0; } 100% { left: calc(100% - 32px); } }

  /* ═══════════════ BREAKPOINTS VIS ═══════════════ */
  .bp-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
  .bp-bar-fill { height: 20px; background: linear-gradient(90deg, var(--navy-500), var(--navy-400)); border-radius: var(--radius-xs); }
  .bp-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); min-width: 50px; }
  .bp-value { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

  /* ═══════════════ ICON GRID ═══════════════ */
  .icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 16px; }
  .icon-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 8px; border-radius: var(--radius-md); transition: var(--transition);
  }
  .icon-item:hover { background: var(--surface-2); }
  .icon-item svg { color: var(--text-secondary); }
  .icon-item-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); text-align: center; }

  /* ═══════════════ DO/DONT ═══════════════ */
  .dodont-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .dodont-card {
    padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--border);
  }
  .dodont-card.do { border-top: 3px solid var(--green-500); }
  .dodont-card.dont { border-top: 3px solid var(--red-500); }
  .dodont-label {
    font-size: 0.8rem; font-weight: 700; margin-bottom: 12px;
  }
  .dodont-label.do { color: var(--green-400); }
  .dodont-label.dont { color: var(--red-400); }
  .dodont-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }

  /* ═══════════════ SPACING IN CONTEXT ═══════════════ */
  .spacing-annotated { position: relative; }
  .spacing-marker {
    position: absolute; font-family: var(--font-mono); font-size: 0.6rem;
    color: var(--amber-400); background: rgba(243, 156, 18, 0.15);
    padding: 1px 5px; border-radius: 3px; white-space: nowrap;
    border: 1px dashed var(--amber-400);
  }

  /* ═══════════════ ACCESSIBILITY TABLE ═══════════════ */
  .a11y-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .a11y-card {
    padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
  }
  .a11y-preview { padding: 12px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; }
  .a11y-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
  .a11y-pass { display: inline-flex; padding: 2px 8px; border-radius: 10px; font-size: 0.65rem; font-weight: 700; }
  .a11y-pass.pass { background: rgba(46, 204, 113, 0.15); color: var(--green-400); }
  .a11y-pass.fail { background: rgba(231, 76, 60, 0.15); color: var(--red-400); }

  /* ═══════════════ COMPOSED SCREENS ═══════════════ */
  .browser-frame {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--surface-0);
  }

  .browser-frame-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
  }

  .browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }

  .browser-frame-title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    color: var(--text-muted);
    text-transform: uppercase;
  }

  .browser-frame-content {
    height: 700px;
    overflow: hidden;
    position: relative;
  }

  .screen-layout {
    display: flex;
    height: 100%;
  }

  .screen-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--surface-1);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
  }

  .screen-sidebar .nav-logo {
    padding: 0 16px 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  .screen-sidebar .screen-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0 12px;
    gap: 2px;
  }

  .screen-sidebar .nav-link {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
  }

  .screen-sidebar .screen-divider {
    margin: 16px 12px;
    border-bottom: 1px solid var(--border);
    height: 1px;
    opacity: 0.5;
  }

  .screen-watchlist-head {
    padding: 0 16px;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
  }

  .screen-watchlist {
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .screen-watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
  }

  .screen-watchlist-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .screen-sidebar .sidebar-user {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-left: 0;
  }

  .screen-main {
    flex: 1;
    overflow: hidden;
    padding: 24px;
    background: var(--surface-0);
    display: flex;
    flex-direction: column;
  }

  .screen-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .screen-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .screen-notification-wrap {
    position: relative;
  }

  .screen-notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-500);
  }

  .screen-title {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 700;
  }

  .screen-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-sm);
  }

  .screen-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
  }

  .screen-grid-7-3 {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .screen-candles-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .screen-candlestick-wrap {
    height: 100%;
  }

  .screen-chart-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .screen-chart-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }

  .screen-price-chip {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
  }

  .screen-line-chart {
    height: 300px;
  }

  .screen-chart-tabs {
    margin-top: 12px;
  }

  .screen-line-svg {
    width: 100%;
    height: 100%;
  }

  .screen-tab-panel {
    display: flex;
    align-items: stretch;
    gap: 16px;
  }

  .screen-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
  }

  .screen-order-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 8px 0;
  }

  .screen-orderbook {
    margin-top: 16px;
  }

  .screen-orderbook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.8rem;
  }

  .screen-orderbook-side {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-1);
  }

  .screen-orderbook-head {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
  }

  .screen-orderbook-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 8px 12px;
    font-family: var(--font-mono);
  }

  .orderbook-bid {
    background: linear-gradient(to left, rgba(46, 204, 113, 0.12) var(--depth), transparent var(--depth));
  }

  .orderbook-ask {
    background: linear-gradient(to right, rgba(231, 76, 60, 0.12) var(--depth), transparent var(--depth));
  }

  .screen-orderbook-body {
    max-height: 250px;
    overflow: hidden;
  }

  .screen-portfolio-grid {
    display: grid;
    grid-template-columns: 3fr 1.2fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .screen-metric-dl {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
    column-gap: 20px;
    font-size: 0.82rem;
  }

  .screen-metric-dl dt {
    color: var(--text-muted);
  }

  .screen-metric-dl dd {
    color: var(--text-secondary);
    margin: 0;
    font-family: var(--font-mono);
  }

  .screen-news-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: var(--surface-2);
  }

  .screen-news-item + .screen-news-item {
    margin-top: 10px;
  }

  .screen-news-head {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 4px;
  }

  .screen-news-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.72rem;
  }

  .screen-settings-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .screen-settings-section {
    padding-bottom: 4px;
  }

  .screen-settings-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .screen-settings-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .screen-avatar-wrap {
    position: relative;
    width: fit-content;
    margin-bottom: 16px;
  }

  .screen-avatar-change {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(20%, 20%);
    font-size: 0.72rem;
    padding: 4px 8px;
    min-width: auto;
    border-radius: var(--radius-sm);
  }

  .screen-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
  }

  .screen-toggle-label {
    color: var(--text-secondary);
    font-size: 0.87rem;
  }

  .screen-danger-card {
    border: 1px solid rgba(231, 76, 60, 0.45);
    background: rgba(239, 68, 68, 0.06);
  }

  .screen-danger-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .screen-inline-confirm {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
  }

  @media (max-width: 1180px) {
    .screen-grid-7-3,
    .screen-portfolio-grid,
    .screen-grid-4,
    .screen-candles-grid,
    .screen-chart-rows {
      grid-template-columns: 1fr;
    }
    .screen-chart-rows .screen-form-grid {
      grid-template-columns: 1fr;
    }
    .screen-main { padding: 18px; }
  }

  @media (max-width: 980px) {
    .screen-layout { display: block; }
    .screen-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .screen-main { overflow: auto; }
    .browser-frame-content { height: auto; max-height: 700px; }
  }

  /* ═══════════════ SORT INDICATORS ═══════════════ */
  .sort-arrows { display: inline-flex; flex-direction: column; margin-left: 4px; line-height: 0; vertical-align: middle; }
  .sort-arrow { font-size: 0.55rem; line-height: 0.7; color: var(--text-disabled); }
  .sort-arrow.active { color: var(--navy-300); }

  /* ═══════════════ FOUNDATION ADDITIONS ═══════════════ */
  .section-subtitle {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
  }

  .foundation-grid-wrap { padding: 6px 4px 0; }
  .foundation-grid-stage {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
  }
  .foundation-grid-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 10px;
  }
  .foundation-grid-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-3);
  }
  .foundation-breakpoint {
    margin-bottom: 14px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
  }
  .foundation-grid-preview {
    background: var(--surface-1);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-2);
  }
  .foundation-grid-row {
    display: grid;
    gap: 24px;
    margin-bottom: 10px;
  }
  .foundation-grid-row:last-child { margin-bottom: 0; }
  .foundation-grid-desktop { grid-template-columns: repeat(12, 1fr); }
  .foundation-grid-tablet { grid-template-columns: repeat(6, 1fr); }
  .foundation-grid-mobile { grid-template-columns: repeat(4, 1fr); }
  .foundation-grid-cell {
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, rgba(58, 90, 153, 0.23), rgba(46, 204, 113, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .foundation-gutter-line {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: var(--text-xs);
  }
  .foundation-gutter {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: repeating-linear-gradient(
      90deg,
      var(--amber-500) 0 1px,
      transparent 1px 24px
    );
    opacity: 0.75;
  }
  .foundation-margin {
    margin-left: 20px;
    border-left: 1px dashed var(--navy-500);
    border-right: 1px dashed var(--navy-500);
    height: 22px;
    width: 100%;
    position: relative;
  }
  .foundation-margin::before,
  .foundation-margin::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 3px;
    height: 12px;
    transform: translateY(-50%);
    background: var(--navy-300);
    border-radius: 999px;
  }
  .foundation-margin::before { left: 0; }
  .foundation-margin::after { right: 0; }

  .motion-grid { display: grid; gap: 14px; }
  .motion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .motion-copy { color: var(--text-muted); font-size: 0.8rem; }
  .motion-badge {
    border: 1px solid var(--border);
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    min-width: 130px;
    text-align: center;
  }
  .motion-demo {
    flex: 1;
    display: inline-flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
  }
  .motion-box {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--navy-400);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition-property: transform, background-color, border-color;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--navy-300);
  }
  .motion-100 .motion-box { transition-duration: 100ms; }
  .motion-200 .motion-box { transition-duration: 200ms; }
  .motion-300 .motion-box { transition-duration: 300ms; }
  .motion-500 .motion-box { transition-duration: 500ms; }
  .motion-box:hover {
    transform: translateY(-2px) scale(1.07);
    background: var(--navy-300);
  }

  .theme-tokens {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.76rem;
  }
  .theme-tokens th,
  .theme-tokens td {
    padding: 8px 10px;
    border: 1px solid var(--border);
    text-align: left;
  }
  .theme-tokens th {
    background: var(--surface-2);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }
  .theme-token-name {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.73rem;
  }
  .theme-token-swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--border);
  }
  .theme-token-value {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
  }

  /* ═══════════════ FINANCIAL COMPONENTS ═══════════════ */
  .finance-kpi {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .finance-kpi + .finance-kpi { border-top: 3px solid var(--navy-300); }
  .finance-kpi .symbol {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
  }
  .finance-kpi .symbol strong { color: var(--text-primary); font-size: var(--text-lg); }
  .finance-kpi .kind {
    display: inline-flex;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    width: fit-content;
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
  }
  .finance-kpi .price {
    font-family: var(--font-mono);
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .finance-kpi .delta {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .finance-kpi .delta.positive { color: var(--green-400); }
  .finance-kpi .delta.negative { color: var(--red-400); }
  .finance-sparkline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-secondary);
  }
  .finance-sparkline svg { width: 80px; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
  .finance-sparkline-path.positive path,
  .finance-sparkline-path.positive polyline,
  .finance-sparkline-path.positive line { stroke: var(--green-400); fill: none; }
  .finance-sparkline-path.negative path,
  .finance-sparkline-path.negative polyline,
  .finance-sparkline-path.negative line { stroke: var(--red-400); fill: none; }
  .finance-sparkline-path.flat path,
  .finance-sparkline-path.flat polyline,
  .finance-sparkline-path.flat line { stroke: var(--text-muted); fill: none; }

  .range-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 3px;
    background: var(--surface-1);
  }
  .range-pill {
    min-width: 44px;
    height: 30px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
  }
  .range-pill.active {
    background: var(--surface-3);
    color: var(--text-primary);
  }
  .range-pill.wide {
    min-width: 58px;
  }

  .pnl-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .pnl-head {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .pnl-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; }
  .pnl-toggle button {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
  }
  .pnl-toggle button.active { background: var(--surface-3); color: var(--text-primary); }
  .pnl-value {
    font-family: var(--font-mono);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1;
  }
  .pnl-value.positive { color: var(--green-400); }
  .pnl-value.negative { color: var(--red-400); }
  .pnl-meta {
    display: inline-flex;
    gap: 12px;
    font-size: 0.8rem;
    align-items: center;
    font-family: var(--font-mono);
  }
  .pnl-arrow { font-size: 0.9rem; }
  .pnl-summary {
    margin-top: 4px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    background: var(--surface-1);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .pnl-summary strong { color: var(--text-primary); }

  .risk-ruler {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .risk-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    margin-top: 6px;
  }
  .risk-band span:nth-child(1) { background: var(--green-500); }
  .risk-band span:nth-child(2) { background: var(--amber-500); }
  .risk-band span:nth-child(3) { background: var(--red-500); }
  .risk-band span:nth-child(4) { background: #7a0000; }
  .risk-needle {
    margin-top: 8px;
    position: relative;
    height: 12px;
  }
  .risk-needle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: var(--risk-position);
    width: 3px;
    height: 18px;
    background: var(--text-primary);
    transform: translateX(-50%);
    border-radius: 2px;
  }
  .risk-label-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
  }

  .orderbook-demo {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    padding: 14px;
    overflow: hidden;
  }
  .orderbook-head {
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    gap: 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: var(--tracking-wide);
    text-align: center;
  }
  .orderbook-head .center {
    font-size: 0.65rem;
  }
  .orderbook-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .orderbook-side { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
  .orderbook-side-head {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-3);
  }
  .orderbook-row {
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    padding: 7px 10px;
    color: var(--text-secondary);
    overflow: hidden;
    background: transparent;
  }
  .orderbook-side.buy .orderbook-row { text-align: left; }
  .orderbook-side.sell .orderbook-row { text-align: right; }
  .orderbook-side .depth {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(
      to right,
      rgba(46, 204, 113, 0.18),
      rgba(46, 204, 113, 0)
    );
    width: var(--depth);
    opacity: 0.55;
    pointer-events: none;
  }
  .orderbook-side.sell .depth {
    left: auto;
    right: 0;
    background: linear-gradient(
      to left,
      rgba(231, 76, 60, 0.18),
      rgba(231, 76, 60, 0)
    );
  }
  .orderbook-row .col { position: relative; z-index: 1; }
  .orderbook-spread {
    text-align: center;
    margin: 12px auto;
    width: 110px;
    font-size: 0.72rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    background: var(--surface-1);
    padding: 4px 8px;
  }

  .candle-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  }
  .candle-card svg {
    width: 100%;
    height: 240px;
    display: block;
    background: var(--surface-0);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
  }

  /* ═══════════════ PATTERN ADDITIONS ═══════════════ */
  .price-flash-up {
    animation: priceFlashUp 800ms var(--ease-spring);
  }
  .price-flash-down {
    animation: priceFlashDown 800ms var(--ease-spring);
  }
  @keyframes priceFlashUp {
    0% { background: rgba(46, 204, 113, 0.38); color: #fff; }
    100% { background: transparent; color: inherit; }
  }
  @keyframes priceFlashDown {
    0% { background: rgba(231, 76, 60, 0.38); color: #fff; }
    100% { background: transparent; color: inherit; }
  }

  .realtime-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
  }
  .realtime-price-cell {
    flex: 1;
    min-width: 260px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    background: var(--surface-1);
  }
  .realtime-price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
  }
  .realtime-price-value {
    font-size: 1.4rem;
    font-weight: 600;
  }

  .bulk-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 90;
    display: flex;
    justify-content: center;
    pointer-events: none;
  }
  .bulk-actions-inner {
    pointer-events: auto;
    width: min(920px, calc(100% - 36px));
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .bulk-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  .bulk-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: var(--radius-full);
    background: var(--navy-400);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-mono);
  }
  .bulk-actions .btn + .btn { margin-left: 6px; }
  .bulk-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
  }

  .filter-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 560px;
  }
  .filter-search {
    padding: 14px 14px 0;
  }
  .filter-search .form-input { margin-top: 10px; }
  .filter-group-list { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
  .filter-group {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  .filter-summary {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
  }
  .filter-group summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.83rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
  }
  .filter-group summary::-webkit-details-marker { display: none; }
  .filter-option-list {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--surface-1);
  }
  .filter-option { display: flex; align-items: center; justify-content: space-between; color: var(--text-secondary); font-size: 0.78rem; }
  .filter-option label { display: flex; align-items: center; gap: 8px; }
  .filter-option input { accent-color: var(--navy-400); }
  .filter-chips-wrap {
    border-top: 1px solid var(--border);
    padding: 12px 14px;
    margin-top: auto;
  }
  .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface-3);
    padding: 4px 10px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-right: 6px;
    margin-bottom: 6px;
  }
  .filter-chip button {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
  }
  .filter-clear-link {
    color: var(--navy-300);
    font-size: 0.74rem;
    text-decoration: none;
  }
  .filter-summary-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .onboarding-steps-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .onboard-step {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface-2);
    padding: 14px;
    overflow: hidden;
    min-height: 230px;
  }
  .onboard-stage {
    position: absolute;
    inset: 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(5, 12, 22, 0.45);
    background: rgba(6, 10, 20, 0.55);
    padding: 18px;
  }
  .onboard-stage .target {
    margin: 22px auto 18px;
    width: 140px;
    text-align: center;
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    border: 1px solid var(--border);
    padding: 10px;
    font-size: 0.8rem;
  }
  .spotlight-wrap {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .spotlight-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(180px 120px at 50% 40%, rgba(6, 10, 20, 0) 58%, rgba(6, 10, 20, 0.76) 58.1%);
    pointer-events: none;
  }
  .onboard-tooltip {
    position: relative;
    z-index: 2;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    max-width: 180px;
    font-size: 0.74rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
  }
  .onboard-tooltip .title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
  }
  .onboard-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.66rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-family: var(--font-mono);
  }
  .onboard-controls {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
  }
  .onboard-controls .btn { min-width: 52px; }
  .onboard-controls .btn:hover { transform: none; }

  .optimistic-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--surface-2);
  }
  .optimistic-state {
    min-height: 62px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    margin-top: 12px;
    padding: 10px;
    font-size: 0.84rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: var(--surface-1);
  }
  .optimistic-state.success { color: var(--green-400); border-color: rgba(46, 204, 113, 0.45); }
  .optimistic-state.error { color: var(--red-400); border-color: rgba(231, 76, 60, 0.42); }
  .optimistic-state.processing { color: var(--text-secondary); }

  .optimistic-state .state-title { font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-primary); margin-bottom: 4px; }

  /* ═══════════════ DOCUMENTATION ADDITIONS ═══════════════ */
  .format-table {
    width: 100%;
    border-collapse: collapse;
  }
  .format-table th,
  .format-table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
    font-size: 0.78rem;
  }
  .format-table th {
    background: var(--surface-1);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
  }
  .format-good {
    color: var(--green-400);
    font-weight: 600;
  }
  .format-bad {
    color: var(--red-400);
    font-weight: 600;
  }
  .format-monofont {
    font-family: var(--font-mono);
  }

  .surface-diagram {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .surface-card-0,
  .surface-card-1,
  .surface-card-2,
  .surface-card-3 {
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 0.78rem;
  }
  .surface-card-0 { background: var(--surface-0); }
  .surface-card-1 { background: var(--surface-1); margin-left: 18px; }
  .surface-card-2 { background: var(--surface-2); margin-left: 36px; }
  .surface-card-3 { background: var(--surface-3); margin-left: 54px; }
  .surface-heading {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    font-family: var(--font-mono);
  }
  .surface-name {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2px;
  }
  .surface-desc {
    color: var(--text-secondary);
    font-size: 0.74rem;
    line-height: 1.45;
  }
  .surface-levels {
    margin-top: 10px;
    display: grid;
    gap: 8px;
  }
  .surface-level {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
  }
  .surface-level .name { color: var(--text-secondary); }
  .surface-level .hint { color: var(--text-muted); font-family: var(--font-mono); }

  @media (max-width: 1024px) {
    .onboarding-steps-wrap { grid-template-columns: 1fr; }
    .bulk-actions-inner { width: calc(100% - 20px); }
  }

  @media (max-width: 768px) {
    .showcase { padding: 32px 20px 80px; }
    .showcase-header h1 { font-size: 2.2rem; }
    .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
    .color-row { gap: 6px; }
    .color-swatch { width: 60px; }
    .color-swatch-box { width: 60px; height: 44px; }
  }

  /* ═══════════════════════════════════════ */
  /* NEW COMPONENTS                          */
  /* ═══════════════════════════════════════ */

  /* — Breadcrumbs — */
  .breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .breadcrumb-item { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; transition: color var(--duration-fast) var(--ease-default); }
  a.breadcrumb-item:hover { color: var(--text-primary); }
  .breadcrumb-item.current { color: var(--text-primary); font-weight: 600; cursor: default; }
  .breadcrumb-sep { color: var(--text-muted); font-size: 0.75rem; user-select: none; }
  .breadcrumb-ellipsis { color: var(--text-muted); cursor: pointer; padding: 0 4px; border-radius: var(--radius-xs); }
  .breadcrumb-ellipsis:hover { background: var(--surface-2); color: var(--text-secondary); }

  /* — Segmented Control — */
  .segmented-control { display: inline-flex; background: var(--surface-2); border-radius: var(--radius-md); padding: 3px; gap: 2px; border: 1px solid var(--border); }
  .seg-item { padding: 8px 16px; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); background: transparent; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--duration-fast) var(--ease-default); white-space: nowrap; font-family: var(--font-sans); }
  .seg-item:hover { color: var(--text-primary); background: var(--surface-3); }
  .seg-item.active { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
  .seg-buy-sell .seg-buy.active { background: var(--green-500); color: #fff; }
  .seg-buy-sell .seg-sell.active { background: var(--red-500); color: #fff; }
  .seg-sm .seg-item { padding: 5px 12px; font-size: 0.75rem; }

  /* — Tag Input — */
  .tag-input-wrap { display: flex; flex-direction: column; gap: 6px; }
  .tag-input-container { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); min-height: 42px; align-items: center; transition: border-color var(--duration-fast); }
  .tag-input-container:focus-within { border-color: var(--border-focus); }
  .tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-xs); font-size: 0.8rem; color: var(--text-secondary); font-family: var(--font-mono); }
  .tag-chip-green { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.25); color: var(--green-500); }
  .tag-chip-red { background: rgba(231,76,60,0.12); border-color: rgba(231,76,60,0.25); color: var(--red-500); }
  .tag-chip-amber { background: rgba(243,156,18,0.12); border-color: rgba(243,156,18,0.25); color: var(--amber-500); }
  .tag-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; padding: 0 2px; line-height: 1; }
  .tag-remove:hover { color: var(--red-500); }
  .tag-input-field { background: none; border: none; outline: none; color: var(--text-primary); font-size: 0.85rem; flex: 1; min-width: 80px; font-family: var(--font-sans); }
  .tag-input-field::placeholder { color: var(--text-muted); }

  /* — Timeline — */
  .timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 24px; }
  .timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
  .timeline-item { display: flex; gap: 16px; padding: 12px 0; position: relative; }
  .timeline-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--border); position: absolute; left: -24px; top: 16px; z-index: 1; flex-shrink: 0; }
  .timeline-dot-green { background: var(--green-500); border-color: var(--green-600); }
  .timeline-dot-red { background: var(--red-500); border-color: var(--red-600); }
  .timeline-dot-amber { background: var(--amber-500); border-color: var(--amber-600); }
  .timeline-dot-blue { background: var(--navy-400); border-color: var(--navy-500); }
  .timeline-content { flex: 1; }
  .timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
  .timeline-title { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
  .timeline-time { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
  .timeline-body { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

  /* — Activity Feed — */
  .activity-feed { display: flex; flex-direction: column; gap: 0; }
  .activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .activity-item:last-child { border-bottom: none; }
  .activity-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
  .activity-content { flex: 1; min-width: 0; }
  .activity-text { font-size: 0.85rem; color: var(--text-primary); line-height: 1.5; }
  .activity-text strong { font-weight: 600; }
  .activity-meta { font-size: 0.73rem; color: var(--text-muted); margin-top: 2px; }

  /* — Snackbar — */
  .snackbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-2); }
  .snackbar-content { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 0.85rem; color: var(--text-primary); }
  .snackbar-icon { font-size: 1rem; flex-shrink: 0; }
  .snackbar-action { background: none; border: none; color: var(--navy-300); font-size: 0.82rem; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-xs); white-space: nowrap; font-family: var(--font-sans); transition: background var(--duration-fast); }
  .snackbar-action:hover { background: var(--surface-3); }
  .snackbar-close { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 2px 6px; line-height: 1; border-radius: var(--radius-xs); }
  .snackbar-close:hover { color: var(--text-secondary); background: var(--surface-3); }
  .snackbar-info { border-left: 3px solid var(--navy-400); }
  .snackbar-success { border-left: 3px solid var(--green-500); }
  .snackbar-warning { border-left: 3px solid var(--amber-500); }
  .snackbar-error { border-left: 3px solid var(--red-500); }
  .snackbar-undo { border-left: 3px solid var(--text-muted); }
  .snackbar-undo-btn { color: var(--amber-500); }
  .snackbar-timer { width: 100px; height: 3px; background: var(--surface-3); border-radius: 2px; overflow: hidden; position: relative; }
  .snackbar-timer::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 60%; background: var(--text-muted); border-radius: 2px; animation: snackbar-countdown 5s linear forwards; }
  @keyframes snackbar-countdown { from { width: 100%; } to { width: 0%; } }

  /* — Description List — */
  .desc-list { display: flex; flex-direction: column; gap: 0; }
  .desc-item { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border); gap: 16px; }
  .desc-item:last-child { border-bottom: none; }
  .desc-item dt { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
  .desc-item dd { font-size: 0.85rem; color: var(--text-primary); text-align: right; margin: 0; }
  .desc-list-striped .desc-item:nth-child(even) { background: var(--surface-1); padding-left: 8px; padding-right: 8px; border-radius: var(--radius-xs); }

  /* — Avatar Group — */
  .avatar-group { display: flex; }
  .avatar-group .avatar { margin-left: -8px; border: 2px solid var(--surface-0); position: relative; }
  .avatar-group .avatar:first-child { margin-left: 0; }
  .avatar-overflow { background: var(--surface-3) !important; color: var(--text-muted); font-size: 0.65rem; font-weight: 600; }
  .avatar-group-lg .avatar { margin-left: -12px; }
  .avatar-group-lg .avatar:first-child { margin-left: 0; }
  .avatar-status-online::after, .avatar-status-away::after, .avatar-status-offline::after { content: ''; position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--surface-0); }
  .avatar-status-online::after { background: var(--green-500); }
  .avatar-status-away::after { background: var(--amber-500); }
  .avatar-status-offline::after { background: var(--text-muted); }

  /* — Context Menu — */
  .context-menu-demo { display: flex; justify-content: center; }
  .ctx-menu { min-width: 220px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px; box-shadow: var(--shadow-lg); }
  .ctx-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 0.82rem; color: var(--text-secondary); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--duration-fast); }
  .ctx-item:hover { background: var(--surface-3); color: var(--text-primary); }
  .ctx-item-danger { color: var(--red-500); }
  .ctx-item-danger:hover { background: rgba(231,76,60,0.1); color: var(--red-400); }
  .ctx-item-header { padding: 6px 12px 8px; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
  .ctx-shortcut { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); }
  .ctx-submenu-arrow { font-size: 0.7rem; color: var(--text-muted); }
  .ctx-divider { height: 1px; background: var(--border); margin: 4px 8px; }

  /* — Banner / Callout — */
  .banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-1); }
  .banner-icon { font-size: 1.1rem; flex-shrink: 0; padding-top: 1px; }
  .banner-body { flex: 1; min-width: 0; }
  .banner-title { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
  .banner-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
  .banner-dismiss { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 0 4px; flex-shrink: 0; line-height: 1; }
  .banner-dismiss:hover { color: var(--text-secondary); }
  .banner-action { flex-shrink: 0; align-self: center; }
  .banner-info { border-left: 3px solid var(--navy-400); }
  .banner-success { border-left: 3px solid var(--green-500); }
  .banner-warning { border-left: 3px solid var(--amber-500); }
  .banner-error { border-left: 3px solid var(--red-500); }

  /* — Tree View — */
  .tree { font-size: 0.85rem; }
  .tree-node { list-style: none; }
  .tree-node > summary { display: flex; align-items: center; gap: 6px; padding: 6px 8px; cursor: pointer; border-radius: var(--radius-sm); color: var(--text-primary); font-weight: 500; transition: background var(--duration-fast); list-style: none; }
  .tree-node > summary::-webkit-details-marker { display: none; }
  .tree-node > summary::before { content: '▸'; font-size: 0.7rem; color: var(--text-muted); transition: transform var(--duration-fast); display: inline-block; width: 12px; }
  .tree-node[open] > summary::before { transform: rotate(90deg); }
  .tree-node > summary:hover { background: var(--surface-2); }
  .tree-children { padding-left: 20px; border-left: 1px solid var(--border); margin-left: 14px; }
  .tree-label { display: flex; align-items: center; gap: 6px; flex: 1; }
  .tree-icon { font-size: 0.85rem; }
  .tree-count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
  .tree-leaf { display: flex; align-items: center; gap: 6px; padding: 5px 8px; font-size: 0.82rem; color: var(--text-secondary); border-radius: var(--radius-sm); transition: background var(--duration-fast); }
  .tree-leaf:hover { background: var(--surface-2); }
  .tree-value { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }

  /* — Rating — */
  .star-rating { display: flex; align-items: center; gap: 2px; }
  .star { font-size: 1.4rem; color: var(--text-muted); cursor: default; transition: color var(--duration-fast); }
  .star.filled { color: var(--amber-500); }
  .star-label { font-size: 0.82rem; color: var(--text-secondary); margin-left: 8px; }
  .star-rating-interactive .star { cursor: pointer; }
  .star-rating-interactive .star:hover, .star-rating-interactive .star.hovered { color: var(--amber-400); }

  .risk-score-wrap { display: flex; gap: 16px; }
  .risk-score { width: 72px; height: 72px; border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--border); }
  .risk-score-value { font-size: 1.2rem; font-weight: 700; font-family: var(--font-mono); }
  .risk-score-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
  .risk-low { border-color: var(--green-500); }
  .risk-low .risk-score-value { color: var(--green-500); }
  .risk-medium { border-color: var(--amber-500); }
  .risk-medium .risk-score-value { color: var(--amber-500); }
  .risk-high { border-color: var(--red-500); }
  .risk-high .risk-score-value { color: var(--red-500); }

  .trust-gauge { position: relative; width: 120px; height: 70px; }
  .trust-gauge-svg { width: 100%; height: 100%; }
  .trust-gauge-value { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }

  /* — Carousel — */
  .carousel-wrap { position: relative; }
  .carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0; }
  .carousel-track::-webkit-scrollbar { display: none; }
  .carousel-card { min-width: 240px; max-width: 240px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); scroll-snap-align: start; flex-shrink: 0; transition: border-color var(--duration-fast); }
  .carousel-card:hover { border-color: var(--border-hover); }
  .carousel-mini-chart { height: 40px; margin-top: 12px; opacity: 0.8; }
  .carousel-mini-chart svg { width: 100%; height: 100%; }
  .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border); color: var(--text-primary); font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: all var(--duration-fast); }
  .carousel-btn:hover { background: var(--surface-2); border-color: var(--border-hover); }
  .carousel-prev { left: -18px; }
  .carousel-next { right: -18px; }

  /* — Stat Comparison Cards — */
  .stat-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
  .stat-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .stat-card-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
  .stat-card-trend { font-size: 0.75rem; font-weight: 600; font-family: var(--font-mono); }
  .stat-trend-up { color: var(--green-500); }
  .stat-trend-down { color: var(--red-500); }
  .stat-card-value { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
  .stat-card-sub { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; }
  .stat-card-bar { height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
  .stat-card-bar-fill { height: 100%; border-radius: 2px; transition: width 0.6s var(--ease-spring); }
  .stat-bar-green { background: var(--green-500); }
  .stat-bar-amber { background: var(--amber-500); }
  .stat-bar-red { background: var(--red-500); }

  /* — Skeleton Patterns — */
  .skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; border-radius: var(--radius-xs); }
  .skeleton-circle { border-radius: 50%; }
  .skeleton-line { display: block; }
  .skeleton-rect { display: block; }
  @keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  .skeleton-card { padding: 16px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); }
  .skeleton-table { display: flex; flex-direction: column; gap: 0; }
  .skeleton-table-header { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .skeleton-table-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .skeleton-table-row:last-child { border-bottom: none; }

  /* — Circular Progress — */
  .circular-progress-wrap { position: relative; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }
  .circular-progress { width: 100%; height: 100%; }
  .circular-progress-label { position: absolute; text-align: center; }
  .circular-progress-value { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
  .circular-progress-sub { font-size: 0.65rem; color: var(--text-muted); }

  /* — File Upload — */
  .upload-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); }
  .upload-icon { font-size: 1.3rem; flex-shrink: 0; }
  .upload-info { flex: 1; min-width: 0; }
  .upload-name { font-size: 0.85rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .upload-meta { font-size: 0.73rem; color: var(--text-muted); margin-top: 2px; }
  .upload-progress-bar { height: 4px; background: var(--surface-3); border-radius: 2px; margin-top: 6px; overflow: hidden; }
  .upload-progress-fill { height: 100%; background: var(--navy-400); border-radius: 2px; transition: width 0.3s; }
  .upload-cancel { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 2px 6px; }
  .upload-cancel:hover { color: var(--red-500); }
  .upload-retry { background: none; border: 1px solid var(--border); color: var(--text-secondary); font-size: 0.78rem; cursor: pointer; padding: 4px 10px; border-radius: var(--radius-sm); font-family: var(--font-sans); }
  .upload-retry:hover { border-color: var(--border-hover); color: var(--text-primary); }
  .upload-error-text { color: var(--red-500); }
  .upload-error { border-color: rgba(231,76,60,0.25); }

  html[data-theme="light"] {
    --text-primary: #1a1f36;
    --text-secondary: #4e5d78;
    --text-muted: #8994a7;
    --text-disabled: #a8b4c5;
    --text-inverse: #ffffff;

    --color-success: #1a9f55;

    --border: #e2e6ee;
    --border-hover: #d7deea;
    --border-focus: rgba(58, 90, 153, 0.4);
    --border-error: rgba(231, 76, 60, 0.45);

    --surface-0: #ffffff;
    --surface-1: #f8f9fc;
    --surface-2: #f1f3f8;
    --surface-3: #e8ecf2;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.09);
    --shadow-xl: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow-blue: 0 0 20px rgba(58, 90, 153, 0.14);
    --shadow-glow-green: 0 0 20px rgba(26, 159, 85, 0.14);

    --noise-opacity: 0.008;
    --ambient-glow-opacity: 0.03;
  }

  html[data-theme="light"] body {
    background:
      radial-gradient(ellipse 90% 60% at 20% 8%, rgba(58, 90, 153, 0.1) 0%, transparent 52%),
      radial-gradient(ellipse 60% 50% at 80% 88%, rgba(13, 26, 48, 0.08) 0%, transparent 52%),
      #ffffff;
  }

  html[data-theme="light"] .showcase-header h1 {
    background: linear-gradient(135deg, #1a1f36 0%, var(--navy-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  html[data-theme="light"] .section-label { color: var(--text-primary); }

  html[data-theme="light"] .tooltip-wrap .tooltip,
  html[data-theme="light"] .toast,
  html[data-theme="light"] .chart-tooltip-bubble {
    background: #111a30;
    color: #ffffff;
    border-color: #d0d9e7;
  }

  html[data-theme="light"] .tooltip-wrap .tooltip::after { border-top-color: #111a30; }

  html[data-theme="light"] .dropdown-menu,
  html[data-theme="light"] .cmd-palette,
  html[data-theme="light"] .calendar,
  html[data-theme="light"] .notif-panel,
  html[data-theme="light"] .hover-card {
    background: var(--surface-2);
  }

  html[data-theme="light"] .modal-overlay {
    background: rgba(17, 26, 48, 0.22);
  }

  html[data-theme="light"] .modal,
  html[data-theme="light"] .auth-card {
    background: linear-gradient(165deg, #ffffff, #f8f9fc);
    border-color: var(--border);
  }

  html[data-theme="light"] .table-filter-row,
  html[data-theme="light"] .table-filter-row:hover {
    background: #f1f5fb;
  }

  html[data-theme="light"] .table-striped tbody tr:nth-child(even) td {
    background: rgba(27, 44, 90, 0.05);
  }

  html[data-theme="light"] .chart-crosshair { background: rgba(0, 0, 0, 0.16); }
  html[data-theme="light"] .chart-tooltip-bubble { color: var(--text-primary); }

  html[data-theme="light"] #portfolioChart line {
    stroke: rgba(20, 36, 66, 0.2);
  }

  html[data-theme="light"] #areaGrad stop:first-child { stop-color: rgba(58, 90, 153, 0.28); }
  html[data-theme="light"] #areaGrad stop:last-child { stop-color: rgba(58, 90, 153, 0); }

  html[data-theme="light"] .ambient-glow { background: radial-gradient(circle, rgba(58, 90, 153, 0.06), transparent 70%); }

  html[data-theme="light"] .badge-green,
  html[data-theme="light"] .alert-success,
  html[data-theme="light"] .stat-change.positive {
    background: rgba(26, 159, 85, 0.12);
    border-color: rgba(26, 159, 85, 0.24);
    color: #1a9f55;
  }

  html[data-theme="light"] .heat-positive { background: linear-gradient(90deg, rgba(26, 159, 85, 0.3) 0 var(--heat-level, 0%), var(--surface-1) var(--heat-level, 0%)); }
  html[data-theme="light"] .heat-negative { background: linear-gradient(90deg, rgba(231, 76, 60, 0.28) 0 var(--heat-level, 0%), var(--surface-1) var(--heat-level, 0%)); }

  html[data-theme="light"] .drop-zone:hover,
  html[data-theme="light"] .drop-zone.active {
    background: rgba(58, 90, 153, 0.06);
    border-color: var(--navy-400);
  }

  html[data-theme="light"] ::-webkit-scrollbar { width: 10px; height: 10px; }
  html[data-theme="light"] ::-webkit-scrollbar-track { background: #eef2f8; }
  html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cfd9eb;
    border-radius: var(--radius-full);
    border: 2px solid #eef2f8;
  }

  /* Light mode — new components */
  html[data-theme="light"] .ctx-menu,
  html[data-theme="light"] .snackbar {
    background: var(--surface-2);
  }

  html[data-theme="light"] .avatar-group .avatar {
    border-color: #ffffff;
  }

  html[data-theme="light"] .avatar-status-online::after,
  html[data-theme="light"] .avatar-status-away::after,
  html[data-theme="light"] .avatar-status-offline::after {
    border-color: #ffffff;
  }

  html[data-theme="light"] .carousel-btn {
    background: #ffffff;
    box-shadow: var(--shadow-md);
  }

  html[data-theme="light"] .skeleton {
    background: linear-gradient(90deg, #e8ecf2 25%, #f1f3f8 50%, #e8ecf2 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
  }

  html[data-theme="light"] .upload-item {
    background: var(--surface-1);
  }
