/* -------------------------------------------------------------
 * CSS Variable Design System (Premium Yellow & Monochrome Theme)
 * ------------------------------------------------------------- */
:root[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #0c0c0d;
  --bg-tertiary: #141416;
  --bg-message-user: #1b1b1e;
  --bg-hover: #202022;
  --border-color: #28282b;
  
  --text-primary: #ffffff;
  --text-secondary: #afaeac;
  --text-tertiary: #6c6b69;
  
  --accent-yellow: #f6ca21;
  --accent-gold: #cfa10f;
  --accent-gradient: linear-gradient(135deg, #f6ca21 0%, #ca9e0d 100%);
  --accent-gradient-hover: linear-gradient(135deg, #ffe259 0%, #f6ca21 100%);
  --glow-color-1: rgba(250, 204, 21, 0.35);
  --glow-color-2: rgba(245, 158, 11, 0.20);
  --glow-color-3: rgba(217, 119, 6, 0.05);

  --shadow-sm: rgba(0, 0, 0, 0.6);
  --shadow-md: rgba(0, 0, 0, 0.8);
  --shadow-lg: rgba(0, 0, 0, 0.95);
  
  --code-header-bg: #0c0c0d;
  --code-body-bg: #141416;
}

:root[data-theme="cyan"] {
  --bg-primary: #030712;
  --bg-secondary: #0b1329;
  --bg-tertiary: #111e38;
  --bg-message-user: #162444;
  --bg-hover: #1e293b;
  --border-color: #1e3a5f;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  
  --accent-yellow: #06b6d4;
  --accent-gold: #0284c7;
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  --accent-gradient-hover: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
  --glow-color-1: rgba(6, 182, 212, 0.35);
  --glow-color-2: rgba(2, 132, 199, 0.20);
  --glow-color-3: rgba(14, 165, 233, 0.05);

  --shadow-sm: rgba(0, 0, 0, 0.6);
  --shadow-md: rgba(0, 0, 0, 0.8);
  --shadow-lg: rgba(0, 0, 0, 0.95);
  
  --code-header-bg: #0b1329;
  --code-body-bg: #111e38;
}

:root[data-theme="emerald"] {
  --bg-primary: #022c22;
  --bg-secondary: #064e3b;
  --bg-tertiary: #065f46;
  --bg-message-user: #047857;
  --bg-hover: #059669;
  --border-color: #10b981;
  
  --text-primary: #ecfdf5;
  --text-secondary: #a7f3d0;
  --text-tertiary: #6ee7b7;
  
  --accent-yellow: #10b981;
  --accent-gold: #059669;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --accent-gradient-hover: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --glow-color-1: rgba(16, 185, 129, 0.35);
  --glow-color-2: rgba(5, 150, 105, 0.20);
  --glow-color-3: rgba(4, 120, 87, 0.05);

  --shadow-sm: rgba(0, 0, 0, 0.6);
  --shadow-md: rgba(0, 0, 0, 0.8);
  --shadow-lg: rgba(0, 0, 0, 0.95);
  
  --code-header-bg: #064e3b;
  --code-body-bg: #065f46;
}

:root[data-theme="purple"] {
  --bg-primary: #090514;
  --bg-secondary: #130a2a;
  --bg-tertiary: #1c103f;
  --bg-message-user: #271658;
  --bg-hover: #321c70;
  --border-color: #4a28a2;
  
  --text-primary: #faf5ff;
  --text-secondary: #d8b4fe;
  --text-tertiary: #c084fc;
  
  --accent-yellow: #c084fc;
  --accent-gold: #9333ea;
  --accent-gradient: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
  --accent-gradient-hover: linear-gradient(135deg, #e9d5ff 0%, #c084fc 100%);
  --glow-color-1: rgba(192, 132, 252, 0.35);
  --glow-color-2: rgba(147, 51, 234, 0.20);
  --glow-color-3: rgba(126, 34, 206, 0.05);

  --shadow-sm: rgba(0, 0, 0, 0.6);
  --shadow-md: rgba(0, 0, 0, 0.8);
  --shadow-lg: rgba(0, 0, 0, 0.95);
  
  --code-header-bg: #130a2a;
  --code-body-bg: #1c103f;
}

:root[data-theme="crimson"] {
  --bg-primary: #110507;
  --bg-secondary: #220a0e;
  --bg-tertiary: #330f16;
  --bg-message-user: #44141e;
  --bg-hover: #551925;
  --border-color: #772334;
  
  --text-primary: #fff1f2;
  --text-secondary: #fecdd3;
  --text-tertiary: #fda4af;
  
  --accent-yellow: #f43f5e;
  --accent-gold: #e11d48;
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --accent-gradient-hover: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  --glow-color-1: rgba(244, 63, 94, 0.35);
  --glow-color-2: rgba(225, 29, 72, 0.20);
  --glow-color-3: rgba(190, 18, 60, 0.05);

  --shadow-sm: rgba(0, 0, 0, 0.6);
  --shadow-md: rgba(0, 0, 0, 0.8);
  --shadow-lg: rgba(0, 0, 0, 0.95);
  
  --code-header-bg: #220a0e;
  --code-body-bg: #330f16;
}

/* Spectrum Rainbow Theme */
:root[data-theme="rainbow"] {
  --bg-primary: #000000;
  --bg-secondary: #130f26;
  --bg-tertiary: #1e173b;
  --bg-message-user: #271d4e;
  --bg-hover: #322663;
  --border-color: #ff007f;
  
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-tertiary: #94a3b8;
  
  --accent-yellow: #ff007f;
  --accent-gold: #00e5ff;
  --accent-gradient: linear-gradient(135deg, #ff007f, #ff7f00, #ffeb00, #00ff7f, #00e5ff, #7f00ff);
  --accent-gradient-hover: linear-gradient(135deg, #ff3399, #ff9933, #ffff33, #33ff99, #33ebff, #9933ff);
  --glow-color-1: rgba(255, 0, 127, 0.45);
  --glow-color-2: rgba(0, 229, 255, 0.30);
  --glow-color-3: rgba(255, 235, 0, 0.15);

  --shadow-sm: rgba(0, 0, 0, 0.6);
  --shadow-md: rgba(0, 0, 0, 0.8);
  --shadow-lg: rgba(0, 0, 0, 0.95);
  
  --code-header-bg: #130f26;
  --code-body-bg: #1e173b;
}

:root[data-theme="rainbow"] .gemini-home-glow-bg {
  background: radial-gradient(
    ellipse 65% 55% at 50% 50%, 
    rgba(255, 0, 127, 0.40) 0%, 
    rgba(255, 127, 0, 0.30) 20%, 
    rgba(255, 235, 0, 0.25) 35%, 
    rgba(0, 255, 127, 0.20) 50%, 
    rgba(0, 229, 255, 0.15) 65%, 
    rgba(127, 0, 255, 0.10) 80%, 
    rgba(0, 0, 0, 0) 95%
  );
  animation: ambientGlowPulse 5.5s ease-in-out infinite, rainbowHueCycle 12s linear infinite -4s !important;
}

@keyframes rainbowHueCycle {
  0% { filter: blur(75px) hue-rotate(0deg); }
  100% { filter: blur(75px) hue-rotate(360deg); }
}

/* Rainbow Theme Sidebar Details Overrides */
@keyframes rainbowLogoShift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

:root[data-theme="rainbow"] .brand-logo-img {
  animation: rainbowLogoShift 8s linear infinite !important;
}

:root[data-theme="rainbow"] .brand-text {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #000000 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  animation: none !important;
}

:root[data-theme="rainbow"] .nav-item.active {
  background: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

:root[data-theme="rainbow"] .nav-item.active .nav-icon {
  background: linear-gradient(135deg, #ff007f, #ff7f00, #ffeb00, #00ff7f, #00e5ff, #7f00ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #ff007f !important;
  animation: rainbowBorderLoop 8s linear infinite !important;
}

:root[data-theme="rainbow"] .nav-item.active span,
:root[data-theme="rainbow"] .nav-item.active .nav-label {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

:root[data-theme="rainbow"] .sidebar-conversations-header .new-chat-btn {
  background: linear-gradient(135deg, #ff007f, #ff7f00, #ffeb00, #00ff7f, #00e5ff);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 0, 127, 0.4);
}

:root[data-theme="rainbow"] .conversations-title i {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #000000 !important;
  color: #000000 !important;
}

:root[data-theme="rainbow"] .conversation-item {
  background: transparent !important;
  color: #121214 !important;
  border: none !important;
  box-shadow: none !important;
}

:root[data-theme="rainbow"] .conversation-item:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #000000 !important;
}

:root[data-theme="rainbow"] .conversation-item.active {
  background: rgba(0, 0, 0, 0.09) !important;
  color: #000000 !important;
}


/* Rainbow Theme Card Borders, Badges, Icons & Sidebar Dividers */
:root[data-theme="rainbow"] .sidebar {
  background-color: #e5e5ea !important;
  color: #121214 !important;
  position: relative !important;
  border-right: none !important;
  scrollbar-width: auto !important;
  scrollbar-color: #000000 transparent !important;
}

:root[data-theme="rainbow"] .sidebar::-webkit-scrollbar {
  display: block !important;
  width: 12px !important;
}

:root[data-theme="rainbow"] .sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25) !important;
  border-radius: 6px !important;
}

:root[data-theme="rainbow"] .sidebar::-webkit-scrollbar-thumb {
  background: #000000 !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

:root[data-theme="rainbow"] .sidebar::-webkit-scrollbar-thumb:hover {
  background: #18181b !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7) !important;
}

:root[data-theme="rainbow"] .sidebar::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 3.5px !important;
  height: 100% !important;
  background: linear-gradient(180deg, #ff007f 0%, #ff7f00 20%, #ffeb00 40%, #00ff7f 60%, #00e5ff 80%, #7f00ff 100%) !important;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.7), 0 0 16px rgba(0, 229, 255, 0.5) !important;
  animation: rainbowBorderLoop 9.5s linear infinite -1.5s !important;
  pointer-events: none !important;
  z-index: 100 !important;
}

@keyframes scrollbarRainbowPan {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

:root[data-theme="rainbow"] header.chat-header {
  position: relative !important;
  background-color: #000000 !important;
  background-image: none !important;
  border-bottom: none !important;
  z-index: 1000 !important;
}

:root[data-theme="rainbow"] header.chat-header::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(90deg, #ff007f 0%, #ff7f00 20%, #ffeb00 40%, #00ff7f 60%, #00e5ff 80%, #7f00ff 100%) !important;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.7), 0 0 16px rgba(0, 229, 255, 0.5) !important;
  animation: rainbowBorderLoop 8s linear infinite !important;
  pointer-events: none !important;
  z-index: 1001 !important;
}

:root[data-theme="rainbow"] header.chat-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 0, 127, 0.45) 0%, 
    rgba(255, 127, 0, 0.40) 20%, 
    rgba(255, 235, 0, 0.35) 40%, 
    rgba(0, 255, 127, 0.30) 60%, 
    rgba(0, 229, 255, 0.30) 80%, 
    rgba(127, 0, 255, 0.35) 100%
  );
  mask-image: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
  filter: blur(14px);
  pointer-events: none !important;
  animation: rainbowBorderLoop 8s linear infinite !important;
  z-index: 1 !important;
}

header.chat-header .header-left,
header.chat-header .header-right,
header.chat-header #menu-toggle-btn,
header.chat-header #theme-toggle-btn,
header.chat-header .user-auth-container,
header.chat-header button {
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

:root[data-theme="rainbow"] header.chat-header > * {
  position: relative;
  z-index: 2;
}

:root[data-theme="rainbow"] .dict-cover-card,
:root[data-theme="rainbow"] .video-card,
:root[data-theme="rainbow"] .lab-card,
:root[data-theme="rainbow"] .setting-card,
:root[data-theme="rainbow"] .community-card,
:root[data-theme="rainbow"] .random-word-card,
:root[data-theme="rainbow"] .word-history-card,
:root[data-theme="rainbow"] .metronome-popover-card,
:root[data-theme="rainbow"] .save-word-popover {
  border: 2px solid transparent !important;
  background-image: linear-gradient(var(--bg-secondary), var(--bg-secondary)), 
                    linear-gradient(135deg, #ff007f, #ff7f00, #ffeb00, #00ff7f, #00e5ff, #7f00ff) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(255, 0, 127, 0.15) !important;
}

@keyframes rainbowBorderLoop {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

:root[data-theme="rainbow"] .gemini-user-query {
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(rgba(13, 11, 24, 0.96), rgba(13, 11, 24, 0.96)), 
                    linear-gradient(135deg, #ff007f, #ff7f00, #ffeb00, #00ff7f, #00e5ff, #7f00ff) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 4px 16px rgba(255, 0, 127, 0.25) !important;
  animation: rainbowBorderLoop 8.5s linear infinite -2.5s !important;
}

:root[data-theme="rainbow"] .gemini-ai-response {
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(rgba(1, 1, 3, 0.99), rgba(1, 1, 3, 0.99)), 
                    linear-gradient(135deg, #ff007f, #ff7f00, #ffeb00, #00ff7f, #00e5ff, #7f00ff) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.2) !important;
  animation: rainbowBorderLoop 10.5s linear infinite -4.5s !important;
}

:root[data-theme="rainbow"] .gemini-home-input-bar {
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(rgba(13, 11, 24, 0.96), rgba(13, 11, 24, 0.96)), 
                    linear-gradient(90deg, #ff007f, #ff7f00, #ffeb00, #00ff7f, #00e5ff, #7f00ff) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 6px rgba(255, 0, 127, 0.10) !important;
  animation: rainbowBorderLoop 12s linear infinite -4s !important;
}

:root[data-theme="rainbow"] .gemini-home-input-bar:focus-within {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 10px rgba(0, 229, 255, 0.18) !important;
}

:root[data-theme="rainbow"] .menu-toggle-btn,
:root[data-theme="rainbow"] #menu-toggle-btn {
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(rgba(13, 11, 24, 0.96), rgba(13, 11, 24, 0.96)), 
                    linear-gradient(135deg, #ff007f, #ff7f00, #ffeb00, #00ff7f, #00e5ff, #7f00ff) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 0, 127, 0.25) !important;
  animation: rainbowBorderLoop 7.5s linear infinite -2s !important;
}

:root[data-theme="rainbow"] .menu-toggle-btn i {
  color: #ffffff !important;
}

:root[data-theme="rainbow"] .cover-badge,
:root[data-theme="rainbow"] .badge,
:root[data-theme="rainbow"] .cover-badge-text {
  background: linear-gradient(135deg, #ff007f, #ff7f00, #ffeb00, #00ff7f, #00e5ff) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: none !important;
}

:root[data-theme="rainbow"] .cover-icon {
  background: linear-gradient(135deg, #ff007f, #ff7f00, #ffeb00, #00ff7f, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff007f;
}



:root[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f5;
  --bg-tertiary: #eaeaea;
  --bg-message-user: #eaeaea;
  --bg-hover: #dfdfdf;
  --border-color: #dcdcdc;
  
  --text-primary: #000000;
  --text-secondary: #6c6b69;
  --text-tertiary: #afaeac;
  
  --accent-yellow: #ca9e0d;
  --accent-gold: #9f7b0a;
  --accent-gradient: linear-gradient(135deg, #ca9e0d 0%, #9f7b0a 100%);
  --accent-gradient-hover: linear-gradient(135deg, #f6ca21 0%, #ca9e0d 100%);
  --glow-color-1: rgba(202, 158, 13, 0.15);
  --glow-color-2: rgba(159, 123, 10, 0.10);
  --glow-color-3: rgba(246, 202, 33, 0.02);
  
  --shadow-sm: rgba(0, 0, 0, 0.05);
  --shadow-md: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  
  --code-header-bg: #eaeaea;
  --code-body-bg: #fafafa;

  /* Standardized 2-Tier Gray Design System */
  --gray-dark: #64748b;   /* Primary Soft Slate Gray for detail labels, body metadata, titles */
  --gray-light: #94a3b8;  /* Secondary Light Slate Gray for metronome icon/text, subtitles, hints */
}

:root[data-theme="light"] .gemini-user-query {
  background: rgba(202, 158, 13, 0.14) !important;
  border: 1px solid var(--accent-yellow, #ca9e0d) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .gemini-ai-response {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

/* -------------------------------------------------------------
 * Reset & Layout
 * ------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Global utility: hide elements */
.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  transition: background-color 0.25s ease;
}

.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* -------------------------------------------------------------
 * Sliding Sidebar Styling (Expanded / Collapsed States)
 * ------------------------------------------------------------- */
.sidebar {
  background-color: #e5e5ea;          /* Premium Silver-Gray */
  color: #121214;                     /* Dark Slate text */
  border-right: 1px solid #c7c7cc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 10;
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s ease;
  overflow: hidden;
}

/* Sidebar Sizing States */
.sidebar.expanded {
  width: 280px;
}

.sidebar.collapsed {
  width: 0px;
  border-right: none;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid #c7c7cc;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-text {
  color: #000000;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #000000;
  -webkit-text-stroke: none;
  filter: none;
  text-shadow: none !important;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
  transition: filter 0.35s ease;
}

/* Dynamic Per-Theme Brand Logo Accent Matching */
:root[data-theme="cyan"] .brand-logo-img { filter: hue-rotate(145deg); }
:root[data-theme="emerald"] .brand-logo-img { filter: hue-rotate(90deg); }
:root[data-theme="purple"] .brand-logo-img { filter: hue-rotate(220deg); }
:root[data-theme="crimson"] .brand-logo-img { filter: hue-rotate(310deg); }
:root[data-theme="dark"] .brand-logo-img { filter: hue-rotate(0deg); }
:root[data-theme="rainbow"] .brand-logo-img { filter: hue-rotate(140deg); }
:root[data-theme="light"] .brand-logo-img { filter: hue-rotate(170deg); }



.sidebar.collapsed .brand-text {
  display: none;
}

.sidebar.collapsed .brand {
  justify-content: center;
  width: 100%;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 1rem 0;
}

.sidebar.collapsed .sidebar-collapse-btn {
  display: none; /* Hide toggle button in collapsed state, openable via hover/headers or click */
}

/* Sidebar Navigation Items */
.sidebar-nav {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.85rem;
  border-radius: 10px;
  color: #121214;                      /* Dark text on light gray */
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-icon {
  font-size: 1.15rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: #121214;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease;
  opacity: 1;
}

.sidebar.collapsed .nav-label {
  display: none;
  opacity: 0;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 0.8rem 0;
}

/* Sidebar navigation interactions */
.nav-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #000000;
}

.nav-item:hover .nav-icon {
  transform: scale(1.08);
}

.nav-item.active {
  background: var(--bg-primary);
  color: var(--accent-yellow);
  box-shadow: 0 4px 10px var(--shadow-sm);
}

.nav-item.active .nav-icon {
  color: var(--accent-yellow);
}

.new-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid #c7c7cc;
  background-color: #000000;          /* Black button */
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.new-chat-btn:hover {
  background-color: #1a1a1d;
  border-color: #000000;
  transform: translateY(-1px);
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8e8e93;                     /* Premium label gray */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1.25rem 0.75rem 0.5rem;
}

/* Horizontal Dividers */
.sidebar-divider {
  border: none;
  height: 1px;
  background-color: #c7c7cc;
  margin: 0.85rem 0.75rem;
}

.sidebar.collapsed .sidebar-divider {
  margin: 0.85rem 0.5rem;
}

/* -------------------------------------------------------------
 * Sidebar Recent Conversations with SOL Section
 * ------------------------------------------------------------- */
.sidebar-conversations-section {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.75rem 0.75rem;
}

.sidebar.collapsed .sidebar-conversations-section {
  display: none;
}

.sidebar-conversations-header {
  display: none !important;
}

.conversations-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sidebar-conversations-header .new-chat-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  background-color: #000000;
  color: #facc15;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.sidebar-conversations-header .new-chat-btn:hover {
  background-color: #27272a;
  transform: scale(1.08);
}

.conversations-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.52rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1c1c1e !important;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.conversation-item:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #000000 !important;
}

.conversation-item.active {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #000000 !important;
  font-weight: 600;
}

.conversation-item-icon {
  display: none !important;
}

.conversation-item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.25;
  color: inherit;
}

.conversation-item-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.conversation-item:hover .conversation-item-actions,
.conversation-item.active .conversation-item-actions,
.conversation-item.menu-open .conversation-item-actions,
.conversation-item.renaming .conversation-item-actions {
  opacity: 1;
}

.conversation-item-pinned {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #8e8e93;
  margin-right: 0.35rem;
  flex-shrink: 0;
  transform: rotate(35deg);
  transition: color 0.15s ease;
}

.conversation-item:hover .conversation-item-pinned,
.conversation-item.active .conversation-item-pinned {
  color: #636366;
}

.conversation-action-btn {
  background: transparent !important;
  border: none !important;
  color: #71717a !important;
  font-size: 0.82rem !important;
  cursor: pointer;
  padding: 0.25rem 0.35rem !important;
  border-radius: 5px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conversation-action-btn:hover,
.conversation-item.menu-open .conversation-item-more {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #18181b !important;
}

.conversation-action-btn.conversation-item-del:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

.conversation-action-btn.conversation-rename-save:hover {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1) !important;
}

/* Floating Conversation Context Menu */
.conversation-context-menu {
  position: fixed;
  z-index: 999999;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 5px;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: convMenuFadeIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes convMenuFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-3px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.conversation-context-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  font-size: 0.83rem;
  font-family: inherit;
  font-weight: 500;
  color: #18181b;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
  outline: none;
}

.conversation-context-menu-item:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
}

.conversation-context-menu-item i {
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
  color: #71717a;
}

.conversation-context-menu-item:hover i {
  color: #18181b;
}

.conversation-context-menu-item.menu-pin-action:hover i {
  color: #636366;
}

.conversation-context-menu-item.danger {
  color: #dc2626;
}

.conversation-context-menu-item.danger i {
  color: #dc2626;
}

.conversation-context-menu-item.danger:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.conversation-context-menu-item.danger:hover i {
  color: #b91c1c;
}

/* Inline Rename Input */
.conversation-rename-input {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0.15rem 0.45rem;
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 500;
  border: 1.5px solid #3b82f6 !important;
  border-radius: 6px;
  background: #ffffff !important;
  color: #18181b !important;
  outline: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1.25rem 1rem;
  border-top: 1px solid #c7c7cc;
  background-color: #d8d8dd;          /* Apple-style footer gray */
}

.sidebar.collapsed .sidebar-footer {
  padding: 1rem 0.5rem;
  display: flex;
  justify-content: center;
}

.sidebar.collapsed .api-status-badge {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.sidebar.collapsed .status-text {
  display: none;
}

.api-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background-color: #000000;          /* Black badge */
  border: 1px solid #c7c7cc;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

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

.status-dot.success {
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.status-dot.warning {
  background-color: var(--accent-yellow);
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.8);
}

/* -------------------------------------------------------------
 * Main Workspace Layout
 * ------------------------------------------------------------- */
.chat-workspace {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-primary);
  position: relative;
}

/* Header */
.chat-header {
  height: 64px;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-primary);
  z-index: 5;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-right: 0;
  transition: all 0.2s ease;
}

.menu-toggle-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--text-secondary);
}

.current-chat-title-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.chat-agent-badge {
  font-size: 1.2rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-agent-badge i {
  color: var(--text-primary) !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
}

.chat-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.model-badge {
  padding: 0.4rem 0.85rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  min-width: 38px;
  width: auto;
  height: 38px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.header-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* -------------------------------------------------------------
 * Panels Container & Panel Components
 * ------------------------------------------------------------- */
.panels-container {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 64px);
  width: 100%;
}

@keyframes detailFadeIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.workspace-panel {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem 22%;
  opacity: 0;
  position: relative;
}

.workspace-panel.active {
  display: flex !important;
  opacity: 1;
  animation: detailFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Only top-level direct children fade in — no deep child animations that block clicks */
.workspace-panel.active > * {
  animation: detailFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Disable fade-in animations on all details inside Word Pronunciation windows */
#panel-random-word *,
.random-word-card,
.random-word-card *,
.word-history-card,
.word-history-card * {
  animation: none !important;
  animation-delay: 0s !important;
  opacity: 1 !important;
  transform: none !important;
}

#panel-start-here {
  padding: 1.5rem 1rem !important;
  justify-content: flex-start !important;
}

#panel-sol-chat,
#panel-describing-lab {
  padding: 2rem 5% !important;
}

#panel-videos {
  padding: 0.8rem 2% !important;
}

#panel-dictionary {
  padding: 1.5rem 3% 3rem 3% !important;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

#panel-info {
  padding: 2rem 8% !important;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* -------------------------------------------------------------
 * 1. Panel: Start Here (Gemini Interface Aesthetics)
 * ------------------------------------------------------------- */
#panel-start-here {
  padding: 2rem 1.5rem !important;
  display: none;
  align-items: center;
  justify-content: flex-start !important;
  height: 100%;
  min-height: 100%;
  background: #000000 !important;
  position: relative;
  overflow-y: auto !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

#panel-start-here.active {
  display: flex !important;
  flex-direction: column;
}

.gemini-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 2;
}

@keyframes ambientGlowPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.72) rotate(0deg);
    opacity: 0.70;
  }
  33% {
    transform: translate(-47%, -52%) scale(0.82) rotate(2deg);
    opacity: 0.95;
  }
  66% {
    transform: translate(-53%, -48%) scale(0.85) rotate(-2deg);
    opacity: 0.88;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.72) rotate(0deg);
    opacity: 0.70;
  }
}

/* Ambient Radial Glow Effect (Driven by Theme CSS Variables with Organic Animation) */
.gemini-home-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 320px;
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%, 
    var(--glow-color-1, rgba(250, 204, 21, 0.35)) 0%, 
    var(--glow-color-2, rgba(245, 158, 11, 0.20)) 30%, 
    var(--glow-color-3, rgba(217, 119, 6, 0.05)) 55%, 
    rgba(9, 10, 15, 0) 78%
  );
  pointer-events: none;
  z-index: 1;
  filter: blur(48px);
  animation: ambientGlowPulse 5.5s ease-in-out infinite;
}

/* Header Theme Dropdown Popover */
.theme-picker-wrapper {
  position: relative;
  z-index: 10000;
}

.theme-dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  width: 210px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.65rem;
  box-shadow: 0 12px 36px var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.8);
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  backdrop-filter: blur(20px);
}

.theme-menu-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.15rem;
}

.theme-option-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.theme-option-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-color);
}

.theme-option-btn.active {
  background: var(--bg-hover);
  border-color: var(--accent-yellow);
  font-weight: 600;
}

.theme-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Settings Panel Swatches Grid */
.theme-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.theme-swatch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.65rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.theme-swatch-card:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-2px);
}

.theme-swatch-card.active {
  border-color: var(--accent-yellow);
  background: var(--bg-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.swatch-preview {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.gemini-home-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  padding: 2rem 0;
  box-sizing: border-box;
}

.sol-eye-icon-wrapper,
.gemini-home-greeting,
.gemini-home-input-bar,
.gemini-home-conversation {
  position: relative;
  z-index: 2;
}

/* Center-aligned Theme-Colored Animated Sol Graphic Icon (Hand-Crafted Native Vector SVG) */
.sol-eye-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem auto;
  width: 160px;
  height: 170px;
  order: 0;
  position: relative;
  z-index: 10;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.sol-eye-icon-wrapper:hover {
  transform: scale(1.08) translateY(-4px);
}

.sol-eye-icon-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 1 !important;
  visibility: visible !important;
  filter: drop-shadow(0 0 18px var(--glow-color-1, rgba(246, 202, 33, 0.55)));
}

.sol-eye-icon-svg path,
.sol-eye-icon-svg line,
.sol-eye-icon-svg circle {
  stroke: #f6ca21;
  opacity: 1 !important;
  visibility: visible !important;
  transition: stroke 0.3s ease, fill 0.3s ease;
}

.sol-eye-icon-svg circle.sol-pupil-dot {
  fill: #f6ca21;
}

.sol-eye-icon-svg circle.sol-pupil-highlight {
  fill: #131314;
  stroke: none !important;
}

/* Pupil Group Translates Left -> Right -> Center */
.sol-pupil-group,
.workspace-panel.active .sol-pupil-group,
.gemini-home-content .sol-pupil-group {
  transform-origin: 50px 120px;
  animation: solPupilVectorMotion 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite !important;
}

/* Eyelid Group Blinks Vertically */
.sol-eyelid-group,
.workspace-panel.active .sol-eyelid-group,
.gemini-home-content .sol-eyelid-group {
  transform-origin: 50px 120px;
  animation: solEyelidVectorBlink 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite !important;
}

/* Eye Pupil Look Left -> Look Right -> Center Keyframes */
@keyframes solPupilVectorMotion {
  0%, 18% {
    transform: translateX(0);
  }
  28%, 42% {
    transform: translateX(-15px); /* Look Left */
  }
  52%, 66% {
    transform: translateX(15px); /* Look Right */
  }
  76%, 100% {
    transform: translateX(0); /* Return Center */
  }
}

/* Eyelid Blink Keyframes */
@keyframes solEyelidVectorBlink {
  0%, 82% {
    transform: scaleY(1);
  }
  87% {
    transform: scaleY(0.06); /* Blink Closed */
  }
  92%, 100% {
    transform: scaleY(1); /* Reopen */
  }
}

/* Disable cascading workspace panel fade-in animations on drawing wrapper */
.workspace-panel.active .sol-eye-icon-wrapper,
.gemini-home-content .sol-eye-icon-wrapper {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Theme-Specific Bright Accent Colors for SVG Graphic Icon */
:root[data-theme="dark"] .sol-eye-icon-svg path,
:root[data-theme="dark"] .sol-eye-icon-svg line,
:root[data-theme="dark"] .sol-eye-icon-svg circle { stroke: #f6ca21 !important; }
:root[data-theme="dark"] .sol-eye-icon-svg circle.sol-pupil-dot { fill: #f6ca21 !important; }
:root[data-theme="dark"] .sol-eye-icon-svg circle.sol-pupil-highlight { fill: #131314 !important; }

:root[data-theme="cyan"] .sol-eye-icon-svg path,
:root[data-theme="cyan"] .sol-eye-icon-svg line,
:root[data-theme="cyan"] .sol-eye-icon-svg circle { stroke: #00e5ff !important; }
:root[data-theme="cyan"] .sol-eye-icon-svg circle.sol-pupil-dot { fill: #00e5ff !important; }
:root[data-theme="cyan"] .sol-eye-icon-svg circle.sol-pupil-highlight { fill: #081622 !important; }

:root[data-theme="emerald"] .sol-eye-icon-svg path,
:root[data-theme="emerald"] .sol-eye-icon-svg line,
:root[data-theme="emerald"] .sol-eye-icon-svg circle { stroke: #10b981 !important; }
:root[data-theme="emerald"] .sol-eye-icon-svg circle.sol-pupil-dot { fill: #10b981 !important; }
:root[data-theme="emerald"] .sol-eye-icon-svg circle.sol-pupil-highlight { fill: #062016 !important; }

:root[data-theme="purple"] .sol-eye-icon-svg path,
:root[data-theme="purple"] .sol-eye-icon-svg line,
:root[data-theme="purple"] .sol-eye-icon-svg circle { stroke: #c084fc !important; }
:root[data-theme="purple"] .sol-eye-icon-svg circle.sol-pupil-dot { fill: #c084fc !important; }
:root[data-theme="purple"] .sol-eye-icon-svg circle.sol-pupil-highlight { fill: #160a24 !important; }

:root[data-theme="crimson"] .sol-eye-icon-svg path,
:root[data-theme="crimson"] .sol-eye-icon-svg line,
:root[data-theme="crimson"] .sol-eye-icon-svg circle { stroke: #f43f5e !important; }
:root[data-theme="crimson"] .sol-eye-icon-svg circle.sol-pupil-dot { fill: #f43f5e !important; }
:root[data-theme="crimson"] .sol-eye-icon-svg circle.sol-pupil-highlight { fill: #200810 !important; }

:root[data-theme="rainbow"] .sol-eye-icon-wrapper,
:root[data-theme="rainbow"] .workspace-panel.active .sol-eye-icon-wrapper,
:root[data-theme="rainbow"] .gemini-home-content .sol-eye-icon-wrapper {
  animation: rainbowBorderLoop 8s linear infinite !important;
}

:root[data-theme="rainbow"] .sol-eye-icon-svg {
  filter: url(#solGentleTexture);
}

:root[data-theme="rainbow"] .sol-eye-icon-svg path,
:root[data-theme="rainbow"] .sol-eye-icon-svg line,
:root[data-theme="rainbow"] .sol-eye-icon-svg circle:not(.sol-pupil-dot):not(.sol-pupil-highlight) { stroke: #ff007f !important; }

:root[data-theme="rainbow"] .sol-eye-icon-svg circle.sol-pupil-dot {
  stroke: none !important;
  fill: #ff007f !important;
}

:root[data-theme="rainbow"] .sol-eye-icon-svg circle.sol-pupil-highlight { fill: #120410 !important; }

:root[data-theme="light"] .sol-eye-icon-svg path,
:root[data-theme="light"] .sol-eye-icon-svg line,
:root[data-theme="light"] .sol-eye-icon-svg circle { stroke: #4f46e5 !important; }
:root[data-theme="light"] .sol-eye-icon-svg circle.sol-pupil-dot { fill: #4f46e5 !important; }
:root[data-theme="light"] .sol-eye-icon-svg circle.sol-pupil-highlight { fill: #f8fafc !important; }

.gemini-home-greeting {
  font-family: 'Outfit', 'Google Sans', sans-serif;
  font-size: 2.65rem;
  font-weight: 400;
  color: #f1f5f9;
  margin-bottom: 2.25rem;
  text-align: center;
  letter-spacing: -0.01em;
  order: 1;
}

/* Floating Gemini Search / Input Bar Dock at Bottom of Viewport */
.gemini-bottom-dock {
  position: sticky;
  bottom: 1rem;
  width: 100%;
  max-width: 720px;
  z-index: 100;
  margin: 1.5rem auto 0 auto;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.gemini-bottom-dock .gemini-home-input-bar {
  pointer-events: auto;
  width: 100%;
}

.gemini-home-input-bar {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 58px;
  background: #151722;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  gap: 0.65rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.gemini-home-input-bar:focus-within {
  background: rgba(32, 36, 52, 0.95);
  border-color: var(--accent-yellow, rgba(250, 204, 21, 0.5));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.6), 0 0 24px var(--glow-color-1, rgba(250, 204, 21, 0.25));
}

.gemini-bar-icon-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.gemini-bar-icon-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.gemini-home-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}

.gemini-home-input-bar input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Gemini Model Selector Pill inside bar */
.gemini-home-model-selector {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.35rem 0.75rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gemini-home-model-selector:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.model-blue-dot {
  color: var(--accent-yellow, #facc15);
  font-size: 0.7rem;
}

.gemini-home-model-selector .arrow-icon {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Quick Chips Container */
.gemini-chips-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
  width: 100%;
}

.gemini-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.gemini-chip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* Inline Gemini Home Conversation Feed */
.gemini-home-conversation {
  width: 100%;
  max-width: 720px;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  order: 3;
}

/* When Conversation contains messages, move the Ask Sol input box below the conversation messages! */
.gemini-home-content:has(.gemini-inline-message) .gemini-home-conversation,
.gemini-home-content.has-messages .gemini-home-conversation,
#panel-start-here.has-messages .gemini-home-conversation {
  order: 2;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.gemini-home-content:has(.gemini-inline-message) .gemini-input-wrapper,
.gemini-home-content.has-messages .gemini-input-wrapper,
#panel-start-here.has-messages .gemini-input-wrapper {
  order: 3;
}

.gemini-inline-message {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeInMsg 0.25s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.gemini-user-query {
  align-self: flex-end;
  background: var(--glow-color-2, rgba(245, 158, 11, 0.20));
  border: 1px solid var(--accent-yellow, #f6ca21);
  color: var(--text-primary, #ffffff);
  padding: 0.65rem 1.1rem;
  border-radius: 18px 18px 4px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 85%;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 16px var(--glow-color-1, rgba(250, 204, 21, 0.20));
  word-break: break-word;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gemini-ai-response {
  align-self: flex-start;
  background: #010103;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 0.65rem 1.1rem;
  border-radius: 18px 18px 18px 4px;
  font-size: 0.95rem;
  line-height: 1.5;
  width: fit-content;
  max-width: 85%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  position: relative;
  box-sizing: border-box;
  word-break: break-word;
}

.gemini-ai-body {
  width: fit-content;
  max-width: 100%;
}

.gemini-ai-body > p {
  margin: 0 0 0.6rem 0;
}

.gemini-ai-body > p:only-child {
  display: inline;
  margin: 0;
}

.gemini-ai-body > p:last-child {
  margin-bottom: 0;
}

.gemini-ai-header {
  display: none !important;
}

.gemini-ai-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-yellow);
}

.gemini-ai-actions {
  display: flex;
  gap: 0.4rem;
}

.gemini-action-icon-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gemini-action-icon-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 6px var(--shadow-sm);
}

.feature-card:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px var(--shadow-md);
}

.card-icon {
  font-size: 1.5rem;
  color: var(--accent-yellow);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 750;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 500;
}

.guide-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
}

.guide-box h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.guide-box ol {
  margin-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.guide-box li {
  margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------
 * 2. Panel: Globally Known Community Styles
 * ------------------------------------------------------------- */
.community-composer {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 8px var(--shadow-sm);
}

.community-composer textarea {
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  height: 80px;
}

.community-composer button {
  align-self: flex-end;
}

.community-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 6px var(--shadow-sm);
  animation: messageFadeIn 0.3s ease forwards;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-user-info {
  display: flex;
  flex-direction: column;
}

.post-username {
  font-size: 0.9rem;
  font-weight: 700;
}

.post-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.post-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.post-actions {
  display: flex;
  gap: 1.25rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

.post-action-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s ease;
}

.post-action-btn:hover {
  color: var(--accent-yellow);
}

.comment-section {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-card {
  font-size: 0.85rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.comment-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* -------------------------------------------------------------
 * 3. Panel: Random Word Generator With Guided Pronunciation
 * ------------------------------------------------------------- */
.word-generator-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.word-display-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-sm);
}

.card-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.word-card-content {
  text-align: center;
  padding: 1rem 0;
}

.word-card-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.word-meta {
  display: inline-block;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-yellow);
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.word-definition {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-weight: 500;
}

.speech-practice-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow-sm);
}

.speech-practice-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.speech-practice-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.speech-recording-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.recording-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 10px var(--shadow-sm);
}

.recording-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  transform: scale(1.05);
}

.recording-btn.active {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
  animation: recordingPulse 1.5s infinite alternate;
}

@keyframes recordingPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.recording-status {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pronunciation evaluation display box */
.pronunciation-feedback-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: messageFadeIn 0.25s ease forwards;
}

.pronunciation-feedback-box.hidden {
  display: none !important;
}

.feedback-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.metric-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-yellow);
}

.feedback-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  font-size: 0.95rem;
}

.feedback-comparison span {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 600;
  display: block;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.feedback-comparison strong {
  font-size: 1.1rem;
}

.feedback-comparison strong.success {
  color: #10b981;
}

.feedback-comparison strong.error {
  color: #ef4444;
}

.feedback-comment {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 500;
}

/* -------------------------------------------------------------
 * 4. Panel: Organized Comprehensible Input Videos
 * ------------------------------------------------------------- */
.video-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.video-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 8px var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  border-color: var(--border-color, rgba(255, 255, 255, 0.12)) !important;
}

.video-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
}

.video-thumbnail-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-meta-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.75);
  color: var(--accent-yellow);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.video-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.video-details h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.4;
  color: var(--text-primary);
}

.video-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 500;
}

/* -------------------------------------------------------------
 * 5. Panel: The Visual Dictionary
 * ------------------------------------------------------------- */
.dictionary-search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.dictionary-search-bar input {
  flex-grow: 1;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  font-weight: 500;
}

.dictionary-search-bar input:focus {
  border-color: var(--text-secondary);
}

.dictionary-results-container {
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.dictionary-empty-state {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.dictionary-empty-state i {
  font-size: 3rem;
}

.dictionary-empty-state p {
  font-size: 0.9rem;
  font-weight: 500;
}

.dict-result-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-sm);
  animation: messageFadeIn 0.3s ease forwards;
}

.dict-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.dict-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: capitalize;
}

.dict-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Visual Dictionary Cover View */
.dict-cover-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  justify-content: center;
  align-items: stretch;
  padding: 2.5rem 0 3.5rem 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.dict-cover-container.hidden {
  display: none !important;
}

.dict-cover-card {
  width: 100%;
  min-height: 270px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.dict-cover-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-yellow);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45);
  background-color: var(--bg-hover);
}

.dict-cover-card .cover-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  background-color: var(--bg-primary);
  color: var(--accent-yellow);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  letter-spacing: 0.05em;
}

.dict-cover-card .cover-icon {
  font-size: 3.2rem;
  color: var(--accent-yellow);
  margin-top: 0.25rem;
}

.dict-cover-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.dict-cover-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 500;
}

/* Built-in Slideshow Viewer */
.dict-slideshow-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  animation: messageFadeIn 0.3s ease forwards;
}

.dict-slideshow-container.hidden {
  display: none !important;
}

.slideshow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.slideshow-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.slide-back-circle-btn {
  position: static;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px var(--shadow-sm);
  flex-shrink: 0;
}

.slide-back-circle-btn:hover {
  background-color: var(--bg-hover);
  color: var(--accent-yellow);
  border-color: var(--accent-yellow);
  transform: translateX(-2px);
}

.slideshow-deck-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slide-counter {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.slide-display-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.slide-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  height: clamp(420px, 68vh, 650px);
  aspect-ratio: 16 / 9;
  position: relative;
  margin: 0 auto;
}

.slide-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
}

.slide-image-wrapper img.zoomed {
  cursor: grab;
}

.slide-image-wrapper img.zoomed:active {
  cursor: grabbing;
}

/* Side Floating Navigation Arrows (Next & Prev Page - Matches Zoom Anchor Button Design) */
.slide-floating-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 120;
  opacity: 0.35;
  pointer-events: auto;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.slide-floating-nav.next {
  right: 1rem;
}

.slide-floating-nav.prev {
  left: 1rem;
}

.slide-floating-nav:hover {
  background: rgba(18, 18, 18, 0.75);
  border-color: var(--accent-yellow);
  color: #ffffff;
  opacity: 1 !important;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
  transform: translateY(-50%) scale(1.15);
}

.slide-floating-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Bottom Pagination Controls Row */
.slideshow-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
}

.slide-nav-arrow {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px var(--shadow-sm);
  flex-shrink: 0;
}

.slide-nav-arrow:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent-yellow);
}

.slide-dots-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-dot:hover {
  background-color: var(--text-secondary);
}

.slide-dot.active {
  background-color: var(--accent-yellow);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(246, 202, 33, 0.5);
}

/* -------------------------------------------------------------
 * 6. Panel: The Describing Lab (Exact Sol Tab Flow)
 * ------------------------------------------------------------- */
#panel-describing-lab .gemini-home-content {
  padding-top: 1rem;
}

#panel-describing-lab .gemini-home-greeting {
  margin-bottom: 2.25rem;
}

.lab-role-chips {
  margin-top: 0;
  margin-bottom: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  z-index: 5;
  order: -1;
}


.lab-role-chips .gemini-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.lab-role-chips .gemini-chip-btn.active {
  background: var(--glow-color-2, rgba(245, 158, 11, 0.25));
  border-color: var(--accent-yellow, #f6ca21);
  color: var(--accent-yellow, #f6ca21);
  box-shadow: 0 0 12px var(--glow-color-1, rgba(250, 204, 21, 0.25));
}

/* -------------------------------------------------------------
 * 7. Panel: The Output Practicing (Live Spoken SOL Conversation)
 * ------------------------------------------------------------- */
#panel-output-practicing.workspace-panel {
  padding: 0;
  overflow-y: auto;
  min-height: calc(100vh - 64px);
  position: relative;
}

#panel-output-practicing .gemini-home-content {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.output-role-pills {
  margin-top: 0;
  margin-bottom: 2rem;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  z-index: 5;
  order: -1;
}

.output-role-pills .gemini-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.output-role-pills .gemini-chip-btn.active {
  background: var(--glow-color-2, rgba(245, 158, 11, 0.25));
  border-color: var(--accent-yellow, #f6ca21);
  color: var(--accent-yellow, #f6ca21);
  box-shadow: 0 0 12px var(--glow-color-1, rgba(250, 204, 21, 0.25));
}

.output-live-tagline {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.95rem;
  margin-top: -0.8rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.output-live-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.output-live-control-btn {
  background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  color: var(--text-secondary, #94a3b8);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.output-live-control-btn:hover {
  background: var(--bg-hover, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #ffffff);
  border-color: var(--accent-yellow, #f6ca21);
}

/* Central Live Microphone Hub (Replaces message sent box) */
.output-mic-hub-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 1.25rem auto;
  z-index: 10;
}

.output-live-mic-btn {
  position: relative;
  z-index: 5;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-yellow, #f6ca21), var(--accent-orange, #f59e0b));
  border: 3px solid rgba(255, 255, 255, 0.25);
  color: #000000;
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(246, 202, 33, 0.35), inset 0 2px 5px rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.output-live-mic-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(246, 202, 33, 0.55), inset 0 2px 8px rgba(255, 255, 255, 0.6);
}

.output-live-mic-btn:active {
  transform: scale(0.95);
}

.output-live-mic-btn.listening {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.7);
  animation: liveMicPulse 1.4s infinite;
}

.output-live-mic-btn.speaking {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.7);
  animation: liveMicSpeakingPulse 1.8s infinite;
}

/* Pulsing Ripple Rings */
.mic-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid var(--accent-yellow, #f6ca21);
  opacity: 0;
  pointer-events: none;
}

.output-live-mic-btn.listening ~ .ring-1 {
  animation: rippleRing 2s infinite 0s ease-out;
  border-color: #ef4444;
}

.output-live-mic-btn.listening ~ .ring-2 {
  animation: rippleRing 2s infinite 0.65s ease-out;
  border-color: #ef4444;
}

.output-live-mic-btn.listening ~ .ring-3 {
  animation: rippleRing 2s infinite 1.3s ease-out;
  border-color: #ef4444;
}

.output-live-mic-btn.speaking ~ .ring-1 {
  animation: rippleRing 2.4s infinite 0s ease-out;
  border-color: #6366f1;
}

.output-live-mic-btn.speaking ~ .ring-2 {
  animation: rippleRing 2.4s infinite 0.8s ease-out;
  border-color: #3b82f6;
}

@keyframes rippleRing {
  0% {
    width: 92px;
    height: 92px;
    opacity: 0.9;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

@keyframes liveMicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes liveMicSpeakingPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Live Spoken Status Badge */
.output-live-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bg-secondary, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  padding: 0.55rem 1.25rem;
  border-radius: 24px;
  margin: 0 auto 2.5rem auto;
  font-size: 0.88rem;
  color: var(--text-secondary, #94a3b8);
  transition: all 0.3s ease;
  text-align: center;
}

.output-live-status .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #64748b;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.output-live-status.listening {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.output-live-status.listening .status-dot {
  background-color: #ef4444;
  box-shadow: 0 0 12px #ef4444;
}

.output-live-status.speaking {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
}

.output-live-status.speaking .status-dot {
  background-color: #6366f1;
  box-shadow: 0 0 12px #6366f1;
}

.output-live-status.processing {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.output-live-status.processing .status-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 12px #f59e0b;
}

#output-home-conversation {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* -------------------------------------------------------------
 * 8. Panel: Info / Settings
 * ------------------------------------------------------------- */
.settings-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 8px var(--shadow-sm);
}

.settings-card.danger-card {
  border-color: rgba(239, 68, 68, 0.3);
}

.settings-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.settings-actions-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
}

.about-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-footer {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-align: right;
}

/* -------------------------------------------------------------
 * Message markdown/Prism defaults duplication from previous
 * ------------------------------------------------------------- */
.message-row.user-row {
  background-color: transparent;
  justify-content: flex-end;
}

.message-row.agent-row {
  background-color: transparent;
}

/* -------------------------------------------------------------
 * Responsive Styling
 * ------------------------------------------------------------- */
@media (max-width: 1300px) {
  .workspace-panel {
    padding-left: 10%;
    padding-right: 10%;
  }
  
  #panel-output-practicing .message-row,
  #panel-output-practicing .welcome-screen,
  .output-chat-footer {
    padding-left: 10%;
    padding-right: 10%;
  }
}

@media (max-width: 900px) {
  .workspace-panel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  #panel-output-practicing .message-row,
  #panel-output-practicing .welcome-screen,
  .output-chat-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .describing-lab-layout {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 15px rgba(0,0,0,0.6);
  }
  
  .sidebar.mobile-active {
    transform: translateX(0);
  }
  
  .menu-toggle-btn {
    display: block;
  }
  
  .sidebar.collapsed {
    transform: translateX(-100%); /* Maintain drawer format on mobile */
  }
}

@media (max-width: 480px) {
  .chat-header {
    padding: 0.6rem 0.85rem !important;
  }
  .header-actions {
    gap: 0.35rem !important;
  }
  .admin-toggle-btn, .install-app-btn, .sign-in-btn, .header-model-pill {
    font-size: 0.72rem !important;
    padding: 0 0.55rem !important;
    height: 32px !important;
  }
  .gemini-home-greeting {
    font-size: 1.85rem !important;
  }
  .gemini-home-glow-bg {
    width: 320px !important;
    height: 220px !important;
  }
  .category-header h3 {
    font-size: 1.15rem !important;
  }
  .category-flag {
    font-size: 1.15rem !important;
  }
  .category-count {
    font-size: 0.8rem !important;
  }
}

/* Floating Zoom Column Anchors (positioned individually, smaller, less visible) */
.zoom-anchor-btn {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 120;
  opacity: 0.35;            /* Always visible at low opacity by default */
  pointer-events: auto;     /* Always interactive */
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  font-size: 0.75rem;
}

/* Position each anchor at its corresponding column zone (16.6%, 50%, 83.3% width) */
.zoom-anchor-btn.anchor-left {
  top: 1rem;
  left: 16.6%;
  transform: translateX(-50%);
}

.zoom-anchor-btn.anchor-center {
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.zoom-anchor-btn.anchor-right {
  top: 1rem;
  right: 16.6%;
  transform: translateX(50%);
}

/* Hover styles for anchors */
.zoom-anchor-btn:hover {
  background: rgba(18, 18, 18, 0.75);
  border-color: var(--accent-yellow);
  color: #ffffff;
  opacity: 1 !important;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}

.zoom-anchor-btn.anchor-left:hover {
  transform: translateX(-50%) scale(1.15);
}

.zoom-anchor-btn.anchor-center:hover {
  transform: translateX(-50%) scale(1.15);
}

.zoom-anchor-btn.anchor-right:hover {
  transform: translateX(50%) scale(1.15);
}

/* Playlist Link Controls inside Video Library Cards */
.video-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-title-link:hover {
  color: var(--accent-yellow);
}

.view-playlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid var(--accent-yellow);
  color: var(--accent-yellow);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-playlist-btn:hover {
  background: var(--accent-yellow);
  color: #121212;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(250, 204, 21, 0.35);
}

/* Playlist Modal Overlay (Floating Window popup) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.playlist-modal-window {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-overlay:not(.hidden) .playlist-modal-window {
  transform: translateY(0);
}

.playlist-modal-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 100;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--accent-yellow);
  transform: scale(1.1);
}

.main-video-player-container {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 520px;
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.main-video-player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.episodes-carousel-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  margin-top: 1rem;
}

.episodes-carousel-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 0 2.5rem; /* Space for navigation buttons */
}

.episodes-carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0.2rem;
  width: 100%;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.episodes-carousel-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-nav-btn:hover {
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: #121212;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev-btn {
  left: 0;
}

.carousel-nav-btn.next-btn {
  right: 0;
}

/* Episode Cards */
.episode-card {
  flex: 0 0 240px; /* Fixed width for horizontal layout */
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  user-select: none;
}

.episode-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
  box-shadow: 0 6px 15px rgba(250, 204, 21, 0.15);
}

.episode-card.active {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.05);
}

.episode-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.episode-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.episode-card:hover .episode-thumb-container img {
  opacity: 1;
}

.episode-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.9);
  color: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: all 0.2s ease;
}

.episode-card:hover .episode-play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.episode-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: 500;
}

.episode-details {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.episode-details h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-details p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* True Netflix-Style Carousel Slider Row & Layout system */
#panel-videos {
  background-color: #141414 !important; /* Authentic pitch-black Netflix canvas background */
}

.playlist-category-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  margin-bottom: 1.1rem;
  position: relative;
  box-sizing: border-box;
}

/* Category header block: Row header title + progress indicators */
.category-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.2rem;
  margin-bottom: 0.15rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.category-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff; /* Netflix bold white titles */
  margin: 0;
  font-family: 'Outfit', 'Google Sans', sans-serif;
  letter-spacing: -0.02em;
}

.category-flag {
  font-size: 1.45rem;
  line-height: 1;
}

.category-count {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 600;
  margin-left: 0.3rem;
  opacity: 0.9;
}

/* Netflix progress bar indicators at top right (thin lines) */
.page-indicators {
  display: flex;
  gap: 3px;
  align-items: center;
}

.indicator-dot {
  width: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease;
}

.indicator-dot.active {
  background: #ffffff;
}

/* Category Nav Controls (Left & Right Arrow Buttons) */
.category-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slider-nav-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-nav-btn:hover {
  background: var(--accent-yellow);
  color: #000000;
  border-color: var(--accent-yellow);
  transform: scale(1.12);
  box-shadow: 0 0 12px var(--glow-color-1, rgba(246, 202, 33, 0.7));
}

.slider-nav-btn:active {
  transform: scale(0.95);
}

/* Category Horizontal Slider — Pure HTML/CSS Custom Horizontal Track Slider Bar */
.netflix-slider-container {
  position: relative;
  width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: auto;
  border-radius: 10px;
  padding: 0.35rem 0 0.5rem 0;
  margin-bottom: 0.25rem;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.netflix-slider-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Netflix Authentic Header Pagination Indicators */
.netflix-header-indicators {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.playlist-category-row:hover .netflix-header-indicators {
  opacity: 1;
}

.netflix-page-pill {
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.netflix-page-pill.active {
  width: 22px;
  height: 3px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

:root[data-theme="cyan"] .netflix-page-pill.active { background: #06b6d4 !important; box-shadow: 0 0 8px rgba(6, 182, 212, 0.9) !important; }
:root[data-theme="emerald"] .netflix-page-pill.active { background: #10b981 !important; box-shadow: 0 0 8px rgba(16, 185, 129, 0.9) !important; }
:root[data-theme="purple"] .netflix-page-pill.active { background: #c084fc !important; box-shadow: 0 0 8px rgba(192, 132, 252, 0.9) !important; }
:root[data-theme="crimson"] .netflix-page-pill.active { background: #f43f5e !important; box-shadow: 0 0 8px rgba(244, 63, 94, 0.9) !important; }
:root[data-theme="dark"] .netflix-page-pill.active { background: #f6ca21 !important; box-shadow: 0 0 8px rgba(246, 202, 33, 0.9) !important; }
:root[data-theme="rainbow"] .netflix-page-pill.active { background: #00e5ff !important; box-shadow: 0 0 8px rgba(0, 229, 255, 0.9) !important; }
:root[data-theme="light"] .netflix-page-pill.active { background: #2563eb !important; box-shadow: 0 0 8px rgba(37, 99, 235, 0.8) !important; }

/* Classic Custom Scrollbar Component (Matches user screenshot 1-to-1) */
.custom-category-slider-wrapper {
  width: 100%;
  padding: 0.5rem 0.25rem 1.25rem 0.25rem;
  box-sizing: border-box;
}

.classic-scrollbar-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 20px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  user-select: none;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 8px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

:root[data-theme="dark"] .classic-scrollbar-container,
:root[data-theme="cyan"] .classic-scrollbar-container,
:root[data-theme="emerald"] .classic-scrollbar-container,
:root[data-theme="purple"] .classic-scrollbar-container,
:root[data-theme="crimson"] .classic-scrollbar-container,
:root[data-theme="rainbow"] .classic-scrollbar-container {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
}

.classic-scrollbar-arrow {
  width: 32px;
  height: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.classic-scrollbar-arrow:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.classic-scrollbar-arrow:active {
  color: var(--accent-yellow) !important;
  background: rgba(255, 255, 255, 0.1);
}

.classic-scrollbar-track {
  flex: 1;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.classic-scrollbar-thumb {
  position: absolute;
  top: 2px;
  left: 0;
  height: calc(100% - 4px);
  width: 60px; /* will be dynamic via JS later */
  background: var(--accent-gradient, linear-gradient(90deg, #f6ca21 0%, #ca9e0d 100%)) !important;
  border-radius: 8px;
  box-shadow: 0 1px 4px var(--shadow-sm), 0 0 10px var(--glow-color-2) !important;
  cursor: grab;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.classic-scrollbar-thumb:hover {
  filter: brightness(1.2) !important;
  box-shadow: 0 1px 6px var(--shadow-md), 0 0 16px var(--glow-color-1) !important;
}

.classic-scrollbar-thumb:active, .classic-scrollbar-thumb.dragging {
  cursor: grabbing;
  filter: brightness(1.05) !important;
  background: var(--accent-gradient-hover, var(--accent-gradient)) !important;
}

/* Hide native scrollbar since we are using custom HTML */
.netflix-slider-container::-webkit-scrollbar {
  display: none;
}
.netflix-slider-container {
  scrollbar-width: none;
}

.netflix-slider-container.grabbing {
  cursor: grabbing;
  scroll-behavior: auto !important;
}

/* Long scrolling flex row track */
.netflix-slider-track {
  display: flex;
  gap: 0.85rem;
  width: max-content !important;
  min-width: 100%;
  padding-right: 8rem !important;
  box-sizing: border-box;
}

/* Video Card Sizing: Dynamic resolution scaling based on screen size */
.netflix-slider-track .video-card {
  position: relative;
  flex: 0 0 280px !important;
  min-width: 280px !important;
  max-width: 320px !important;
  box-sizing: border-box;
  background-color: var(--bg-secondary, #181818);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

/* High Resolution Display Adaptations (1080p, 2K & 4K Monitors) */
@media (min-width: 1600px) {
  .netflix-slider-track .video-card {
    flex: 0 0 clamp(250px, 15vw, 320px) !important;
    min-width: clamp(250px, 15vw, 320px) !important;
    max-width: clamp(250px, 15vw, 320px) !important;
  }
}

@media (min-width: 2560px) {
  .netflix-slider-track .video-card {
    flex: 0 0 clamp(320px, 16vw, 440px) !important;
    min-width: clamp(320px, 16vw, 440px) !important;
    max-width: clamp(320px, 16vw, 440px) !important;
  }
  .category-header h3 {
    font-size: 1.5rem !important;
  }
  .classic-scrollbar-container {
    height: 34px !important;
  }
  .classic-scrollbar-arrow {
    width: 34px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 768px) {
  .netflix-slider-track .video-card {
    flex: 0 0 clamp(160px, 42vw, 210px) !important;
    min-width: clamp(160px, 42vw, 210px) !important;
    max-width: clamp(160px, 42vw, 210px) !important;
  }
}

.netflix-slider-track .video-card:hover {
  transform: translateY(-2px);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  border-color: var(--border-color, rgba(255, 255, 255, 0.12)) !important;
}

/* Video Card Thumbnail and play overlay */
.video-thumbnail-container {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #050506;
}

.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.video-card:hover .video-card-thumb {
  opacity: 0.65;
}

.video-card-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.95);
  color: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.video-card:hover .video-card-play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-meta-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: rgba(0, 0, 0, 0.75);
  color: var(--accent-yellow);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
}

/* Floating custom link customizer (Top Right on hover) */
.edit-video-link-btn {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 22px;
  height: 22px;
  font-size: 0.65rem;
  border-radius: 50%;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  font-size: 0.72rem;
  transition: all 0.2s ease;
}

.video-thumbnail-container:hover .edit-video-link-btn {
  opacity: 1;
}

.edit-video-link-btn:hover {
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: #121212;
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}

/* Card Hover Overlay details (Fades in on card hover) */
.video-card-hover-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.85) 70%, rgba(0,0,0,0) 100%);
  padding: 1.5rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 5;
}

.video-card:hover .video-card-hover-info {
  opacity: 1;
  pointer-events: auto;
}

.video-card-hover-info h4 {
  margin: 0;
  font-size: 0.88rem;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hover-desc {
  margin: 0;
  font-size: 0.72rem;
  color: #b3b3b3;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hover-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

/* Mini Buttons for hover layout */
.embed-video-btn.mini, .view-playlist-btn.mini {
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Outfit', sans-serif;
}

/* Mini Buttons for hover layout */
.embed-video-btn.mini, .view-playlist-btn.mini {
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Outfit', sans-serif;
}

/* -------------------------------------------------------------
 * 26th + Add Video Window Styling
 * ------------------------------------------------------------- */
.video-card.add-video-card {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

.video-card.add-video-card:hover {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-2px);
}

.add-video-frame,
.add-video-blue-frame {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-secondary, rgba(15, 23, 42, 0.7)) !important;
  border: 2px dashed var(--accent-yellow, #f6ca21) !important;
  border-radius: 12px;
  height: 155px;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px var(--shadow-sm);
  cursor: pointer;
}

.add-video-frame:hover,
.add-video-blue-frame:hover {
  border-color: var(--accent-yellow, #f6ca21) !important;
  border-style: solid !important;
  background: var(--bg-hover, rgba(15, 23, 42, 0.95)) !important;
  box-shadow: 0 0 24px var(--glow-color-1, rgba(246, 202, 33, 0.4)), inset 0 0 16px var(--glow-color-3, rgba(246, 202, 33, 0.08)) !important;
}

.add-video-plus-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glow-color-2, rgba(246, 202, 33, 0.15)) !important;
  border: 1px solid var(--glow-color-1, rgba(246, 202, 33, 0.35)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.add-video-plus-circle i {
  font-size: 1.3rem;
  color: var(--accent-yellow, #f6ca21) !important;
  transition: all 0.25s ease;
}

.video-card.add-video-card:hover .add-video-plus-circle,
.add-video-frame:hover .add-video-plus-circle,
.add-video-blue-frame:hover .add-video-plus-circle {
  background: var(--accent-yellow, #f6ca21) !important;
  border-color: var(--accent-yellow, #f6ca21) !important;
  transform: scale(1.1);
  box-shadow: 0 0 16px var(--glow-color-1, rgba(246, 202, 33, 0.5)) !important;
}

.video-card.add-video-card:hover .add-video-plus-circle i,
.add-video-frame:hover .add-video-plus-circle i,
.add-video-blue-frame:hover .add-video-plus-circle i {
  color: var(--bg-primary, #000000) !important;
}

.add-video-title {
  color: var(--text-primary, #f8fafc) !important;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
  font-family: 'Outfit', sans-serif;
  transition: color 0.2s ease;
}

.add-video-sub {
  color: var(--text-secondary, #94a3b8) !important;
  font-size: 11px;
}

/* Video Player Frame and Card Details */
.video-player-frame {
  position: relative;
  width: 100%;
  height: 160px;
  z-index: 10;
  background: #000000;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.video-player-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  position: relative;
  z-index: 10;
}

.no-video-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.video-card-info-footer {
  padding: 8px 12px;
  background: var(--bg-tertiary, #1e293b);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}

.video-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.video-card-title {
  margin: 0;
  font-size: 14px;
  color: var(--text-primary, #f8fafc);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Outfit', sans-serif;
  flex: 1;
  min-width: 0;
}

.video-card-meta-row {
  display: none;
}

.video-category-tag {
  display: none;
}

/* Rainbow Theme Custom Overrides for Add Video Frame */
:root[data-theme="rainbow"] .add-video-frame,
:root[data-theme="rainbow"] .add-video-blue-frame {
  border: 2px dashed #ff007f !important;
  box-shadow: 0 0 16px rgba(255, 0, 127, 0.25) !important;
}

:root[data-theme="rainbow"] .add-video-frame:hover,
:root[data-theme="rainbow"] .add-video-blue-frame:hover {
  border-style: solid !important;
  border-color: #00e5ff !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.5) !important;
}

:root[data-theme="rainbow"] .add-video-plus-circle {
  background: rgba(255, 0, 127, 0.15) !important;
  border-color: #ff007f !important;
}

:root[data-theme="rainbow"] .add-video-plus-circle i {
  color: #ff007f !important;
}

:root[data-theme="rainbow"] .add-video-frame:hover .add-video-plus-circle {
  background: #ff007f !important;
  box-shadow: 0 0 16px rgba(255, 0, 127, 0.6) !important;
}

:root[data-theme="rainbow"] .add-video-frame:hover .add-video-plus-circle i {
  color: #ffffff !important;
}

.delete-video-btn.mini {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.delete-video-btn.mini:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

@media (max-width: 480px) {
  .delete-video-btn.mini .delete-btn-label {
    display: none;
  }
  .delete-video-btn.mini {
    padding: 0.25rem 0.45rem;
  }
}

/* Large overlay side navigation chevron pads (Netflix-style) */
.slider-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  opacity: 0; /* Visible only on row hover */
}

.netflix-slider-container:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.85);
  color: var(--accent-yellow);
  font-size: 2.1rem;
}

.slider-arrow.left-arrow {
  left: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.slider-arrow.right-arrow {
  right: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

/* Responsive columns scaling for tablet/mobile viewports */
@media (max-width: 1200px) {
  .netflix-slider-track .video-card {
    flex: 0 0 calc((100% - (3 * 1.25rem)) / 4);
    min-width: calc((100% - (3 * 1.25rem)) / 4);
  }
}

@media (max-width: 900px) {
  .netflix-slider-track .video-card {
    flex: 0 0 calc((100% - (2 * 1.25rem)) / 3);
    min-width: calc((100% - (2 * 1.25rem)) / 3);
  }
}

@media (max-width: 600px) {
  .netflix-slider-track .video-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

/* =============================================================
   WhatsApp Web Layout Style Overlays (Full Screen inside Workspace Panel)
   ============================================================= */
#panel-community {
  padding: 0 !important;
  overflow: hidden !important;
  height: calc(100vh - 64px) !important;
}

.circle-layout {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: #0d0d12; /* Dark slate-obsidian middle feed background */
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

/* Col 1: Left Navigation Sidebar */
.circle-left-sidebar {
  width: 260px;
  min-width: 260px;
  background-color: #07070a; /* Dark charcoal sidebar background */
  border-right: 1px solid rgba(197, 160, 89, 0.12);
  display: flex;
  flex-direction: column;
}

.circle-logo-row {
  height: 64px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(197, 160, 89, 0.12);
}

.circle-logo-text {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.circle-nav {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.circle-nav-category {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.circle-nav-category .category-title {
  padding: 0 0.75rem 0.5rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.circle-nav-item {
  height: 38px;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.circle-nav-item i {
  font-size: 0.95rem;
  width: 16px;
  text-align: center;
}

.circle-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

.circle-nav-item.active {
  background-color: rgba(197, 160, 89, 0.08);
  color: #c5a059;
  border-left: 3px solid #c5a059;
  border-radius: 4px 8px 8px 4px;
}

/* Col 2: Middle Feed Panel */
.circle-middle-feed {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: #0d0d12;
}

.circle-channel-header {
  height: 80px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(197, 160, 89, 0.08);
  background-color: rgba(13, 13, 18, 0.8);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.header-left-info h2 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

.circle-channel-meta {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
}

.circle-new-post-btn {
  height: 38px;
  padding: 0 1rem;
  background-color: #c5a059;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.circle-new-post-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
  background-color: #d4af37;
}

.circle-feed-tabs {
  height: 48px;
  padding: 0 2rem;
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.circle-feed-tabs .tab-btn {
  height: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.25rem 0.5rem 0.25rem;
  transition: all 0.2s ease;
}

.circle-feed-tabs .tab-btn:hover {
  color: #ffffff;
}

.circle-feed-tabs .tab-btn.active {
  color: #c5a059;
  border-bottom-color: #c5a059;
}

.circle-posts-feed {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Post Card styling matching Circle.so specifications */
.circle-post-card {
  background-color: #121219;
  border: 1px solid rgba(197, 160, 89, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.circle-post-card .post-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.circle-post-card .author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #1c1c28;
  border: 1px solid rgba(197, 160, 89, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5a059;
  font-weight: 700;
  font-size: 0.95rem;
}

.circle-post-card .author-details h4 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.circle-post-card .author-role {
  font-size: 0.72rem;
  background-color: rgba(197, 160, 89, 0.12);
  color: #c5a059;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.circle-post-card .post-time {
  color: #64748b;
  font-size: 0.72rem;
}

.circle-post-card .post-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.circle-post-card .post-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.circle-post-card .post-body-text {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
}

.circle-post-card .post-media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
}

.circle-post-card .post-media img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.circle-post-card .post-actions-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.85rem;
}

.circle-post-card .action-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.circle-post-card .action-btn:hover {
  color: #c5a059;
}

/* Comment Form Composer box */
.comment-composer-box {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.comment-submit-form {
  display: flex;
  gap: 0.5rem;
}

.comment-submit-form .comment-input {
  flex-grow: 1;
  height: 36px;
  background-color: #07070a;
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 6px;
  padding: 0 0.85rem;
  color: #ffffff;
  font-size: 0.85rem;
}

.comment-submit-form .comment-input:focus {
  outline: none;
  border-color: #c5a059;
}

.comment-submit-form .comment-submit-btn {
  height: 36px;
  padding: 0 0.85rem;
  background-color: #c5a059;
  color: #000000;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* Comments cards */
.post-comments-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.85rem;
  border-left: 2px solid rgba(197, 160, 89, 0.3);
}

.circle-comment-card {
  font-size: 0.85rem;
  line-height: 1.45;
}

.circle-comment-card .comment-author {
  color: #ffffff;
  font-weight: 700;
  margin-right: 0.35rem;
}

.circle-comment-card .comment-text {
  display: inline;
  color: #94a3b8;
}

/* Home Welcome Overview card styling */
.circle-home-welcome {
  background-color: #121219;
  border: 1px solid rgba(197, 160, 89, 0.1);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.circle-home-welcome .welcome-hero {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 1.5rem;
}

.circle-home-welcome .welcome-cap {
  font-size: 3rem;
  color: #c5a059;
  margin-bottom: 1rem;
}

.circle-home-welcome .welcome-hero h3 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.circle-home-welcome .welcome-hero p {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

.circle-home-welcome .channels-brief h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.circle-home-welcome .channels-brief ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.circle-home-welcome .channels-brief li {
  color: #94a3b8;
  font-size: 0.88rem;
}

.circle-home-welcome .channels-brief strong {
  color: #c5a059;
  margin-right: 0.25rem;
}

/* Circle Members list cards in middle column grid */
.circle-members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.circle-member-card {
  background-color: #121219;
  border: 1px solid rgba(197, 160, 89, 0.1);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.circle-member-card .member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: #1c1c28;
  border: 1px solid rgba(197, 160, 89, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5a059;
  font-weight: 800;
  font-size: 1.1rem;
}

.circle-member-card .member-info h4 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.circle-member-card .status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.circle-member-card .status-indicator.online { background-color: #24cd98; }
.circle-member-card .status-indicator.offline { background-color: #64748b; }

.circle-member-card .member-role {
  font-size: 0.72rem;
  color: #c5a059;
  font-weight: 600;
}

.circle-member-card .member-details {
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

/* Col 3: Right Widgets Sidebar */
.circle-right-sidebar {
  width: 280px;
  min-width: 280px;
  background-color: #07070a;
  border-left: 1px solid rgba(197, 160, 89, 0.12);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  gap: 1.5rem;
  overflow-y: auto;
}

.circle-widget {
  background-color: #121219;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 1rem;
}

.circle-widget .widget-title {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.5rem;
}

.circle-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.checklist-item input[type="checkbox"] {
  accent-color: #c5a059;
}

.checklist-item .item-text {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
}

.checklist-item input:checked + .item-text {
  color: #64748b;
  text-decoration: line-through;
}

.circle-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.member-widget-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.member-widget-item .widget-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: #1c1c28;
  border: 1px solid rgba(197, 160, 89, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5a059;
  font-size: 0.72rem;
  font-weight: 700;
}

.member-widget-item .widget-name {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  flex-grow: 1;
}

.member-widget-item .widget-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.member-widget-item .widget-status-dot.online { background-color: #24cd98; }
.member-widget-item .widget-status-dot.offline { background-color: #64748b; }

.circle-pinned-posts {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pinned-post-link {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s;
}

.pinned-post-link:hover {
  color: #c5a059;
}

/* Post Composer Modal box styles */
.circle-composer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
}

.circle-composer-modal.hidden {
  display: none !important;
}

.circle-modal-content {
  background-color: #121219;
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 12px;
  width: 500px;
  max-width: 90%;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.circle-modal-content .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 0.75rem;
}

.circle-modal-content .modal-header h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
}

.circle-modal-content .close-modal-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
}

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

.circle-modal-content .form-group {
  margin-bottom: 1.2rem;
}

.circle-modal-content input[type="text"],
.circle-modal-content textarea {
  width: 100%;
  background-color: #07070a;
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 8px;
  padding: 0.75rem;
  color: #ffffff;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.9rem;
}

.circle-modal-content input[type="text"]:focus,
.circle-modal-content textarea:focus {
  outline: none;
  border-color: #c5a059;
}

.circle-modal-content textarea {
  height: 150px;
  resize: vertical;
}

.circle-submit-post-btn {
  width: 100%;
  height: 40px;
  background-color: #c5a059;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.circle-submit-post-btn:hover {
  background-color: #d4af37;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
}

/* =============================================================
   RWGGP Codex: Random Word Generator With Guided Pronunciation (Exact Original Theme)
   ============================================================= */
#panel-random-word {
  background-color: #f8fafc; /* bg-slate-50 */
  padding: 3rem 1.5rem !important;
  color: #0f172a; /* text-slate-900 */
}

.rwggp-page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header Section */
.rwggp-top-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

/* Metronome Dropdown Popover */
.metronome-dropdown-container {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  z-index: 1000;
}

.metronome-dropdown-container.hidden {
  display: none !important;
}

.rwggp-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.03em;
}

.rwggp-subtitle {
  font-size: 0.82rem;
  color: var(--gray-light);
  margin: 0;
  letter-spacing: 0.01em;
}

.rwggp-metronome-icon-btn {
  margin-top: 0.5rem;
  background: transparent !important;
  border: none !important;
  color: var(--gray-light) !important;
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  transition: all 0.18s ease;
  letter-spacing: 0.01em;
}

.rwggp-metronome-icon-btn span {
  color: var(--gray-light) !important;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.rwggp-metronome-icon-btn:hover {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
}

/* White Card System */
.rwggp-card {
  background-color: #ffffff;
  border: 1px solid #eaeef4;
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}

/* Word Card */
.rwggp-word-card {
  text-align: center;
  padding: 2rem 2rem 2.25rem;
  position: relative;
}

.rwggp-word-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.rwggp-speaker-btn {
  position: absolute;
  bottom: 1.1rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.25s ease;
  z-index: 10;
}

.rwggp-speaker-btn i {
  color: #ffffff !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
}

.rwggp-speaker-btn:hover {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.35) !important;
}

.rwggp-speaker-btn:active {
  transform: scale(0.94);
}

:root[data-theme="light"] .rwggp-speaker-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .rwggp-speaker-btn i {
  color: #0f172a !important;
}

:root[data-theme="light"] .rwggp-speaker-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #000000 !important;
}

.history-speak-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.history-speak-btn:hover {
  background: var(--bg-hover);
  color: var(--accent-yellow);
  transform: scale(1.15);
}

.rwggp-word-text {
  width: 100%;
  font-size: 4rem;
  font-weight: 800;
  padding: 1.75rem 1rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.02em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.rwggp-word-text .stressed-vowel-underline {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.rwggp-word-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.rwggp-sound {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

.rwggp-meta {
  color: var(--gray-dark);
  font-size: 0.88rem;
  margin: 0;
}

.rwggp-meta .font-semibold {
  color: var(--gray-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rwggp-meaning {
  color: var(--gray-dark);
  font-size: 0.86rem;
  margin: 0;
  margin-top: 0.3rem;
  max-width: 480px;
  line-height: 1.55;
}

.rwggp-meaning .italic {
  font-style: italic;
  color: var(--gray-dark);
}

/* Generate & Search Wrappers */
.rwggp-generate-wrapper {
  display: flex;
  justify-content: center;
}

.rwggp-generate-btn {
  background: linear-gradient(135deg, #5b52f0 0%, #4f46e5 60%, #4338ca 100%);
  color: #ffffff;
  border: none;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 0.82rem 2.2rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28), 0 1px 3px rgba(79, 70, 229, 0.15);
  transition: all 0.22s ease;
}

.rwggp-generate-btn:hover {
  background: linear-gradient(135deg, #6460f5 0%, #5b52f0 60%, #4f46e5 100%);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.38), 0 2px 6px rgba(79, 70, 229, 0.2);
  transform: translateY(-1px);
}

.rwggp-generate-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.22);
}

.rwggp-search-wrapper {
  display: flex;
  justify-content: center;
}

.rwggp-search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 440px;
  width: 100%;
}

#rwggp-analyze-input {
  flex-grow: 1;
  height: 40px;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#rwggp-analyze-input::placeholder { color: #94a3b8; }

#rwggp-analyze-input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.rwggp-analyze-btn {
  height: 40px;
  padding: 0 1.15rem;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
}

.rwggp-analyze-btn:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}

/* History Card */
.rwggp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rwggp-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.01em;
}

.rwggp-clear-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.rwggp-clear-btn:hover {
  color: #0f172a;
}

.rwggp-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
}

.rwggp-history-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.5rem;
  border-radius: 8px;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.rwggp-history-row:hover {
  background-color: #f8fafc;
}

.history-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.history-word-text {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.92rem;
  flex: 1;
}

.history-save-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.2s ease;
  opacity: 0.65;
  flex-shrink: 0;
}

.history-save-btn:hover {
  opacity: 1;
}

.history-save-btn.saved {
  opacity: 1;
}

.history-save-btn i {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1;
  transition: all 0.2s ease;
}

.history-save-btn.saved i {
  color: #10b981;
  font-size: 0.82rem;
}

.saved-bookmark-check-svg {
  width: 14px;
  height: 14px;
  stroke: #10b981;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.history-plus-icon-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.history-category-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gray-dark);
  text-transform: none;
  line-height: 1;
}

.rwggp-empty-savings-text {
  text-align: center;
  color: #94a3b8;
  font-size: 0.88rem;
  padding: 1.25rem 0;
  margin: 0;
}
.rwggp-savings-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.savings-accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.savings-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.savings-accordion-header:hover {
  background-color: #f8fafc;
}

.savings-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #0f172a;
}

.savings-header-title .chevron {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.savings-accordion-item.expanded .chevron {
  transform: rotate(90deg);
}

.savings-header-title .count {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 400;
}

.savings-delete-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.savings-delete-btn:hover {
  color: #ef4444;
}

.savings-accordion-body {
  border-top: 1px solid #e2e8f0;
  background-color: #f8fafc;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.savings-word-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.savings-word-row:hover {
  background-color: #ffffff;
}

.savings-word-row .word-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

/* Color Vowel Chart Card */
.rwggp-chart-card {
  text-align: center;
}

.rwggp-chart-card .rwggp-card-header {
  justify-content: center;
  text-align: center;
  margin-top: 0.6rem;
  margin-bottom: 0.5rem;
}

.rwggp-chart-card .rwggp-card-title {
  justify-content: center;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-dark);
  text-transform: none;
}

.rwggp-chart-image-wrapper {
  max-width: 700px;
  margin: 0.85rem auto 0.5rem;
}

.rwggp-chart-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.rwggp-chart-attribution {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-dark);
  text-transform: none;
  text-align: right;
  margin-top: 0.5rem;
  margin-bottom: -0.25rem;
  padding-right: 0.5rem;
}

.rwggp-chart-footer {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 1.25rem;
}

/* Metronome Icon & Popover Card Styling */
.metronome-pendulum-svg {
  width: 32px;
  height: 34px;
  margin-bottom: 2px;
  display: block;
}

.metronome-popover-card {
  background-color: #ffffff;
  width: 350px;
  border-radius: 18px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 1rem 0.9rem;
  position: relative;
  color: #334155;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.metronome-close-x {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.metronome-close-x:hover {
  color: #334155;
}

.metronome-popup-grid {
  display: grid;
  grid-template-columns: 1fr 1px 70px;
  gap: 0.75rem;
  align-items: stretch;
}

.metronome-left-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.metronome-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.beat-dots-container {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.beat-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #e2e8f0;
  transition: all 0.15s ease;
}

.beat-dot.active {
  background-color: #4f46e5;
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.5);
}

.metronome-circle-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4f46e5;
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.metronome-circle-play-btn:hover {
  background-color: #4338ca;
  transform: scale(1.05);
}

.metronome-section {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.metronome-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.metronome-pills-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.metronome-pill-btn {
  background-color: #f1f5f9;
  border: none;
  color: #334155;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.78rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.metronome-pill-btn:hover {
  background-color: #e2e8f0;
}

.metronome-pill-btn.active {
  background-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.metronome-divider {
  background-color: #f1f5f9;
  width: 1px;
  margin: 0;
}

.metronome-right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 0.25rem;
  padding-left: 0.5rem;
}

.metronome-arrow-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.metronome-arrow-btn:hover {
  color: #4f46e5;
}

.metronome-bpm-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bpm-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #4f46e5;
  line-height: 1;
}

.bpm-preset-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.25rem;
}

.vertical-slider-wrapper {
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertical-bpm-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 6px;
  height: 80px;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  border-radius: 4px;
  cursor: pointer;
  background: linear-gradient(to top, #4f46e5 0%, #4f46e5 55%, #e2e8f0 55%, #e2e8f0 100%);
}

.vertical-bpm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.vertical-bpm-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.vertical-bpm-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.bpm-tag-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

/* Modal Overlay System (No background blur) */
.rwggp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: transparent !important;
  backdrop-filter: none !important;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rwggp-modal-overlay.hidden {
  display: none !important;
}

/* ── Save Word Popover ──────────────────────────────────────── */
.save-word-popover {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  width: 300px;
  overflow: hidden;
  animation: popoverFadeIn 0.18s cubic-bezier(0.16,1,0.3,1);
}

.save-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 0.6rem;
  border-bottom: 1px solid #f1f5f9;
}

.save-popover-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.save-popover-bookmark-icon {
  color: #4f46e5;
  font-size: 0.88rem;
}

.save-popover-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 2px;
  border-radius: 4px;
  transition: color 0.15s;
}

.save-popover-close:hover { color: #334155; }

.save-popover-search-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
}

.save-popover-search-icon {
  color: #94a3b8;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.save-popover-search {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  color: #334155;
  width: 100%;
}

.save-popover-search::placeholder { color: #94a3b8; }

.save-popover-create-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: #4f46e5;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.45rem 1rem;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}

.save-popover-create-btn:hover { background: #f5f3ff; }

.save-popover-create-btn i {
  font-size: 0.8rem;
}

.save-popover-lists {
  max-height: 220px;
  overflow-y: auto;
  padding: 0.25rem 0 0.5rem;
}

.save-popover-list-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.12s;
}

.save-popover-list-row:hover { background: #f8fafc; }

.save-popover-list-row.in-list { opacity: 0.6; cursor: default; }

.save-popover-row-bookmark {
  font-size: 0.78rem;
  flex-shrink: 0;
}

.save-popover-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.save-popover-list-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1e293b;
  flex: 1;
}

.save-popover-word-count {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.save-popover-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 1rem;
  margin: 0;
}

/* ── Inline Create List Row ─────────────────────────────────── */
.save-popover-create-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem 0.2rem;
}

.save-popover-new-list-input {
  flex: 1;
  height: 34px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  padding: 0 0.65rem;
  font-size: 0.85rem;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.save-popover-new-list-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.save-popover-new-list-input::placeholder {
  color: #94a3b8;
}

.save-popover-add-btn {
  height: 34px;
  padding: 0 0.85rem;
  background: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.save-popover-add-btn:hover {
  background: #0f172a;
}

.save-popover-cancel-create {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 4px 5px;
  border-radius: 5px;
  flex-shrink: 0;
  transition: color 0.15s;
}

.save-popover-cancel-create:hover {
  color: #334155;
}

/* Popover entrance animation */
@keyframes popoverFadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(-4px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* -------------------------------------------------------------
 * Install PWA & Google Auth Header Styling
 * ------------------------------------------------------------- */
.install-app-btn {
  width: auto !important;
  height: 38px !important;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0 0.95rem !important;
  border-radius: 20px !important;
  border: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  letter-spacing: 0.01em;
}

.install-app-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.38);
}

.user-auth-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.google-login-btn {
  width: auto !important;
  height: 38px !important;
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0 0.95rem !important;
  border-radius: 20px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  letter-spacing: 0.01em;
}

.google-login-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.google-user-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.6rem 0.25rem 0.3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.google-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.google-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.google-logout-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.2rem;
  margin-left: 0.2rem;
  transition: color 0.2s;
}

.google-logout-btn:hover {
  color: #ef4444 !important;
}

/* -------------------------------------------------------------
 * Admin Mode Access Button Styling
 * ------------------------------------------------------------- */
.admin-toggle-btn {
  width: auto !important;
  height: 38px !important;
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0 0.95rem !important;
  border-radius: 20px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.admin-toggle-btn:hover {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}

.admin-toggle-btn.active-admin {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  color: #4ade80 !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

/* Smooth Fade-In Animation for New Conversation / Screen Transitions */
.fade-in-anim {
  animation: fadeInSmooth 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes fadeInSmooth {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------
 * Success Path Page Layout (Staggered Zigzag Timeline)
 * ------------------------------------------------------------- */
.success-path-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
  box-sizing: border-box;
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--text-primary);
}

.success-path-hero {
  max-width: 1050px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
  position: relative;
  padding: 3rem 1.5rem 2.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.success-path-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(246, 202, 33, 0.2) 0%, rgba(0, 229, 255, 0.08) 50%, transparent 80%);
  filter: blur(40px);
  pointer-events: none;
}

.success-path-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(246, 202, 33, 0.12);
  border: 1px solid rgba(246, 202, 33, 0.35);
  border-radius: 30px;
  color: #f6ca21;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.success-path-title {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #f6ca21 60%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 20px rgba(246, 202, 33, 0.2);
}

.success-path-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.success-path-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.success-path-stat-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stat-icon {
  font-size: 1.4rem;
  color: #f6ca21;
}

.stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-lbl {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Staggered Timeline Layout */
.success-path-timeline {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Central Glowing Connector Line */
.success-path-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: linear-gradient(180deg, #f6ca21 0%, #00e5ff 50%, #10b981 100%);
  box-shadow: 0 0 15px rgba(246, 202, 33, 0.5);
  border-radius: 4px;
}

/* Staggered Module Row */
.path-module-row {
  display: flex;
  align-items: center;
  margin-bottom: 3.5rem;
  position: relative;
  width: 100%;
}

.path-module-row.left {
  justify-content: flex-start;
}

.path-module-row.right {
  justify-content: flex-end;
}

/* Center Milestone Node Marker */
.path-node-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f172a;
  border: 3px solid #f6ca21;
  box-shadow: 0 0 16px rgba(246, 202, 33, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #f6ca21;
  z-index: 5;
}

.path-module-row.completed .path-node-marker {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
}

/* Card Outer Box - Stretched to 520px while SUCCESS PATH card stays compact at 960px */
.path-module-card {
  width: calc(50% - 46px);
  max-width: 520px;
  box-sizing: border-box;
  background: var(--card-bg, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  gap: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.path-module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 202, 33, 0.45);
  box-shadow: 0 16px 40px rgba(246, 202, 33, 0.2);
}

/* Module Thumbnail Box */
.module-thumb-box {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(246, 202, 33, 0.15), rgba(15, 23, 42, 0.8));
  border: 1.5px solid rgba(246, 202, 33, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #f6ca21;
  flex-shrink: 0;
}

/* Module Body Info */
.module-info-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.module-num-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f6ca21;
  text-transform: uppercase;
}

.module-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
}

.module-status-pill.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.module-status-pill.unlocked {
  background: rgba(246, 202, 33, 0.15);
  color: #f6ca21;
  border: 1px solid rgba(246, 202, 33, 0.3);
}

.module-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.module-card-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.module-action-btn {
  align-self: flex-start;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, #f6ca21 0%, #d97706 100%);
  color: #000000;
  font-size: 0.82rem;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(246, 202, 33, 0.3);
}

.module-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(246, 202, 33, 0.45);
}

/* Responsive Mobile Success Path Adjustments */
@media (max-width: 860px) {
  .success-path-timeline::before {
    left: 24px;
  }
  .path-node-marker {
    left: 24px;
  }
  .path-module-row {
    justify-content: flex-start !important;
    padding-left: 64px;
  }
  .path-module-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* -------------------------------------------------------------
 * Theme Picker Dropdown & Menu Styles
 * ------------------------------------------------------------- */
.theme-picker-wrapper {
  position: relative;
  display: inline-block;
}

#theme-toggle-btn {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #28282b);
  background: var(--bg-secondary, #0c0c0d);
  color: var(--text-primary, #ffffff);
  font-size: 1.1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle-btn:hover {
  background: var(--bg-tertiary, #141416);
  color: var(--accent-yellow, #f6ca21);
  border-color: var(--accent-yellow, #f6ca21);
  box-shadow: 0 0 10px var(--glow-color-1, rgba(246, 202, 33, 0.3));
}

.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  background: var(--bg-secondary, #0c0c0d);
  border: 1px solid var(--border-color, #28282b);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(12px);
  animation: fadeInDown 0.15s ease-out;
}

.theme-dropdown-menu.hidden {
  display: none !important;
}

.theme-menu-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary, #6c6b69);
  padding: 4px 8px 8px 8px;
  border-bottom: 1px solid var(--border-color, #28282b);
  margin-bottom: 4px;
}

.theme-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary, #ffffff);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.theme-option-btn:hover {
  background: var(--bg-tertiary, #141416);
  border-color: var(--border-color, #28282b);
}

.theme-option-btn.active {
  background: var(--bg-tertiary, #141416);
  border-color: var(--accent-yellow, #f6ca21);
  color: var(--accent-yellow, #f6ca21);
  font-weight: 700;
}

.theme-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sol Chat Send Button & Action Buttons */
.gemini-bar-icon-btn.send-btn {
  background: var(--accent-yellow, #f6ca21) !important;
  color: #000000 !important;
  width: 34px !important;
  height: 34px !important;
  font-size: 0.95rem !important;
  border-radius: 50% !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow: 0 2px 8px var(--glow-color-1, rgba(246, 202, 33, 0.35)) !important;
}

.gemini-bar-icon-btn.send-btn:hover {
  transform: scale(1.1) !important;
  filter: brightness(1.15) !important;
}

/* ==========================================================================
   Dynamic Mic / Send Button Toggle (Mobile & Desktop)
   - Empty input: show ONLY the microphone button; send button is hidden.
   - Text entered: swap button to the send message button.
   ========================================================================== */
.gemini-home-input-bar .gemini-bar-icon-btn.send-btn {
  display: none !important;
}

.gemini-home-input-bar .gemini-bar-icon-btn.mic-btn {
  display: flex !important;
}

/* When text is written in input: hide mic, show send button */
.gemini-home-input-bar.has-text .gemini-bar-icon-btn.mic-btn,
.gemini-home-input-bar:has(input:not(:placeholder-shown)) .gemini-bar-icon-btn.mic-btn {
  display: none !important;
}

.gemini-home-input-bar.has-text .gemini-bar-icon-btn.send-btn,
.gemini-home-input-bar:has(input:not(:placeholder-shown)) .gemini-bar-icon-btn.send-btn {
  display: flex !important;
  animation: sendBtnPopIn 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sendBtnPopIn {
  from {
    transform: scale(0.65);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


.gemini-ai-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gemini-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.gemini-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #ffffff);
  border-color: var(--accent-yellow, #f6ca21);
}

/* =============================================================
 * SOL AI AGENT TRAINING STUDIO & IN-CHAT TEACHING STYLES
 * ============================================================= */

/* Header Train Sol Button */
.train-agent-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--accent-yellow, #f6ca21);
  color: var(--accent-yellow, #f6ca21);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.train-agent-btn:hover {
  background: var(--glow-color-2, rgba(245, 158, 11, 0.2));
  box-shadow: 0 0 12px var(--glow-color-1, rgba(250, 204, 21, 0.3));
  transform: translateY(-1px);
}

.train-btn-text {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* In-Chat Teach Sol Action Button */
.gemini-action-btn.teach-btn {
  color: var(--accent-yellow, #f6ca21);
  border-color: rgba(255, 255, 255, 0.15);
}

.gemini-action-btn.teach-btn:hover {
  background: var(--glow-color-2, rgba(245, 158, 11, 0.18));
  border-color: var(--accent-yellow, #f6ca21);
  box-shadow: 0 0 10px var(--glow-color-1, rgba(250, 204, 21, 0.25));
}

/* Training Studio Modal Window */
.training-studio-window {
  background: var(--bg-secondary, #12141c);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  width: 92%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--glow-color-3, rgba(0, 0, 0, 0.5));
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  padding: 2.2rem;
  gap: 1.5rem;
  box-sizing: border-box;
}

.training-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--glow-color-2, rgba(245, 158, 11, 0.18));
  border: 1px solid var(--accent-yellow, #f6ca21);
  color: var(--accent-yellow, #f6ca21);
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.training-studio-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin-bottom: 0.4rem;
}

.training-studio-header p {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Training Tabs Bar */
.training-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
}

.training-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #94a3b8);
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.training-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #ffffff);
}

.training-tab-btn.active {
  background: var(--glow-color-2, rgba(245, 158, 11, 0.2));
  border-color: var(--accent-yellow, #f6ca21);
  color: var(--accent-yellow, #f6ca21);
  box-shadow: 0 0 12px var(--glow-color-1, rgba(250, 204, 21, 0.2));
}

/* Training Tab Content */
.training-tab-content {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.training-tab-content.active {
  display: flex;
  animation: fadeInMsg 0.25s ease-out;
}

.training-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.training-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.training-hint, .training-subtext {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.45;
}

/* Tone Presets Grid */
.tone-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.tone-preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.tone-preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.tone-preset-btn.active {
  background: var(--glow-color-2, rgba(245, 158, 11, 0.18));
  border-color: var(--accent-yellow, #f6ca21);
  box-shadow: 0 0 14px var(--glow-color-1, rgba(250, 204, 21, 0.25));
}

.tone-icon {
  font-size: 1.25rem;
}

.tone-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
}

.tone-desc {
  font-size: 0.76rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.35;
}

/* Training Inputs & Textareas */
.training-input, .training-textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  color: var(--text-primary, #ffffff);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.training-input:focus, .training-textarea:focus {
  border-color: var(--accent-yellow, #f6ca21);
  box-shadow: 0 0 12px var(--glow-color-1, rgba(250, 204, 21, 0.25));
}

.example-builder-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.input-subgroup {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.input-subgroup label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
}

.primary-action-btn {
  background: var(--accent-yellow, #f6ca21);
  border: none;
  color: #000000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.primary-action-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.secondary-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary, #ffffff);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.secondary-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-yellow, #f6ca21);
}

/* Examples List */
.training-examples-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.training-example-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
}

.example-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.example-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.example-tag.sol-tag {
  color: var(--accent-yellow, #f6ca21);
}

.example-prompt-text {
  font-size: 0.88rem;
  color: var(--text-primary, #ffffff);
  font-weight: 500;
}

.example-response-text {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border-left: 3px solid var(--accent-yellow, #f6ca21);
}

.example-delete-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.example-delete-btn:hover {
  color: #ef4444;
}

.empty-examples-note {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* API Connector Card */
.api-connector-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.engine-status-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.engine-status-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.engine-status-badge.active {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
}

.engine-status-badge.demo {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
}

.api-key-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.training-help {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.training-help a {
  color: var(--accent-yellow, #f6ca21);
  text-decoration: none;
  font-weight: 600;
}

.training-studio-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

/* In-Chat Teach Sol Quick Modal */
.teach-sol-window {
  background: var(--bg-secondary, #12141c);
  border: 1px solid var(--accent-yellow, #f6ca21);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--glow-color-1, rgba(250, 204, 21, 0.25));
}

.teach-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--glow-color-2, rgba(245, 158, 11, 0.2));
  border: 1px solid var(--accent-yellow, #f6ca21);
  color: var(--accent-yellow, #f6ca21);
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.teach-sol-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin-bottom: 0.25rem;
}

.teach-sol-header p {
  font-size: 0.86rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.4;
}

.teach-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.teach-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
}

.teach-user-prompt-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: var(--accent-yellow, #f6ca21);
  font-size: 0.95rem;
  font-weight: 600;
}

.teach-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}


