/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #1a1a2e;
  --bg-card: #21262d;
  --bg-elevated: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --accent: #00d4aa;
  --accent-dim: #00d4aa33;
  --purple: #7c3aed;
  --purple-dim: #7c3aed33;
  --blue: #58a6ff;
  --orange: #f0883e;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --border: #30363d;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --slide-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  width: 100%; height: 100%;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--accent);
}
.nav-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.nav-controls {
  display: flex; align-items: center; gap: 16px;
}
.nav-progress {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
}
.nav-btn {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-secondary); color: var(--text-primary); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.nav-btn:hover { background: var(--bg-elevated); border-color: var(--accent); color: var(--accent); }
.nav-btn:disabled { opacity: 0.3; cursor: default; }
.nav-btn:disabled:hover { background: var(--bg-secondary); border-color: var(--border); color: var(--text-primary); }

/* Progress bar */
.progress-bar {
  position: fixed; top: 56px; left: 0; right: 0; height: 2px; z-index: 99;
  background: var(--bg-secondary);
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--purple));
  transition: width 0.5s ease;
}

/* ============================================================
   SLIDE SYSTEM
   ============================================================ */
.slides-container {
  position: relative; width: 100%; height: 100%;
  padding-top: 58px;
}
.slide {
  position: absolute; top: 58px; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 80px;
  opacity: 0; transform: translateX(60px);
  pointer-events: none;
  transition: opacity var(--slide-transition), transform var(--slide-transition);
  overflow-y: auto;
}
.slide.active {
  opacity: 1; transform: translateX(0); pointer-events: auto;
}
.slide.prev {
  opacity: 0; transform: translateX(-60px);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.slide-title {
  font-family: var(--font-mono); font-size: 42px; font-weight: 800;
  line-height: 1.1; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.slide-subtitle {
  font-size: 20px; color: var(--text-secondary); margin-bottom: 40px;
  max-width: 700px; text-align: center; line-height: 1.6;
}
.section-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 16px;
}
h2 { font-family: var(--font-mono); font-size: 32px; font-weight: 700; margin-bottom: 24px; }
h3 { font-family: var(--font-mono); font-size: 20px; font-weight: 600; margin-bottom: 16px; color: var(--accent); }
p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); max-width: 800px; }

/* ============================================================
   CARDS & GRID
   ============================================================ */
.card-grid {
  display: grid; gap: 16px; width: 100%; max-width: 1100px;
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; transition: all 0.3s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 212, 170, 0.08); }
.card-icon { font-size: 28px; margin-bottom: 12px; }
.card-title { font-family: var(--font-mono); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   CODE BLOCKS
   ============================================================ */
.code-block {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 24px; font-family: var(--font-mono); font-size: 13px;
  line-height: 1.8; color: var(--text-primary); overflow-x: auto;
  max-width: 900px; width: 100%;
}
.code-block .kw { color: var(--purple); }
.code-block .fn { color: var(--blue); }
.code-block .str { color: var(--accent); }
.code-block .cm { color: var(--text-muted); font-style: italic; }
.code-block .num { color: var(--orange); }

/* ============================================================
   TAG / BADGE
   ============================================================ */
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.tag-accent { background: var(--accent-dim); color: var(--accent); }
.tag-purple { background: var(--purple-dim); color: var(--purple); }
.tag-blue { background: rgba(88,166,255,0.15); color: var(--blue); }
.tag-orange { background: rgba(240,136,62,0.15); color: var(--orange); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  width: 100%; max-width: 1000px; overflow-x: auto;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-card);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; padding: 12px 16px; font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-secondary); background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(0, 212, 170, 0.03); }

/* ============================================================
   ARCHITECTURE DIAGRAM (CSS)
   ============================================================ */
.arch-diagram {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  width: 100%; max-width: 900px;
}
.arch-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.arch-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 24px; text-align: center; min-width: 120px;
  font-family: var(--font-mono); font-size: 13px; transition: all 0.3s;
}
.arch-box:hover { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-dim); }
.arch-box.highlight { border-color: var(--accent); background: rgba(0,212,170,0.06); }
.arch-box .arch-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.arch-box .arch-name { font-weight: 700; color: var(--text-primary); }
.arch-connector {
  width: 2px; height: 20px; background: var(--border); margin: 0 auto;
}
.arch-connector-h {
  width: 40px; height: 2px; background: var(--border);
  align-self: center;
}

/* ============================================================
   TIMELINE / ROADMAP
   ============================================================ */
.timeline {
  display: flex; gap: 0; width: 100%; max-width: 1000px;
}
.timeline-phase {
  flex: 1; padding: 20px; border-left: 3px solid var(--border);
  position: relative; transition: all 0.3s;
}
.timeline-phase:hover { border-left-color: var(--accent); }
.timeline-phase .phase-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--accent); margin-bottom: 6px;
}
.timeline-phase .phase-title {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  margin-bottom: 4px;
}
.timeline-phase .phase-time {
  font-size: 12px; color: var(--text-muted); margin-bottom: 12px;
}
.timeline-phase .phase-items { list-style: none; }
.timeline-phase .phase-items li {
  font-size: 12px; color: var(--text-secondary); padding: 3px 0;
  padding-left: 16px; position: relative;
}
.timeline-phase .phase-items li::before {
  content: '›'; position: absolute; left: 0; color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   HERO PARTICLES (CSS-only)
   ============================================================ */
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}
.hero-bg .orb:nth-child(1) { width: 400px; height: 400px; background: var(--accent); top: -100px; right: -100px; animation-delay: 0s; }
.hero-bg .orb:nth-child(2) { width: 300px; height: 300px; background: var(--purple); bottom: -50px; left: -50px; animation-delay: -3s; }
.hero-bg .orb:nth-child(3) { width: 200px; height: 200px; background: var(--blue); top: 50%; left: 50%; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================================
   INTERACTIVE DEMO STYLES
   ============================================================ */
.demo-container {
  width: 100%; max-width: 1000px; display: flex; flex-direction: column;
  align-items: center; gap: 24px;
}

/* Step indicator */
.demo-steps {
  display: flex; align-items: center; gap: 0; width: 100%; max-width: 800px;
  justify-content: center;
}
.demo-step {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  transition: all 0.3s; white-space: nowrap;
}
.demo-step.active { color: var(--accent); font-weight: 700; }
.demo-step.done { color: var(--success); }
.demo-step-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--text-muted);
  transition: all 0.3s; flex-shrink: 0;
}
.demo-step.active .demo-step-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.demo-step.done .demo-step-dot { border-color: var(--success); background: var(--success); }
.demo-step-line {
  width: 30px; height: 2px; background: var(--border); flex-shrink: 0;
  transition: background 0.3s;
}
.demo-step.done + .demo-step-line, .demo-step-line.done { background: var(--success); }

/* Mock browser frame */
.mock-browser {
  width: 100%; max-width: 880px; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; background: var(--bg-secondary);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.mock-browser-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--bg-primary); border-bottom: 1px solid var(--border);
}
.mock-browser-dots { display: flex; gap: 6px; }
.mock-browser-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.mock-browser-dots span:nth-child(1) { background: #ef4444; }
.mock-browser-dots span:nth-child(2) { background: #f59e0b; }
.mock-browser-dots span:nth-child(3) { background: #22c55e; }
.mock-browser-url {
  flex: 1; background: var(--bg-secondary); border-radius: 6px; padding: 5px 12px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary);
}
.mock-browser-body {
  min-height: 400px; position: relative;
}

/* Mock screen (each page in the demo) */
.mock-screen {
  position: absolute; inset: 0; padding: 32px;
  opacity: 0; pointer-events: none;
  transition: all 0.4s ease;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mock-screen.active {
  opacity: 1; pointer-events: auto;
}

/* Buttons */
.btn {
  padding: 12px 28px; border-radius: 8px; border: none;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; display: inline-flex;
  align-items: center; gap: 8px;
}
.btn-primary {
  background: var(--accent); color: var(--bg-primary);
}
.btn-primary:hover { background: #00eabb; transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-dim); }
.btn-secondary {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent-dim); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* ============================================================
   HAO TANG — CLIENT DEMO STYLES
   ============================================================ */

/* Hao Tang Landing Page */
.ht-landing {
  padding: 0 !important;
  background: #faf8f5;
}
.ht-hero {
  position: relative;
  padding: 32px 32px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
}
.ht-logo {
  width: 64px; height: 64px; border-radius: 50%;
  background: #1a1a2e; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 800;
  color: #fff; letter-spacing: 1px; line-height: 1.2; text-align: center;
}
.ht-hero h2 {
  font-size: 24px; font-weight: 800; color: #1a1a2e;
  margin-bottom: 6px; line-height: 1.2;
}
.ht-hero p {
  font-size: 13px; color: #666; margin-bottom: 16px;
  max-width: 100%; text-align: center;
}
.ht-cta {
  padding: 12px 36px;
  background: linear-gradient(135deg, #c2742e, #e8913a);
  color: #fff; border: none; border-radius: 8px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.ht-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194,116,46,0.3);
}
.ht-features-row {
  padding: 16px 32px 24px;
}
.ht-features-row h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: #999; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 12px; text-align: center;
}
.ht-features-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.ht-feature-card {
  background: #fff; border: 1px solid #e8e0d8; border-radius: 10px;
  padding: 14px; text-align: center; transition: all 0.2s;
}
.ht-feature-card:hover { border-color: #c2742e; }
.ht-feature-card .ht-feat-icon { font-size: 22px; margin-bottom: 6px; }
.ht-feature-card .ht-feat-title {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: #1a1a2e; margin-bottom: 2px;
}
.ht-feature-card .ht-feat-desc { font-size: 10px; color: #888; line-height: 1.4; }

/* Hao Tang Plan Picker */
.ht-plans-page {
  padding: 24px 32px !important;
  background: #faf8f5;
}
.ht-plans-header {
  text-align: center; margin-bottom: 20px;
}
.ht-plans-header .ht-logo { width: 48px; height: 48px; font-size: 7px; margin-bottom: 8px; }
.ht-plans-header h2 {
  font-size: 22px; color: #1a1a2e; margin-bottom: 4px;
}
.ht-plans-header p {
  font-size: 12px; color: #888;
  max-width: 100%; text-align: center;
}
.ht-plans-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
}
.ht-plan-card {
  background: #fff; border: 2px solid #e8e0d8; border-radius: 12px;
  padding: 18px 14px; text-align: center;
  cursor: pointer; transition: all 0.2s; position: relative;
}
.ht-plan-card:hover { border-color: #c2742e; background: #fffbf7; }
.ht-plan-card.selected { border-color: #c2742e; background: rgba(194,116,46,0.06); }
.ht-plan-card.recommended::before {
  content: 'POPULAR'; position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%); padding: 2px 12px;
  background: #c2742e; color: #fff;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  border-radius: 4px; letter-spacing: 1px;
}
.ht-plan-name {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: #1a1a2e; margin-bottom: 4px;
}
.ht-plan-price {
  font-family: var(--font-mono); font-size: 26px; font-weight: 800;
  color: #1a1a2e; margin-bottom: 2px;
}
.ht-plan-price span { font-size: 12px; font-weight: 400; color: #999; }
.ht-plan-features {
  list-style: none; margin-top: 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.ht-plan-features li { font-size: 11px; color: #777; }
.ht-plan-features li.highlight { color: #1a1a2e; font-weight: 600; }
.ht-continue-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #c2742e, #e8913a);
  color: #fff; border: none; border-radius: 8px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.ht-continue-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(194,116,46,0.3); }
.ht-footer {
  text-align: center; margin-top: 10px;
  font-size: 11px; color: #bbb;
}

/* --- Mock FIUU Page --- */
.fiuu-page { background: #f8f9fa; border-radius: 0; }
.fiuu-page * { color: #1a1a2e; }
.fiuu-header {
  text-align: center; padding-bottom: 20px; border-bottom: 1px solid #e0e0e0; margin-bottom: 24px;
}
.fiuu-header .fiuu-logo {
  font-family: var(--font-mono); font-weight: 800; font-size: 22px;
  color: #0066cc; margin-bottom: 8px;
}
.fiuu-header .fiuu-amount { font-size: 28px; font-weight: 800; color: #1a1a2e; }
.fiuu-header .fiuu-desc { font-size: 13px; color: #666; }

.fiuu-channels {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.fiuu-channel {
  padding: 10px 18px; border: 2px solid #e0e0e0; border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; background: white;
  color: #333;
}
.fiuu-channel:hover { border-color: #0066cc; }
.fiuu-channel.selected { border-color: #0066cc; background: #e8f0fe; color: #0066cc; }

.fiuu-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.fiuu-input {
  padding: 12px 14px; border: 1px solid #d0d0d0; border-radius: 8px;
  font-size: 14px; font-family: var(--font-sans); background: white;
  color: #1a1a2e; outline: none;
}
.fiuu-input:focus { border-color: #0066cc; box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
.fiuu-input::placeholder { color: #999; }
.fiuu-row { display: flex; gap: 12px; }
.fiuu-row .fiuu-input { flex: 1; }
.fiuu-save-card {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #666;
  margin-bottom: 8px; cursor: pointer;
}
.fiuu-checkbox {
  width: 18px; height: 18px; border-radius: 4px; border: 2px solid #0066cc;
  background: #0066cc; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 12px; flex-shrink: 0;
}
.fiuu-pay-btn {
  width: 100%; padding: 14px; border: none; border-radius: 8px;
  background: #0066cc; color: white; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; font-family: var(--font-sans);
}
.fiuu-pay-btn:hover { background: #0052a3; }

/* --- Processing Screen --- */
.processing-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; min-height: 400px;
}
.spinner {
  width: 48px; height: 48px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-text {
  font-family: var(--font-mono); font-size: 14px; color: var(--text-secondary);
  text-align: center;
}
.processing-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.processing-step {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px; transition: all 0.3s;
}
.processing-step.done { color: var(--success); }
.processing-step.active { color: var(--accent); }

/* --- Success Screen --- */
.success-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; min-height: 400px; text-align: center;
}
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(34,197,94,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; animation: pop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.success-details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 32px; margin-top: 8px;
}
.success-row {
  display: flex; justify-content: space-between; gap: 40px; padding: 6px 0;
  font-size: 13px;
}
.success-row .label { color: var(--text-secondary); }
.success-row .value { font-family: var(--font-mono); font-weight: 600; }

/* ============================================================
   DEMO VIEW TOGGLE
   ============================================================ */
.demo-toggle {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.demo-toggle-btn {
  padding: 10px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.demo-toggle-btn.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   ADMIN DASHBOARD — STANDALONE
   ============================================================ */
.admin-layout {
  display: flex; height: 100%; min-height: 400px;
}
.admin-sidebar {
  width: 180px; background: var(--bg-primary); border-right: 1px solid var(--border);
  padding: 16px 0; flex-shrink: 0;
}
.admin-sidebar-item {
  padding: 10px 20px; font-family: var(--font-mono); font-size: 12px;
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.admin-sidebar-item:hover { color: var(--text-primary); background: var(--bg-card); }
.admin-sidebar-item.active { color: var(--accent); border-right: 2px solid var(--accent); background: var(--accent-dim); }
.admin-main { flex: 1; padding: 20px; overflow-y: auto; }
.admin-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; transition: all 0.5s;
}
.stat-card .stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-mono); }
.stat-card .stat-value { font-size: 24px; font-weight: 800; font-family: var(--font-mono); margin-top: 4px; }
.stat-card .stat-change { font-size: 11px; color: var(--success); margin-top: 2px; }

.admin-table-section h4 {
  font-family: var(--font-mono); font-size: 13px; margin-bottom: 12px; color: var(--text-secondary);
}
.admin-table {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; background: var(--bg-card); font-size: 12px;
}
.admin-table th {
  padding: 10px 12px; font-size: 10px; background: var(--bg-primary);
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }
.status-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
}
.status-active { background: rgba(34,197,94,0.15); color: var(--success); }
.status-failed { background: rgba(239,68,68,0.15); color: var(--error); }
.status-pending { background: rgba(245,158,11,0.15); color: var(--warning); }

/* Admin content panels */
.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
}

/* New subscriber highlight animation */
.new-row { animation: highlightRow 2s ease; }
@keyframes highlightRow {
  0% { background: var(--accent-dim); }
  100% { background: transparent; }
}

/* --- Auto-charge simulation (inside admin) --- */
.autocharge-sim {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: 100%; padding: 20px;
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.autocharge-timeline {
  display: flex; align-items: center; gap: 0; width: 100%; max-width: 600px;
}
.ac-node {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 1; opacity: 0.3; transition: all 0.5s;
}
.ac-node.active { opacity: 1; }
.ac-node-icon {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: all 0.5s;
}
.ac-node.active .ac-node-icon { border-color: var(--accent); background: var(--accent-dim); }
.ac-node.done .ac-node-icon { border-color: var(--success); background: rgba(34,197,94,0.15); }
.ac-node-label { font-family: var(--font-mono); font-size: 9px; text-align: center; }
.ac-line {
  height: 2px; flex: 0.5; background: var(--border); transition: background 0.5s;
}
.ac-line.done { background: var(--success); }

/* ============================================================
   FEATURE LIST
   ============================================================ */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  width: 100%; max-width: 900px;
}
.feature-item {
  display: flex; gap: 14px; padding: 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px; transition: all 0.3s;
}
.feature-item:hover { border-color: var(--accent); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.feature-info { flex: 1; }
.feature-info h4 { font-family: var(--font-mono); font-size: 14px; margin-bottom: 4px; }
.feature-info p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* Security shield visual */
.security-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; max-width: 900px;
}
.security-item {
  display: flex; gap: 12px; padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
}
.security-icon { font-size: 24px; flex-shrink: 0; }
.security-info h4 { font-family: var(--font-mono); font-size: 13px; margin-bottom: 4px; }
.security-info p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* ============================================================
   DB SCHEMA VISUAL
   ============================================================ */
.db-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; max-width: 1000px;
}
.db-table {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; transition: all 0.3s;
}
.db-table:hover { border-color: var(--accent); }
.db-table-name {
  padding: 10px 14px; background: var(--bg-secondary); font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; color: var(--accent); border-bottom: 1px solid var(--border);
}
.db-table-cols { padding: 8px 14px; }
.db-col {
  font-family: var(--font-mono); font-size: 11px; padding: 3px 0;
  color: var(--text-secondary); display: flex; align-items: center; gap: 6px;
}
.db-col .pk { color: var(--warning); font-size: 9px; font-weight: 700; }
.db-col .fk { color: var(--purple); font-size: 9px; font-weight: 700; }
.db-col .type { color: var(--text-muted); font-size: 10px; }

/* ============================================================
   DEMO ADVANCE BUTTON
   ============================================================ */
.demo-advance {
  margin-top: 8px; padding: 10px 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-secondary); font-family: var(--font-mono);
  font-size: 12px; cursor: pointer; transition: all 0.2s;
}
.demo-advance:hover { border-color: var(--accent); color: var(--accent); }

/* Keyboard hint */
.kbd-hint {
  position: fixed; bottom: 20px; right: 32px; z-index: 100;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; opacity: 0.6;
}
.kbd {
  display: inline-block; padding: 2px 8px; border: 1px solid var(--border);
  border-radius: 4px; background: var(--bg-secondary); font-size: 11px;
}

/* Scroll hint for long slides */
.scroll-hint {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  margin-top: 12px; opacity: 0.5;
}

/* ============================================================
   ANIMATIONS UTILITY
   ============================================================ */
.fade-in { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.slide-content { max-width: 1100px; width: 100%; }

/* ============================================================
   HAO TANG PORTAL MOCKUP (App Access Screen)
   ============================================================ */
.portal-screen {
  padding: 0 !important;
  background: #f4f5f7;
}
.portal-layout {
  display: flex; height: 100%; min-height: 400px;
}
/* Portal Sidebar */
.portal-sidebar {
  width: 200px; background: #fff; border-right: 1px solid #e5e7eb;
  display: flex; flex-direction: column; flex-shrink: 0;
}
.portal-sidebar-brand {
  padding: 16px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #e5e7eb;
}
.portal-sidebar-logo {
  width: 36px; height: 36px; border-radius: 50%; background: #1a1a2e;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 6px; font-weight: 800;
  color: #fff; letter-spacing: 0.5px; line-height: 1.2; text-align: center;
  flex-shrink: 0;
}
.portal-sidebar-title {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: #1a1a2e; line-height: 1.2;
}
.portal-sidebar-subtitle {
  font-size: 9px; color: #999;
}
.portal-sidebar-nav {
  flex: 1; padding: 8px 0;
}
.portal-nav-item {
  padding: 9px 16px; font-family: var(--font-mono); font-size: 11px;
  color: #666; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; gap: 8px; border-left: 3px solid transparent;
}
.portal-nav-item:hover { color: #1a1a2e; background: #f8f9fa; }
.portal-nav-item.active {
  color: #fff; background: #312e81; border-left-color: #312e81;
  font-weight: 600;
}
.portal-sidebar-footer {
  padding: 12px 16px; border-top: 1px solid #e5e7eb;
}
.portal-nav-logout {
  font-family: var(--font-mono); font-size: 11px; color: #999;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.portal-nav-logout:hover { color: #ef4444; }

/* Portal Main Content */
.portal-main {
  flex: 1; overflow-y: auto; padding: 0;
}
.portal-header {
  padding: 14px 20px; background: #fff; border-bottom: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: space-between;
}
.portal-header-left {
  display: flex; align-items: center; gap: 10px;
}
.portal-header-title {
  font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: #1a1a2e;
}
.portal-live-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 12px; background: rgba(34,197,94,0.1);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: #16a34a;
}
.portal-live-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a; animation: pulse-live 2s infinite;
}
@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.portal-store-select {
  padding: 6px 12px; border: 1px solid #e5e7eb; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; color: #1a1a2e;
  background: #fff; cursor: pointer;
}
.portal-body { padding: 16px 20px; }

/* Active Orders Header */
.portal-orders-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.portal-orders-title {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: #1a1a2e;
}
.portal-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; border-radius: 11px;
  background: #312e81; color: #fff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 0 6px;
}

/* Order Cards Grid */
.portal-orders-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.portal-order-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px; transition: all 0.2s;
}
.portal-order-card:hover { border-color: #c2742e; }
.portal-order-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.portal-order-customer {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #1a1a2e;
}
.portal-order-label {
  font-family: var(--font-mono); font-size: 9px; color: #999;
}
.portal-order-badge {
  padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono);
  font-size: 9px; font-weight: 700; background: rgba(34,197,94,0.1); color: #16a34a;
}
.portal-order-date {
  font-size: 10px; color: #999; margin-bottom: 6px;
}
.portal-order-meta {
  display: flex; gap: 8px; margin-bottom: 8px;
  font-size: 10px; color: #666;
}
.portal-order-meta span {
  padding: 2px 6px; background: #f4f5f7; border-radius: 4px;
}
.portal-order-items {
  border-top: 1px solid #f0f0f0; padding-top: 6px;
}
.portal-order-item {
  display: flex; justify-content: space-between; padding: 2px 0;
  font-size: 10px; color: #555;
}
.portal-order-item .qty { color: #999; font-family: var(--font-mono); }
.portal-order-item .price { font-family: var(--font-mono); color: #1a1a2e; }
.portal-order-total {
  display: flex; justify-content: space-between; padding-top: 6px;
  margin-top: 4px; border-top: 1px solid #f0f0f0;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #1a1a2e;
}

/* Kitchen Dashboard — Kanban */
.portal-kanban {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
  height: 100%;
}
.portal-kanban-col {
  background: #f0f1f3; border-radius: 10px; padding: 12px;
  display: flex; flex-direction: column;
}
.portal-kanban-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.portal-kanban-title {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #1a1a2e;
}
.portal-kanban-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: 10px;
  background: #e5e7eb; color: #666;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 0 5px;
}
.portal-kanban-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #999; font-style: italic;
}
.portal-kanban-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 12px; margin-bottom: 8px;
}
.portal-kanban-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.portal-kanban-card-table {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #1a1a2e;
}
.portal-kanban-card-type {
  font-size: 9px; color: #c2742e; font-weight: 600;
}
.portal-kanban-card-time {
  font-size: 10px; color: #999; margin-bottom: 6px;
}
.portal-kanban-card-items {
  border-top: 1px solid #f0f0f0; padding-top: 6px; margin-bottom: 6px;
}
.portal-kanban-card-items .portal-order-item { font-size: 10px; }
.portal-kanban-card-total {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: #1a1a2e; padding-top: 4px; border-top: 1px solid #f0f0f0;
}
.portal-kanban-btn {
  width: 100%; padding: 8px; border: none; border-radius: 6px;
  background: #1a1a2e; color: #fff;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; margin-top: 6px;
}
.portal-kanban-btn:hover { background: #312e81; }

/* Kitchen Dashboard Tabs */
.portal-kitchen-tabs {
  display: flex; gap: 0; margin-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}
.portal-kitchen-tab {
  padding: 8px 16px; font-family: var(--font-mono); font-size: 11px;
  color: #888; cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.15s; font-weight: 600;
}
.portal-kitchen-tab:hover { color: #1a1a2e; }
.portal-kitchen-tab.active {
  color: #312e81; border-bottom-color: #312e81;
}

/* Portal Dashboard Panels */
.portal-dashboard-panel {
  display: none;
}
.portal-dashboard-panel.active {
  display: block;
}
