    /* =============================================
       VOKOS — PRO IDE TERMINAL EDITION
       Aesthetic: Midnight command center.
       ============================================= */
    :root {
      /* Colors & Theming */
      --bg: #151226;
      --bg2: #1e1b38;
      --surface: rgba(255, 255, 255, 0.04);
      --surface2: rgba(255, 255, 255, 0.07);
      --border: rgba(255, 255, 255, 0.08);
      --border2: rgba(255, 255, 255, 0.14);
      --p: #8b5cf6;
      --p-light: #a78bfa;
      --p-dim: rgba(139, 92, 246, 0.15);
      --p-glow: rgba(139, 92, 246, 0.4);
      --accent: #ec4899;
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #f43f5e;
      --text: #eef2ff;
      --text-2: #94a3b8;
      --text-3: #475569;

      /* Typography */
      --font-d: "Fraunces", serif;
      --font-b: "Nunito", sans-serif;
      --font-m: "JetBrains Mono", monospace;

      /* Pro Layout Dimensions */
      --rail-w: 72px;
      --header-h: 64px;
      --panel-w: 340px;
    }

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

    html,
    body {
      width: 100%;
      height: 100%;
      overflow: hidden;
    }

    body {
      font-family: var(--font-b);
      background: var(--bg);
      color: var(--text);
      display: flex;
      flex-direction: column;
      position: relative;
    }

    /* Ambient background & Noise */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background: radial-gradient(ellipse 80% 50% at 20% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(236, 72, 153, 0.06) 0%, transparent 60%);
      pointer-events: none;
      z-index: 0;
    }

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

    /* =============================================
       1. THE RAZOR RAIL (Left)
       ============================================= */
    #razor-rail {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: var(--rail-w);
      background: rgba(6, 9, 15, 0.6);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 24px 0;
      z-index: 500;
    }

    .rail-logo {
      width: 36px;
      height: 36px;
      margin: 0 auto 30px;
      display: block;
      border-radius: 10px;
      cursor: pointer;
      object-fit: cover;
    }

    .rail-icon {
      width: 48px;
      height: 48px;
      margin: 6px auto;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-3);
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
    }

    .rail-icon:hover {
      background: var(--surface2);
      color: var(--text);
      transform: translateY(-3px);
    }

    .rail-icon.active {
      background: var(--p-dim);
      border: 1px solid rgba(139, 92, 246, 0.3);
      color: var(--p-light);
      box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    }

    .rail-icon::after {
      content: attr(data-tooltip);
      position: absolute;
      left: calc(100% + 15px);
      background: rgba(15, 20, 40, 0.95);
      color: var(--text);
      font-family: var(--font-m);
      font-size: 11px;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: 8px;
      border: 1px solid var(--border);
      pointer-events: none;
      opacity: 0;
      transform: translateX(-10px);
      transition: all 0.2s ease;
      white-space: nowrap;
      z-index: 1000;
    }

    .rail-icon:hover::after {
      opacity: 1;
      transform: translateX(0);
    }

    /* =============================================
       2. COMMAND HEADER (Top)
       ============================================= */
    #command-header {
      position: fixed;
      top: 0;
      left: var(--rail-w);
      right: 0;
      height: var(--header-h);
      background: linear-gradient(to bottom, rgba(6, 9, 15, 0.95) 0%, transparent 100%);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 40px;
      z-index: 400;
    }

    .breadcrumb {
      font-family: var(--font-m);
      font-size: 12px;
      color: var(--text-3);
      letter-spacing: 1px;
    }

    .breadcrumb .current {
      color: var(--p-light);
      font-weight: 700;
    }

    .header-center {
      flex: 1;
      display: flex;
      justify-content: center;
    }

    .command-search {
      background: var(--surface);
      border: 1px solid var(--border);
      backdrop-filter: blur(10px);
      padding: 8px 16px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      width: 360px;
      transition: border-color 0.2s;
      cursor: text;
    }

    .command-search:hover {
      border-color: var(--border2);
    }

    .command-search input {
      background: transparent;
      border: none;
      color: var(--text);
      font-family: var(--font-b);
      font-size: 13px;
      width: 100%;
      outline: none;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .pro-chip {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(245, 158, 11, 0.1);
      border: 1px solid rgba(245, 158, 11, 0.2);
      border-radius: 20px;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 700;
      color: var(--warning);
      font-family: var(--font-m);
    }

    .pro-chip input {
      accent-color: var(--warning);
      width: 13px;
      height: 13px;
      cursor: pointer;
    }

    .status-indicator {
      font-family: var(--font-m);
      font-size: 10px;
      font-weight: 700;
      color: var(--text-2);
      display: flex;
      align-items: center;
      gap: 8px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      background: var(--success);
      border-radius: 50%;
      box-shadow: 0 0 10px var(--success);
      animation: breathe 3s infinite;
    }

    @keyframes breathe {

      0%,
      100% {
        opacity: 0.3;
        transform: scale(0.8);
      }

      50% {
        opacity: 1;
        transform: scale(1.2);
      }
    }

    /* =============================================
       3. INTELLIGENCE PANEL (Right)
       ============================================= */
    #intel-panel {
      position: fixed;
      top: 0;
      right: 0;
      width: var(--panel-w);
      height: 100vh;
      background: rgba(11, 16, 32, 0.97);
      border-left: 1px solid var(--border);
      backdrop-filter: blur(30px);
      -webkit-backdrop-filter: blur(30px);
      transform: translateX(100%);
      transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 450;
      box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
      display: flex;
      flex-direction: column;
    }

    #intel-panel.open {
      transform: translateX(0);
    }

    .intel-header {
      padding: 24px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: var(--font-m);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2px;
      color: var(--p-light);
    }

    /* =============================================
       4. MAIN CANVAS & VIEWS
       ============================================= */
    #canvas {
      position: fixed;
      inset: 0;
      left: var(--rail-w);
      padding-top: var(--header-h);
      padding-bottom: 40px;
      overflow-y: auto;
      overflow-x: hidden;
      z-index: 1;
      transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.panel-open #canvas {
      right: var(--panel-w);
    }

    .workspace-view {
      display: none;
      flex-direction: column;
      min-height: 100%;
      padding: 40px 5% 20px;
      animation: vFadeUp 0.3s ease;
      max-width: 1400px;
      margin: 0 auto;
    }

    .workspace-view.active-view {
      display: flex;
    }

    @keyframes vFadeUp {
      from {
        opacity: 0;
        transform: translateY(12px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

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

    .view-title {
      font-family: var(--font-d);
      font-size: 36px;
      font-weight: 900;
      color: var(--text);
      line-height: 1.1;
      letter-spacing: -1px;
    }

    .view-sub {
      font-size: 14px;
      color: var(--text-2);
      margin-top: 6px;
      font-weight: 400;
      max-width: 500px;
      line-height: 1.6;
    }

    /* Cards & Inputs */
    .glass-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      padding: 24px;
      margin-bottom: 16px;
      transition: border-color 0.2s;
    }

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

    .card-header {
      font-weight: 700;
      font-size: 13px;
      color: var(--text);
      margin-bottom: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--border);
      padding-bottom: 12px;
    }

    .text-input {
      width: 100%;
      padding: 11px 14px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      font-family: var(--font-b);
      font-size: 14px;
      font-weight: 500;
      outline: none;
      margin-bottom: 12px;
      transition: border-color 0.2s, background 0.2s;
    }

    .text-input:focus {
      border-color: var(--p);
      background: rgba(139, 92, 246, 0.06);
    }

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

    .content-area {
      width: 100%;
      height: 120px;
      font-family: var(--font-m);
      font-size: 12px;
      line-height: 1.7;
      color: var(--text);
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px;
      resize: vertical;
      margin-bottom: 12px;
      outline: none;
      transition: border-color 0.2s;
    }

    .content-area:focus {
      border-color: var(--p);
    }

    .content-area::placeholder {
      color: var(--text-3);
    }

    .range-input {
      width: 58px;
      padding: 8px;
      border: 1px solid var(--border);
      border-radius: 8px;
      text-align: center;
      font-weight: 700;
      color: var(--text);
      background: rgba(255, 255, 255, 0.04);
      font-family: var(--font-m);
      font-size: 13px;
      outline: none;
    }

    .source-dropdown {
      font-size: 13px;
      font-family: var(--font-b);
      font-weight: 600;
      color: var(--text);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 9px 12px;
      outline: none;
      cursor: pointer;
      width: 100%;
      margin-bottom: 12px;
    }

    .source-dropdown option {
      background: var(--bg2);
    }

    /* Buttons */
    .btn {
      padding: 9px 18px;
      border-radius: 10px;
      font-weight: 700;
      cursor: pointer;
      border: none;
      font-size: 13px;
      transition: all 0.2s;
      font-family: var(--font-b);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .btn-p {
      background: var(--p);
      color: white;
      box-shadow: 0 4px 16px var(--p-glow);
    }

    .btn-p:hover {
      background: #7c3aed;
      transform: translateY(-1px);
    }

    .btn-outline {
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-2);
      backdrop-filter: blur(10px);
    }

    .btn-outline:hover {
      background: var(--surface2);
      border-color: var(--border2);
      color: var(--text);
    }

    .btn-danger {
      background: rgba(244, 63, 94, 0.08);
      border: 1px solid rgba(244, 63, 94, 0.2);
      color: var(--danger);
    }

    .btn-danger:hover {
      background: rgba(244, 63, 94, 0.15);
      border-color: var(--danger);
    }

    .btn-success {
      background: rgba(16, 185, 129, 0.1);
      border: 1px solid rgba(16, 185, 129, 0.25);
      color: var(--success);
    }

    .badge-pro {
      background: linear-gradient(135deg, #f59e0b, #fbbf24);
      color: #0f172a;
      padding: 2px 5px;
      border-radius: 4px;
      font-size: 9px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-left: 3px;
    }

    /* =============================================
       5. PANIC ROOM DASHBOARD
       ============================================= */
    #welcome-view {
      padding-top: 32px;
    }

    .dash-greeting {
      margin-bottom: 28px;
    }

    .dash-time {
      font-family: var(--font-m);
      font-size: 11px;
      color: var(--p-light);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .dash-time-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--p);
      box-shadow: 0 0 10px var(--p);
      animation: breathe 2.5s ease-in-out infinite;
    }

    .dash-title {
      font-family: var(--font-d);
      font-size: 42px;
      font-weight: 900;
      color: var(--text);
      letter-spacing: -1.5px;
      line-height: 1.1;
    }

    .dash-sub {
      font-size: 15px;
      color: var(--text-2);
      margin-top: 8px;
      font-weight: 400;
      font-style: italic;
    }

    .dash-grid {
      display: grid;
      grid-template-columns: 1.3fr 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 16px;
      flex: 1;
    }

    /* 💎 Premium Interactive Cards */
    .dash-card {
      background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.2) 100%);
      border: 1px solid var(--border);
      border-radius: 20px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: relative;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    /* ✨ The Magic Neon Top Glow (Hidden by default) */
    .dash-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--card-color);
      opacity: 0;
      transition: all 0.4s ease;
      z-index: 10;
    }

    /* 🚀 Elevate and Glow on Hover or Click (Focus) */
    .dash-card:hover,
    .dash-card:focus-within {
      transform: translateY(-6px);
      border-color: rgba(255, 255, 255, 0.15);
      /* Lightens the border */
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    /* Ignite the Neon Line */
    .dash-card:hover::before,
    .dash-card:focus-within::before {
      opacity: 1;
      box-shadow: 0 0 20px var(--card-color), 0 0 8px var(--card-color);
    }

    .dash-card-head {
      padding: 16px 20px;
      background: rgba(0, 0, 0, 0.2);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      transition: background 0.4s ease;
    }

    /* Light up the header background slightly when active */
    .dash-card:hover .dash-card-head,
    .dash-card:focus-within .dash-card-head {
      background: rgba(255, 255, 255, 0.03);
    }

    .dash-card-label {
      font-family: var(--font-m);
      font-size: 10px;
      font-weight: 700;
      color: var(--text-2);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .label-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .dash-card-body {
      flex: 1;
      overflow-y: auto;
      min-height: 0;
    }

    /* Clean up the text area inside the card */
    #panic-room-notes {
      width: 100%;
      height: 100%;
      background: transparent;
      border: none;
      outline: none;
      color: var(--text);
      font-family: var(--font-b);
      font-size: 15px;
      line-height: 1.8;
      resize: none;
      padding: 20px;
      transition: background 0.3s;
    }

    #panic-room-notes::placeholder {
      color: var(--text-3);
      font-style: italic;
    }

    #panic-room-stacks,
    #panic-room-activity,
    #panic-room-files {
      display: flex;
      flex-direction: column;
      gap: 7px;
      padding: 12px 14px;
      height: 100%;
      overflow-y: auto;
    }

    #panic-room-activity {
      font-family: var(--font-m);
      font-size: 11px;
      color: var(--text-2);
      line-height: 1.5;
    }

    .activity-item {
      padding: 4px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    /* =============================================
       6. STUDY / FLASHCARD VIEW
       ============================================= */
    #study-view {
      align-items: center;
      justify-content: flex-start;
      padding-top: 32px;
    }

    /* Pull top bar to the front */
    .study-bar {
      width: 100%;
      max-width: 780px;
      display: flex;
      flex-direction: column;
      /* Stacks the title above the buttons */
      align-items: center;
      /* Centers everything perfectly */
      gap: 16px;
      /* Space between title and buttons */
      margin-bottom: 28px;
      position: relative;
      z-index: 100;
    }

    #study-title {
      font-family: var(--font-d);
      font-size: 26px;
      /* Made it a bit larger so it pops */
      font-weight: 900;
      color: var(--text);
      letter-spacing: -0.5px;
      text-align: center;
      /* Centers the actual text */
      line-height: 1.3;
      width: 100%;
    }

    .study-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
      /* Centers the row of buttons */
      width: 100%;
    }

    /* 🃏 UPGRADED 3D CARD PHYSICS & NEON GLOW */
    /* Set a low Z-index on the scene so it stays behind the buttons */
    .card-scene {
      width: 100%;
      max-width: 780px;
      height: 400px;
      perspective: 1500px;
      margin-bottom: 28px;
      flex-shrink: 0;
      position: relative;
      z-index: 10;
    }

    .card-object {
      width: 100%;
      height: 100%;
      position: relative;
      transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
      transform-style: preserve-3d;
      cursor: pointer;
      --srs-color: var(--border2);
      --srs-glow: transparent;
    }

    .card-object:hover {
      transform: translateY(-8px) scale(1.02);
    }

    .card-object.is-flipped {
      transform: rotateX(180deg);
    }

    .card-object.is-flipped:hover {
      transform: rotateX(180deg) translateY(8px) scale(1.02);
    }

    .card-face {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 24px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 48px;
      text-align: center;
      border: 2px solid var(--srs-color);
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 35px var(--srs-glow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
      transition: border-color 0.4s ease, box-shadow 0.4s ease;
    }

    .card-front {
      background: linear-gradient(160deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
      backdrop-filter: blur(20px);
    }

    .card-back {
      background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
      transform: rotateX(180deg);
    }

    .card-label {
      position: absolute;
      top: 22px;
      left: 26px;
      font-family: var(--font-m);
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 2px;
      color: rgba(255, 255, 255, 0.4);
      text-transform: uppercase;
    }

    .card-text {
      font-family: var(--font-d);
      font-size: clamp(16px, 3.5vw, 26px); /* Auto-scales font down if text is dense */
      font-weight: 700;
      line-height: 1.5;
      width: 100%;
      max-width: 90%;
      max-height: 220px; /* Locks it inside the neon border */
      overflow-y: auto; /* Adds a clean scrollbar if the AI writes a novel */
      color: var(--text);
      padding: 0 10px; /* Gives the scrollbar room to breathe */
    }

    .card-hint {
      position: absolute;
      bottom: 22px;
      font-family: var(--font-m);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1px;
      color: var(--text-3);
      text-transform: uppercase;
      transition: color 0.4s ease;
    }

    /* 🔥 THE FIX: PULLING CONTROLS TO THE VERY FRONT */
    .controls-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      width: 100%;
      max-width: 580px;
      position: relative;
      z-index: 100;
    }

    .browse-controls {
      display: flex;
      align-items: center;
      gap: 20px;
      background: var(--surface);
      border: 1px solid var(--border);
      backdrop-filter: blur(20px);
      padding: 12px 28px;
      border-radius: 50px;
      width: 100%;
    }

    #card-counter {
      font-family: var(--font-d);
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
      flex: 1;
      text-align: center;
    }

    .card-counter-hint {
      font-family: var(--font-m);
      font-size: 10px;
      color: var(--text-3);
      display: block;
      margin-top: 2px;
    }

    .srs-controls {
      display: none;
      align-items: center;
      gap: 10px;
      background: var(--surface);
      border: 1px solid var(--border);
      backdrop-filter: blur(20px);
      padding: 10px 20px;
      border-radius: 50px;
      width: 100%;
      justify-content: center;
    }

    .btn-srs {
      padding: 10px 22px;
      border-radius: 10px;
      font-family: var(--font-b);
      font-weight: 800;
      cursor: pointer;
      border: 1px solid transparent;
      transition: all 0.2s;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
    }

    .btn-srs-interval {
      font-family: var(--font-m);
      font-size: 10px;
      opacity: 0.65;
      font-weight: 400;
    }

    .btn-hard {
      background: rgba(244, 63, 94, 0.07);
      color: var(--danger);
      border-color: rgba(244, 63, 94, 0.2);
    }

    .btn-good {
      background: rgba(16, 185, 129, 0.07);
      color: var(--success);
      border-color: rgba(16, 185, 129, 0.2);
    }

    .btn-easy {
      background: rgba(59, 130, 246, 0.07);
      color: #60a5fa;
      border-color: rgba(59, 130, 246, 0.2);
    }

    .btn-hard:hover {
      background: rgba(244, 63, 94, 0.14);
      border-color: var(--danger);
    }

    .btn-good:hover {
      background: rgba(16, 185, 129, 0.14);
      border-color: var(--success);
    }

    .btn-easy:hover {
      background: rgba(59, 130, 246, 0.14);
      border-color: #60a5fa;
    }

    #card-explanation-box {
      display: none;
      background: rgba(245, 158, 11, 0.06);
      border: 1px dashed rgba(245, 158, 11, 0.3);
      padding: 18px;
      border-radius: 14px;
      text-align: left;
      color: var(--text-2);
      font-size: 13px;
      line-height: 1.8;
      width: 100%;
      max-width: 580px;
    }

    /* =============================================
       7. MCQ & BLUEPRINT SPECIFICS
       ============================================= */
    .mcq-option {
      display: block;
      width: 100%;
      text-align: left;
      padding: 14px 18px;
      margin-bottom: 8px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      color: var(--text);
      font-size: 14px;
      font-family: var(--font-b);
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }

    .mcq-option:hover {
      background: var(--surface2);
      border-color: var(--border2);
    }

    .mcq-option.correct {
      background: rgba(16, 185, 129, 0.08);
      border-color: var(--success);
      color: var(--success);
    }

    .mcq-option.wrong {
      background: rgba(244, 63, 94, 0.08);
      border-color: var(--danger);
      color: var(--danger);
    }

    .blender-label {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--text-2);
      background: var(--surface);
      padding: 13px 16px;
      border-radius: 12px;
      cursor: pointer;
      border: 1px solid var(--border);
      transition: all 0.2s;
      font-size: 13px;
      font-weight: 600;
    }

    .blender-label:hover {
      background: var(--surface2);
      border-color: var(--p);
      color: var(--text);
    }

    .blender-checkbox {
      width: 16px;
      height: 16px;
      accent-color: var(--accent);
      cursor: pointer;
      flex-shrink: 0;
    }

    #blueprint-output ul {
      list-style: none;
      border-left: 2px solid rgba(16, 185, 129, 0.2);
      padding-left: 20px;
      margin-top: 8px;
    }

    #blueprint-output li {
      margin-bottom: 12px;
      position: relative;
      font-size: 14px;
      color: var(--text-2);
      line-height: 1.6;
    }

    #blueprint-output li::before {
      content: '';
      position: absolute;
      left: -20px;
      top: 11px;
      width: 14px;
      height: 1px;
      background: rgba(16, 185, 129, 0.3);
    }

    /* =============================================
       8. LIBRARY DRAWER & MODALS
       ============================================= */
    #drawer-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0);
      z-index: 450;
      pointer-events: none;
      transition: background 0.3s;
    }

    #drawer-backdrop.open {
      background: rgba(0, 0, 0, 0.5);
      pointer-events: all;
    }

    #library-drawer {
      position: fixed;
      top: 0;
      right: -380px;
      width: 360px;
      height: 100%;
      background: rgba(11, 16, 32, 0.97);
      border-left: 1px solid var(--border);
      backdrop-filter: blur(30px);
      -webkit-backdrop-filter: blur(30px);
      z-index: 500;
      display: flex;
      flex-direction: column;
      transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    }

    #library-drawer.open {
      right: 0;
    }

    .drawer-header {
      padding: 20px 20px 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
    }

    .drawer-title {
      font-family: var(--font-d);
      font-size: 20px;
      font-weight: 900;
      color: var(--text);
      letter-spacing: -0.5px;
    }

    .drawer-close {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-2);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      transition: all 0.2s;
    }

    .drawer-close:hover {
      background: var(--surface2);
      color: var(--text);
    }

    .drawer-body {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
    }

    .drawer-section-label {
      font-family: var(--font-m);
      font-size: 9px;
      font-weight: 500;
      color: var(--text-3);
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .drawer-section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .stack-item {
      background: var(--surface);
      border: 1px solid var(--border);
      padding: 12px 14px;
      border-radius: 12px;
      cursor: pointer;
      font-size: 13px;
      color: var(--text-2);
      display: flex;
      flex-direction: column;
      gap: 5px;
      transition: all 0.2s;
    }

    .stack-item:hover {
      border-color: var(--accent);
      color: var(--text);
      background: rgba(236, 72, 153, 0.06);
    }

    .stack-item-title {
      font-weight: 700;
      font-size: 13px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .stack-stats {
      display: flex;
      justify-content: space-between;
      font-size: 10px;
      color: var(--text-3);
      font-family: var(--font-m);
    }

    .due-badge {
      background: var(--danger);
      color: white;
      padding: 1px 6px;
      border-radius: 8px;
      font-size: 9px;
      font-weight: 700;
    }

    #auth-overlay {
      position: fixed;
      inset: 0;
      background: rgba(6, 9, 15, 0.92);
      backdrop-filter: blur(16px);
      z-index: 10000;
      display: none;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }

    .auth-box {
      background: rgba(15, 22, 40, 0.97);
      border: 1px solid var(--border2);
      border-radius: 24px;
      padding: 36px;
      max-width: 400px;
      width: 100%;
      text-align: center;
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.15);
      position: relative;
    }

    .paywall-overlay {
      position: fixed;
      inset: 0;
      background: rgba(6, 9, 15, 0.9);
      backdrop-filter: blur(12px);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      opacity: 0;
      transition: opacity 0.3s;
    }

    .paywall-overlay.show {
      display: flex;
      opacity: 1;
    }

    .paywall-modal {
      background: rgba(13, 19, 35, 0.98);
      border: 1px solid rgba(245, 158, 11, 0.3);
      border-radius: 24px;
      padding: 36px;
      max-width: 440px;
      width: 90%;
      text-align: center;
      box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 158, 11, 0.08);
      transform: translateY(12px);
      transition: transform 0.3s;
    }

    .paywall-overlay.show .paywall-modal {
      transform: translateY(0);
    }

    .pro-feature-item {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 10px;
      text-align: left;
      background: var(--surface);
      padding: 13px 14px;
      border-radius: 12px;
      border: 1px solid rgba(245, 158, 11, 0.1);
    }

    #cookie-banner {
      position: fixed;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(13, 19, 35, 0.96);
      backdrop-filter: blur(30px);
      border: 1px solid var(--border2);
      border-radius: 16px;
      padding: 14px 20px;
      display: none;
      align-items: center;
      gap: 16px;
      z-index: 10001;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
      max-width: 500px;
      width: 90%;
    }

    .cookie-text {
      font-size: 12px;
      color: var(--text-2);
      flex: 1;
      line-height: 1.5;
    }

    .cookie-text a {
      color: var(--p-light);
      text-decoration: none;
    }

    ::-webkit-scrollbar {
      width: 4px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.08);
      border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.14);
    }

    /* =============================================
       9. RESPONSIVE / MOBILE
       ============================================= */
    #mobile-nav,
    .mobile-sheet {
      display: none;
    }

    @media (max-width: 768px) {

      #razor-rail,
      #command-header {
        display: none;
      }

      #canvas {
        left: 0;
        padding-top: 20px;
        padding-bottom: 100px;
      }

      body.panel-open #canvas {
        right: 0;
      }

      #intel-panel {
        width: 100%;
      }

      .dash-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
      }

      .study-bar {
        flex-direction: column;
        align-items: center;
        /* Keeps it perfectly centered on mobile */
        gap: 16px;
      }

      .card-scene {
        height: 280px;
      }

      .card-text {
        font-size: 18px;
      }

      .card-face {
        padding: 28px;
      }

      #mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 75px;
        background: #141126;
        border-top: 1px solid var(--border);
        z-index: 600;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
      }

      #mobile-nav button {
        background: none;
        border: none;
        color: var(--text-3);
        font-size: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
      }

      #mobile-nav span {
        font-size: 10px;
        font-weight: 800;
        font-family: var(--font-b);
      }

      #mobile-nav .nav-center {
        background: var(--p);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        color: white;
        margin-top: -30px;
        box-shadow: 0 5px 15px var(--p-glow);
        justify-content: center;
      }

      #mobile-nav .nav-center span {
        display: none;
      }

      /* The Action Sheet styling */
      .mobile-sheet {
        display: block;
        position: fixed;
        bottom: -100%;
        left: 0;
        right: 0;
        background: rgba(11, 16, 32, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-top: 1px solid var(--border);
        border-radius: 28px 28px 0 0;
        padding: 28px 24px;
        z-index: 2000;
        transition: bottom 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.7);
      }

      .mobile-sheet.open {
        bottom: 0;
      }

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

      .sheet-close {
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text-2);
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 16px;
        cursor: pointer;
      }

      .sheet-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding-bottom: env(safe-area-inset-bottom);
      }

      .tool-btn {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2));
        border: 1px solid var(--border);
        padding: 18px 12px;
        border-radius: 16px;
        color: var(--text);
        font-family: var(--font-b);
        font-weight: 700;
        font-size: 13px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        transition: all 0.2s;
      }

      .tool-btn:active {
        background: var(--surface2);
        border-color: var(--p);
        transform: scale(0.96);
      }

      .tool-btn .t-icon {
        font-size: 28px;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
      }
    }

    /* =============================================
       INTELLIGENCE PANEL (Terminal & Telemetry)
       ============================================= */
    .intel-content-wrapper {
      padding: 20px;
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    .intel-view {
      display: none;
      flex-direction: column;
      gap: 16px;
      animation: vFadeUp 0.3s ease;
    }

    .intel-view.active-intel {
      display: flex;
    }

    /* 🟢 The Hacker Terminal */
    .terminal-log {
      font-family: var(--font-m);
      font-size: 11px;
      color: #10b981;
      line-height: 1.6;
      background: rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(16, 185, 129, 0.2);
      padding: 16px;
      border-radius: 12px;
      box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.05);
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 200px;
    }

    .log-line {
      border-bottom: 1px dashed rgba(16, 185, 129, 0.15);
      padding-bottom: 8px;
      opacity: 0;
      animation: typeIn 0.3s forwards;
    }

    .log-error {
      color: var(--danger);
      border-bottom-color: rgba(244, 63, 94, 0.2);
    }

    .log-warn {
      color: var(--warning);
      border-bottom-color: rgba(245, 158, 11, 0.2);
    }

    @keyframes typeIn {
      from {
        opacity: 0;
        transform: translateX(-5px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* 📊 SRS Telemetry Cards */
    .intel-stat-card {
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      transition: transform 0.2s;
    }

    .intel-stat-card:hover {
      transform: translateY(-2px);
      border-color: rgba(255, 255, 255, 0.15);
    }

    .intel-stat-card::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background: var(--card-color, var(--p));
      box-shadow: 0 0 10px var(--card-color, var(--p));
    }

    .intel-stat-label {
      font-family: var(--font-m);
      font-size: 9px;
      font-weight: 800;
      color: var(--text-3);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .intel-stat-value {
      font-size: 26px;
      font-weight: 900;
      font-family: var(--font-d);
      color: var(--text);
      margin-top: 4px;
    }

    .intel-stat-sub {
      font-size: 10px;
      color: var(--text-2);
      font-family: var(--font-b);
      margin-top: 2px;
    }

    /* =============================================
       🎙️ DICTATION BUTTON STYLES
       ============================================= */
    .btn-glass-record {
      background: rgba(244, 63, 94, 0.1);
      border: 1px solid rgba(244, 63, 94, 0.3);
      color: var(--danger);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 4px 15px rgba(244, 63, 94, 0.1);
      padding: 5px 12px;
      font-size: 11px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .btn-glass-record:hover {
      background: rgba(244, 63, 94, 0.2);
      border-color: rgba(244, 63, 94, 0.5);
      transform: translateY(-1px);
    }

    .btn-glass-record.is-recording {
      background: rgba(244, 63, 94, 0.25);
      border-color: rgba(244, 63, 94, 0.8);
      color: #fff;
      animation: pulseRecord 1.5s infinite;
      box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
    }

    @keyframes pulseRecord {
      0% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5);
      }

      70% {
        box-shadow: 0 0 0 8px rgba(244, 63, 94, 0);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
      }
    }

    /* =============================================
   🚀 PANIC ROOM QUICK LINKS
   ============================================= */
.panic-quick-links {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.quick-start-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 📱 Mobile Specific Stacking */
@media (max-width: 768px) {
    .panic-quick-links {
        flex-direction: column; /* Stacks them vertically on mobile */
        gap: 10px;
    }
    
    .quick-start-btn {
        padding: 12px; /* Slims them down even further */
    }
}
 /* =============================================
   📱 MOBILE PANIC ROOM ENHANCEMENTS
   ============================================= */
@media (max-width: 768px) {
    #panic-room-notes {
        transition: min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
        min-height: 100px;
    }

    #panic-room-notes:focus {
        min-height: 250px;
        border-color: var(--p);
        box-shadow: 0 0 10px rgba(244, 63, 94, 0.1);
    }

    /* 🔥 MOBILE NOTES FOCUS MODE — hides sibling cards, expands notes to fill */
    .notes-focus-mode .streak-dashboard,
    .notes-focus-mode .exam-countdown-strip,
    .notes-focus-mode .dash-greeting,
    .notes-focus-mode .panic-quick-links {
        display: none !important;
    }

    .notes-focus-mode .dash-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr !important;
        height: calc(100vh - 160px) !important;
    }

    .notes-focus-mode .dash-grid > .dash-card:not(:first-child) {
        display: none !important;
    }

    .notes-focus-mode .dash-grid > .dash-card:first-child {
        height: 100% !important;
        min-height: unset !important;
    }

    .notes-focus-mode .dash-grid > .dash-card:first-child .dash-card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .notes-focus-mode #panic-room-notes {
        flex: 1;
        min-height: unset !important;
        height: 100% !important;
        font-size: 16px;
    }

    /* 🟢 THE BUTTON DECLUTTER FIX */
    /* 1. Hide the text, keep the icons */
    .mobile-text {
        display: none !important; 
    }

    /* 2. Shrink the buttons to perfect squares (overriding inline styles) */
    #btn-dictate, 
    #btn-p {
        padding: 10px !important; 
        width: 44px !important; 
        min-width: 44px !important; 
        height: 44px !important;
        justify-content: center !important;
    }
}
    /* ==========================================
   🔐 SECURITY BUTTONS (Change Password)
   ========================================== */
    .btn-security {
      width: 100%;
      margin-bottom: 12px;
      padding: 12px;
      background-color: transparent;
      color: var(--text-color, #e0e0e0);
      /* Falls back to off-white if variable is missing */
      border: 1px solid #444;
      border-radius: 8px;
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease-in-out;
    }

    .btn-security:hover {
      background-color: rgba(255, 255, 255, 0.05);
      border-color: #888;
      color: #ffffff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .btn-security:active {
      transform: scale(0.98);
      /* Satisfying little click compression */
    }

    /* ==========================================
   📱 MOBILE FIX: INTEL PANEL BOTTOM SHEET
   ========================================== */
    @media (max-width: 768px) {
      #intel-panel {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 50vh !important;
        /* Takes up exactly half the screen */

        /* Native App Styling */
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8) !important;
        z-index: 9999 !important;

        display: flex;
        flex-direction: column;
        animation: slideUpFeed 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      }

      /* Forces the internal terminal to scroll instead of stretching the panel */
      #intel-panel .intel-content-wrapper {
        overflow-y: auto !important;
        flex-grow: 1;
        padding-bottom: 20px;
        /* Extra space for thumb scrolling */
      }
    }

    @keyframes slideUpFeed {
      from {
        transform: translateY(100%);
      }

      to {
        transform: translateY(0);
      }
    }

    /* ==========================================
   📤 SHARE BUTTON STYLING (PURPLE GLOW)
   ========================================== */
    .btn-share {
      /* The semi-transparent purple background */
      background: rgba(138, 43, 226, 0.15);
      color: #ffffff;
      /* A slightly brighter purple border to frame it */
      border: 1px solid rgba(138, 43, 226, 0.5);
      border-radius: 12px;
      padding: 8px 16px;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.3s ease;

      /* 🟢 THE GLOW: A soft purple shadow radiating outward */
      box-shadow: 0 0 12px rgba(138, 43, 226, 0.4);
    }

    .btn-share:hover {
      /* Makes the background and glow more intense when hovered */
      background: rgba(138, 43, 226, 0.3);
      border-color: rgba(138, 43, 226, 0.8);
      box-shadow: 0 0 20px rgba(138, 43, 226, 0.7);
      transform: translateY(-1px);
      /* Slight lift effect */
    }

    .btn-share:active {
      transform: scale(0.95);
      box-shadow: 0 0 8px rgba(138, 43, 226, 0.3);
      /* Compresses the glow on click */
    }
 /* ==========================================
   ✅ BLUEPRINT CHECKLIST STYLE (LEVEL 1)
   ========================================== */
.blueprint-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blueprint-item input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

.blueprint-item span {
    color: var(--text-color, #ffffff);
    margin-left: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

/* 🟢 When checked: Fade and Strike-through */
.blueprint-item input[type="checkbox"]:checked + span {
    opacity: 0.5;
    text-decoration: line-through;
    color: #a0a0a0;
}
/* ==========================================
   📊 BLUEPRINT PROGRESS BAR (LEVEL 2)
   ========================================== */
.blueprint-progress-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 24px;
}

.blueprint-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-color, #e0e0e0);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.blueprint-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.blueprint-progress-fill {
    height: 100%;
    /* 🟢 A sleek Vokos-purple gradient */
    background: linear-gradient(90deg, #6b21a8, #a855f7); 
    width: 0%;
    border-radius: 4px;
    /* Smooth, satisfying slide animation when checking a box */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}
/* ==========================================
   💡 BLUEPRINT INLINE EXPLANATION (LEVEL 3)
   ========================================== */
.blueprint-inline-explanation {
    margin-top: 8px;
    margin-left: 28px; /* Indents it past the checkbox to align with the text */
    padding: 12px;
    background: rgba(138, 43, 226, 0.1); /* Subtle Vokos purple tint */
    border-left: 3px solid #a855f7;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: var(--text-color, #e0e0e0);
    line-height: 1.5;
    animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ==========================================
   ⚡ INLINE ACTION BUTTON (THE INTENT GATE)
   ========================================== */
.btn-inline-dive {
    background: rgba(138, 43, 226, 0.15);
    color: #c084fc;
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.btn-inline-dive:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    color: #ffffff;
}
/* ==========================================
   🧪 PDF ALCHEMY WIZARD STYLING
   ========================================== */
.pdf-wizard-container {
    background-color: var(--bg-color, #121212);
    width: 90%;
    max-width: 540px;
    border-radius: 16px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(138, 43, 226, 0.1);
    overflow: hidden;
    position: relative;
    /* Ensures the text aligns properly inside the modal */
    text-align: left; 
}

.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-2, #888);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-modal:hover {
    color: #ffffff;
}

.wizard-instruction-panel {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    border-left: 3px solid #a855f7;
}

.wizard-instruction-panel h4 {
    margin: 0 0 8px 0;
    color: #c084fc;
    font-size: 1.1rem;
}

.wizard-instruction-panel p {
    margin: 0;
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.5;
}

.wizard-phase {
    padding: 24px;
}

.upload-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.2);
}

.upload-drop-zone:hover {
    border-color: #a855f7;
    background: rgba(138, 43, 226, 0.05);
}

.hidden-file-input {
    display: none;
}

.btn-upload {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.btn-upload:hover {
    background: rgba(138, 43, 226, 0.4);
    border-color: #c084fc;
}

.slicer-stat {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.slicer-inputs {
    display: flex;
    gap: 16px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 6px;
}

.input-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #a855f7;
}
/* ==========================================
   🧪 SLICER WORKBENCH SPECIFIC STYLES
   ========================================== */
.upload-drop-zone.success-state {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}
.upload-drop-zone.success-state #file-icon-1, 
.upload-drop-zone.success-state #file-icon-2 {
    transform: scale(1.1);
}

.workbench-slice-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s;
}
.workbench-slice-item:hover {
    border-color: var(--border2);
}
.workbench-slice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.workbench-slice-title {
    font-family: var(--font-b);
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}
.workbench-slice-pages {
    font-family: var(--font-m);
    font-size: 11px;
    color: var(--p-light);
    background: rgba(139, 92, 246, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
}
.workbench-slice-actions {
    display: flex;
    gap: 8px;
}
/* ==========================================
   🗑️ UNIFIED TRASH BUTTON (DESKTOP & MOBILE)
   ========================================== */
.stack-trash-btn {
    font-size: 14px;
    padding: 6px;
    color: var(--text-3);
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0; /* Hidden on desktop until hover */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-item:hover .stack-trash-btn {
    opacity: 1;
}

.stack-trash-btn:hover {
    color: var(--danger);
    background: rgba(244, 63, 94, 0.15);
}

/* Hide the desktop hover button on mobile since we use Long-Press */
@media (max-width: 768px) {
    .stack-trash-btn {
        display: none !important;
    }
}
/* ==========================================
   📱 MOBILE UX POLISH (iOS Zoom, Targets, Hover)
   ========================================== */

@media (max-width: 768px) {
    /* 1. Fix iOS Auto-Zoom (Forces 16px minimum on inputs) */
    .text-input,
    .content-area,
    .range-input,
    .source-dropdown,
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* 2. Fix Cookie Banner Hidden Behind Nav */
    #cookie-banner {
        bottom: 95px !important; 
    }

    /* 3. Increase Touch Targets to Apple HIG Standards */
    .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    .btn-srs {
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
}

/* 4. Fix Sticky Hover States on Touch Devices */
@media (hover: none) {
    .card-object:hover {
        transform: none !important;
    }
    .card-object.is-flipped:hover {
        transform: rotateX(180deg) !important;
    }
}

/* ==========================================
   🔥 STREAK & GAMIFICATION DASHBOARD
   ========================================== */
.streak-dashboard {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.streak-stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.streak-stat {
    flex: 1;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.streak-stat:hover {
    border-color: var(--p);
    background: rgba(139, 92, 246, 0.05);
}

.streak-stat-value {
    font-family: var(--font-d);
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.streak-stat-label {
    font-family: var(--font-m);
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 4px;
}

.streak-fire .streak-stat-value {
    color: #f59e0b;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.streak-fire {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.streak-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.streak-xp-bar-container {
    flex: 1;
}

.streak-xp-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.streak-xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--p), #a78bfa);
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.streak-xp-bar-label {
    font-family: var(--font-m);
    font-size: 10px;
    color: var(--text-3);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* Heatmap */
.streak-heatmap-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.heatmap-label {
    font-family: var(--font-m);
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(7, 1fr);
    grid-auto-flow: column;
    gap: 3px;
}

.heatmap-cell {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 3px;
    transition: all 0.15s ease;
    cursor: default;
    max-width: 18px;
}

.heatmap-cell:hover {
    transform: scale(1.4);
    z-index: 2;
}

.heatmap-cell.future {
    background: transparent;
}

.heatmap-cell.empty {
    background: rgba(255, 255, 255, 0.04);
}

.heatmap-cell.light {
    background: rgba(139, 92, 246, 0.25);
    box-shadow: 0 0 4px rgba(139, 92, 246, 0.1);
}

.heatmap-cell.medium {
    background: rgba(139, 92, 246, 0.45);
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.2);
}

.heatmap-cell.heavy {
    background: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.heatmap-cell.intense {
    background: rgba(167, 139, 250, 0.95);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-3);
    font-family: var(--font-m);
    margin-top: 2px;
}

.heatmap-legend span {
    margin: 0 4px;
}

.streak-best {
    font-family: var(--font-m);
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
    letter-spacing: 0.5px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .streak-stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .streak-stat {
        min-width: unset;
        padding: 10px 8px;
    }

    .streak-stat-value {
        font-size: 18px;
    }

    .heatmap-grid {
        gap: 2px;
    }

    .heatmap-cell {
        max-width: 14px;
        border-radius: 2px;
    }
}

/* ==========================================
   📅 EXAM COUNTDOWN TIMER STYLES
   ========================================== */

/* Badge shown under stack title in study view */
.exam-countdown-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-family: var(--font-m);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: fit-content;
    transition: all 0.3s ease;
}

.exam-countdown-badge.exam-relaxed {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.exam-countdown-badge.exam-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.exam-countdown-badge.exam-danger {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #f43f5e;
}

.exam-countdown-badge.exam-critical {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.5);
    color: #f43f5e;
    animation: examPulse 1.5s ease-in-out infinite;
}

@keyframes examPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
    50% { box-shadow: 0 0 12px 2px rgba(244, 63, 94, 0.3); }
}

.exam-badge-text {
    white-space: nowrap;
}

.exam-badge-clear {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    font-size: 12px;
    padding: 0 2px;
    transition: opacity 0.2s;
}

.exam-badge-clear:hover {
    opacity: 1;
}

/* Panic Room exam countdown strip */
.exam-countdown-strip {
    margin-bottom: 16px;
}

.exam-strip-header {
    margin-bottom: 10px;
}

.exam-strip-label {
    font-family: var(--font-m);
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.exam-strip-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.exam-strip-scroll::-webkit-scrollbar {
    height: 4px;
}

.exam-strip-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.exam-strip-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.exam-strip-card {
    flex-shrink: 0;
    min-width: 200px;
    max-width: 280px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.exam-strip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.exam-strip-card.exam-relaxed {
    border-color: rgba(16, 185, 129, 0.25);
}

.exam-strip-card.exam-relaxed:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.05);
}

.exam-strip-card.exam-warning {
    border-color: rgba(245, 158, 11, 0.25);
}

.exam-strip-card.exam-warning:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.05);
}

.exam-strip-card.exam-danger, .exam-strip-card.exam-critical {
    border-color: rgba(244, 63, 94, 0.3);
}

.exam-strip-card.exam-danger:hover, .exam-strip-card.exam-critical:hover {
    border-color: rgba(244, 63, 94, 0.6);
    background: rgba(244, 63, 94, 0.06);
}

.exam-strip-card.exam-critical {
    animation: examPulse 1.5s ease-in-out infinite;
}

.exam-strip-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.exam-strip-title {
    font-family: var(--font-b);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 8px;
}

.exam-strip-due {
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 700;
    color: var(--danger);
    white-space: nowrap;
    background: rgba(244, 63, 94, 0.1);
    padding: 2px 8px;
    border-radius: 50px;
}

.exam-strip-countdown {
    font-family: var(--font-m);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.exam-relaxed .exam-strip-countdown { color: #10b981; }
.exam-warning .exam-strip-countdown { color: #f59e0b; }
.exam-danger .exam-strip-countdown, .exam-critical .exam-strip-countdown { color: #f43f5e; }

@media (max-width: 768px) {
    .exam-strip-card {
        min-width: 170px;
        padding: 10px 12px;
    }

    .exam-strip-title {
        font-size: 12px;
    }
}

/* ==========================================
   📊 PERFORMANCE ANALYTICS DASHBOARD
   ========================================== */

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

.analytics-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.analytics-stat-card:hover {
    border-color: var(--p);
    background: rgba(139, 92, 246, 0.04);
}

.analytics-stat-value {
    font-family: var(--font-d);
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
}

.analytics-stat-label {
    font-family: var(--font-m);
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 4px;
}

.analytics-section {
    margin-bottom: 16px;
}

.analytics-section-title {
    font-family: var(--font-d);
    font-size: 16px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

/* 30-day bar chart */
.analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 120px;
    padding-bottom: 20px;
    position: relative;
}

.analytics-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}

.analytics-bar {
    width: 100%;
    min-height: 2px;
    background: linear-gradient(180deg, var(--p), rgba(139, 92, 246, 0.4));
    border-radius: 3px 3px 0 0;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.analytics-bar:hover {
    background: linear-gradient(180deg, #a78bfa, var(--p));
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.analytics-bar.today {
    background: linear-gradient(180deg, var(--success), rgba(16, 185, 129, 0.5));
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.analytics-bar-label {
    position: absolute;
    bottom: -18px;
    font-family: var(--font-m);
    font-size: 9px;
    color: var(--text-3);
}

/* Stack readiness bars */
.analytics-readiness-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analytics-readiness-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.analytics-readiness-info {
    flex: 1;
    min-width: 0;
}

.analytics-readiness-title {
    display: block;
    font-family: var(--font-b);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-readiness-meta {
    font-family: var(--font-m);
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 0.3px;
}

.analytics-readiness-bar-track {
    width: 120px;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
    flex-shrink: 0;
}

.analytics-readiness-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.analytics-readiness-pct {
    font-family: var(--font-m);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    width: 36px;
    text-align: right;
    flex-shrink: 0;
}

/* Weak spots table */
.analytics-weak-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.analytics-weak-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(244, 63, 94, 0.04);
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.analytics-weak-row:hover {
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.08);
}

.analytics-weak-q {
    font-size: 13px;
    color: var(--text-2);
    flex: 1;
    margin-right: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-weak-ease {
    font-family: var(--font-m);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .analytics-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-stat-value {
        font-size: 22px;
    }

    .analytics-chart {
        height: 90px;
    }

    .analytics-readiness-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .analytics-readiness-bar-track {
        width: 100%;
        order: 3;
    }

    .analytics-readiness-pct {
        order: 2;
        width: auto;
    }
}

/* ==========================================
   ⌨️ KEYBOARD SHORTCUTS HINTS
   ========================================== */

.kbd-hints {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-m);
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 0.3px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.kbd-hints:hover {
    opacity: 1;
}

.kbd-hints span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

kbd {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-2);
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

@media (max-width: 768px) {
    .kbd-hints {
        display: none;
    }
}

/* ==========================================
   💬 AI TUTOR CHAT DRAWER
   ========================================== */

.tutor-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 8999;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.tutor-backdrop.open {
    display: block;
    opacity: 1;
}

.tutor-drawer {
    position: fixed;
    right: -420px;
    top: 0;
    bottom: 0;
    width: 400px;
    max-width: 90vw;
    background: var(--bg);
    border-left: 1px solid var(--border);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

.tutor-drawer.open {
    right: 0;
}

.tutor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.tutor-title {
    font-family: var(--font-d);
    font-size: 18px;
    font-weight: 900;
    color: var(--success);
}

.tutor-stack-name {
    display: block;
    font-family: var(--font-m);
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 0.5px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tutor-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.tutor-system-msg {
    font-family: var(--font-m);
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
    padding: 10px;
    font-style: italic;
    letter-spacing: 0.3px;
}

.tutor-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.6;
    word-wrap: break-word;
}

.tutor-msg-user {
    align-self: flex-end;
    background: var(--p);
    color: white;
    border-bottom-right-radius: 4px;
}

.tutor-msg-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-2);
    border-bottom-left-radius: 4px;
}

.tutor-input-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tutor-drawer {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }
}

/* ==========================================
   🧒 ELI5 RESULT BOX
   ========================================== */

.eli5-result-box {
    background: rgba(16, 185, 129, 0.06);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    padding: 18px;
    border-radius: 14px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.eli5-header {
    font-family: var(--font-d);
    font-size: 14px;
    font-weight: 900;
    color: var(--success);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

/* ==========================================
   🔍 WEAK SPOT RESULT BOX
   ========================================== */

.weak-spot-result-box {
    background: rgba(244, 63, 94, 0.06);
    border: 1px dashed rgba(244, 63, 94, 0.3);
    padding: 18px;
    border-radius: 14px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.weak-spot-header {
    font-family: var(--font-d);
    font-size: 14px;
    font-weight: 900;
    color: var(--danger);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

/* ==========================================
   📁 FOLDER / COURSE ORGANIZATION
   ========================================== */

.folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px;
    margin-top: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.folder-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.folder-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.folder-chevron {
    font-size: 8px;
    color: var(--text-3);
    transition: transform 0.2s ease;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.folder-chevron.collapsed {
    transform: rotate(-90deg);
}

.folder-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.folder-name {
    font-family: var(--font-m);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-count {
    font-family: var(--font-m);
    font-size: 10px;
    color: var(--text-3);
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 6px;
    border-radius: 50px;
    flex-shrink: 0;
}

.folder-menu-btn {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    padding: 2px 4px;
}

.folder-header:hover .folder-menu-btn {
    opacity: 0.6;
}

.folder-menu-btn:hover {
    opacity: 1 !important;
}

.folder-stacks {
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.stack-move-btn {
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}

.stack-item:hover .stack-move-btn {
    opacity: 0.5;
}

.stack-move-btn:hover {
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .folder-menu-btn {
        opacity: 0.5;
    }

    .stack-move-btn {
        opacity: 0.4;
    }
}

/* ==========================================
   🏪 COMMUNITY HUB
   ========================================== */

.community-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
}

.community-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-3);
    font-family: var(--font-m);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.community-tab:hover {
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.04);
}

.community-tab.active {
    background: var(--p);
    color: white;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.community-panel {
    display: none;
}

.community-panel.active-panel {
    display: block;
}

/* Marketplace */
.marketplace-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.marketplace-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.2s ease;
}

.marketplace-card:hover {
    border-color: var(--p);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mp-card-subject {
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--p-light);
    background: rgba(139, 92, 246, 0.1);
    padding: 3px 10px;
    border-radius: 50px;
}

.mp-card-clones {
    font-family: var(--font-m);
    font-size: 11px;
    color: var(--text-3);
}

.mp-card-title {
    font-family: var(--font-b);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-card-meta {
    font-family: var(--font-m);
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 14px;
}

.mp-card-actions {
    display: flex;
    gap: 8px;
}

/* Groups & Classes shared styles */
.community-group-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.community-group-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.group-card-header {
    margin-bottom: 12px;
}

.group-card-name {
    font-family: var(--font-b);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.group-card-meta {
    font-family: var(--font-m);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.3px;
}

.group-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.group-stacks-expanded {
    border-top: 1px solid var(--border);
    margin-top: 12px;
    padding-top: 8px;
}

.group-shared-stack {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-2);
    transition: all 0.15s ease;
}

.group-shared-stack:hover {
    border-color: var(--p);
    background: rgba(139, 92, 246, 0.05);
}

.class-student-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: var(--text-2);
}

@media (max-width: 768px) {
    .community-tabs {
        overflow-x: auto;
    }

    .community-tab {
        font-size: 11px;
        padding: 8px 10px;
    }

    .marketplace-controls {
        flex-direction: column;
    }

    .marketplace-grid {
        grid-template-columns: 1fr;
    }

    .group-card-actions {
        flex-direction: column;
    }

    .group-card-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   📱 MOBILE COMPACT STUDY TOOLBAR
   ========================================== */

.mobile-actions {
    display: none !important;
}

.study-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.study-icon-btn:hover, .study-icon-btn:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--p);
    transform: scale(1.05);
}

.study-more-popup {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    min-width: 220px;
    flex-direction: column;
}

.study-more-popup.open {
    display: flex;
}

.study-more-popup button {
    background: transparent;
    border: none;
    color: var(--text-2);
    font-family: var(--font-b);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.study-more-popup button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

@media (max-width: 768px) {
    .desktop-actions {
        display: none !important;
    }

    .mobile-actions {
        display: flex !important;
        gap: 8px;
        justify-content: center;
        width: 100%;
    }

    .study-bar {
        position: relative;
    }

    #study-title {
        font-size: 20px !important;
    }
}

/* ==========================================
   🚨 BS DETECTOR 2.0 - Enhanced Styles
   ========================================== */

/* Clarity Gauge */
.feynman-gauge-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.feynman-gauge-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.feynman-gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.feynman-gauge-progress {
    fill: none;
    stroke: var(--p);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.feynman-gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.feynman-gauge-value {
    font-family: var(--font-m);
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    display: block;
}

.feynman-gauge-label {
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Persona Selector */
.feynman-persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.feynman-persona-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feynman-persona-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.feynman-persona-card.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--p);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.feynman-persona-emoji {
    font-size: 24px;
    margin-bottom: 4px;
    display: block;
}

.feynman-persona-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
}

.feynman-persona-card.active .feynman-persona-name {
    color: var(--p-light);
}

/* Animation for BS Detector Pulse */
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.feynman-pulse-active {
    animation: pulse-border 2s infinite;
}

/* Mobile responsiveness for BS Detector */
@media (max-width: 768px) {
    #feynman-view > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    #feynman-view > div:first-child > div:last-child {
        text-align: left !important;
    }

    #feynman-view > div:nth-child(2) {
        grid-template-columns: 1fr !important;
    }

    .feynman-gauge-container {
        width: 100px;
        height: 100px;
    }

    .feynman-gauge-value {
        font-size: 20px;
    }
}

/* Voice button recording state */
#feynman-view button[onclick="startFeynmanVoice()"].is-recording {
    background: var(--danger) !important;
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(244, 63, 94, 0.8);
        transform: scale(1.05);
    }
}
/* =============================================
   LIGHT MODE THEME OVERRIDES
   ============================================= */
body.light-mode {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --surface: rgba(255, 255, 255, 0.7);
  --surface2: rgba(255, 255, 255, 0.95);
  --border: rgba(0, 0, 0, 0.1);
  --border2: rgba(0, 0, 0, 0.15);
  --text: #0f172a;
  --text-2: #334155;
  --text-3: #64748b;
  --p-dim: rgba(139, 92, 246, 0.1);
}

body.light-mode .glass-card,
body.light-mode .dash-card,
body.light-mode .auth-box,
body.light-mode .paywall-modal {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  background: var(--surface2);
}

body.light-mode #command-input {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
}

body.light-mode #mobile-nav {
  background: #f8fafc;
}
/* =============================================
   LIGHT MODE: SPECIFIC ELEMENT INVERSIONS
   ============================================= */

/* 1. Catch any hardcoded text variables that default to white */
body.light-mode {
  --text-color: var(--text); 
}

/* 2. Fix the Flashcards: Invert the dark glass to light glass so the dark text shows up */
body.light-mode .card-front {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
}
body.light-mode .card-back {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.98));
}
body.light-mode .card-label {
  color: rgba(0, 0, 0, 0.4);
}

/* 3. Fix Gamification Box & Heatmap: Invert white transparents to black transparents */
body.light-mode .streak-stat {
  background: rgba(0, 0, 0, 0.03);
}
body.light-mode .heatmap-cell.empty {
  background: rgba(0, 0, 0, 0.08); /* Turns the invisible white blocks to soft dark blocks */
}
body.light-mode .streak-xp-bar-track {
  background: rgba(0, 0, 0, 0.08);
}
body.light-mode .streak-dashboard {
  background: var(--surface2);
}

/* 4. Fix Inputs, Dropdowns & Blueprint Progress Bars */
body.light-mode .text-input,
body.light-mode .content-area,
body.light-mode .range-input,
body.light-mode .source-dropdown,
body.light-mode .upload-drop-zone,
body.light-mode .community-tab {
  background: rgba(0, 0, 0, 0.03);
}

body.light-mode .blueprint-progress-container {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .blueprint-progress-track {
  background: rgba(0, 0, 0, 0.1);
}
/* 5. Fix Panic Room Lists (Overriding hardcoded inline white text) */
body.light-mode #panic-room-stacks div,
body.light-mode #panic-room-files div {
  color: var(--text) !important;
}
/* ==========================================
   🔥 BLUEPRINT 2.0 (FULL UI ARCHITECTURE)
   ========================================== */

/* STATS GRID */
.bp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.bp-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
body.light-mode .bp-stat-box { background: rgba(0, 0, 0, 0.03); }
.bp-stat-value {
  font-family: var(--font-m);
  font-size: 28px;
  font-weight: 800;
  color: var(--p-light);
  display: block;
  margin-bottom: 4px;
}
.bp-stat-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* PERFORMANCE TIMELINE */
.bp-timeline-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  margin: 20px 0;
}
body.light-mode .bp-timeline-container { background: rgba(0, 0, 0, 0.02); }
.bp-timeline-bar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.bp-timeline-day {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
}
.bp-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
body.light-mode .bp-timeline-dot { background: rgba(0, 0, 0, 0.1); }
.bp-timeline-dot.studied { background: var(--p); box-shadow: 0 0 8px var(--p); }
.bp-timeline-dot.mastered { background: var(--success); box-shadow: 0 0 8px var(--success); }

/* HEATMAP */
.bp-heatmap-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.bp-heatmap-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bp-heatmap-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}
.bp-heatmap-cell:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}
.bp-heatmap-cell-content { position: relative; z-index: 1; }
.bp-heatmap-cell-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; display: block; color: var(--text); }
.bp-heatmap-cell-stat { font-family: var(--font-m); font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-bottom: 4px; display: block;}
body.light-mode .bp-heatmap-cell-stat { color: rgba(0, 0, 0, 0.6); }
.bp-heatmap-cell-mastery { font-family: var(--font-m); font-size: 18px; font-weight: 800; margin-top: 8px; display: block; color: var(--text);}

.bp-mastery-0 { background: rgba(244, 63, 94, 0.15); color: var(--danger); border-color: rgba(244, 63, 94, 0.3); }
.bp-mastery-1 { background: rgba(245, 158, 11, 0.2); color: var(--warning); border-color: rgba(245, 158, 11, 0.3); }
.bp-mastery-2 { background: rgba(16, 185, 129, 0.2); color: var(--success); border-color: rgba(16, 185, 129, 0.3); }

/* CONCEPT TREE */
.bp-tree-diagram {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  overflow-x: auto;
  padding: 20px;
}
.bp-tree-node-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  color: var(--text);
}
body.light-mode .bp-tree-node-box { background: rgba(255, 255, 255, 0.8); }
.bp-tree-node-box:hover { border-color: var(--p-light); background: rgba(96, 165, 250, 0.1); }

/* TOOLTIP */
.bp-tooltip {
  position: fixed;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
  display: none;
  z-index: 10000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  color: var(--text);
}
body.light-mode .bp-tooltip { background: #ffffff; }
.bp-tooltip.show { display: block; }
/* ==========================================
   🔥 BLUEPRINT 2.0 (COLLAPSIBLE GROUPS)
   ========================================== */
.bp-concept-group {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}
body.light-mode .bp-concept-group { background: rgba(0, 0, 0, 0.02); }

.bp-concept-summary {
    cursor: pointer;
    list-style: none; /* Hides default marker */
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text);
    padding: 4px 0;
    user-select: none;
}
.bp-concept-summary::-webkit-details-marker { display: none; } /* For Safari */

/* Custom Animated Arrow */
.bp-concept-summary::before {
    content: '▼';
    font-size: 12px;
    margin-right: 12px;
    color: var(--p-light);
    transition: transform 0.2s ease;
    display: inline-block;
}
details:not([open]).bp-concept-group > .bp-concept-summary::before {
    transform: rotate(-90deg);
}
/* ==========================================
   🗄️ BLUEPRINT ARCHIVE UI
   ========================================== */
.bp-archive-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
body.light-mode .bp-archive-item {
    background: rgba(0, 0, 0, 0.03);
}
.bp-archive-item:hover {
    border-color: var(--p-dim);
    transform: translateX(4px);
}