/* ============================================
   EXPLAINABLES · CLASS 10 · GOLDEN PREMIUM
   Board Exam — dark gold, 3D depth, precision
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg10:      #08070a;
  --surface10: #0e0c12;
  --border10:  rgba(200,165,90,0.18);
  --text10:    #ede8d8;
  --muted10:   #6a5a40;
  --gold10:    #d4a843;   /* primary gold */
  --gold10b:   #f0cc70;   /* bright gold */
  --gold10c:   #a07828;   /* dark gold */
  --silver10:  #c8c8d8;   /* silver accent */
  --rose10:    #c87070;   /* warning rose */
  --green10:   #70c890;   /* success green */
  --font10:    'DM Sans', sans-serif;
  --serif10:   'DM Serif Display', serif;
  --mono10:    'DM Mono', monospace;
  --sb-w10:    265px;
  --tb-h10:    58px;
  --tr10:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light mode */
body.gold-light {
  --bg10: #faf7f0;
  --surface10: #f0ead8;
  --border10: rgba(180,140,60,0.3);
  --text10: #1a140a;
  --muted10: #8a6a40;
}
body.gold-light .sidebar-10 { background: rgba(248,242,225,0.97) !important; }
body.gold-light .sidebar-10 * { color: #1a140a !important; }
body.gold-light .sb-brand-main10 { color: #7a4800 !important; }
body.gold-light .sb-brand-sub10 { color: #8a6a40 !important; }
body.gold-light .new-chat-10 { background: rgba(150,100,0,0.1) !important; border-color: rgba(150,100,0,0.35) !important; color: #5a3800 !important; }
body.gold-light .sb-btn-10 { background: rgba(150,100,0,0.06) !important; border-color: rgba(150,100,0,0.2) !important; color: #1a140a !important; }
body.gold-light .sb-btn-10:hover { background: rgba(150,100,0,0.14) !important; color: #1a140a !important; }
body.gold-light .upgrade-10 { background: rgba(120,80,0,0.1) !important; border-color: rgba(160,110,0,0.45) !important; color: #5a3800 !important; }
body.gold-light .sb-search-10 input { background: rgba(150,100,0,0.04) !important; border-color: rgba(150,100,0,0.25) !important; color: #1a140a !important; }
body.gold-light .sb-search-10 input::placeholder { color: #8a6a40 !important; }
body.gold-light .hist-label-10, body.gold-light .ch-title-10 { color: #1a140a !important; }
body.gold-light .ch-item-10:hover { background: rgba(150,100,0,0.08) !important; }
body.gold-light .user-info-10 span { color: #1a140a !important; }
body.gold-light .user-email-10 { color: #8a6a40 !important; }
body.gold-light .user-menu-10 { background: rgba(248,242,225,0.99) !important; }
body.gold-light .user-menu-10 button { color: #1a140a !important; }
body.gold-light .topbar-10 { background: rgba(248,242,225,0.92) !important; border-bottom-color: rgba(150,100,0,0.25) !important; }
body.gold-light .tb-main10 { color: #7a4800 !important; }
body.gold-light .topbar-btn-10 { border-color: rgba(150,100,0,0.3) !important; color: #1a140a !important; }
body.gold-light .lib-label-10, body.gold-light .lib-item-10 { color: #1a140a !important; }
body.gold-light .lib-link-10 { color: #7a4800 !important; }
body.gold-light .board-countdown-10 { background: rgba(150,100,0,0.1) !important; border-color: rgba(150,100,0,0.35) !important; }

/* ── CURSOR (GOLD CROSSHAIR) ─────────────── */
html { cursor: none !important; }
* { cursor: inherit !important; }

.gold-cursor {
  position: fixed; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold10b);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  
  will-change: transform;
  contain: layout size style;
}
.gold-cursor.clicking { width: 6px; height: 6px; }

.gold-cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid var(--gold10);
  border-radius: 50%;
  pointer-events: none; z-index: 9997;
  transform: translate(-50%,-50%);
  will-change: transform;
  opacity: 0.6;
}

/* ── BACKGROUND CANVAS ───────────────────── */
#bgCanvas10 { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── MUTE ────────────────────────────────── */
.mute-btn-10 {
  position: fixed; top: 68px; right: 150px; z-index: 500;
  background: rgba(200,165,90,0.08); border: 1px solid var(--border10);
  border-radius: 8px; width: 36px; height: 36px;
  font-size: 16px; color: var(--gold10); transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}
.mute-btn-10:hover { background: rgba(200,165,90,0.2); }

/* ── LAYOUT ──────────────────────────────── */
body {
  font-family: var(--font10);
  background: var(--bg10);
  color: var(--text10);
  height: 100vh; overflow: hidden; display: flex;
}

/* ── SIDEBAR ─────────────────────────────── */
.sidebar-10 {
  position: fixed; top: 0; bottom: 0; width: var(--sb-w10);
  background: rgba(8,7,10,0.95); backdrop-filter: blur(8px);
  z-index: 200; display: flex; flex-direction: column;
  border-right: 1px solid var(--border10);
  transition: transform 0.4s var(--tr10);
}
.left-sb10 { left: 0; }
.right-sb10 { right: 0; border-right: none; border-left: 1px solid var(--border10); }

.sb-gold-line10 {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold10c), var(--gold10b), var(--gold10), var(--gold10b), var(--gold10c), transparent);
  animation: goldShimmer10 4s linear infinite;
  background-size: 200% 100%;
}
.sb-gold-line10.right10 { animation-direction: reverse; }
@keyframes goldShimmer10 { to { background-position: 200% 0; } }

.sb-header10 { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.sb-logo10 { display: flex; align-items: center; gap: 10px; }
.sb-logo-wrap10 { position: relative; width: 40px; height: 40px; }
.sb-logo-img10 { width: 40px; height: 40px; border-radius: 50%; filter: drop-shadow(0 0 10px var(--gold10)); }
.sb-logo-crown10 { position: absolute; top: -8px; right: -4px; font-size: 14px; animation: crownBob10 2.5s ease infinite; }
@keyframes crownBob10 { 0%,100%{transform:translateY(0)rotate(-8deg);} 50%{transform:translateY(-3px)rotate(8deg);} }
.sb-brand10 { display: flex; flex-direction: column; }
.sb-brand-main10 { font-family: var(--serif10); font-size: 15px; color: var(--gold10b); letter-spacing: 0.5px; }
.sb-brand-sub10 { font-size: 10px; color: var(--muted10); margin-top: 1px; }
.sb-toggle10 { background: none; border: none; color: var(--muted10); font-size: 16px; padding: 4px 8px; min-width: 44px; min-height: 44px; border-radius: 6px; transition: color 0.2s; }
.sb-toggle10:hover { color: var(--gold10); }

.new-chat-10 {
  margin: 4px 12px 12px; padding: 11px 16px;
  background: linear-gradient(135deg, rgba(212,168,67,0.12), rgba(160,120,40,0.08));
  border: 1px solid rgba(212,168,67,0.35);
  border-radius: 12px; color: var(--gold10b);
  font-family: var(--font10); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}
.new-chat-10:hover { background: rgba(212,168,67,0.22); box-shadow: 0 4px 20px rgba(212,168,67,0.2); }

.sb-search-10 { padding: 0 12px 10px; }
.sb-search-10 input {
  width: 100%; padding: 8px 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border10); border-radius: 10px;
  color: var(--text10); font-family: var(--font10); font-size: 13px; outline: none;
  transition: border-color 0.3s;
}
.sb-search-10 input:focus { border-color: var(--gold10); }
.sb-search-10 input::placeholder { color: var(--muted10); }

.chat-history-10 { flex: 1; overflow-y: auto; padding: 0 8px; }
.chat-history-10::-webkit-scrollbar { width: 3px; }
.chat-history-10::-webkit-scrollbar-thumb { background: var(--border10); border-radius: 3px; }
.hist-label-10 { font-size: 10px; color: var(--muted10); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 6px 8px; }

.ch-item-10 { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; margin-bottom: 3px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.ch-item-10:hover { background: rgba(212,168,67,0.07); border-color: var(--border10); }
.ch-item-10.active { background: rgba(212,168,67,0.12); border-color: rgba(212,168,67,0.3); }
.ch-title-10 { font-size: 13px; color: var(--text10); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ch-acts-10 { display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.ch-item-10:hover .ch-acts-10 { opacity: 1; }
.ch-acts-10 button { background: none; border: none; color: var(--muted10); font-size: 12px; padding: 3px 5px; border-radius: 5px; }
.ch-acts-10 button:hover { color: var(--gold10); background: rgba(212,168,67,0.1); }

.sb-bottom-10 { padding: 10px 12px; border-top: 1px solid var(--border10); display: flex; flex-direction: column; gap: 6px; }
.sb-btn-10 { padding: 9px 14px; border-radius: 10px; font-family: var(--font10); font-size: 13px; font-weight: 600; border: 1px solid var(--border10); background: rgba(255,255,255,0.02); color: var(--text10); text-align: left; transition: transform 0.25s, opacity 0.25s, box-shadow 0.25s; }
.sb-btn-10:hover { background: rgba(212,168,67,0.1); border-color: var(--gold10); color: var(--gold10); }
.upgrade-10 { background: linear-gradient(135deg, rgba(212,168,67,0.14), rgba(160,120,40,0.1)); border-color: rgba(212,168,67,0.45); color: var(--gold10b); }
.upgrade-10:hover { box-shadow: 0 4px 24px rgba(212,168,67,0.25); color: var(--gold10b); }

.user-row-10 { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.user-row-10:hover { background: rgba(212,168,67,0.07); border-color: var(--border10); }
.user-avatar-10 { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--gold10c), var(--gold10)); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.user-info-10 { flex: 1; overflow: hidden; }
.user-info-10 span { display: block; font-size: 13px; font-weight: 600; }
.user-email-10 { font-size: 11px !important; font-weight: 400 !important; color: var(--muted10); }
.chevron-10 { color: var(--muted10); }
.user-menu-10 { background: var(--surface10); border: 1px solid var(--border10); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.user-menu-10 button { background: none; border: none; color: var(--text10); padding: 8px 12px; border-radius: 8px; font-family: var(--font10); font-size: 13px; text-align: left; transition: background 0.2s; }
.user-menu-10 button:hover { background: rgba(212,168,67,0.1); }

/* ── COLLAPSED SIDEBAR BUTTONS ───────────── */
.col-btn-10 { position: fixed; top: 50%; transform: translateY(-50%); z-index: 190; width: 32px; height: 56px; background: rgba(212,168,67,0.1); border: 1px solid var(--border10); color: var(--gold10); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s; }
.col-left10 { left: 0; border-radius: 0 10px 10px 0; }
.col-right10 { right: 0; border-radius: 10px 0 0 10px; }
.col-btn-10:hover { background: rgba(212,168,67,0.22); }
.hidden { display: none !important; }

/* ── MAIN AREA ───────────────────────────── */
.main-10 { position: fixed; left: var(--sb-w10); right: var(--sb-w10); top: 0; bottom: 0; display: flex; flex-direction: column; z-index: 100; will-change: transform; }

/* ── TOP BAR ─────────────────────────────── */
.topbar-10 { height: var(--tb-h10); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--border10); background: rgba(8,7,10,0.85); backdrop-filter: blur(8px); }
.top-brand-10 { display: flex; flex-direction: column; }
.tb-main10 { font-family: var(--serif10); font-size: 17px; color: var(--gold10b); }
.tb-sub10 { font-size: 11px; color: var(--muted10); }
.topbar-right10 { display: flex; align-items: center; gap: 10px; }

/* Board exam countdown — EXCLUSIVE to Class 10 */
.board-countdown-10 { display: flex; align-items: center; gap: 5px; background: linear-gradient(135deg, rgba(212,168,67,0.12), rgba(160,120,40,0.08)); border: 1px solid rgba(212,168,67,0.35); border-radius: 20px; padding: 5px 14px; }
.bc-label10, .bc-unit10 { font-size: 11px; color: var(--muted10); }
.bc-days10 { font-family: var(--mono10); font-size: 18px; font-weight: 700; color: var(--gold10b); }

.q-counter-10 { display: flex; align-items: center; gap: 5px; background: rgba(212,168,67,0.06); border: 1px solid var(--border10); border-radius: 20px; padding: 4px 12px; }
.q-num-10 { font-family: var(--mono10); font-size: 15px; font-weight: 700; color: var(--gold10); }
.q-label-10 { font-size: 11px; color: var(--muted10); }
.topbar-btn-10 { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border10); background: rgba(255,255,255,0.03); color: var(--text10); font-size: 16px; transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s; }
.topbar-btn-10:hover { background: rgba(212,168,67,0.12); border-color: var(--gold10); color: var(--gold10); }
.top-login-10 { padding: 7px 16px; background: linear-gradient(135deg, var(--gold10c), var(--gold10)); border: none; border-radius: 8px; color: #0a0800; font-family: var(--font10); font-size: 13px; font-weight: 700; transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s; }
.top-login-10:hover { box-shadow: 0 4px 20px rgba(212,168,67,0.5); }

/* ── HOME SCREEN ─────────────────────────── */
.home-10 { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 20px; overflow: hidden; }
.home-logo-10 { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* 3D hex frame */
.hex-frame10 { position: relative; width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; }
.hex-ring10 {
  position: absolute; border-radius: 50%; border: 1.5px solid transparent;
  animation: hexRotate10 linear infinite;
}
.hr1 { width: 150px; height: 150px; border-top-color: var(--gold10); border-bottom-color: var(--gold10c); animation-duration: 6s; }
.hr2 { width: 165px; height: 165px; border-left-color: var(--gold10b); border-right-color: var(--gold10c); animation-duration: 10s; animation-direction: reverse; }
.hr3 { width: 180px; height: 180px; border-top-color: rgba(212,168,67,0.25); border-bottom-color: rgba(212,168,67,0.15); animation-duration: 18s; }
@keyframes hexRotate10 { to { transform: rotate(360deg); } }

.hex-glow10 { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(212,168,67,0.12) 0%, transparent 70%); animation: hexGlow10 3s ease infinite; }
@keyframes hexGlow10 { 0%,100%{opacity:0.5;} 50%{opacity:1;} }

.home-logo-img-10 { width: 100px; height: 100px; border-radius: 50%; filter: drop-shadow(0 0 24px var(--gold10)); position: relative; z-index: 2; }

.badge-orbit10 { position: absolute; animation: badgeOrbit10 linear infinite; }
.bo1 { width: 140px; height: 140px; inset: 50%; margin: -70px; animation-duration: 7s; }
.bo2 { width: 160px; height: 160px; inset: 50%; margin: -80px; animation-duration: 11s; animation-delay: -2s; animation-direction: reverse; }
.bo3 { width: 150px; height: 150px; inset: 50%; margin: -75px; animation-duration: 9s; animation-delay: -4s; }
.bo4 { width: 170px; height: 170px; inset: 50%; margin: -85px; animation-duration: 13s; animation-delay: -6s; }
@keyframes badgeOrbit10 { to { transform: rotate(360deg); } }
.mini-badge10 { position: absolute; top: 0; left: 50%; transform: translateX(-50%) translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--gold10c), var(--gold10)); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #0a0800; box-shadow: 0 2px 12px rgba(212,168,67,0.5); border: 1.5px solid var(--gold10b); }

.home-text-10 { text-align: center; }
.home-subtitle-10 { font-size: 12px; color: var(--gold10); font-family: var(--mono10); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; opacity: 0.8; }
.home-greeting-10 { font-family: var(--serif10); font-size: clamp(22px, 3.2vw, 36px); color: var(--text10); line-height: 1.25; transition: opacity 0.5s; }

.chips-10 { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 640px; }
.chip-10 { padding: 10px 18px; border-radius: 50px; background: rgba(212,168,67,0.06); border: 1px solid rgba(212,168,67,0.2); color: var(--text10); font-family: var(--font10); font-size: 13px; font-weight: 500; transition: transform 0.25s, opacity 0.25s, box-shadow 0.25s; white-space: nowrap; }
.chip-10:hover { background: rgba(212,168,67,0.16); border-color: var(--gold10); color: var(--gold10b); transform: translateY(-2px); box-shadow: 0 4px 18px rgba(212,168,67,0.2); }

/* ── CHAT ────────────────────────────────── */
.chat-10 { flex: 1; overflow: hidden; position: relative; }
.chat-msgs-10 { position: relative; z-index: 1; height: 100%; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.chat-msgs-10::-webkit-scrollbar { width: 4px; }
.chat-msgs-10::-webkit-scrollbar-thumb { background: var(--border10); border-radius: 4px; }

.msg-10 { display: flex; gap: 12px; animation: msgIn10 0.4s var(--tr10) both; max-width: 80%; }
@keyframes msgIn10 { from{opacity:0;transform:translateY(14px);} }
.msg-10.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-10.bot  { align-self: flex-start; }

.msg-av-10 { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold10c), var(--gold10)); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.msg-10.user .msg-av-10 { background: linear-gradient(135deg, #2a2018, #3a2e18); }

.msg-bubble-10 { padding: 14px 18px; border-radius: 18px; font-size: 14px; line-height: 1.7; max-width: 100%; }
.msg-10.user .msg-bubble-10 { background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(160,120,40,0.1)); border: 1px solid rgba(212,168,67,0.25); border-bottom-right-radius: 4px; }
.msg-10.bot  .msg-bubble-10 { background: rgba(255,255,255,0.03); border: 1px solid var(--border10); border-bottom-left-radius: 4px; }

/* BOARD BADGE — shows "📋 Board Tip" tag on AI answers */
.board-tag-10 { display: inline-block; background: rgba(212,168,67,0.12); border: 1px solid rgba(212,168,67,0.3); border-radius: 20px; padding: 2px 10px; font-size: 11px; color: var(--gold10b); font-weight: 600; margin-bottom: 8px; }

.msg-acts-10 { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.mab-10 { background: none; border: 1px solid transparent; border-radius: 8px; color: var(--muted10); font-size: 11px; padding: 3px 8px; transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s; }
.mab-10:hover { border-color: var(--border10); color: var(--gold10); background: rgba(212,168,67,0.08); }

/* ── THINKING ────────────────────────────── */
.thinking-10 { display: flex; gap: 12px; align-items: flex-start; animation: msgIn10 0.3s both; max-width: 80%; }
.think-av-10 { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold10c), var(--gold10)); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.think-body-10 { background: rgba(255,255,255,0.03); border: 1px solid var(--border10); border-radius: 18px; border-bottom-left-radius: 4px; padding: 14px 18px; }
.think-dots-10 { display: flex; gap: 6px; margin-bottom: 8px; }
.think-dots-10 span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold10); animation: bounce10 1.2s ease infinite; }
.think-dots-10 span:nth-child(2) { animation-delay: 0.2s; background: var(--gold10b); }
.think-dots-10 span:nth-child(3) { animation-delay: 0.4s; background: var(--gold10c); }
@keyframes bounce10 { 0%,80%,100%{transform:translateY(0);} 40%{transform:translateY(-7px);} }
.think-txt-10 { font-size: 13px; color: var(--muted10); font-family: var(--mono10); }
.think-tip-10 { font-size: 11px; color: var(--gold10); margin-top: 5px; opacity: 0.8; }

/* YouTube cards */
.yt-card-10 { display: flex; gap: 10px; align-items: center; background: rgba(255,0,0,0.05); border: 1px solid rgba(255,80,80,0.2); border-radius: 10px; padding: 10px; margin-top: 8px; text-decoration: none; transition: transform 0.25s, opacity 0.25s, box-shadow 0.25s; }
.yt-card-10:hover { background: rgba(255,0,0,0.1); border-color: rgba(255,80,80,0.4); }
.yt-thumb-10 { width: 80px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.yt-title-10 { font-size: 12px; font-weight: 600; color: var(--text10); display: block; margin-bottom: 4px; }
.yt-meta-10 { font-size: 11px; color: #ff6b6b; }

/* ── SCROLL BTN ──────────────────────────── */
.scroll-btn-10 { position: absolute; bottom: 12px; right: 16px; z-index: 50; width: 36px; height: 36px; border-radius: 50%; background: rgba(212,168,67,0.15); border: 1px solid var(--border10); color: var(--gold10); font-size: 18px; transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s; }
.scroll-btn-10:hover { background: rgba(212,168,67,0.3); }

/* ── EXHAUSTED ───────────────────────────── */
.exhausted-10 { position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 300; }
.ex-inner-10 { background: rgba(8,7,10,0.97); border: 1px solid rgba(200,112,112,0.4); border-radius: 16px; padding: 16px 24px; display: flex; align-items: center; gap: 14px; backdrop-filter: blur(8px); }
.ex-inner-10 span { font-size: 24px; }
.ex-inner-10 p { font-size: 13px; color: var(--text10); }
.ex-inner-10 strong { color: #ff9999; font-family: var(--mono10); }
.ex-inner-10 button { padding: 7px 16px; background: linear-gradient(135deg, var(--gold10c), var(--gold10)); border: none; border-radius: 8px; color: #0a0800; font-family: var(--font10); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ex-inner-10 button:hover { opacity: 0.85; }

/* ── INPUT AREA ──────────────────────────── */
.input-area-10 {
  position: relative;
  z-index: 1;
   padding: 10px 20px 16px; background: rgba(8,7,10,0.88); backdrop-filter: blur(8px); border-top: 1px solid var(--border10); }
.disclaimer-10 { font-size: 11px; color: var(--muted10); text-align: center; margin-bottom: 8px; }
.input-wrap-10 { display: flex; align-items: flex-end; gap: 8px; background: rgba(255,255,255,0.03); border: 1.5px solid var(--border10); border-radius: 16px; padding: 8px 10px; transition: border-color 0.3s; }
.input-wrap-10:focus-within { border-color: var(--gold10); box-shadow: 0 0 28px rgba(212,168,67,0.12); }
.input-field-10 { flex: 1; min-height: 24px; max-height: 160px; overflow-y: auto; padding: 4px 6px; font-family: var(--font10); font-size: 14px; color: var(--text10); outline: none; line-height: 1.5; }
.input-field-10:empty::before { content: attr(data-placeholder); color: var(--muted10); pointer-events: none; }
.input-btn-10 { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; border: 1px solid var(--border10); background: rgba(255,255,255,0.03); color: var(--muted10); font-size: 16px; transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s; }
.input-btn-10:hover { color: var(--gold10); border-color: var(--gold10); background: rgba(212,168,67,0.1); }
.send-btn-10 { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg, var(--gold10c), var(--gold10)); border: none; color: #0a0800; display: flex; align-items: center; justify-content: center; transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s; }
.send-btn-10:hover { transform: scale(1.08); box-shadow: 0 4px 20px rgba(212,168,67,0.5); }

/* ── LIBRARY ─────────────────────────────── */
.lib-10 { flex: 1; overflow-y: auto; padding: 8px; }
.lib-10::-webkit-scrollbar { width: 3px; }
.lib-10::-webkit-scrollbar-thumb { background: var(--border10); border-radius: 3px; }
.lib-section-10 { margin-bottom: 18px; }
.lib-label-10 { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted10); padding: 4px 6px 8px; }
.lib-item-10 { padding: 9px 12px; border-radius: 9px; font-size: 13px; cursor: pointer; color: var(--text10); border: 1px solid transparent; }
.lib-item-10:hover { background: rgba(212,168,67,0.07); border-color: var(--border10); }
.lib-link-10 { display: block; padding: 7px 12px; font-size: 12px; color: var(--gold10); text-decoration: none; border-radius: 8px; transition: background 0.2s; }
.lib-link-10:hover { background: rgba(212,168,67,0.08); }

/* ── MODALS ──────────────────────────────── */
.modal-10 { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.8); backdrop-filter: blur(14px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-10.open { display: flex; }
.modal-box-10 { background: rgba(8,7,10,0.99); border: 1px solid var(--border10); border-radius: 20px; padding: 32px; position: relative; width: 100%; max-width: 440px; animation: modalIn10 0.4s var(--tr10) both; box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 60px rgba(212,168,67,0.08); }
@keyframes modalIn10 { from{opacity:0;transform:scale(0.9) translateY(20px);} }
.modal-close-10 { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted10); font-size: 20px; width: 32px; height: 32px; border-radius: 8px; transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s; }
.modal-close-10:hover { color: var(--text10); background: rgba(255,255,255,0.06); }

/* Upgrade */
.upgrade-box-10 { max-width: 480px; text-align: center; }
.upgrade-crown-10 { font-size: 56px; margin-bottom: 12px; animation: crownFloat10 3s ease infinite; }
@keyframes crownFloat10 { 0%,100%{transform:translateY(0) rotate(-5deg);} 50%{transform:translateY(-8px) rotate(5deg);} }
.upgrade-title-10 { font-family: var(--serif10); font-size: 26px; color: var(--text10); margin-bottom: 6px; }
.upgrade-tagline-10 { font-size: 14px; color: var(--muted10); margin-bottom: 20px; }
.upgrade-price-10 { display: inline-flex; align-items: baseline; gap: 4px; background: linear-gradient(135deg, rgba(212,168,67,0.14), rgba(160,120,40,0.1)); border: 1px solid rgba(212,168,67,0.4); border-radius: 50px; padding: 10px 24px; margin-bottom: 24px; }
.price-amount-10 { font-family: var(--mono10); font-size: 32px; font-weight: 700; color: var(--gold10b); }
.price-period-10 { font-size: 14px; color: var(--muted10); }
.upgrade-features-10 { text-align: left; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.uf-10 { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 10px 14px; background: rgba(212,168,67,0.05); border-radius: 10px; border: 1px solid var(--border10); }
.uf-10 span { font-size: 18px; flex-shrink: 0; }
.upgrade-cta-10 { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--gold10c), var(--gold10), var(--gold10b)); border: none; border-radius: 12px; color: #0a0800; font-family: var(--font10); font-size: 16px; font-weight: 700; transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s; margin-bottom: 12px; letter-spacing: 0.3px; }
.upgrade-cta-10:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(212,168,67,0.5); }
.upgrade-note-10 { font-size: 12px; color: var(--muted10); }

/* Auth */
.auth-box-10 { max-width: 400px; }
.auth-header-10 { text-align: center; margin-bottom: 24px; }
.auth-logo-img10 { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 12px; filter: drop-shadow(0 0 12px var(--gold10)); }
.auth-header-10 h2 { font-family: var(--serif10); font-size: 22px; color: var(--text10); margin-bottom: 4px; }
.auth-header-10 p { font-size: 13px; color: var(--muted10); }
.auth-input-10 { width: 100%; padding: 12px 16px; margin-bottom: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border10); border-radius: 12px; color: var(--text10); font-family: var(--font10); font-size: 14px; outline: none; transition: border-color 0.3s; }
.auth-input-10:focus { border-color: var(--gold10); }
.auth-input-10::placeholder { color: var(--muted10); }
.auth-btn-10 { width: 100%; padding: 13px; background: linear-gradient(135deg, var(--gold10c), var(--gold10)); border: none; border-radius: 12px; color: #0a0800; font-family: var(--font10); font-size: 15px; font-weight: 700; transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s; margin-bottom: 16px; }
.auth-btn-10:hover { box-shadow: 0 6px 24px rgba(212,168,67,0.45); }
.auth-divider-10 { text-align: center; margin: 14px 0; position: relative; }
.auth-divider-10::before { content:''; position:absolute; top:50%; left:0; right:0; height:1px; background: var(--border10); }
.auth-divider-10 span { background: rgba(8,7,10,0.99); padding: 0 12px; color: var(--muted10); font-size: 12px; position: relative; }
.google-btn-10 { width: 100%; padding: 11px; background: rgba(255,255,255,0.04); border: 1px solid var(--border10); border-radius: 12px; color: var(--text10); font-family: var(--font10); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s; margin-bottom: 16px; }
.google-btn-10:hover { background: rgba(255,255,255,0.08); }
.auth-switch-10 { text-align: center; font-size: 13px; color: var(--muted10); }
.auth-switch-10 a { color: var(--gold10b); text-decoration: none; font-weight: 600; }

/* Settings */
.settings-box-10 { max-width: 500px; }
.settings-title-10 { font-family: var(--serif10); font-size: 20px; color: var(--text10); margin-bottom: 20px; }
.stabs-10 { display: flex; gap: 6px; margin-bottom: 20px; background: rgba(255,255,255,0.03); border-radius: 10px; padding: 4px; }
.stab-10 { flex: 1; padding: 8px; border-radius: 8px; border: none; background: none; color: var(--muted10); font-family: var(--font10); font-size: 13px; font-weight: 600; transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s; }
.stab-10.active { background: rgba(212,168,67,0.15); color: var(--gold10b); }
.stab-10:hover:not(.active) { color: var(--text10); }
.settings-content-10 { display: flex; flex-direction: column; gap: 12px; }
.setting-row-10 { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--border10); border-radius: 12px; }
.setting-row-10 h4 { font-size: 14px; font-weight: 600; color: var(--text10); margin-bottom: 2px; }
.setting-row-10 p { font-size: 12px; color: var(--muted10); }
.toggle-10 { width: 44px; height: 24px; background: rgba(255,255,255,0.1); border-radius: 12px; position: relative; cursor: pointer; flex-shrink: 0; border: 1px solid var(--border10); }
.toggle-10::after { content:''; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition: transform 0.3s; }
.toggle-10.on { background: var(--gold10); border-color: var(--gold10); box-shadow: 0 0 12px rgba(212,168,67,0.4); }
.toggle-10.on::after { transform: translateX(20px); }

/* ── BREAK REMINDER ──────────────────────── */
.break-10 { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,0.85); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; }
.break-inner-10 { background: rgba(8,7,10,0.99); border: 1px solid var(--border10); border-radius: 24px; padding: 40px; text-align: center; max-width: 380px; animation: modalIn10 0.4s var(--tr10) both; box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 60px rgba(212,168,67,0.08); }
.break-trophy10 { font-size: 56px; margin-bottom: 16px; animation: crownFloat10 3s ease infinite; }
.break-inner-10 h3 { font-family: var(--serif10); font-size: 22px; color: var(--text10); margin-bottom: 10px; }
.break-inner-10 p { font-size: 14px; color: var(--muted10); line-height: 1.6; margin-bottom: 24px; }
.break-inner-10 button { padding: 12px 28px; background: linear-gradient(135deg, var(--gold10c), var(--gold10)); border: none; border-radius: 12px; color: #0a0800; font-family: var(--font10); font-size: 15px; font-weight: 700; }
.break-inner-10 button:hover { box-shadow: 0 4px 20px rgba(212,168,67,0.45); }

/* ── TOAST ───────────────────────────────── */
.toast-10 { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: rgba(8,7,10,0.99); border: 1px solid var(--border10); border-radius: 50px; padding: 10px 22px; font-size: 13px; color: var(--text10); z-index: 2000; transition: transform 0.4s var(--tr10); box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(212,168,67,0.08); white-space: nowrap; }
.toast-10.show { transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) { .sidebar-10 { transform: translateX(-100%); } .right-sb10 { transform: translateX(100%); } .main-10 { left: 0 !important; right: 0 !important; } .board-countdown-10 { display: none; } .mute-btn-10 { right: 10px; } }


/* ═══════════════════════════════════════════════════════
   FEATURES MODULE STYLES — sticky notes, flashcards etc
   ═══════════════════════════════════════════════════════ */
@keyframes stickyPanelIn {
  from { opacity:0; transform:scale(0.85) translateY(20px); }
  to   { opacity:1; transform:scale(1)    translateY(0);    }
}

/* Sticky note fold effect */
.sticky-note::before {
  content:'';position:absolute;top:0;right:0;width:0;height:0;
  border-style:solid;border-width:0 14px 14px 0;
  border-color:transparent rgba(0,0,0,0.25) transparent transparent;
}

/* Typing indicator */
.typing-indicator-feat {
  align-self:flex-start;
}

/* Streak badge animation */
#streakBadge:hover { transform:scale(1.08); }

/* Feature action buttons hover */
button[onclick*="shareAsImageCard"]:hover,
button[onclick*="generateFlashcard"]:hover,
button[onclick*="readAloud"]:hover {
  opacity:0.85;
  transform:translateY(-1px);
}

/* Scrollbar in deck modal */
#plannerList::-webkit-scrollbar { width:4px; }
#plannerList::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.15);border-radius:2px; }

/* Voice lang options hover */
.vlang-opt:hover { background:rgba(255,255,255,0.06) !important; }

body.gold-light .msg-bubble-10 { color: #1a140a !important; background: rgba(150,100,0,0.07) !important; border-color: rgba(150,100,0,0.2) !important; }
body.gold-light .msg-10.user .msg-bubble-10 { background: rgba(150,100,0,0.12) !important; }
body.gold-light .msg-bubble-10 strong { color: #6a3a00 !important; }
body.gold-light .msg-bubble-10 em { color: #7a4a00 !important; }
body.gold-light .main-10 { background: var(--bg10) !important; }
body.gold-light #chatMessages10 { background: transparent !important; }
body.gold-light #inputField10 { color: #1a140a !important; }
body.gold-light .mab-10 { color: #7a6a4a !important; }
body.gold-light .thinking-10 { background: rgba(240,234,210,0.7) !important; color: #1a140a !important; }

/* ═══ LIGHT MODE ADDITIONAL FIXES ═══ */
body.gold-light .chat-input-area-10, body.gold-light [class*="input-area-10"] {
  background: rgba(250,244,220,0.97) !important;
}
body.gold-light [id="chatInput10"], body.gold-light [class*="input-box-10"],
body.gold-light [id="inputField10"] {
  color: #1a140a !important;
  background: rgba(252,247,230,0.92) !important;
  border-color: rgba(150,100,0,0.3) !important;
}
body.gold-light [id="inputField10"]:empty::before,
body.gold-light [id="inputField10"][data-placeholder]:empty::before {
  color: #6a4800 !important;
}
body.gold-light .disclaimer-10 { color: #5a3c00 !important; }
body.gold-light .msg-bubble-10 code { background: rgba(150,100,0,0.1) !important; color: #6a3a00 !important; }
body.gold-light [id$="Modal"] { color-scheme: dark; }

/* XP bar in gold-light mode */
body.gold-light #dedicationBar {
  background: rgba(250,244,220,0.92) !important;
  border-top-color: rgba(150,100,0,0.3) !important;
}
body.gold-light #dedicationBar span { color: #3a2800 !important; }

/* ═══ FOCUS MODE CURSOR FIX ═══ */
body.focus-mode * { cursor: auto !important; }


/* ═══════════════════════════════════════════════════════
   PERFORMANCE CRITICAL OVERRIDES  (perf-fix applied)
   GPU compositing, paint containment, rAF-ready cursors
═══════════════════════════════════════════════════════ */

/* Cursor: position via JS transform, not left/top */
.cursor-glow, .cursor-trail,
/* cursor position handled by JS transform only */

/* Canvas: isolated GPU layer, no repaints */
canvas {
  position: fixed;
  will-change: transform;
  contain: strict;
  transform: translateZ(0);
  image-rendering: pixelated;
}

/* Sidebars: transform-only animation */
.sidebar, .left-sidebar, .right-sidebar,
[class*="sidebar-8"], [class*="sidebar-9"], [class*="sidebar-10"],
[class*="sb-left"], [class*="sb-right"],
[class*="left-sb"], [class*="right-sb"] {
  will-change: transform;
  transform: translateZ(0);
  contain: layout style;
  /* Reduce blur cost */
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* Modals: lightweight */
.modal-overlay, [class*="modal-8"],
[class*="modal-9"], [class*="modal-10"] {
  will-change: opacity;
  contain: layout style;
}

/* Topbar: GPU layer */
.top-bar, .topbar, [class*="topbar-"] {
  transform: translateZ(0);
  contain: layout style;
  /* Less expensive blur */
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Input area */
.chat-input-area, [class*="input-area-"] {
  transform: translateZ(0);
  will-change: auto;
  /* Remove blur entirely from input area */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Glitter — contained to its own layer */
.glitter-container, [id="glitterContainer"] {
  contain: strict;
  overflow: hidden;
}
.glitter {
  will-change: transform, opacity;
  contain: layout size style;
}

/* Logo animation: use transform only, not filter */
.sb-logo-img, [class*="sb-logo-img"] {
  will-change: filter;
  contain: layout;
  animation-duration: 6s !important;
}

/* Home logo: snap animation */
.home-logo-img, [class*="home-logo"] {
  will-change: transform;
  contain: layout;
}

/* Chat messages: content containment */
.chat-messages, [class*="chat-msgs"],
[class*="msgs-"], [class*="-messages"] {
  contain: content;
  overflow-anchor: auto;
}

/* Buttons: fast GPU-composited hover */
button {
  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
}

/* Scrollbars: thin and performant */
* {
  scrollbar-width: thin;
}

/* Reduce excessive animations */
.glitter { animation-duration: 3s; }

/* Aurora beams - transform only */
.aurora-beam {
  will-change: transform, opacity;
  contain: layout style;
}
.aurora-container {
  contain: strict;
  overflow: hidden;
}

/* Particles */
.particle {
  will-change: transform, opacity;
  contain: layout size style;
}

/* Utility */
.hidden {
  display: none !important;
  pointer-events: none !important;
}

/* ── Chat Background Canvas ── */
.chat-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}


/* ── CHAT CANVAS BACKGROUND ─────────────────────────────── */
#chatCanvas10 { position:absolute; inset:0; z-index:0; pointer-events:none; }
.topbar-10      { position:relative; z-index:20; }
.home-10        { position:relative; z-index:2; }
.chat-10        { position:relative; z-index:2; }
.input-area-10  { position:relative; z-index:5; }
/* Message bubbles */
.msg-bubble-10 {
  background: rgba(14,10,2,0.88) !important;
  backdrop-filter: blur(8px);
}
.msg-10.user .msg-bubble-10 {
  background: rgba(180,130,20,0.22) !important;
  backdrop-filter: blur(8px);
}
[class*="mab-10"] {
  background: rgba(14,10,2,0.82) !important;
  border: 1px solid rgba(200,160,40,0.38) !important;
  color: #d4a843 !important;
}

/* ── Settings-driven overrides ── */
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
body.high-contrast { filter: contrast(1.25); }

/* ── No-anim: suppress typing animation on reload ── */
.msg-10.no-anim .msg-bubble-10,
.msg-10.no-anim .msg-bubble { animation: none !important; }

/* ── Bot action buttons ── */
.msg-acts-10 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 4px;
  opacity: 1;
}
.msg-10.user .msg-acts-10 { opacity: 0; }
.msg-10.user:hover .msg-acts-10 { opacity: 1; }
.mab-10 {
  background: rgba(212,160,23,0.06);
  border: 1px solid rgba(212,160,23,0.2);
  color: rgba(245,237,214,0.85);
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.18s;
  clip-path: polygon(4px 0%,100% 0%,calc(100% - 4px) 100%,0% 100%);
}
.mab-10:hover { background: rgba(212,160,23,0.16); border-color: var(--gold,#D4A017); color: #F0C040; }
