/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* 🖤 TRUE AMOLED BLACK */
  --bg-1: #000000;
  --bg-2: #000000;
  --bg-3: #000000;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-hover: rgba(255, 255, 255, 0.05);
  --surface-1: #0a0a0a;
  --surface-2: #111111;

  /* ✨ TEXT */
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #5a5a5a;

  /* 🌈 NEON ACCENTS */
  --accent-red: #FF3B5C;
  --accent-orange: #FF8C42;
  --accent-yellow: #FFD93D;
  --accent-cyan: #00E5FF;
  --accent-pink: #FF69EB;
  --accent-blue: #448AFF;
  --accent-purple: #B388FF;
  --accent-teal: #00E5CC;
  --accent-green: #00E676;
  --accent-gray: #555555;

  /* 🔲 RADII */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 100px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #000000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  padding: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  margin-bottom: 32px;
  padding: 40px 0 28px;
  animation: fadeInDown 0.7s ease-out;
}

.header h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(135deg, #00E5FF, #FF69EB, #FFD93D, #00E676);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  animation: gradientShift 6s ease infinite;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.15));
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.header .subtitle {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.header .university-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

/* ===== TAB BAR ===== */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  animation: fadeIn 0.5s ease-out 0.2s both;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25), 0 0 60px rgba(0, 229, 255, 0.08);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* ===== TAB CONTENT ===== */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
  display: block;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  margin-bottom: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.glass-card:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-card.accent-red    { border-color: rgba(255, 59, 92, 0.2); box-shadow: inset 0 0 30px rgba(255, 59, 92, 0.03); }
.glass-card.accent-orange { border-color: rgba(255, 140, 66, 0.2); box-shadow: inset 0 0 30px rgba(255, 140, 66, 0.03); }
.glass-card.accent-yellow { border-color: rgba(255, 217, 61, 0.2); box-shadow: inset 0 0 30px rgba(255, 217, 61, 0.03); }
.glass-card.accent-cyan   { border-color: rgba(0, 229, 255, 0.2); box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.03); }
.glass-card.accent-pink   { border-color: rgba(255, 105, 235, 0.2); box-shadow: inset 0 0 30px rgba(255, 105, 235, 0.03); }
.glass-card.accent-blue   { border-color: rgba(68, 138, 255, 0.2); box-shadow: inset 0 0 30px rgba(68, 138, 255, 0.03); }
.glass-card.accent-green  { border-color: rgba(0, 230, 118, 0.2); box-shadow: inset 0 0 30px rgba(0, 230, 118, 0.03); }
.glass-card.accent-teal   { border-color: rgba(0, 229, 204, 0.2); box-shadow: inset 0 0 30px rgba(0, 229, 204, 0.03); }

.glass-card.accent-red:hover    { box-shadow: 0 0 35px rgba(255, 59, 92, 0.08), inset 0 0 30px rgba(255, 59, 92, 0.04); }
.glass-card.accent-orange:hover { box-shadow: 0 0 35px rgba(255, 140, 66, 0.08), inset 0 0 30px rgba(255, 140, 66, 0.04); }
.glass-card.accent-yellow:hover { box-shadow: 0 0 35px rgba(255, 217, 61, 0.08), inset 0 0 30px rgba(255, 217, 61, 0.04); }
.glass-card.accent-cyan:hover   { box-shadow: 0 0 35px rgba(0, 229, 255, 0.08), inset 0 0 30px rgba(0, 229, 255, 0.04); }
.glass-card.accent-pink:hover   { box-shadow: 0 0 35px rgba(255, 105, 235, 0.08), inset 0 0 30px rgba(255, 105, 235, 0.04); }
.glass-card.accent-blue:hover   { box-shadow: 0 0 35px rgba(68, 138, 255, 0.08), inset 0 0 30px rgba(68, 138, 255, 0.04); }
.glass-card.accent-green:hover  { box-shadow: 0 0 35px rgba(0, 230, 118, 0.08), inset 0 0 30px rgba(0, 230, 118, 0.04); }
.glass-card.accent-teal:hover   { box-shadow: 0 0 35px rgba(0, 229, 204, 0.08), inset 0 0 30px rgba(0, 229, 204, 0.04); }

/* ===== INFO ROW (icon + text) ===== */
.info-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.info-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  position: relative;
}

.info-icon.red    { background: rgba(255, 59, 92, 0.1); box-shadow: 0 0 20px rgba(255, 59, 92, 0.08); }
.info-icon.orange { background: rgba(255, 140, 66, 0.1); box-shadow: 0 0 20px rgba(255, 140, 66, 0.08); }
.info-icon.yellow { background: rgba(255, 217, 61, 0.1); box-shadow: 0 0 20px rgba(255, 217, 61, 0.08); }
.info-icon.cyan   { background: rgba(0, 229, 255, 0.1); box-shadow: 0 0 20px rgba(0, 229, 255, 0.08); }
.info-icon.pink   { background: rgba(255, 105, 235, 0.1); box-shadow: 0 0 20px rgba(255, 105, 235, 0.08); }
.info-icon.blue   { background: rgba(68, 138, 255, 0.1); box-shadow: 0 0 20px rgba(68, 138, 255, 0.08); }
.info-icon.green  { background: rgba(0, 230, 118, 0.1); box-shadow: 0 0 20px rgba(0, 230, 118, 0.08); }
.info-icon.teal   { background: rgba(0, 229, 204, 0.1); box-shadow: 0 0 20px rgba(0, 229, 204, 0.08); }
.info-icon.purple { background: rgba(179, 136, 255, 0.1); box-shadow: 0 0 20px rgba(179, 136, 255, 0.08); }

.info-body h3 {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.info-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14px;
}

.color-red    { color: var(--accent-red); }
.color-orange { color: var(--accent-orange); }
.color-yellow { color: var(--accent-yellow); }
.color-cyan   { color: var(--accent-cyan); }
.color-pink   { color: var(--accent-pink); }
.color-blue   { color: var(--accent-blue); }
.color-green  { color: var(--accent-green); }
.color-teal   { color: var(--accent-teal); }
.color-purple { color: var(--accent-purple); }

/* ===== COMPLEXITY BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}

.badge-green  { background: rgba(0, 230, 118, 0.1); color: var(--accent-green); border-color: rgba(0, 230, 118, 0.15); }
.badge-teal   { background: rgba(0, 229, 204, 0.1); color: var(--accent-teal); border-color: rgba(0, 229, 204, 0.15); }
.badge-cyan   { background: rgba(0, 229, 255, 0.1); color: var(--accent-cyan); border-color: rgba(0, 229, 255, 0.15); }
.badge-yellow { background: rgba(255, 217, 61, 0.1); color: var(--accent-yellow); border-color: rgba(255, 217, 61, 0.15); }
.badge-orange { background: rgba(255, 140, 66, 0.1); color: var(--accent-orange); border-color: rgba(255, 140, 66, 0.15); }
.badge-red    { background: rgba(255, 59, 92, 0.1); color: var(--accent-red); border-color: rgba(255, 59, 92, 0.15); }

/* ===== COMPARISON TABLE ===== */
.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 13px;
}

.comp-table thead th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.comp-table tbody tr {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.comp-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.03);
}

.comp-table td {
  padding: 12px 14px;
}

.comp-table td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-weight: 700;
}

.comp-table td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== SORTING VISUALIZER ===== */
.visualizer-container {
  position: relative;
}

.sort-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.sort-controls label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.sort-controls select,
.sort-controls button {
  font-family: inherit;
}

.sort-controls select {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.sort-controls select option {
  background: #111;
  color: #fff;
}

.sort-controls select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.1);
}

.ctrl-btn {
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ctrl-btn:hover {
  transform: translateY(-2px);
}

.ctrl-btn.play {
  background: linear-gradient(135deg, var(--accent-green), #00c853);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}

.ctrl-btn.play:hover {
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.35);
}

.ctrl-btn.pause {
  background: linear-gradient(135deg, var(--accent-red), #d50000);
  box-shadow: 0 0 20px rgba(255, 59, 92, 0.2);
}

.ctrl-btn.reset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ctrl-btn.reset:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ctrl-btn.step {
  background: rgba(68, 138, 255, 0.15);
  border: 1px solid rgba(68, 138, 255, 0.2);
}

.ctrl-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 220px;
  padding: 0 10px;
  margin-bottom: 10px;
}

.bar {
  flex: 1;
  max-width: 40px;
  border-radius: 6px 6px 0 0;
  transition: height 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  min-width: 8px;
}

.bar .bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.bar.comparing {
  box-shadow: 0 0 18px rgba(255, 217, 61, 0.6), 0 0 40px rgba(255, 217, 61, 0.2);
}

.bar.sorted {
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.5), 0 0 40px rgba(0, 230, 118, 0.15);
}

.bar.pivot {
  box-shadow: 0 0 18px rgba(255, 105, 235, 0.6), 0 0 40px rgba(255, 105, 235, 0.2);
}

.sort-status {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin: 10px auto 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sort-status-wrap {
  text-align: center;
}

/* ===== SEARCH DEMO ===== */
.search-demo-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.search-input {
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  width: 180px;
  transition: all 0.25s ease;
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
  background: rgba(0, 229, 255, 0.03);
}

.search-items {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}

.search-item {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 60px;
  text-align: center;
}

.search-item.checking {
  border-color: var(--accent-yellow);
  background: rgba(255, 217, 61, 0.08);
  box-shadow: 0 0 16px rgba(255, 217, 61, 0.25), 0 0 40px rgba(255, 217, 61, 0.08);
  transform: scale(1.05);
}

.search-item.found {
  border-color: var(--accent-green);
  background: rgba(0, 230, 118, 0.1);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.35), 0 0 50px rgba(0, 230, 118, 0.1);
  transform: scale(1.08);
}

.search-item.eliminated {
  opacity: 0.2;
  border-color: rgba(255, 59, 92, 0.15);
  transform: scale(0.95);
}

.search-item .item-index {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.search-status {
  text-align: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-block;
}

.search-status-wrap {
  text-align: center;
  margin-top: 12px;
}

/* ===== CODE TAB ===== */
.code-block {
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  position: relative;
}

.code-block::before {
  content: '●  ●  ●';
  position: absolute;
  top: 10px;
  left: 18px;
  font-size: 8px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.15);
}

.code-block pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #d4d4d4;
  margin: 0;
  white-space: pre;
  tab-size: 4;
}

.code-block .code-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 50px;
}

/* 🎨 Syntax Highlighting — Neon on AMOLED */
.kw  { color: var(--accent-pink); }
.fn  { color: var(--accent-cyan); text-shadow: 0 0 12px rgba(0, 229, 255, 0.15); }
.str { color: var(--accent-green); }
.cm  { color: #444; font-style: italic; }
.num { color: var(--accent-orange); }
.op  { color: var(--accent-yellow); }
.bi  { color: var(--accent-blue); }

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.feature-item .emoji {
  font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.1));
}

/* ===== STEP LIST ===== */
.step-list {
  list-style: none;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 14px;
  transition: all 0.2s;
}

.step-list li:hover {
  padding-left: 6px;
}

.step-list li:last-child {
  border-bottom: none;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  color: #000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
}

/* ===== SPEED BUTTONS ===== */
.speed-group {
  display: flex;
  gap: 4px;
  align-items: center;
}

.speed-btn {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  color: #888;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
}

.speed-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.speed-btn.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.2);
  font-weight: 700;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

/* ===== TAB SELECTOR PILLS (inside tabs) ===== */
.algo-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  justify-content: center;
}

.algo-pill {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.algo-pill.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.08);
}

.algo-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 229, 255, 0.1); }
  50%      { box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); }
}

.fade-in-up {
  animation: fadeInUp 0.45s ease-out both;
}

/* ===== SCROLLBAR — AMOLED ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(0, 229, 255, 0.2);
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .header h1 {
    font-size: 1.7rem;
  }

  .glass-card {
    padding: 18px;
    border-radius: var(--radius-lg);
  }

  .bars-container {
    height: 160px;
  }

  .comp-table {
    font-size: 11px;
  }

  .info-row {
    flex-direction: column;
    gap: 10px;
  }

  .tab-bar {
    border-radius: var(--radius-xl);
  }
}

/* ===== LUCIDE ICON SIZING ===== */

/* Header icon — large, inline with title */
.header-icon {
  width: 36px;
  height: 36px;
  display: inline-block;
  vertical-align: middle;
  stroke: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3));
}

/* Small inline icon (university badge etc.) */
.inline-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  stroke: var(--text-muted);
}

/* Button icons (tabs, ctrl-btn) */
.btn-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
  stroke: currentColor;
}

/* Section title icons */
.section-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  flex-shrink: 0;
}

/* Large icons inside info-icon boxes */
.icon-lg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.info-icon.red .icon-lg    { stroke: var(--accent-red); }
.info-icon.orange .icon-lg { stroke: var(--accent-orange); }
.info-icon.yellow .icon-lg { stroke: var(--accent-yellow); }
.info-icon.cyan .icon-lg   { stroke: var(--accent-cyan); }
.info-icon.pink .icon-lg   { stroke: var(--accent-pink); }
.info-icon.blue .icon-lg   { stroke: var(--accent-blue); }
.info-icon.green .icon-lg  { stroke: var(--accent-green); }
.info-icon.teal .icon-lg   { stroke: var(--accent-teal); }
.info-icon.purple .icon-lg { stroke: var(--accent-purple); }

/* Pill icons (algo pills) */
.pill-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
  stroke: currentColor;
}

/* Speed button icons */
.speed-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
}

/* Feature grid icon wraps */
.feature-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-wrap.red    { background: rgba(255, 59, 92, 0.1); }
.feature-icon-wrap.orange { background: rgba(255, 140, 66, 0.1); }
.feature-icon-wrap.yellow { background: rgba(255, 217, 61, 0.1); }
.feature-icon-wrap.cyan   { background: rgba(0, 229, 255, 0.1); }
.feature-icon-wrap.pink   { background: rgba(255, 105, 235, 0.1); }
.feature-icon-wrap.blue   { background: rgba(68, 138, 255, 0.1); }
.feature-icon-wrap.green  { background: rgba(0, 230, 118, 0.1); }
.feature-icon-wrap.teal   { background: rgba(0, 229, 204, 0.1); }
.feature-icon-wrap.purple { background: rgba(179, 136, 255, 0.1); }

.feature-icon-wrap.red .feature-icon    { stroke: var(--accent-red); }
.feature-icon-wrap.orange .feature-icon { stroke: var(--accent-orange); }
.feature-icon-wrap.yellow .feature-icon { stroke: var(--accent-yellow); }
.feature-icon-wrap.cyan .feature-icon   { stroke: var(--accent-cyan); }
.feature-icon-wrap.pink .feature-icon   { stroke: var(--accent-pink); }
.feature-icon-wrap.blue .feature-icon   { stroke: var(--accent-blue); }
.feature-icon-wrap.green .feature-icon  { stroke: var(--accent-green); }
.feature-icon-wrap.teal .feature-icon   { stroke: var(--accent-teal); }
.feature-icon-wrap.purple .feature-icon { stroke: var(--accent-purple); }

.feature-icon {
  width: 18px;
  height: 18px;
}

/* Table check/x icons */
.table-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.table-icon.green-glow {
  stroke: var(--accent-green);
  filter: drop-shadow(0 0 4px rgba(0, 230, 118, 0.4));
}

.table-icon.red-glow {
  stroke: var(--accent-red);
  filter: drop-shadow(0 0 4px rgba(255, 59, 92, 0.4));
}
