:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f1523;
  --bg-card: #131a29;
  --bg-card-hover: #192235;
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --text-primary: #f3f5f9;
  --text-secondary: #9aa5b6;
  --text-muted: #64748b;
  --accent-gold: #f59e0b;
  --accent-gold-dim: #b45309;
  --accent-red: #ef4444;
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --de-black: #1a1a1a;
  --de-red: #dd0000;
  --de-gold: #ffcc00;
  --sidebar-w: 280px;
  --radius: 12px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Trending Pastel Color System (Sage / Butter / Lavender / Peach / Sky) */
  --pastel-sage: #88b79b;
  --pastel-sage-bg: rgba(136, 183, 155, 0.12);
  --pastel-sage-border: rgba(136, 183, 155, 0.32);
  --pastel-sage-text: #a8d5b8;

  --pastel-butter: #f3c969;
  --pastel-butter-bg: rgba(243, 201, 105, 0.12);
  --pastel-butter-border: rgba(243, 201, 105, 0.35);
  --pastel-butter-text: #f7dba0;

  --pastel-lavender: #9fa8da;
  --pastel-lavender-bg: rgba(159, 168, 218, 0.12);
  --pastel-lavender-border: rgba(159, 168, 218, 0.32);
  --pastel-lavender-text: #c5cae9;

  --pastel-peach: #f4a28c;
  --pastel-peach-bg: rgba(244, 162, 140, 0.12);
  --pastel-peach-border: rgba(244, 162, 140, 0.32);
  --pastel-peach-text: #ffccbc;

  --pastel-sky: #90cdf4;
  --pastel-sky-bg: rgba(144, 205, 244, 0.12);
  --pastel-sky-border: rgba(144, 205, 244, 0.32);
  --pastel-sky-text: #bae6fd;
}
[data-theme="light"] {
  --bg-primary: #fbfbfe;
  --bg-secondary: #f4f6fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f9fc;
  --border: rgba(15, 23, 42, 0.09);
  --border-subtle: rgba(15, 23, 42, 0.05);
  --shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --text-primary: #19212d;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  --pastel-sage: #5b8f70;
  --pastel-sage-bg: #eaf4ee;
  --pastel-sage-border: #c4e1cf;
  --pastel-sage-text: #366749;

  --pastel-butter: #b3861b;
  --pastel-butter-bg: #fdf6e4;
  --pastel-butter-border: #f4e1b0;
  --pastel-butter-text: #785404;

  --pastel-lavender: #6b77b3;
  --pastel-lavender-bg: #eef1fc;
  --pastel-lavender-border: #cbd3f4;
  --pastel-lavender-text: #454f85;

  --pastel-peach: #bf5b43;
  --pastel-peach-bg: #fdeee9;
  --pastel-peach-border: #f6cdbf;
  --pastel-peach-text: #8c321d;

  --pastel-sky: #3b8ac4;
  --pastel-sky-bg: #e8f4fd;
  --pastel-sky-border: #bee0f7;
  --pastel-sky-text: #1d5f91;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--de-gold); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Markdown Reader View */
.markdown-view {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0; bottom: 0;
  background: var(--bg-primary); z-index: 150;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto; overflow-x: hidden;
}
.markdown-view.open { transform: translateX(0); }
.md-header {
  position: sticky; top: 0; background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(8px); padding: 16px 48px;
  border-bottom: 1px solid var(--border); display: flex;
  justify-content: space-between; align-items: center; z-index: 160;
}
[data-theme="light"] .md-header { background: rgba(248, 250, 252, 0.9); }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px;
  background: transparent; color: var(--text-secondary); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 9px; cursor: pointer; transition: all var(--transition);
}
.back-btn:hover {
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
[data-theme="light"] .back-btn:hover {
  background: rgba(15, 23, 42, 0.04);
}
.md-content {
  padding: 48px; max-width: 800px; margin: 0 auto; min-height: calc(100vh - 80px);
}
.md-content h1 { font-size: 36px; margin-bottom: 24px; color: var(--text-primary); }
.md-content h2 { font-size: 24px; margin-top: 40px; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.md-content h3 { font-size: 18px; margin-top: 24px; margin-bottom: 12px; color: var(--text-primary); }
.md-content p { margin-bottom: 16px; line-height: 1.7; color: var(--text-secondary); }
.md-content ul, .md-content ol { margin-bottom: 16px; padding-left: 24px; color: var(--text-secondary); }
.md-content li { margin-bottom: 8px; }
.md-content pre { background: var(--bg-card); padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); overflow-x: auto; margin-bottom: 16px; }
.md-content code { background: rgba(245,158,11,0.1); padding: 2px 6px; border-radius: 4px; color: var(--accent-gold); font-size: 13px; }
.md-content pre code { background: transparent; padding: 0; color: var(--text-secondary); }
.md-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.md-content th, .md-content td { padding: 12px; border: 1px solid var(--border); text-align: left; }
.md-content th { background: var(--bg-card); font-weight: 600; }
.md-content blockquote {
  border-left: 4px solid var(--accent-gold); padding-left: 16px;
  background: rgba(245,158,11,0.05); padding: 12px 16px; border-radius: 0 8px 8px 0;
  margin-bottom: 16px; font-style: italic;
}
.md-loader { text-align: center; padding: 100px 0; font-size: 18px; color: var(--text-muted); }

/* Apple-Style Module Hero Header */
.apple-module-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(245, 158, 11, 0.09) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 36px;
  margin-bottom: 36px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .apple-module-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 158, 11, 0.1) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.apple-hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.apple-hero-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}
.apple-hero-pill.badge-num {
  background: var(--accent-gold);
  color: #000000;
  border-color: var(--accent-gold);
  font-weight: 800;
}
.apple-hero-pill.badge-level {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}
.apple-hero-pill.badge-track {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}
.apple-hero-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: var(--text-primary) !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
.apple-hero-desc {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--text-secondary) !important;
  margin-bottom: 22px !important;
  max-width: 680px;
}
.apple-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.apple-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.apple-stat-item strong {
  color: var(--text-primary);
  font-weight: 700;
}


/* Global Top Bar (Unified Sticky Header inside .main: View Switcher, Goal, Placement & Language) */
.global-top-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .global-top-bar {
  background: rgba(255, 255, 255, 0.92);
}
.index-view-switcher {
  display: inline-flex;
  background: var(--bg-secondary);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
  gap: 2px;
}
.view-switch-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.view-switch-btn:hover {
  color: var(--text-primary);
}
.view-switch-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .view-switch-btn.active {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.global-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.placement-top-chip {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
}
.goal-chip-btn {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: none;
}
.goal-chip-btn:hover {
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.goal-chip-btn .goal-chip-action {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
[data-theme="light"] .goal-chip-btn {
  background: #ffffff;
  box-shadow: none;
}
.pro-chip-btn {
  background: rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #10b981;
  padding: 6px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: none;
}
.pro-chip-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
}
[data-theme="light"] .pro-chip-btn {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.4);
  color: #047857;
}
.quick-jump-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px 0;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.quick-jump-strip::-webkit-scrollbar {
  display: none;
}
.jump-pill {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-decoration: none;
}
[data-theme="light"] .jump-pill {
  background: #ffffff;
}
.jump-pill:hover {
  color: var(--text-primary);
  border-color: rgba(245, 158, 11, 0.4);
  background: var(--bg-card);
  transform: translateY(-1px);
}
.global-lang-toggle {
  display: flex; gap: 6px; background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(10px); padding: 4px 6px; border-radius: 12px;
  border: 1px solid var(--border);
}
[data-theme="light"] .global-lang-toggle { background: rgba(248, 250, 252, 0.85); }
.global-lang-toggle .lang-btn {
  flex: none; width: auto; padding: 6px 10px; font-size: 12px; border-radius: 8px;
}

/* Sidebar */
.sidebar {
  position: fixed; top: 0; left: 0; width: var(--sidebar-w); height: 100vh;
  background: var(--bg-secondary); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 100;
  transition: transform var(--transition);
}
.sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-header .top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.sidebar-header .flag { font-size: 28px; }
.theme-toggle {
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  width: 32px; height: 32px; font-size: 16px; cursor: pointer; color: var(--text-primary);
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.theme-toggle:hover { background: var(--bg-card); border-color: var(--accent-gold); }
.search-box {
  width: 100%; margin-top: 12px; padding: 8px 12px;
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); font-size: 13px; font-family: inherit; transition: all var(--transition);
}
.search-box:focus { outline: none; border-color: var(--accent-gold); }
.sidebar-header h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
/* Sidebar 3 Primary Navigation Pillars */
.sidebar-pillars {
  padding: 10px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-pillar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm, 10px);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
}
.sidebar-pillar-link.pillar-b1 {
  border-color: var(--border);
}
.sidebar-pillar-link.pillar-b1:hover, .sidebar-pillar-link.pillar-b1.active {
  border-color: var(--pastel-sage);
  background: var(--pastel-sage-bg);
  color: var(--text-primary);
}
.sidebar-pillar-link.pillar-vocab {
  border-color: var(--border);
}
.sidebar-pillar-link.pillar-vocab:hover, .sidebar-pillar-link.pillar-vocab.active {
  border-color: var(--pastel-butter);
  background: var(--pastel-butter-bg);
  color: var(--text-primary);
}
.sidebar-pillar-link.pillar-lid {
  border-color: var(--border);
}
.sidebar-pillar-link.pillar-lid:hover, .sidebar-pillar-link.pillar-lid.active {
  border-color: var(--pastel-lavender);
  background: var(--pastel-lavender-bg);
  color: var(--text-primary);
}
.sidebar-pillar-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.sidebar-pillar-title {
  line-height: 1.2;
}
.sidebar-pillar-sub {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
}
.sidebar-pillar-link.pillar-b1 .sidebar-pillar-sub {
  color: var(--pastel-sage-text);
}
[data-theme="light"] .sidebar-pillar-link.pillar-b1 .sidebar-pillar-sub {
  color: var(--pastel-sage);
}
.sidebar-pillar-link.pillar-vocab .sidebar-pillar-sub {
  color: var(--pastel-butter-text);
}
[data-theme="light"] .sidebar-pillar-link.pillar-vocab .sidebar-pillar-sub {
  color: var(--pastel-butter);
}
.sidebar-pillar-link.pillar-lid .sidebar-pillar-sub {
  color: var(--pastel-lavender-text);
}
[data-theme="light"] .sidebar-pillar-link.pillar-lid .sidebar-pillar-sub {
  color: var(--pastel-lavender);
}
.sidebar-nav-header {
  padding: 14px 20px 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--text-primary);
  background: var(--pastel-sage-bg);
  border-left-color: var(--pastel-sage);
}
.sidebar-nav a .icon { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-nav a .num {
  margin-left: auto; font-size: 10px; font-weight: 700;
  background: var(--bg-card); padding: 2px 7px; border-radius: 8px;
  color: var(--text-muted); border: 1px solid var(--border-subtle);
}
.sidebar-sub-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 18px;
  opacity: 0.5;
}
.sidebar-nav a.tool-link {
  font-size: 12px;
  opacity: 0.88;
}
.sidebar-nav a.tool-link:hover {
  opacity: 1;
}
.sidebar-nav a.highlight-pill {
  color: var(--pastel-butter-text);
  font-weight: 700;
}
[data-theme="light"] .sidebar-nav a.highlight-pill {
  color: var(--pastel-butter);
}
/* Progress bar */
.progress-wrap {
  padding: 12px 20px; border-top: 1px solid var(--border);
}
.progress-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-muted); margin-bottom: 6px;
}
.progress-label span:last-child { color: var(--accent-gold); font-weight: 700; }
.progress-bar {
  height: 6px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 3px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent-gold), var(--de-gold));
  border-radius: 3px; transition: width 0.5s ease; width: 0%;
}
.day-tracker {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-muted); margin-bottom: 2px; margin-top: 8px;
}
.day-tracker span:last-child { color: var(--accent-blue); font-weight: 700; }
.quiz-score {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding: 12px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.quiz-score .score-text { font-size: 14px; font-weight: 600; }
.quiz-score .score-num { color: var(--accent-gold); font-size: 20px; font-weight: 800; }
.reset-btn {
  font-size: 11px; padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); cursor: pointer; font-family: inherit;
  transition: all var(--transition);
}
.reset-btn:hover { border-color: var(--accent-red); color: var(--accent-red); }
.sidebar-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}
.lang-btn {
  flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--text-secondary); font-size: 12px;
  font-weight: 600; cursor: pointer; transition: all var(--transition);
  font-family: inherit;
}
.lang-btn.active { background: var(--accent-gold); color: var(--bg-primary); border-color: var(--accent-gold); }
.lang-btn:hover:not(.active) { border-color: var(--accent-gold); color: var(--text-primary); }

/* Heatmap */
.heatmap-wrap { padding: 12px 20px; border-top: 1px solid var(--border); }
.heatmap-label { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.heatmap-container { display: flex; gap: 3px; flex-wrap: wrap; }
.heat-square { width: 9px; height: 9px; border-radius: 2px; background: var(--bg-primary); border: 1px solid var(--border); }
.heat-square[data-intensity="1"] { background: #451a1a; }
.heat-square[data-intensity="2"] { background: #7f1d1d; }
.heat-square[data-intensity="3"] { background: #b91c1c; }
.heat-square[data-intensity="4"] { background: #ef4444; }

/* Mobile toggle */
.menu-toggle {
  display: none; position: fixed; top: 16px; left: 16px; z-index: 200;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-secondary); color: var(--text-primary); font-size: 20px;
  cursor: pointer; align-items: center; justify-content: center;
}

/* Main */
.main { margin-left: var(--sidebar-w); min-height: 100vh; }

/* Hero */
.hero {
  padding: 24px 36px 14px;
  background: linear-gradient(135deg, var(--pastel-sage-bg) 0%, var(--pastel-lavender-bg) 60%, var(--pastel-butter-bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, var(--pastel-sage-bg) 0%, transparent 70%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 3px 11px; border-radius: 12px; font-size: 11px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 8px;
}
.hero h1 {
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.25; margin-bottom: 5px;
  color: var(--text-primary);
}
.hero p { font-size: 13px; color: var(--text-secondary); max-width: 680px; line-height: 1.5; margin-bottom: 6px; }
.hero-stats {
  display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center;
}
.hero-stat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px; text-align: left;
  transition: all var(--transition);
}
.hero-stat:hover {
  border-color: var(--pastel-sage-border);
}
.hero-stat .val { font-size: 11px; font-weight: 800; color: var(--pastel-sage-text); line-height: 1; }
[data-theme="light"] .hero-stat .val { color: var(--pastel-sage); }
.hero-stat:nth-child(2) .val { color: var(--pastel-butter-text); }
[data-theme="light"] .hero-stat:nth-child(2) .val { color: var(--pastel-butter); }
.hero-stat:nth-child(3) .val { color: var(--pastel-lavender-text); }
[data-theme="light"] .hero-stat:nth-child(3) .val { color: var(--pastel-lavender); }
.hero-stat:nth-child(4) .val { color: var(--pastel-sky-text); }
[data-theme="light"] .hero-stat:nth-child(4) .val { color: var(--pastel-sky); }
.hero-stat .label { font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: none; letter-spacing: normal; margin-top: 0; line-height: 1; }

/* Content */
.content { padding: 18px 36px 60px; max-width: 960px; }
.section { margin-bottom: 64px; scroll-margin-top: 24px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent-gold); margin-bottom: 12px;
}
.section h2 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
}
.section > p { color: var(--text-secondary); margin-bottom: 24px; font-size: 15px; }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: all var(--transition); cursor: pointer;
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--accent-gold); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.08); }
.card .card-icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--text-secondary); }
.card .card-tag {
  position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 10px; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card .card-tag.en { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.card .card-tag.tr { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.card-links { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.card-link {
  font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border); color: var(--text-primary);
  transition: all var(--transition); cursor: pointer;
}
[data-theme="light"] .card-link {
  background: #ffffff;
}
.card-link:hover {
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.card-link.primary {
  background: var(--accent-gold); color: #090d16;
  border-color: rgba(255, 255, 255, 0.16); font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.card-link.primary:hover {
  background: #fbbf24; color: #090d16; border-color: #fbbf24;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.22);
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { background: var(--bg-card); padding: 12px 16px; text-align: left;
  font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { padding: 10px 16px; border-bottom: 1px solid rgba(42,53,80,0.5); color: var(--text-secondary); }
tr:hover td { background: rgba(245,158,11,0.03); }
td strong, td b { color: var(--text-primary); }

/* Quiz */
.quiz-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 12px;
}
.quiz-q { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.quiz-opt {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; cursor: pointer; transition: all var(--transition);
  background: transparent; color: var(--text-secondary); font-family: inherit;
}
.quiz-opt:hover:not(.disabled) { border-color: var(--accent-gold); color: var(--text-primary); }
.quiz-opt:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.quiz-opt.correct { background: rgba(34,197,94,0.15) !important; border-color: var(--accent-green) !important; color: var(--accent-green) !important; font-weight: 600; }
.quiz-opt.wrong { background: rgba(239,68,68,0.1) !important; border-color: var(--accent-red) !important; color: var(--accent-red) !important; font-weight: 600; }
.quiz-opt.disabled { pointer-events: none; opacity: 0.6; }
.quiz-opt.disabled.correct, .quiz-opt.disabled.wrong { opacity: 1 !important; }
.quiz-explain {
  display: none; font-size: 13px; color: var(--text-muted);
  padding: 12px; background: rgba(34,197,94,0.05); border-radius: 8px;
  border-left: 3px solid var(--accent-green);
}
.quiz-explain.show { display: block; }

/* 5-Step Milestone Roadmap Grid */
.steps-roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0 28px 0;
}
.step-milestone {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 10px);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.step-milestone:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245,158,11,0.12);
  background: rgba(245,158,11,0.04);
}
.step-milestone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.step-milestone-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245,158,11,0.12);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-milestone-arrow {
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.step-milestone:hover .step-milestone-arrow {
  transform: translateX(3px);
}
.step-milestone h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.step-milestone p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

/* Quick start steps */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-radius: 10px; margin-bottom: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s ease;
}
.step:hover {
  border-color: var(--accent-gold);
  transform: translateX(4px);
  background: rgba(245,158,11,0.06);
}
.step::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--accent-gold);
}
.step-text { flex: 1; }
.step-text h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.step-text p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.step-arrow {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 16px;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.step:hover .step-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Scoring */
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.score-card {
  padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-card);
}
.score-card h4 { font-size: 20px; font-weight: 700; }
.score-card p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Grammar highlight box */
.grammar-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 16px;
}
.grammar-box h4 { font-size: 15px; font-weight: 600; color: var(--accent-gold); margin-bottom: 8px; }
.grammar-box code {
  background: rgba(245,158,11,0.1); padding: 2px 8px; border-radius: 4px;
  font-size: 13px; color: var(--accent-gold);
}
.grammar-box .example {
  margin-top: 8px; padding: 10px; background: rgba(255,255,255,0.03);
  border-radius: 8px; font-size: 13px; color: var(--text-secondary);
  border-left: 3px solid var(--accent-gold);
}

/* Flashcards */
.flashcard-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 32px 0; perspective: 1000px;
}
.flashcard {
  width: 100%; max-width: 440px; height: 240px;
  position: relative; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  cursor: pointer;
}
.flashcard.flipped { transform: rotateY(180deg); }
.fc-face {
  position: absolute; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--radius); padding: 24px; text-align: center;
  background: var(--bg-card); border: 2px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.fc-front { background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%); }
.fc-back {
  background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(245,158,11,0.02) 100%);
  transform: rotateY(180deg); border-color: var(--accent-gold);
}
.fc-word { font-size: 32px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.fc-hint { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; }
.fc-example { font-size: 14px; color: var(--text-secondary); margin-top: 16px; font-style: italic; }
.fc-controls { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.fc-controls [id^="fc-btn-"] {
  padding: 5px 9px !important;
  font-size: 12px !important;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-secondary);
}
.fc-controls [id^="fc-btn-"]:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-primary);
  transform: none;
}
[data-theme="light"] .fc-controls [id^="fc-btn-"]:hover {
  background: rgba(15, 23, 42, 0.04);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 280px; box-shadow: 10px 0 30px rgba(0,0,0,0.5); }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: flex; z-index: 210; }
  .main { margin-left: 0; }
  .markdown-view { left: 0; }
  .md-header, .md-content { padding: 16px 20px; }
  .hero { padding: 60px 18px 16px; }
  .hero h1 { font-size: 22px; }
  .hero-goal-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    margin: 8px 0 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-goal-info { width: 100%; }
  .hero-goal-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-goal-actions #hero-goal-dashboard-link {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 11px 14px;
    font-size: 13px;
    text-align: center;
  }
  .hero-goal-actions .btn-sm-goal,
  .hero-goal-actions .btn-sm-trainer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 9px 8px;
    font-size: 11.5px;
    min-height: 42px;
    line-height: 1.25;
    border-radius: 8px;
    white-space: normal;
    box-sizing: border-box;
  }
  .content { padding: 16px 14px 60px; }
  .cards { grid-template-columns: 1fr; }
  .goal-chip-btn { padding: 5px 10px; font-size: 11px; }
  .goal-chip-btn .goal-chip-action { display: none; }
  .global-lang-toggle .lang-btn { padding: 4px 6px; font-size: 11px; }
  .apple-module-hero { padding: 20px; border-radius: 14px; margin-bottom: 24px; }
  .apple-hero-title { font-size: 24px !important; }
  .apple-hero-stats { gap: 12px; flex-direction: column; }
  .track-switcher-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .track-switcher-bar::-webkit-scrollbar { display: none; }
  .track-tab-btn { min-width: 150px; font-size: 12px; padding: 10px 14px; }
}

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate { animation: fadeUp 0.5s ease forwards; }
.section { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.section:nth-child(2) { animation-delay: 0.1s; }
/* Feedback Modal & Floating Button Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeUp 0.2s ease-out;
}
.modal-backdrop.hidden { display: none !important; }
.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
}
.modal-header h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.modal-close-btn:hover { color: var(--text-primary); }
.modal-scroll-area {
  overflow-y: auto;
  padding: 24px;
}
.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  text-align: left;
}
.auth-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-input-field, .feedback-select-field, .feedback-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}
.auth-input-field:focus, .feedback-select-field:focus, .feedback-textarea:focus {
  border-color: var(--accent-gold);
}
.auth-notice-msg {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-notice-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}
.auth-notice-msg.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}
.btn-feedback-submit {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: var(--accent-gold);
  color: #000000;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}
.btn-feedback-submit:hover {
  background: var(--de-gold);
  transform: translateY(-1px);
}
.star-rating-wrap {
  display: flex;
  gap: 10px;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  align-items: center;
  padding: 4px 0;
}
.star-rating-wrap span {
  color: var(--border);
  transition: transform 0.15s ease, color 0.15s ease;
  display: inline-block;
  outline: none;
}
.star-rating-wrap span:hover,
.star-rating-wrap span:focus-visible {
  transform: scale(1.25);
}
.star-rating-wrap span.selected,
.star-rating-wrap span.hover {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.btn-floating-feedback {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: rgba(19, 26, 41, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.btn-floating-feedback:hover {
  transform: translateY(-1px);
  color: var(--text-primary);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .btn-floating-feedback {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-secondary);
  border-color: var(--border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* Sidebar Goal Badge */
.sidebar-goal-badge {
  margin: 12px 16px 4px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: all var(--transition);
}
.sidebar-goal-badge:hover {
  border-color: var(--pastel-lavender);
  background: var(--pastel-lavender-bg);
  transform: translateY(-1px);
}
.sidebar-goal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.sidebar-goal-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--pastel-lavender-text);
  text-transform: uppercase;
}
[data-theme="light"] .sidebar-goal-kicker {
  color: var(--pastel-lavender);
}
.sidebar-goal-edit {
  font-size: 10px;
  color: var(--text-muted);
}
.sidebar-goal-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.sidebar-goal-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Hero Goal Strip */
.hero-goal-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  margin: 10px 0;
  backdrop-filter: blur(8px);
}
[data-theme="light"] .hero-goal-strip {
  background: var(--bg-card);
  border-color: var(--border);
}
.hero-goal-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.hero-goal-icon {
  font-size: 18px;
}
.hero-goal-info strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.3;
}
.hero-goal-info div {
  font-size: 11px !important;
}
.hero-goal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-sm-goal {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
[data-theme="light"] .btn-sm-goal {
  background: #ffffff;
}
.btn-sm-goal:hover {
  color: var(--text-primary);
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.btn-sm-trainer {
  background: var(--accent-gold);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #090d16;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .btn-sm-trainer {
  color: #090d16;
  border-color: rgba(180, 83, 9, 0.25);
}
.btn-sm-trainer:hover {
  background: #fbbf24;
  color: #090d16;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.22);
}

/* Entrance Modal ("Ask for Wish") */
.entrance-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.entrance-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.entrance-modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(245, 158, 11, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.entrance-modal-overlay.open .entrance-modal-card {
  transform: scale(1);
}
.entrance-header {
  text-align: center;
  margin-bottom: 28px;
}
.entrance-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.entrance-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.entrance-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}
.goal-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.goal-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  outline: none;
}
.goal-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.goal-card.active {
  border-color: var(--accent-gold);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.08) 100%);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
}
.goal-card.active::after {
  content: '✓';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  background: var(--accent-gold);
  color: #000000;
  font-size: 13px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.goal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.goal-icon {
  font-size: 26px;
}
.goal-cefr-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.badge-a1 { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-b1 { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-b2 { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-c1 { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-all { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }

.goal-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.goal-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}
.goal-perks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.entrance-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.entrance-control-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.entrance-control-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.entrance-control-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.entrance-control-group select:focus {
  border-color: var(--accent-gold);
}
.entrance-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.entrance-confirm-btn {
  background: var(--accent-gold);
  color: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.entrance-confirm-btn:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22);
}
.entrance-dismiss-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
  padding: 11px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
}
.entrance-dismiss-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--text-primary);
}

/* Card Recommendation Glow */
.card.recommended {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12);
  position: relative;
}
.card-badge-recommended {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .goal-chip-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  .goal-chip-btn .goal-chip-text {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .entrance-modal-card {
    padding: 24px 18px;
  }
  .entrance-header h2 {
    font-size: 22px;
  }
  .goal-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
.fc-word[dir="rtl"],
.fc-hint[dir="rtl"] {
  direction: rtl;
  text-align: center;
}

/* ==========================================================================
   Schreiben Sample Evaluation Showcase & Pro Pricing Modal Styles
   ========================================================================== */
.schreiben-showcase-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.showcase-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.showcase-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.showcase-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.showcase-header p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.showcase-prompt-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-gold);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.prompt-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
}
.prompt-word-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.prompt-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.prompt-context {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-column {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.column-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.sub-hint {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 16px;
}

.annotated-letter-box {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  flex: 1;
}

.annotation-mark {
  position: relative;
  background: transparent;
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.annotation-mark.grammar {
  border-bottom: 2px dashed #ef4444;
  color: #ef4444;
}
.annotation-mark.syntax {
  border-bottom: 2px dashed #f59e0b;
  color: #f59e0b;
}
.annotation-mark.spelling {
  border-bottom: 2px dashed #ec4899;
  color: #ec4899;
}
.annotation-mark.vocab {
  border-bottom: 2px dashed #3b82f6;
  color: #3b82f6;
}

.ann-popover {
  display: none;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  width: 240px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 100;
  border: 1px solid #374151;
  pointer-events: none;
}
.annotation-mark:hover .ann-popover {
  display: block;
}

.annotation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.legend-item.grammar .dot { background: #ef4444; }
.legend-item.syntax .dot { background: #f59e0b; }
.legend-item.spelling .dot { background: #ec4899; }
.legend-item.vocab .dot { background: #3b82f6; }

.total-score-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.score-num {
  font-size: 24px;
  line-height: 1;
}
.score-max {
  font-size: 11px;
  opacity: 0.8;
}
.score-grade {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}
.score-percentage {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.score-status-pill {
  font-size: 10px;
  font-weight: 800;
  background: #10b981;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  text-transform: uppercase;
}

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.criterion-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.progress-bar-bg {
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.progress-bar-fill.excellent { background: #10b981; }
.progress-bar-fill.good { background: #3b82f6; }
.progress-bar-fill.average { background: #f59e0b; }
.criterion-summary {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.upgrades-section {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}
.upgrades-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.upgrades-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.upgrades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .upgrades-grid {
    grid-template-columns: 1fr;
  }
}

.upgrade-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upgrade-original p {
  font-size: 12px;
  color: #ef4444;
  text-decoration: line-through;
  opacity: 0.85;
}
.upgrade-improved p {
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
}
.upgrade-benefit {
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.upgrade-card .label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.pro-cta-banner {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #4338ca);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 16px;
  padding: 28px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 12px 35px rgba(49, 46, 129, 0.35);
}
@media (max-width: 850px) {
  .pro-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}
.cta-kicker {
  font-size: 11px;
  font-weight: 800;
  color: #a5b4fc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.cta-content h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}
.cta-content p {
  font-size: 13px;
  color: #c7d2fe;
  max-width: 560px;
  margin-bottom: 14px;
}
.cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
}
.cta-badges span {
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cta-btn-primary {
  background: var(--accent-gold);
  color: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: all 0.2s ease;
}
.cta-btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22);
}
.dash-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold);
  color: #090d16;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: all var(--transition);
  text-decoration: none;
}
.dash-btn-primary:hover {
  background: #fbbf24;
  color: #090d16;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22);
}
.dash-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
[data-theme="light"] .dash-btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
}
.dash-btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.cta-guarantee {
  font-size: 11px;
  color: #a5b4fc;
  margin-top: 8px;
  text-align: center;
}

/* Pricing Modal & Interactive Checkout */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pricing-modal-card {
  position: relative;
  border: 1px solid var(--border);
  max-width: 1040px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.pricing-modal-card > .modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.pricing-modal-card > .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.pricing-modal-card .modal-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  background: transparent;
  padding: 0 36px 16px 0;
}
.pricing-modal-card .modal-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}
@media (max-width: 850px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}
.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 850px) {
  .pricing-tiers-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-tier-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}
.pricing-tier-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.pricing-tier-card.featured {
  border-color: var(--accent-gold);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.2);
}
.tier-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--accent-gold);
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 10px;
  text-transform: uppercase;
}
.tier-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.tier-price {
  margin-bottom: 8px;
}
.tier-price .amount {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
}
.tier-price .period {
  font-size: 11px;
  color: var(--text-muted);
}
.tier-credits {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 14px;
  background: rgba(245, 158, 11, 0.1);
  padding: 5px 10px;
  border-radius: 8px;
  display: inline-block;
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
}
.tier-cta-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}
[data-theme="light"] .tier-cta-btn {
  background: #ffffff;
}
.tier-cta-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}
.tier-cta-btn.featured {
  background: var(--accent-gold);
  color: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.tier-cta-btn.featured:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
}

/* Free Tier Styling in Pricing Grids */
.pricing-tier-card.free-tier {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, var(--bg-primary) 100%);
}
.pricing-tier-card.free-tier:hover {
  border-color: #10b981;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.22);
}
.tier-badge.free-badge {
  background: #10b981;
  color: #ffffff;
}
.tier-credits.free-credits {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}
.tier-cta-btn.free-cta-btn {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 600;
  box-shadow: none;
}
.tier-cta-btn.free-cta-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  box-shadow: none;
  transform: translateY(-1px);
}
[data-theme="light"] .tier-cta-btn.free-cta-btn {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(16, 185, 129, 0.4);
}

/* Pay Method Buttons in Checkout */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 680px) {
  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pay-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  text-align: center;
  gap: 3px;
  min-height: 72px;
  transition: all 0.18s ease;
  cursor: pointer;
}
.pay-method-btn:hover {
  border-color: var(--accent-gold) !important;
  background: var(--bg-card-hover) !important;
  transform: translateY(-1px);
}
.pay-method-btn.active {
  border: 2px solid var(--accent-gold) !important;
  background: rgba(245, 158, 11, 0.08) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}
.pay-method-icon {
  font-size: 20px;
  line-height: 1;
}
.pay-method-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.pay-method-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Dynamic Payment Method Panels */
.pay-method-panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
.pay-method-panel.active {
  display: block;
}
.pay-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.pay-input-group {
  flex: 1;
}
.pay-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pay-input-group input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  transition: border-color var(--transition);
}
.pay-input-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Digital Invoice & Receipt Card */
.digital-receipt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}
.receipt-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.receipt-items-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.receipt-items-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.receipt-items-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.receipt-tax-notice {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 14px;
  padding: 10px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

/* Print Optimization for Invoices */
@media print {
  body * {
    visibility: hidden;
  }
  .modal-overlay,
  .digital-receipt-card,
  .digital-receipt-card * {
    visibility: visible;
  }
  .modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
  }
  .digital-receipt-card {
    border: 1px solid #ccc !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
  .receipt-tax-notice {
    background: #f9f9f9 !important;
    color: #333333 !important;
    border-color: #cccccc !important;
  }
  .modal-close-btn,
  .receipt-actions {
    display: none !important;
  }
}

/* Testimonials Grid & Cards */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.testimonial-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.testimonial-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.testimonial-quote {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.2s ease;
}
.faq-item[open] {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}
.faq-summary {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-chevron {
  color: var(--accent-gold);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-answer {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Incoming E-Mail Box & Leitpunkte Checklist */
.incoming-email-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.5;
}
.email-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.email-body {
  color: var(--text-primary);
  font-style: italic;
}

.leitpunkte-checklist {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 14px;
}
.leitpunkte-checklist h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 10px;
}
.leitpunkte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 768px) {
  .leitpunkte-grid {
    grid-template-columns: 1fr;
  }
}
.leitpunkt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-primary);
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.leitpunkt-item.fulfilled {
  border-color: rgba(16, 185, 129, 0.3);
}
.leitpunkt-item .lp-num {
  font-weight: 700;
  color: var(--accent-gold);
}

.score-formula {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0;
}
.score-formula code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-gold);
  font-weight: 700;
}

.telc-rules-note {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 16px;
}

/* Tab Bar & Panes */
.schreiben-tab-bar {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.schreiben-tab-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.schreiben-tab-btn.active {
  background: var(--accent-gold);
  color: #000000;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* Live Grader Form */
.live-grader-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.live-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.live-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.live-form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.live-form-group label {
  font-size: 13px;
  color: var(--text-primary);
}
.styled-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  resize: vertical;
}
.styled-textarea:focus {
  border-color: var(--accent-gold);
}
.textarea-counter-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.live-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* Sprechen Simulator */
.speaking-sim-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.speaking-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
  margin-bottom: 6px;
}
.speaking-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.speaking-topic-card {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-gold);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}
.speaking-topic-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.speaking-topic-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.speaking-checklist-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}
.speaking-checklist-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px;
}
.speaking-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 768px) {
  .speaking-points-grid {
    grid-template-columns: 1fr;
  }
}
.sp-point {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-primary);
}

.redemittel-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.redemittel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .redemittel-grid {
    grid-template-columns: 1fr;
  }
}
.rm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.rm-card h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
}
.rm-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Leben in Deutschland (LiD 310) & Fehlerheft Styles
   ========================================================================== */
.lid-trainer-wrapper,
.fehlerheft-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.lid-header h2,
.fehlerheft-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
  margin-bottom: 6px;
}
.lid-header p,
.fehlerheft-header p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.lid-controls-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
}
.lid-control-group {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lid-control-group label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* LiD Federal State Badge & Controls */
.lid-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.lid-state-badge:hover {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(59, 130, 246, 0.14));
  transform: translateY(-1px);
}
.lid-state-badge-icon {
  font-size: 18px;
}
.lid-state-badge-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.lid-state-badge-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  text-transform: uppercase;
}
.lid-state-badge-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.lid-state-badge-action {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-left: 4px;
  transition: all 0.2s ease;
}
.lid-state-badge:hover .lid-state-badge-action {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.lid-question-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.lid-q-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.lid-q-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.4;
}

.lid-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.lid-opt-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: 10px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}
.lid-opt-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  transform: translateX(4px);
}
.lid-opt-btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}
.lid-opt-btn:disabled:not(.correct):not(.wrong) {
  opacity: 0.6;
  cursor: default;
}
.lid-opt-btn.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  color: #10b981 !important;
  font-weight: 700;
  opacity: 1 !important;
}
.lid-opt-btn.wrong {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  opacity: 1 !important;
}
.opt-letter {
  font-weight: 800;
  color: var(--accent-gold);
}
.opt-trans {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: normal;
}
.lid-q-image-container {
  text-align: center;
  margin: 16px 0 20px 0;
}
.lid-q-img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  padding: 6px;
}

.lid-explanation-box {
  background: var(--bg-card);
  border-left: 4px solid #10b981;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.lid-explanation-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 8px;
}
.exp-de { color: var(--text-primary); margin-bottom: 4px; }
.exp-tr { color: var(--text-secondary); margin-bottom: 12px; }

.lid-vocab-crosslink {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.vocab-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.vocab-pill-link {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  transition: all 0.2s ease;
}
.vocab-pill-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.lid-nav-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Fehlerheft Grid */
.fehlerheft-empty-card {
  text-align: center;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  max-width: 680px;
  margin: 0 auto;
}
.empty-icon { font-size: 36px; margin-bottom: 10px; }
.fehlerheft-empty-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.fehlerheft-empty-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Collapsible Schreiben & Sprechen Suite Drawer */
.showcase-drawer-collapsed {
  display: none !important;
}

.fehlerheft-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.fehlerheft-item-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.fh-type-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
}
.fh-type-badge.vocab { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.fh-type-badge.grammar { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.fh-type-badge.syntax { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.fh-word { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.fh-meaning { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.fh-example { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; flex: 1; }
.fh-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.remove-fh-btn {
  background: transparent;
  border: 1px solid #10b981;
  color: #10b981;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.remove-fh-btn:hover {
  background: #10b981;
  color: #ffffff;
}

/* ==========================================================================
   B1 Connectors Palette (Konnektoren-Leiste)
   ========================================================================== */
.connector-palette-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.connector-palette-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
}
.connector-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.connector-chip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.connector-chip-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-1px);
}
.connector-status-badge {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.connector-status-badge strong {
  color: #10b981;
}

/* ==========================================================================
   Sprechen Teil 3 Simulated Dialogue Flow & Redemittel Audio
   ========================================================================== */
.dialogue-flow-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-top: 24px;
}
.dialogue-flow-card h4 {
  font-size: 16px;
  color: var(--accent-gold);
  margin-bottom: 6px;
}
.dialogue-flow-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.dialogue-turns-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dialogue-turn {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}
.dialogue-turn.partner-a {
  border-left: 4px solid var(--accent-blue);
}
.dialogue-turn.partner-b {
  border-left: 4px solid var(--accent-gold);
}
.turn-speaker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.turn-speaker-row.a { color: var(--accent-blue); }
.turn-speaker-row.b { color: var(--accent-gold); }
.turn-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.turn-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}
.dialogue-play-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  font-size: 14px;
}
.dialogue-play-btn:hover {
  background: var(--accent-gold);
  color: #000000;
  transform: scale(1.1);
}

.speaking-tip-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}
.speaking-tip-card h5 {
  color: #10b981;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.speaking-tip-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   LiD Starred Questions
   ========================================================================== */
.lid-star-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lid-star-btn.starred {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.lid-trans-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lid-trans-toggle-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}
.lid-trans-toggle-btn.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.lid-star-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lid-star-filter-btn.active {
  background: var(--accent-gold);
  color: #000000;
  border-color: var(--accent-gold);
}

/* Track Switcher Bar & View Isolation */
.track-switcher-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  position: relative;
  z-index: 10;
}
.track-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.track-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.track-tab-btn.active {
  font-weight: 600;
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #090d16;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}
.track-tab-btn.active#tab-track-b1,
.track-tab-btn.active#tab-track-lid,
.track-tab-btn.active#tab-track-vocab {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #090d16;
}
[data-theme="light"] .track-tab-btn.active#tab-track-b1,
[data-theme="light"] .track-tab-btn.active#tab-track-lid,
[data-theme="light"] .track-tab-btn.active#tab-track-vocab {
  color: #090d16;
}
.track-view {
  animation: fadeIn 0.3s ease;
}
.lid-trans-inline-hint-btn {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.lid-trans-inline-hint-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.08);
}
.lid-trans-quick-hide:hover {
  color: var(--accent-gold) !important;
  background: rgba(245, 158, 11, 0.1) !important;
}

/* --- High-Yield LiD Checklist & Read List --- */
.lid-checklist-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.lid-checklist-header {
  margin-bottom: 24px;
}
.lid-checklist-mode-switch-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: right;
}
.lid-checklist-progress-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.lid-checklist-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.lid-checklist-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.lid-checklist-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lid-checklist-action-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}
.lid-checklist-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.lid-checklist-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lid-checklist-cat-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lid-checklist-cat-pill:hover,
.lid-checklist-cat-pill.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.lid-checklist-search-box {
  min-width: 240px;
  flex: 1;
  max-width: 340px;
}
.lid-checklist-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.lid-fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
}
.lid-fact-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.lid-fact-card.checked {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
}
.lid-fact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.lid-fact-checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}
.lid-fact-checkbox-label input {
  display: none;
}
.lid-fact-custom-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.2s ease;
  background: var(--bg-secondary);
}
.lid-fact-checkbox-label input:checked + .lid-fact-custom-checkbox {
  background: #10b981;
  border-color: #10b981;
}
.lid-fact-checkbox-label input:checked + .lid-fact-custom-checkbox::after {
  content: '✓';
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}
.lid-fact-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}
.lid-fact-card.checked .lid-fact-card-title {
  color: #10b981;
}
.lid-fact-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.lid-fact-status-badge.done {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.lid-fact-status-badge.todo {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.lid-fact-card-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.lid-fact-card-body em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
}
.lid-fact-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.lid-fact-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lid-fact-kw-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.lid-fact-bamf-refs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.lid-fact-q-pill {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Privacy Consent & GDPR LocalStorage Notice Banner */
.privacy-consent-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 960px;
  z-index: 9998;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  padding: 12px 18px;
  backdrop-filter: blur(12px);
  animation: slideUpFade 0.3s ease-out;
  transition: opacity 0.25s ease;
}
.privacy-consent-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.privacy-consent-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1 1 500px;
}
.privacy-consent-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.privacy-link {
  font-size: 12px;
  color: var(--accent-gold);
  text-decoration: underline;
}
.btn-privacy-accept {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: #10b981;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-privacy-accept:hover {
  background: #059669;
  transform: translateY(-1px);
}
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==========================================================================
   CEFR Placement Diagnostic Test Modal
   ========================================================================== */
.placement-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s ease-out;
}

.placement-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 16px);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.placement-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.placement-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.placement-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
}

.placement-q-level {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

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

.placement-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.placement-btn-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.placement-btn-close:hover {
  color: var(--text-primary);
}

.placement-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
}

.placement-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  transition: width 0.35s ease;
}

.placement-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.placement-prompt-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
}

.placement-sentence {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.placement-blank {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  padding: 0 4px;
}

.placement-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .placement-options-grid {
    grid-template-columns: 1fr;
  }
}

.placement-opt-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}

.placement-opt-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.08);
  transform: translateY(-1px);
}

.placement-opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.placement-opt-btn.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  color: #10b981 !important;
}

.placement-opt-btn.correct .placement-opt-letter {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.placement-opt-btn.wrong {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.placement-opt-btn.wrong .placement-opt-letter {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.placement-feedback-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.placement-feedback-card.hidden {
  display: none;
}

.placement-feedback-title {
  font-weight: 700;
  font-size: 14px;
}

.placement-feedback-title.text-green { color: #10b981; }
.placement-feedback-title.text-red { color: #ef4444; }

.placement-feedback-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.placement-btn-next {
  align-self: flex-end;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--accent-gold);
  color: #090d16;
  cursor: pointer;
  transition: all 0.2s ease;
}

.placement-btn-next:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* Result Screen */
.placement-result-body {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.placement-result-trophy {
  font-size: 48px;
}

.placement-result-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.placement-result-level-badge {
  font-size: 22px;
  font-weight: 800;
  padding: 8px 24px;
  border-radius: 12px;
  border: 2px solid currentColor;
}

.placement-result-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
  margin: 0;
}

.placement-level-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 8px 0;
}

.placement-level-breakdown .level-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.placement-level-breakdown .level-pill.passed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

.placement-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.placement-btn-apply {
  background: var(--accent-gold);
  color: #090d16;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.placement-btn-apply:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22);
}

.placement-btn-restart {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* ==========================================================================
   German Fair Pricing & Promotional Bar (§ 11 PAngV & § 5 UWG Compliant)
   Transparent real list price (59 €) + real 40% discount with copyable code
   No deceptive fake countdowns or Mondpreise.
   ========================================================================== */
.promo-discount-bar {
  background: rgba(15, 21, 35, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 16px;
  position: relative;
  z-index: 101;
}

[data-theme="light"] .promo-discount-bar {
  background: rgba(244, 246, 250, 0.96);
  color: var(--text-primary);
}

.promo-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.promo-badge {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.promo-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.promo-text strong {
  color: var(--text-primary);
}

.promo-copy-btn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: var(--accent-gold);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.promo-copy-btn:hover {
  background: var(--accent-gold);
  color: #090d16;
  border-color: var(--accent-gold);
}

.promo-code {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.promo-redeem-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.promo-redeem-link:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.promo-dismiss-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 8px;
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.promo-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--text-primary);
}

@media (max-width: 768px), (pointer: coarse) {
  .promo-discount-bar {
    padding: 10px 14px;
  }
  .promo-copy-btn {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 13px;
  }
  .promo-redeem-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 12px;
  }
  .promo-dismiss-btn {
    min-width: 44px;
    min-height: 44px;
  }
  .btn-sm-goal,
  .btn-sm-trainer,
  .card-link,
  .fc-controls [id^="fc-btn-"],
  .btn-floating-feedback,
  .back-btn,
  .jump-pill,
  .goal-chip-btn,
  .pro-chip-btn,
  .view-switch-btn,
  .cta-btn-primary,
  .tier-cta-btn,
  .entrance-confirm-btn,
  .entrance-dismiss-btn,
  .placement-btn-next,
  .placement-btn-apply {
    min-height: 44px;
    min-width: 44px;
  }
}










