:root {
  --bg: #07070a;
  --bg2: #0c0c12;
  --surface: rgba(18, 18, 28, 0.85);
  --surface2: rgba(28, 28, 42, 0.75);
  --surface3: rgba(38, 38, 56, 0.6);
  --border: rgba(81, 120, 145, 0.22);
  --border2: rgba(81, 120, 145, 0.14);
  --text: #e8e8f2;
  --text2: #b0c8d8;
  --muted: #517891;
  --accent: #57B9FF;
  --accent2: #90D5FF;
  --accent3: #77B1D4;
  --accent-glow: rgba(87, 185, 255, 0.28);
  --easy: #00d4aa;
  --medium: #ffbe0b;
  --hard: #ff4466;
  --blue: #57B9FF;
  --cyan: #77B1D4;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --emerald: #10b981;
  --glass: rgba(144, 213, 255, 0.03);
  --glass2: rgba(144, 213, 255, 0.06);
  --code-bg: #08080e;
  --nav-bg: rgba(7, 7, 10, 0.88);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --font: 'DM Sans', -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ═══ LIGHT THEME ═══ */
body.light {
  --bg: #f0f6fb;
  --bg2: #ffffff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface2: rgba(224, 238, 248, 0.9);
  --surface3: rgba(210, 228, 242, 0.8);
  --border: rgba(81, 120, 145, 0.18);
  --border2: rgba(81, 120, 145, 0.1);
  --text: #0c1a24;
  --text2: #3d6070;
  --muted: #77B1D4;
  --glass: rgba(87, 185, 255, 0.04);
  --glass2: rgba(87, 185, 255, 0.07);
  --code-bg: #1e293b;
  --nav-bg: rgba(240, 246, 251, 0.88);
  --accent-glow: rgba(87, 185, 255, 0.18);
  --shadow: 0 8px 32px rgba(81, 120, 145, 0.1);
  --shadow-lg: 0 16px 64px rgba(81, 120, 145, 0.15);
}

body.light pre {
  color: #e2e8f0;
}

body.light .note-panel {
  background: rgba(0, 0, 0, 0.04);
}

body.light .subsection-header {
  background: rgba(0, 0, 0, 0.02);
}

body.light .problem-row {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

body.light .cal-day {
  border-color: rgba(0, 0, 0, 0.04);
}

body.light .rm-q-item {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

body.light .bg-mesh::before {
  background: radial-gradient(circle, rgba(87, 185, 255, 0.07) 0%, transparent 70%);
}

body.light .bg-mesh::after {
  background: radial-gradient(circle, rgba(119, 177, 212, 0.05) 0%, transparent 70%);
}

body.light .streak-hero::before {
  background: radial-gradient(circle at 50% 0%, rgba(87, 185, 255, 0.07), transparent 70%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

::selection {
  background: var(--accent);
  color: white;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

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

/* ═══ ANIMATED BACKGROUND ═══ */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-mesh::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(87, 185, 255, 0.07) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: floatOrb 20s ease-in-out infinite;
}

.bg-mesh::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(119, 177, 212, 0.05) 0%, transparent 70%);
  bottom: -200px;
  left: -100px;
  animation: floatOrb 25s ease-in-out infinite reverse;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(40px, 30px) scale(1.1);
  }

  50% {
    transform: translate(-20px, 60px) scale(0.95);
  }

  75% {
    transform: translate(30px, -20px) scale(1.05);
  }
}

/* Particle canvas overlay */
/* Particle canvas overlay — removed per user preference */

/* ═══ 3D / DEPTH SYSTEM ═══ */
.perspective-root {
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.tilt-card {
  transition: transform 0.4s cubic-bezier(.03, .98, .52, .99), box-shadow 0.4s ease;
}

.tilt-card:hover {
  transform: rotateX(2deg) rotateY(-2deg) translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(87, 185, 255, 0.08);
}

/* ═══ ENTRANCE ANIMATIONS ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.16, 1, .3, 1), transform 0.7s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s cubic-bezier(.16, 1, .3, 1), transform 0.6s cubic-bezier(.16, 1, .3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(.16, 1, .3, 1), transform 0.6s cubic-bezier(.16, 1, .3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.5s cubic-bezier(.16, 1, .3, 1) forwards;
}

.stagger-children>*:nth-child(1) {
  animation-delay: 0.05s;
}

.stagger-children>*:nth-child(2) {
  animation-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
  animation-delay: 0.15s;
}

.stagger-children>*:nth-child(4) {
  animation-delay: 0.2s;
}

.stagger-children>*:nth-child(5) {
  animation-delay: 0.25s;
}

.stagger-children>*:nth-child(6) {
  animation-delay: 0.3s;
}

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

/* Counter animation */
.count-up {
  display: inline-block;
  transition: transform 0.3s;
}

.count-up.bumped {
  animation: countBump 0.4s cubic-bezier(.16, 1, .3, 1);
}

@keyframes countBump {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

/* Glow ring on interactive cards */
.glow-border {
  position: relative;
  overflow: hidden;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent, var(--cyan), transparent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
  filter: blur(8px);
}

.glow-border:hover::after {
  opacity: 0.5;
  animation: glowSpin 4s linear infinite;
}

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

/* Floating tag decorations */
/* Floating tag decorations — removed per user preference */

/* ═══ TOP PROGRESS ═══ */
.top-progress {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--cyan), var(--easy));
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: width 0.6s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ═══ MAIN NAV ═══ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  font-family: var(--mono);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-brand h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--text), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 1px;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text);
  background: var(--glass);
}

.nav-tab.active {
  color: var(--text);
  background: rgba(87, 185, 255, 0.12);
  border-color: rgba(87, 185, 255, 0.25);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-streak-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(87, 185, 255, 0.1);
  border: 1px solid rgba(87, 185, 255, 0.2);
  flex-shrink: 0;
}

.nav-streak-badge .streak-icon {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  color: var(--accent2);
}

.nav-streak-badge .count {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent2);
}

/* ═══ THEME TOGGLE ═══ */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s;
  color: var(--muted);
  font-size: 16px;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(87, 185, 255, 0.08);
}

/* ═══ TAB CONTENT ═══ */
.tab-content {
  display: none;
  position: relative;
  z-index: 1;
  animation: tabEnter 0.5s cubic-bezier(.16, 1, .3, 1);
}

.tab-content.active {
  display: block;
}

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

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tabEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ═══ HERO DECORATIONS ═══ */
/* Hero tags removed — keeping subtle radial glow */
.revision-hero h2,
.companies-hero h2,
.subjects-hero h2,
.planner-hero h2,
.streak-hero {
  position: relative;
}

.revision-hero,
.companies-hero,
.subjects-hero,
.planner-hero {
  position: relative;
  overflow: hidden;
}

.revision-hero::before,
.companies-hero::before,
.subjects-hero::before,
.planner-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(87, 185, 255, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ═══ TRACKER — STATS ═══ */
.tracker-header {
  max-width: 1440px;
  margin: 24px auto 0;
  padding: 0 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(.03, .98, .52, .99);
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 0 12px 32px rgba(87, 185, 255, 0.1), 0 0 0 1px rgba(87, 185, 255, 0.1);
}

.stat-card .num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.stat-card.accent .num {
  color: var(--accent2);
}

.stat-card.easy-c .num {
  color: var(--easy);
}

.stat-card.med-c .num {
  color: var(--medium);
}

.stat-card.hard-c .num {
  color: var(--hard);
}

.stat-card.ring {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.ring-svg {
  flex-shrink: 0;
}

.ring-svg svg {
  transform: rotate(-90deg);
}

.ring-info .pct {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent2);
}

.ring-info .label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══ CONTROLS ═══ */
.controls {
  max-width: 1440px;
  margin: 20px auto;
  padding: 0 32px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.search-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box::placeholder {
  color: var(--muted);
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(87, 185, 255, 0.1);
}

.filter-btn.diff-easy.active {
  border-color: var(--easy);
  color: var(--easy);
  background: rgba(0, 212, 170, 0.08);
}

.filter-btn.diff-medium.active {
  border-color: var(--medium);
  color: var(--medium);
  background: rgba(255, 190, 11, 0.08);
}

.filter-btn.diff-hard.active {
  border-color: var(--hard);
  color: var(--hard);
  background: rgba(255, 68, 102, 0.08);
}

.filter-btn.tag-filter.active {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
}

.filter-btn.reset {
  color: var(--rose);
  border-color: rgba(244, 63, 94, 0.2);
}

.filter-btn.reset:hover {
  background: rgba(244, 63, 94, 0.1);
  border-color: var(--rose);
}

/* ═══ MAIN LAYOUT ═══ */
.main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 80px;
  display: flex;
  gap: 24px;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-right: 8px;
}

.content {
  flex: 1;
  min-width: 0;
}

/* ═══ SIDEBAR NAV ═══ */
.section-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.section-nav-item:hover {
  background: var(--glass2);
  border-color: var(--border);
}

.section-nav-item.active {
  background: rgba(87, 185, 255, 0.1);
  border-color: rgba(87, 185, 255, 0.25);
}

.section-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.section-nav-icon {
  font-size: 11px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  background: var(--accent);
  flex-shrink: 0;
}

.section-progress-mini {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}

.section-progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.section-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 0.5s;
}

/* ═══ SECTION BLOCKS ═══ */
.section-block {
  margin-bottom: 24px;
  animation: fadeSlideIn 0.3s ease both;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.section-header:hover {
  background: var(--surface2);
}

.section-icon {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  letter-spacing: -0.3px;
  font-family: var(--font-heading);
}

.section-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.section-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.section-prog {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
}

.collapse-arrow {
  color: var(--muted);
  transition: transform 0.3s;
  font-size: 12px;
}

.section-block.collapsed .collapse-arrow {
  transform: rotate(-90deg);
}

.section-block.collapsed .subsection-block {
  display: none;
}

.subsection-block {
  border: 1px solid var(--border);
  border-top: none;
  background: var(--surface);
}

.subsection-block:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.subsection-header {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

/* ═══ PROBLEM ROW ═══ */
.problem-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
  position: relative;
}

.problem-row:last-child {
  border-bottom: none;
}

.problem-row:hover {
  background: var(--glass);
}

.problem-row.solved {
  background: rgba(0, 212, 170, 0.03);
}

.problem-row.hidden {
  display: none;
}

.check-btn {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s;
  background: transparent;
  display: grid;
  place-items: center;
  position: relative;
}

.check-btn:hover {
  border-color: var(--easy);
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.2);
}

.problem-row.solved .check-btn,
.cd-prob-row.solved .check-btn,
.pt-item.done .check-btn {
  background: var(--easy);
  border-color: var(--easy);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.3);
}

.check-btn::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.2s;
}

.problem-row.solved .check-btn::after,
.cd-prob-row.solved .check-btn::after,
.pt-item.done .check-btn::after {
  opacity: 1;
}

.problem-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  width: 28px;
  flex-shrink: 0;
}

.problem-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.problem-name:hover {
  color: var(--accent2);
}

.problem-row.solved .problem-name {
  text-decoration: line-through;
  color: var(--muted);
}

.diff-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  flex-shrink: 0;
}

.diff-Easy {
  background: rgba(0, 212, 170, 0.12);
  color: var(--easy);
}

.diff-Medium {
  background: rgba(255, 190, 11, 0.12);
  color: var(--medium);
}

.diff-Hard {
  background: rgba(255, 68, 102, 0.12);
  color: var(--hard);
}

.links {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.link-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  font-family: var(--mono);
}

.link-lc {
  background: rgba(255, 161, 22, 0.12);
  color: #ffa116;
  border: 1px solid rgba(255, 161, 22, 0.2);
}

.link-lc:hover {
  background: rgba(255, 161, 22, 0.25);
}

.link-gfg {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.link-gfg:hover {
  background: rgba(46, 204, 113, 0.25);
}

.link-cf {
  background: rgba(62, 168, 255, 0.12);
  color: #3ea8ff;
  border: 1px solid rgba(62, 168, 255, 0.2);
}

.link-cf:hover {
  background: rgba(62, 168, 255, 0.25);
}

.code-btn {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  background: rgba(87, 185, 255, 0.1);
  color: var(--accent2);
  border: 1px solid rgba(87, 185, 255, 0.2);
  transition: all 0.2s;
  font-family: var(--mono);
  flex-shrink: 0;
}

.code-btn:hover {
  background: rgba(87, 185, 255, 0.2);
}

/* ═══ TAGS ═══ */
.tag-btn {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  transition: all 0.2s;
  flex-shrink: 0;
  opacity: 0.4;
  font-family: var(--mono);
  font-weight: 600;
}

.tag-btn:hover {
  opacity: 1;
}

.tag-btn.active {
  opacity: 1;
}

.tag-btn[data-tag="revisit"] {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.tag-btn[data-tag="revisit"].active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
}

.tag-btn[data-tag="tricky"] {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.3);
}

.tag-btn[data-tag="tricky"].active {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.5);
}

.tag-btn[data-tag="key"] {
  color: #57B9FF;
  border-color: rgba(59, 130, 246, 0.3);
}

.tag-btn[data-tag="key"].active {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.5);
}

.tag-btn[data-tag="important"] {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.tag-btn[data-tag="important"].active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
}

.note-btn {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
  font-family: var(--mono);
  flex-shrink: 0;
}

.note-btn:hover {
  color: var(--text);
  border-color: var(--muted);
}

.problem-row.has-note .note-btn {
  color: var(--accent2);
  border-color: rgba(87, 185, 255, 0.3);
}

.note-panel {
  display: none;
  padding: 8px 18px 12px 56px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.note-panel.open {
  display: block;
}

.note-area {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 12px;
  font-family: var(--mono);
  resize: vertical;
  min-height: 50px;
  outline: none;
}

.note-area:focus {
  border-color: var(--accent);
}

/* ═══ MODAL ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-overlay.open {
  display: grid;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
}

.modal-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface3);
}

.modal-links {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-links a {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.code-wrapper {
  flex: 1;
  overflow: auto;
}

pre {
  margin: 0;
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #c9d1d9;
  background: var(--code-bg);
  min-height: 200px;
  tab-size: 4;
}

/* ═══ CONCEPT REVISION ═══ */
.revision-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px;
}

.revision-hero {
  text-align: center;
  margin-bottom: 40px;
}

.revision-hero h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--text), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.revision-hero p {
  color: var(--muted);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.topic-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.topic-chip {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font);
}

.topic-chip:hover,
.topic-chip.active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(87, 185, 255, 0.1);
}

.patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.pattern-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.03, .98, .52, .99);
  position: relative;
  overflow: hidden;
}

.pattern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s;
}

.pattern-card:hover {
  border-color: rgba(87, 185, 255, 0.35);
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 30px rgba(87, 185, 255, 0.06);
}

.pattern-card:hover::before {
  opacity: 1;
}

.pattern-card .p-icon {
  font-size: 14px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(87, 185, 255, 0.1);
  display: grid;
  place-items: center;
}

.pattern-card .p-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.pattern-card .p-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 12px;
}

.pattern-card .p-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pattern-card .p-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 600;
}

.p-tag.easy {
  background: rgba(0, 212, 170, 0.1);
  color: var(--easy);
}

.p-tag.med {
  background: rgba(255, 190, 11, 0.1);
  color: var(--medium);
}

.p-tag.hard {
  background: rgba(255, 68, 102, 0.1);
  color: var(--hard);
}

.pattern-card .p-problems {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}

.pattern-detail {
  display: none;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 60px;
}

.pattern-detail.active {
  display: block;
  animation: fadeSlideIn 0.3s ease;
}

.pattern-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 24px;
  font-family: var(--font);
}

.pattern-back:hover {
  border-color: var(--accent);
  color: var(--text);
}

.pd-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.pd-icon {
  font-size: 32px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(87, 185, 255, 0.1);
  display: grid;
  place-items: center;
}

.pd-info h3 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.pd-info p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
}

.pd-template {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.pd-template h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.pd-template pre {
  padding: 0;
  min-height: auto;
  font-size: 13px;
  line-height: 1.6;
}

.pd-problems-list h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.pd-problem-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  transition: all 0.2s;
  cursor: pointer;
}

.pd-problem-item:hover {
  border-color: var(--accent);
}

.pd-problem-item .name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

/* ═══ CORE SUBJECTS ═══ */
.subjects-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px;
}

.subjects-hero {
  text-align: center;
  margin-bottom: 32px;
}

.subjects-hero h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--text), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.subjects-hero p {
  color: var(--muted);
  font-size: 15px;
}

.subject-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.subject-tab {
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  min-width: 140px;
  backdrop-filter: blur(8px);
}

.subject-tab:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.subject-tab.active {
  border-color: var(--accent);
  background: rgba(87, 185, 255, 0.08);
  box-shadow: 0 4px 16px rgba(87, 185, 255, 0.12);
}

.subject-tab .st-icon {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.subject-tab .st-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.subject-tab .st-prog {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}

.roadmap-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.roadmap-node {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 0;
}

.roadmap-node:last-child .rm-line {
  display: none;
}

.rm-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 32px;
}

.rm-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: all 0.3s;
  cursor: pointer;
  z-index: 1;
  position: relative;
}

.rm-dot.completed {
  background: var(--easy);
  border-color: var(--easy);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.3);
}

.rm-dot.completed::after {
  content: '✓';
  color: white;
  font-weight: 700;
}

.rm-line {
  width: 3px;
  flex: 1;
  background: var(--border);
  min-height: 20px;
  transition: background 0.3s;
}

.rm-line.completed {
  background: linear-gradient(180deg, var(--easy), var(--easy));
}

.rm-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s;
  cursor: pointer;
}

.rm-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(87, 185, 255, 0.06);
}

.rm-card.completed {
  border-color: rgba(0, 212, 170, 0.3);
}

.rm-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rm-card p {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 10px;
}

.rm-card .rm-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.rm-card .rm-topic {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--glass2);
  color: var(--text2);
  font-family: var(--mono);
}

.rm-questions {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.rm-questions.open {
  display: block;
  animation: fadeSlideIn 0.2s ease;
}

.rm-questions h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}

.rm-q-item {
  font-size: 12px;
  color: var(--text2);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rm-q-item:last-child {
  border-bottom: none;
}

.rm-q-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.rm-q-check.done {
  background: var(--easy);
  border-color: var(--easy);
}

/* ═══ STREAK ═══ */
.streak-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
}

.streak-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 50px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.streak-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(87, 185, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.streak-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--easy), var(--accent));
  background-size: 300% 100%;
  animation: shineBar 4s ease infinite;
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.big-count {
  font-family: var(--mono);
  font-size: 80px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
  filter: drop-shadow(0 4px 20px rgba(87, 185, 255, 0.2));
}

.big-label {
  font-size: 16px;
  color: var(--muted);
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.streak-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.streak-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.streak-stat .ss-num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent2);
}

.streak-stat .ss-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.calendar-section {
  margin-bottom: 32px;
}

.calendar-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 3px;
  max-width: 500px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
  position: relative;
  cursor: default;
  max-width: 28px;
  max-height: 28px;
}

.cal-day.level-1 {
  background: rgba(87, 185, 255, 0.15);
  border-color: rgba(87, 185, 255, 0.1);
}

.cal-day.level-2 {
  background: rgba(87, 185, 255, 0.3);
  border-color: rgba(87, 185, 255, 0.2);
}

.cal-day.level-3 {
  background: rgba(87, 185, 255, 0.5);
  border-color: rgba(87, 185, 255, 0.3);
}

.cal-day.level-4 {
  background: rgba(87, 185, 255, 0.7);
  border-color: rgba(87, 185, 255, 0.4);
}

.cal-day.today {
  box-shadow: 0 0 0 2px var(--accent);
}

.cal-day:hover {
  transform: scale(1.3);
  z-index: 1;
}

.cal-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--text2);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}

.cal-day:hover .cal-tooltip {
  opacity: 1;
}

.milestones-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.milestone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: all 0.3s;
  opacity: 0.5;
}

.milestone.achieved {
  opacity: 1;
  border-color: rgba(87, 185, 255, 0.4);
  box-shadow: 0 4px 16px rgba(87, 185, 255, 0.08);
}

.milestone .ms-icon {
  font-size: 14px;
  font-family: var(--mono);
  font-weight: 800;
  color: var(--accent);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(87, 185, 255, 0.1);
  margin: 0 auto 8px;
}

.milestone .ms-days {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent2);
}

.milestone .ms-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.daily-goal-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
}

.daily-goal-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.goal-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.goal-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--easy));
  border-radius: 4px;
  transition: width 0.5s;
}

.goal-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  flex-shrink: 0;
  min-width: 50px;
  text-align: right;
}

.goal-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.goal-setting label {
  font-size: 12px;
  color: var(--muted);
}

.goal-input {
  width: 60px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
  outline: none;
}

.goal-input:focus {
  border-color: var(--accent);
}

/* ═══ COMPANY QUESTIONS ═══ */
.companies-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px;
}

.companies-hero {
  text-align: center;
  margin-bottom: 32px;
}

.companies-hero h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--text), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.companies-hero p {
  color: var(--muted);
  font-size: 15px;
}

.company-group-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.company-group-tab {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font);
}

.company-group-tab:hover,
.company-group-tab.active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(87, 185, 255, 0.1);
}

.company-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  align-items: center;
}

.company-search-row .search-box {
  flex: 1;
}

.company-diff-filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  min-width: 160px;
}

.company-diff-filter:focus {
  border-color: var(--accent);
}

.company-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.03, .98, .52, .99);
  text-align: center;
}

.company-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(87, 185, 255, 0.08), 0 0 0 1px rgba(87, 185, 255, 0.1);
}

.company-card.active {
  border-color: var(--accent);
  background: rgba(87, 185, 255, 0.06);
}

.company-card .cc-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.company-card .cc-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.company-card .cc-diff {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.company-card .cc-d {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--mono);
  font-weight: 600;
}

.company-card .cc-d.e {
  background: rgba(0, 212, 170, 0.1);
  color: var(--easy);
}

.company-card .cc-d.m {
  background: rgba(255, 190, 11, 0.1);
  color: var(--medium);
}

.company-card .cc-d.h {
  background: rgba(255, 68, 102, 0.1);
  color: var(--hard);
}

.company-card.hidden {
  display: none;
}

.company-detail {
  display: none;
  margin-top: 24px;
  animation: fadeSlideIn 0.3s ease;
}

.company-detail.active {
  display: block;
}

.cd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.cd-header h3 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.cd-back {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.cd-back:hover {
  border-color: var(--accent);
  color: var(--text);
}

.cd-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cd-stat {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--glass2);
}

.cd-stat.eC {
  color: var(--easy);
}

.cd-stat.mC {
  color: var(--medium);
}

.cd-stat.hC {
  color: var(--hard);
}

.cd-search {
  margin-bottom: 16px;
}

.cd-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}

.cd-search input:focus {
  border-color: var(--accent);
}

.cd-problems-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cd-prob-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.cd-prob-row:last-child {
  border-bottom: none;
}

.cd-prob-row:hover {
  background: var(--glass);
}

.cd-prob-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  width: 28px;
  flex-shrink: 0;
  text-align: right;
}

.cd-prob-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  flex: 1;
}

.cd-prob-link:hover {
  color: var(--accent2);
}

/* ═══ LEETCODE DAILY BAR ═══ */
.lc-daily-bar {
  position: sticky;
  top: 64px;
  z-index: 99;
  background: linear-gradient(90deg, rgba(255, 161, 22, 0.12), rgba(255, 161, 22, 0.06), rgba(87, 185, 255, 0.06));
  border-bottom: 1px solid rgba(255, 161, 22, 0.15);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}

.lc-daily-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 32px;
  gap: 16px;
}

.lc-daily-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lc-daily-icon {
  font-size: 16px;
  animation: lcPulse 2s ease-in-out infinite;
}

@keyframes lcPulse {

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

  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

.lc-daily-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.lc-daily-date {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  padding: 2px 8px;
  background: var(--glass2);
  border-radius: 4px;
}

.lc-daily-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffa116, #ffb84d);
  color: #1a1a2e;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(255, 161, 22, 0.2);
  letter-spacing: 0.2px;
}

.lc-daily-cta:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 20px rgba(255, 161, 22, 0.35);
}

/* ═══ STUDY PLANNER ═══ */
.planner-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
}

.planner-hero {
  text-align: center;
  margin-bottom: 40px;
}

.planner-hero h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--text), var(--accent2), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.planner-hero p {
  color: var(--muted);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
}

/* Goal Setup */
.planner-goal-setup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.planner-goal-setup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--easy));
  opacity: 0.8;
}

.pgs-header {
  margin-bottom: 24px;
}

.pgs-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pgs-header p {
  font-size: 13px;
  color: var(--muted);
}

.pgs-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.pgs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pgs-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pgs-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.25s;
  -moz-appearance: textfield;
}

.pgs-field input::-webkit-outer-spin-button,
.pgs-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pgs-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.pgs-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.pgs-save-btn {
  grid-column: 1/-1;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.pgs-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.pgs-save-btn:active {
  transform: translateY(0);
}

.pgs-summary {
  background: var(--glass2);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: none;
  animation: fadeSlideIn 0.3s ease;
}

.pgs-summary.active {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.pgs-summary .pgs-stat {
  text-align: center;
  min-width: 100px;
}

.pgs-summary .pgs-stat-num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent2);
  display: block;
}

.pgs-summary .pgs-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Today's Plan */
.planner-today {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  display: none;
  animation: fadeSlideIn 0.3s ease;
}

.planner-today.active {
  display: block;
}

.pt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.pt-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.pt-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
}

.pt-meta span {
  padding: 3px 10px;
  background: var(--glass2);
  border-radius: 4px;
}

.pt-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  cursor: pointer;
}

.pt-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(87, 185, 255, 0.06);
}

.pt-item.done {
  opacity: 0.5;
  background: rgba(0, 212, 170, 0.04);
}

.pt-item .pt-rank {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(87, 185, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pt-item .pt-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-item .pt-section {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  flex-shrink: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-item .pt-priority {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  flex-shrink: 0;
}

.pt-priority.critical {
  background: rgba(255, 68, 102, 0.12);
  color: var(--hard);
}

.pt-priority.high {
  background: rgba(255, 190, 11, 0.12);
  color: var(--medium);
}

.pt-priority.normal {
  background: rgba(87, 185, 255, 0.12);
  color: var(--accent2);
}

.pt-links {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.pt-empty {
  text-align: center;
  padding: 32px;
  color: var(--muted);
  font-size: 14px;
}

/* Company-exclusive question badges in planner */
.pt-item.co-exclusive,
.pq-item.co-exclusive {
  border-left: 3px solid rgba(0, 200, 150, 0.4);
}
.pt-item.co-exclusive .pt-section,
.pq-item.co-exclusive .pq-section {
  color: #00c896;
  font-weight: 600;
}

.pt-empty span {
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
}

/* Progress Timeline */
.planner-progress {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  display: none;
  animation: fadeSlideIn 0.3s ease;
}

.planner-progress.active {
  display: block;
}

.planner-progress h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.pp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.pp-stat-card {
  background: var(--glass2);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.pp-stat-card .pp-stat-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  display: block;
}

.pp-stat-card .pp-stat-num.ahead {
  color: var(--easy);
}

.pp-stat-card .pp-stat-num.behind {
  color: var(--hard);
}

.pp-stat-card .pp-stat-num.on-track {
  color: var(--accent2);
}

.pp-stat-card .pp-stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.pp-bar-container {
  margin-bottom: 16px;
}

.pp-bar {
  position: relative;
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: visible;
}

.pp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--easy));
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  z-index: 1;
}

.pp-bar-expected {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 20px;
  background: var(--medium);
  border-radius: 2px;
  transition: left 0.8s;
  z-index: 2;
}

.pp-bar-expected::after {
  content: 'Expected';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--medium);
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
}

.pp-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.pp-pace {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--glass2);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.pp-pace .pace-icon {
  font-size: 18px;
}

.pp-pace .pace-text {
  font-weight: 600;
}

.pp-pace .pace-detail {
  color: var(--muted);
  font-size: 12px;
}

/* Priority Queue */
.planner-queue {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: none;
  animation: fadeSlideIn 0.3s ease;
}

.planner-queue.active {
  display: block;
}

.pq-header {
  margin-bottom: 16px;
}

.pq-header h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pq-header p {
  font-size: 13px;
  color: var(--muted);
}

.pq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.pq-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.pq-item:hover {
  background: var(--glass);
  border-color: var(--border);
}

.pq-item .pq-rank {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  width: 24px;
  flex-shrink: 0;
  text-align: right;
}

.pq-item .pq-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pq-item .pq-section {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--mono);
  flex-shrink: 0;
}

.pq-item .pq-score {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(87, 185, 255, 0.08);
  color: var(--accent2);
  flex-shrink: 0;
}

/* 
//landing page */
.landing-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  position: relative;
  overflow-x: hidden;
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-brand .brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.landing-nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.landing-btn-login {
  background: transparent;
  border: none;
  color: var(--text2);
  font-weight: 500;
  cursor: pointer;
  padding: 10px 20px;
  font-size: 15px;
  transition: color 0.2s;
}

.landing-btn-login:hover {
  color: #fff;
}

.landing-btn-signup {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.landing-btn-signup:hover {
  background: var(--surface);
  border-color: var(--text2);
}

/* Glassmorphism utility */
.glass-card {
  background: rgba(15, 15, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.landing-hero-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  margin-top: 20px;
}

.landing-hero {
  max-width: 1000px;
  width: 100%;
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

/* Subtle glow blob inside hero */
.landing-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(87, 185, 255, 0.1) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  border-radius: 50%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(87, 185, 255, 0.08);
  border: 1px solid rgba(87, 185, 255, 0.2);
  color: #90D5FF;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-tag::before {
  content: '◈';
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -2px;
  max-width: 800px;
}

.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 650px;
  margin-bottom: 10px;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #57B9FF 0%, #517891 100%);
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(87, 185, 255, 0.25);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(87, 185, 255, 0.38);
}

.hero-btn-primary .arrow {
  transition: transform 0.2s;
}

.hero-btn-primary:hover .arrow {
  transform: translateX(4px);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  overflow: hidden;
  margin-left: -12px;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-text {
  font-size: 14px;
  color: var(--text2);
}

.proof-text strong {
  color: #fff;
}

.landing-features-wrapper {
  max-width: 1100px;
  width: 100%;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.landing-features-wrapper .section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.landing-features-wrapper .section-subtitle {
  color: var(--text2);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.feature-card {
  padding: 30px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(87, 185, 255, 0.1);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.6;
}

/* ═══ RESPONSIVE ═══ */
@media(max-width:900px) {
  .main {
    padding: 0 16px 60px;
  }

  .controls {
    padding: 0 16px;
  }

  .main-nav {
    padding: 0 16px;
  }

  .sidebar {
    display: none;
  }

  .tracker-header {
    padding: 0 16px;
  }

  .nav-brand h1 {
    font-size: 16px;
  }

  .brand-sub {
    display: none;
  }

  .revision-container,
  .subjects-container,
  .streak-container,
  .planner-container {
    padding: 16px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-card.ring {
    grid-column: span 3;
  }

  .pgs-form {
    grid-template-columns: 1fr;
  }

  .lc-daily-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media(max-width:600px) {
  .nav-inner {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
  }

}


/* ═══ CP TRACKER STYLES ═══ */

.cp-tracker-wrap {
  margin-bottom: 24px;
  margin-top: 8px;
}

.cp-tracker-wrap .cd-header h3 {
  background: linear-gradient(135deg, var(--text), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cp-overall-progress {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.cp-band-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.cp-band-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.cp-band-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(87, 185, 255, 0.05);
}

.cp-band-btn.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(87, 185, 255, 0.1);
}

.cp-band-btn .cb-label {
  font-weight: 500;
}

.cp-band-btn .cb-prog {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.6;
  background: var(--glass);
  padding: 2px 6px;
  border-radius: 4px;
}

.cp-cf-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: all 0.2s;
}

.cp-cf-badge:hover {
  background: rgba(87, 185, 255, 0.1);
}

/* ═══ CP HUB STYLES (legacy kept for tips grid etc) ═══ */

.cp-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.cp-tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.cp-tip-card:hover {
  border-color: rgba(87, 185, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(87, 185, 255, 0.05);
}

.cp-tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #57B9FF, #77B1D4);
  opacity: 0;
  transition: opacity 0.3s;
}

.cp-tip-card:hover::before {
  opacity: 1;
}

.cp-tip-num {
  font-family: var(--mono);
  font-size: 12px;
  color: #77B1D4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cp-tip-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.cp-tip-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.rs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.rs-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: all 0.25s;
}

.rs-card:hover {
  border-color: rgba(87, 185, 255, 0.4);
  background: rgba(87, 185, 255, 0.03);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 10px rgba(87, 185, 255, 0.05);
}

.rs-icon {
  font-size: 28px;
}

.rs-content h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.rs-content p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* CP Roadmap styling */
.cp-roadmap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cp-phase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.cp-phase h4 {
  color: #57B9FF;
  font-size: 18px;
  font-family: var(--font-heading);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.cp-milestones {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cp-milestone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.cp-milestone:hover {
  border-color: rgba(87, 185, 255, 0.3);
}

.cp-milestone.done {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.05);
}

.cp-milestone .check-btn {
  margin: 0;
}

.cp-milestone.done .check-btn {
  background: var(--success);
  border-color: var(--success);
}

.cp-milestone.done .check-btn::after {
  opacity: 1;
  transform: scale(1);
}

.cp-m-content h5 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.cp-m-content p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .nav-tabs {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card.ring {
    grid-column: span 2;
  }

  .pgs-form {
    grid-template-columns: 1fr;
  }
}