/* ============================================
   NUMBER SYSTEM PRESENTATION — STYLES
   Retro-Futuristic / Acid Neon Aesthetic
   ============================================ */

:root {
  --neon-green: #CCFF00;
  --neon-pink: #FF3CAC;
  --neon-blue: #00BFFF;
  --neon-orange: #FF6B2B;
  --dark-bg: #0D0D0D;
  --dark-2: #1A1A2E;
  --dark-3: #16213E;
  --card-bg: rgba(255,255,255,0.04);
  --border: rgba(204,255,0,0.2);
  --text-main: #E8E8E8;
  --text-dim: #888;

  --binary-color: #CCFF00;
  --octal-color: #FF6B2B;
  --decimal-color: #00BFFF;
  --hex-color: #FF3CAC;

  --font-display: 'Orbitron', monospace;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Exo 2', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  background: var(--dark-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow: hidden;
}

/* ── BACKGROUND ── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(204,255,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,255,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%,100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.scanline {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
}

#matrix-canvas {
  position: fixed; inset: 0; z-index: 0;
  opacity: 0.07;
}

/* ── PRESENTATION ── */
.presentation {
  position: relative; z-index: 10;
  width: 100vw; height: calc(100vh - 60px);
  overflow: hidden;
}

/* ── SLIDES ── */
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}
.slide.active {
  opacity: 1; transform: translateX(0);
  pointer-events: all;
}
.slide.exit-left {
  opacity: 0; transform: translateX(-100%);
}

.slide-inner {
  width: 95%; max-width: 1100px;
  height: 90%;
  display: flex; flex-direction: column;
  gap: 16px;
  padding: 24px 32px;
  background: rgba(13,13,13,0.85);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(204,255,0,0.08), inset 0 0 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* ── SLIDE HEADER ── */
.slide-header {
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.slide-num {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 900;
  color: var(--neon-green);
  background: rgba(204,255,0,0.1);
  border: 1px solid var(--neon-green);
  padding: 4px 10px; border-radius: 2px;
  letter-spacing: 2px;
}
.slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700; color: var(--text-main);
  letter-spacing: 1px;
}

/* ── TITLE SLIDE ── */
.title-slide {
  align-items: center; justify-content: center;
  text-align: center; gap: 20px;
  background: radial-gradient(ellipse at center, rgba(204,255,0,0.05) 0%, transparent 70%);
}

.glitch-wrapper { position: relative; }
.glitch {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--neon-green);
  text-shadow: 0 0 20px rgba(204,255,0,0.6), 0 0 40px rgba(204,255,0,0.3);
  letter-spacing: 6px;
  position: relative;
  animation: glitchAnim 4s infinite;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%;
}
.glitch::before {
  color: var(--neon-pink);
  animation: glitchBefore 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  color: var(--neon-blue);
  animation: glitchAfter 4s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitchAnim {
  0%,90%,100% { transform: none; }
  92% { transform: skewX(-2deg); }
  94% { transform: skewX(2deg); }
  96% { transform: skewX(-1deg); }
}
@keyframes glitchBefore {
  0%,90%,100% { transform: none; opacity: 0; }
  92% { transform: translate(-3px, 0); opacity: 0.8; }
  94% { transform: translate(3px, 0); opacity: 0.8; }
  96% { transform: none; opacity: 0; }
}
@keyframes glitchAfter {
  0%,90%,100% { transform: none; opacity: 0; }
  93% { transform: translate(3px, 0); opacity: 0.8; }
  95% { transform: translate(-3px, 0); opacity: 0.8; }
  97% { transform: none; opacity: 0; }
}

.subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  color: var(--neon-blue);
  letter-spacing: 8px;
  text-transform: uppercase;
}

.title-divider {
  width: 80%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
  position: relative; overflow: hidden;
}
.bit-stream {
  position: absolute; top: -8px; left: 0;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--neon-green); white-space: nowrap;
  animation: streamFlow 3s linear infinite;
}
@keyframes streamFlow {
  from { transform: translateX(-100%); }
  to { transform: translateX(100vw); }
}

.title-meta {
  display: flex; gap: 40px; justify-content: center;
}
.meta-box {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 24px;
  border: 1px solid rgba(204,255,0,0.3);
  background: rgba(204,255,0,0.05);
  border-radius: 2px;
}
.meta-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-dim); letter-spacing: 3px;
}
.meta-value {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--neon-green); font-weight: 700;
  margin-top: 4px;
}

.floating-bits {
  display: flex; gap: 20px;
}
.floating-bits span {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 900; color: rgba(204,255,0,0.3);
  animation: floatBit 2s ease-in-out infinite;
}
.floating-bits span:nth-child(1) { animation-delay: 0s; }
.floating-bits span:nth-child(2) { animation-delay: 0.25s; }
.floating-bits span:nth-child(3) { animation-delay: 0.5s; }
.floating-bits span:nth-child(4) { animation-delay: 0.75s; }
.floating-bits span:nth-child(5) { animation-delay: 1s; }
.floating-bits span:nth-child(6) { animation-delay: 1.25s; }
.floating-bits span:nth-child(7) { animation-delay: 1.5s; }
.floating-bits span:nth-child(8) { animation-delay: 1.75s; }
@keyframes floatBit {
  0%,100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-10px); opacity: 1; }
}

.hex-deco {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: rgba(255,60,172,0.5); letter-spacing: 4px;
}

/* ── CONTENT GRID ── */
.content-grid { display: grid; gap: 20px; flex: 1; }
.two-col { grid-template-columns: 1fr 1fr; }

/* ── TEXT BLOCK ── */
.text-block { display: flex; flex-direction: column; gap: 12px; }
.lead-text {
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text-main);
}
.highlight { color: var(--neon-green); font-weight: 600; }
.accent { color: var(--neon-pink); font-weight: 600; }

.styled-list {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.styled-list li {
  font-size: 0.88rem; padding-left: 20px; position: relative;
  color: #ccc; line-height: 1.5;
}
.styled-list li::before {
  content: '▶';
  position: absolute; left: 0;
  color: var(--neon-green); font-size: 0.6rem;
  top: 4px;
}

.example-box {
  background: rgba(204,255,0,0.06);
  border-left: 3px solid var(--neon-green);
  padding: 10px 14px; border-radius: 0 4px 4px 0;
  display: flex; gap: 10px; align-items: center;
}
.ex-label {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--neon-green); white-space: nowrap;
}
.ex-code {
  font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--text-main);
}

/* ── INFO CARDS ── */
.info-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 4px;
  border: 1px solid;
}
.binary-card { border-color: rgba(204,255,0,0.4); background: rgba(204,255,0,0.06); }
.octal-card { border-color: rgba(255,107,43,0.4); background: rgba(255,107,43,0.06); }
.decimal-card { border-color: rgba(0,191,255,0.4); background: rgba(0,191,255,0.06); }
.hex-card { border-color: rgba(255,60,172,0.4); background: rgba(255,60,172,0.06); }

.card-icon { font-size: 1.8rem; }
.card-content h3 {
  font-family: var(--font-display); font-size: 0.9rem;
  color: var(--text-main); margin-bottom: 2px;
}
.card-content p { font-size: 0.8rem; color: var(--text-dim); }

/* ── ANIM BOX ── */
.anim-box {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px; padding: 16px;
}

/* ── SYSTEMS OVERVIEW ── */
.systems-overview {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.sys-pill {
  padding: 8px 16px; border-radius: 2px;
  font-family: var(--font-display); font-size: 0.7rem;
  font-weight: 700; text-align: center; line-height: 1.4;
  animation: pillPulse 2s ease-in-out infinite;
}
.sys-pill small { font-size: 0.6rem; opacity: 0.8; }
.binary { background: rgba(204,255,0,0.15); border: 1px solid var(--binary-color); color: var(--binary-color); animation-delay: 0s; }
.octal { background: rgba(255,107,43,0.15); border: 1px solid var(--octal-color); color: var(--octal-color); animation-delay: 0.5s; }
.decimal { background: rgba(0,191,255,0.15); border: 1px solid var(--decimal-color); color: var(--decimal-color); animation-delay: 1s; }
.hex { background: rgba(255,60,172,0.15); border: 1px solid var(--hex-color); color: var(--hex-color); animation-delay: 1.5s; }
@keyframes pillPulse {
  0%,100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px currentColor; }
}
.arrow-right { color: var(--text-dim); font-size: 1.2rem; }

/* ── CPU ANIMATION ── */
.cpu-anim { position: relative; display: flex; align-items: center; justify-content: center; }
.cpu-chip {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid var(--neon-green);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(204,255,0,0.3);
  animation: cpuGlow 2s ease-in-out infinite;
}
@keyframes cpuGlow {
  0%,100% { box-shadow: 0 0 20px rgba(204,255,0,0.3); }
  50% { box-shadow: 0 0 40px rgba(204,255,0,0.6); }
}
.cpu-core {
  font-family: var(--font-display); font-size: 0.7rem;
  color: var(--neon-green); font-weight: 900;
}
.cpu-pins {
  position: absolute;
  display: flex; gap: 4px;
}
.cpu-pins.top { top: -8px; left: 10px; flex-direction: row; }
.cpu-pins.bottom { bottom: -8px; left: 10px; flex-direction: row; }
.cpu-pins.left { left: -8px; top: 10px; flex-direction: column; }
.cpu-pins.right { right: -8px; top: 10px; flex-direction: column; }
.cpu-pins::before, .cpu-pins::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--neon-green);
  border-radius: 1px;
}
.cpu-pins.left::before, .cpu-pins.left::after,
.cpu-pins.right::before, .cpu-pins.right::after {
  width: 6px; height: 6px;
}

.data-flow {
  position: absolute; top: -30px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.data-bit {
  font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--neon-green);
  animation: bitFall 1.5s ease-in infinite;
}
.d1 { animation-delay: 0s; }
.d2 { animation-delay: 0.3s; }
.d3 { animation-delay: 0.6s; }
.d4 { animation-delay: 0.9s; }
@keyframes bitFall {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}

/* ── BINARY RAIN ── */
.binary-rain-box {
  display: flex; gap: 8px; height: 100px;
  overflow: hidden;
}
.bin-col {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--neon-green);
  animation: rainFall 2s linear infinite;
}
.bin-col:nth-child(2) { animation-delay: 0.4s; color: rgba(204,255,0,0.6); }
.bin-col:nth-child(3) { animation-delay: 0.8s; }
.bin-col:nth-child(4) { animation-delay: 1.2s; color: rgba(204,255,0,0.6); }
.bin-col:nth-child(5) { animation-delay: 1.6s; }
@keyframes rainFall {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ── BIT VISUAL ── */
.bit-visual {
  display: flex; gap: 6px;
}
.bit-cell {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 900;
  border-radius: 3px; border: 1px solid;
  animation: bitBlink 1.5s ease-in-out infinite;
}
.bit-cell.on {
  background: rgba(204,255,0,0.2);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 8px rgba(204,255,0,0.4);
}
.bit-cell.off {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-dim);
}
.bit-cell:nth-child(1) { animation-delay: 0s; }
.bit-cell:nth-child(2) { animation-delay: 0.2s; }
.bit-cell:nth-child(3) { animation-delay: 0.4s; }
.bit-cell:nth-child(4) { animation-delay: 0.6s; }
.bit-cell:nth-child(5) { animation-delay: 0.8s; }
.bit-cell:nth-child(6) { animation-delay: 1.0s; }
.bit-cell:nth-child(7) { animation-delay: 1.2s; }
.bit-cell:nth-child(8) { animation-delay: 1.4s; }
@keyframes bitBlink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.bit-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-dim); letter-spacing: 2px;
}

/* ── CONVERSION DEMO ── */
.conversion-demo {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(204,255,0,0.2);
  border-radius: 4px; padding: 16px;
  flex: 1;
}
.conv-title {
  font-family: var(--font-display); font-size: 0.9rem;
  color: var(--neon-green); margin-bottom: 12px;
  letter-spacing: 2px;
}
.division-table { display: flex; flex-direction: column; gap: 4px; }
.div-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px; padding: 6px 12px;
  font-family: var(--font-mono); font-size: 0.85rem;
  animation: rowSlide 0.5s ease forwards;
  opacity: 0; transform: translateX(-20px);
}
.div-row.header-row {
  color: var(--text-dim); font-size: 0.75px;
  border-bottom: 1px solid var(--border);
  opacity: 1; transform: none; font-size: 0.75rem;
}
.div-row:not(.header-row) { background: rgba(204,255,0,0.04); border-radius: 2px; }
@keyframes rowSlide {
  to { opacity: 1; transform: translateX(0); }
}
.rem { color: var(--neon-pink); font-weight: 700; }
.result-arrow {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-dim); margin: 8px 0; text-align: center;
}
.conv-result {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; background: rgba(204,255,0,0.08);
  border-radius: 4px; margin-top: 8px;
}
.res-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.res-value { font-family: var(--font-display); font-size: 1rem; color: var(--neon-green); font-weight: 700; }

/* ── PLACE VALUE DEMO ── */
.place-value-demo {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,191,255,0.2);
  border-radius: 4px; padding: 14px;
}
.pv-title {
  font-family: var(--font-display); font-size: 0.8rem;
  color: var(--neon-blue); margin-bottom: 10px; letter-spacing: 2px;
}
.place-values { display: flex; gap: 12px; justify-content: center; }
.pv-col {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
}
.pv-power { font-family: var(--font-mono); font-size: 0.7rem; color: var(--neon-blue); }
.pv-val { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.pv-bit {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 900;
  color: var(--text-dim); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 3px;
}
.pv-bit.active {
  color: var(--neon-green);
  background: rgba(204,255,0,0.15);
  border-color: var(--neon-green);
  box-shadow: 0 0 8px rgba(204,255,0,0.3);
}
.pv-calc { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); }
.pv-sum {
  font-family: var(--font-display); font-size: 0.9rem;
  color: var(--text-main); margin-top: 10px; text-align: center;
}

/* ── OCTAL WHEEL ── */
.octal-wheel {
  position: relative; width: 140px; height: 140px;
}
.wheel-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: 0.8rem;
  font-weight: 900; color: var(--octal-color);
  background: rgba(255,107,43,0.15);
  border: 2px solid var(--octal-color);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255,107,43,0.4);
  animation: wheelSpin 8s linear infinite;
}
@keyframes wheelSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.wheel-digit {
  position: absolute;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--octal-color);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  top: 50%; left: 50%;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 45deg))
    translateY(-55px)
    rotate(calc(var(--i) * -45deg));
  animation: digitPulse 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.25s);
}
@keyframes digitPulse {
  0%,100% { opacity: 0.6; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 8px var(--octal-color); }
}

.octal-unix { width: 100%; }
.unix-title {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-dim); margin-bottom: 6px; letter-spacing: 2px;
}
.unix-perm {
  display: flex; gap: 10px; align-items: center;
  padding: 4px 8px; margin-bottom: 4px;
  background: rgba(255,107,43,0.06);
  border-left: 2px solid var(--octal-color);
  font-family: var(--font-mono); font-size: 0.8rem;
}
.perm-oct { color: var(--octal-color); font-weight: 700; width: 16px; }
.perm-bin { color: var(--neon-green); }
.perm-label { color: var(--text-dim); }

/* ── DECIMAL COUNTER ── */
.decimal-counter { text-align: center; }
.counter-display {
  font-family: var(--font-display); font-size: 3rem; font-weight: 900;
  color: var(--decimal-color);
  text-shadow: 0 0 20px rgba(0,191,255,0.5);
  letter-spacing: 8px;
  animation: counterGlow 1s ease-in-out infinite;
}
@keyframes counterGlow {
  0%,100% { text-shadow: 0 0 20px rgba(0,191,255,0.5); }
  50% { text-shadow: 0 0 40px rgba(0,191,255,0.9); }
}
.counter-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-dim); letter-spacing: 2px; margin-top: 4px;
}

.place-value-demo-small {
  display: flex; gap: 8px; justify-content: center;
}
.pv-small-col {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 12px;
  background: rgba(0,191,255,0.06);
  border: 1px solid rgba(0,191,255,0.2);
  border-radius: 4px;
}
.pv-s-power { font-family: var(--font-mono); font-size: 0.7rem; color: var(--decimal-color); }
.pv-s-val { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); }
.pv-s-digit {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 900;
  color: var(--decimal-color);
}

/* ── HEX TABLE ── */
.hex-table {
  width: 100%;
  border: 1px solid rgba(255,60,172,0.2);
  border-radius: 4px; overflow: hidden;
}
.hex-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 6px 12px;
  font-family: var(--font-mono); font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.hex-row:hover { background: rgba(255,60,172,0.08); }
.hex-row.header {
  background: rgba(255,60,172,0.1);
  color: var(--hex-color);
  font-weight: 700; font-size: 0.75rem;
}

.color-hex-demo {
  display: flex; gap: 8px; width: 100%;
}
.color-swatch {
  flex: 1; padding: 8px 4px; text-align: center;
  font-family: var(--font-mono); font-size: 0.65rem;
  color: white; border-radius: 3px;
  font-weight: 700;
  animation: swatchPulse 2s ease-in-out infinite;
}
.color-swatch:nth-child(2) { animation-delay: 0.7s; }
.color-swatch:nth-child(3) { animation-delay: 1.4s; }
@keyframes swatchPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ── CONVERSION TABLE ── */
.big-table-wrap {
  flex: 1; overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.big-table-wrap::-webkit-scrollbar { width: 4px; }
.big-table-wrap::-webkit-scrollbar-track { background: transparent; }
.big-table-wrap::-webkit-scrollbar-thumb { background: var(--neon-green); border-radius: 2px; }

.conv-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.conv-table thead th {
  padding: 12px 16px;
  font-family: var(--font-display); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 2px;
  background: rgba(0,0,0,0.5);
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0;
}
.conv-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
  animation: tableRowIn 0.4s ease forwards;
  opacity: 0;
}
.conv-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.conv-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.conv-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.conv-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.conv-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.conv-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.conv-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.conv-table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.conv-table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.conv-table tbody tr:nth-child(10) { animation-delay: 0.5s; }
.conv-table tbody tr:nth-child(11) { animation-delay: 0.55s; }
.conv-table tbody tr:nth-child(12) { animation-delay: 0.6s; }
.conv-table tbody tr:nth-child(13) { animation-delay: 0.65s; }
.conv-table tbody tr:nth-child(14) { animation-delay: 0.7s; }
@keyframes tableRowIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.conv-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.conv-table td {
  padding: 8px 16px; text-align: center;
}

/* ── APPLICATIONS ── */
.apps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; flex: 1;
}
.app-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: cardFloat 3s ease-in-out infinite;
}
.app-card:nth-child(1) { animation-delay: 0s; border-top: 2px solid var(--binary-color); }
.app-card:nth-child(2) { animation-delay: 0.75s; border-top: 2px solid var(--octal-color); }
.app-card:nth-child(3) { animation-delay: 1.5s; border-top: 2px solid var(--decimal-color); }
.app-card:nth-child(4) { animation-delay: 2.25s; border-top: 2px solid var(--hex-color); }
@keyframes cardFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.app-icon { font-size: 1.8rem; }
.app-sys {
  font-family: var(--font-display); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 2px;
}
.app-card ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.app-card ul li {
  font-size: 0.75rem; color: var(--text-dim);
  padding-left: 12px; position: relative;
}
.app-card ul li::before {
  content: '·'; position: absolute; left: 0;
  color: var(--text-dim);
}

.memory-addr {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,60,172,0.2);
  border-radius: 4px;
  flex-wrap: wrap;
}
.addr-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.addr-val {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--hex-color); font-weight: 700;
  animation: addrBlink 1.5s ease-in-out infinite;
}
@keyframes addrBlink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.addr-anim {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--neon-green); flex: 1;
}

/* ── SUMMARY ── */
.summary-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sum-card {
  padding: 16px; border-radius: 4px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;
  transition: transform 0.3s;
}
.sum-card:hover { transform: translateY(-4px); }
.binary-border { border-top: 3px solid var(--binary-color); }
.octal-border { border-top: 3px solid var(--octal-color); }
.decimal-border { border-top: 3px solid var(--decimal-color); }
.hex-border { border-top: 3px solid var(--hex-color); }
.sum-sys { font-family: var(--font-display); font-size: 0.85rem; font-weight: 900; letter-spacing: 2px; }
.sum-base { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-main); }
.sum-digits { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.sum-use { font-size: 0.75rem; color: var(--text-dim); }

.thank-you-section {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px;
  background: radial-gradient(ellipse at center, rgba(204,255,0,0.05) 0%, transparent 70%);
  border: 1px solid var(--border); border-radius: 4px;
}
.ty-glitch {
  font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900; color: var(--neon-green);
  text-shadow: 0 0 20px rgba(204,255,0,0.5);
  letter-spacing: 8px;
  animation: glitchAnim 3s infinite;
  position: relative;
}
.ty-glitch::before {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  color: var(--neon-pink);
  animation: glitchBefore 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.ty-author {
  font-family: var(--font-body); font-size: 1rem;
  color: var(--text-main); letter-spacing: 2px;
}
.ty-bits {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.ty-bit {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: rgba(204,255,0,0.4);
  animation: bitFade 2s ease-in-out infinite;
}
.ty-bit:nth-child(1) { animation-delay: 0s; }
.ty-bit:nth-child(2) { animation-delay: 0.4s; }
.ty-bit:nth-child(3) { animation-delay: 0.8s; }
.ty-bit:nth-child(4) { animation-delay: 1.2s; }
.ty-bit:nth-child(5) { animation-delay: 1.6s; }
@keyframes bitFade {
  0%,100% { opacity: 0.3; }
  50% { opacity: 1; color: var(--neon-green); }
}

/* ── COLOR CLASSES ── */
.binary-color { color: var(--binary-color); }
.octal-color { color: var(--octal-color); }
.decimal-color { color: var(--decimal-color); }
.hex-color { color: var(--hex-color); }

/* ── NAVIGATION ── */
.nav-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  gap: 20px;
  background: rgba(13,13,13,0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav-btn {
  font-family: var(--font-display); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 2px;
  color: var(--neon-green);
  background: rgba(204,255,0,0.08);
  border: 1px solid rgba(204,255,0,0.3);
  padding: 8px 20px; border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-btn:hover {
  background: rgba(204,255,0,0.2);
  box-shadow: 0 0 12px rgba(204,255,0,0.3);
}
.nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.slide-dots {
  display: flex; gap: 6px; align-items: center;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(204,255,0,0.2);
  border: 1px solid rgba(204,255,0,0.4);
  cursor: pointer; transition: all 0.3s;
}
.dot.active {
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(204,255,0,0.6);
  width: 20px; border-radius: 3px;
}

.slide-counter {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-dim); min-width: 50px; text-align: center;
}

/* ── PROGRESS BAR ── */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 200;
  background: rgba(255,255,255,0.05);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-pink));
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(204,255,0,0.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-inner { padding: 16px; }
  .place-values { flex-wrap: wrap; }
}