/* ============================================================
   TikTok Viral Content Autopilot — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0a0a12;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(15, 15, 25, 0.7);

  --cyan: #00f2ea;
  --magenta: #ff0050;
  --purple: #7b2ff7;
  --gold: #f0d060;
  --green: #00e676;
  --orange: #ff6d00;

  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --glow-cyan: 0 0 30px rgba(0, 242, 234, 0.15);
  --glow-magenta: 0 0 30px rgba(255, 0, 80, 0.15);
  --glow-purple: 0 0 30px rgba(123, 47, 247, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-default: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- Background Grid ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 242, 234, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 0, 80, 0.04), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(123, 47, 247, 0.04), transparent);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(5, 5, 8, 0.8);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-default);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-brand .icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.nav-links a.active {
  color: var(--cyan);
}

/* ---------- Main Container ---------- */
.main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 88px 24px 80px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 80px 0 60px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(0, 242, 234, 0.08);
  border: 1px solid rgba(0, 242, 234, 0.2);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 242, 234, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(0, 242, 234, 0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -2px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--magenta), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Formula Bar */
.formula-bar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.formula-step {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-default);
  white-space: nowrap;
}
.formula-step.active {
  background: rgba(0, 242, 234, 0.1);
  color: var(--cyan);
}
.formula-arrow {
  color: var(--text-muted);
  font-size: 14px;
  padding: 0 4px;
}

/* ---------- Section Styles ---------- */
.section {
  padding: 80px 0;
}
.section-header {
  margin-bottom: 48px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- Video Generator ---------- */
.generator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
}
.generator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.gen-panel h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gen-panel h3 .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* Format Selector */
.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.format-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}
.format-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.format-card.selected {
  border-color: var(--cyan);
  background: rgba(0, 242, 234, 0.06);
  box-shadow: var(--glow-cyan);
}
.format-card.viral {
  border-color: var(--magenta);
}
.format-card.viral.selected {
  border-color: var(--magenta);
  background: rgba(255, 0, 80, 0.06);
  box-shadow: var(--glow-magenta);
}
.format-card .badge {
  position: absolute;
  top: -6px;
  right: 8px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--magenta);
  color: white;
  letter-spacing: 0.5px;
}
.format-card .num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.format-card .name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Input fields */
.gen-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  transition: var(--transition-fast);
  resize: none;
}
.gen-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.1);
}
.gen-input::placeholder { color: var(--text-muted); }

.gen-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

/* Script Preview */
.script-preview {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  min-height: 200px;
  position: relative;
}
.script-preview .placeholder {
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}
.script-preview .script-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-wrap;
}
.script-preview .scene-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  margin-top: 16px;
}
.script-preview .scene-label:first-child { margin-top: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-default);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00c4be);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 242, 234, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 242, 234, 0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}
.btn-magenta {
  background: linear-gradient(135deg, var(--magenta), #cc0040);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 0, 80, 0.25);
}
.btn-magenta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(255, 0, 80, 0.35);
}

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- Formats Grid ---------- */
.playbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}
.playbook-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: var(--transition-default);
  position: relative;
  overflow: hidden;
}
.playbook-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: var(--transition-default);
}
.playbook-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.playbook-card:hover::before { opacity: 1; }

.playbook-card.top-viral::before {
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
  opacity: 1;
  height: 3px;
}
.playbook-card.top-viral {
  border-color: rgba(255, 0, 80, 0.2);
  box-shadow: 0 0 40px rgba(255, 0, 80, 0.05);
}
.playbook-card .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.playbook-card .card-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.playbook-card .card-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.playbook-card .card-tag.viral { background: rgba(255, 0, 80, 0.15); color: var(--magenta); }
.playbook-card .card-tag.educational { background: rgba(0, 242, 234, 0.1); color: var(--cyan); }
.playbook-card .card-tag.emotional { background: rgba(123, 47, 247, 0.15); color: var(--purple); }
.playbook-card .card-tag.engagement { background: rgba(240, 208, 96, 0.15); color: var(--gold); }

.playbook-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.playbook-card .hook {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 234, 0.05);
  border-left: 3px solid var(--cyan);
  font-size: 14px;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 12px;
  font-style: italic;
}
.playbook-card .description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.playbook-card .why-works {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Schedule ---------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.schedule-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition-default);
}
.schedule-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.schedule-card .time-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.schedule-card:nth-child(1) .time-icon { background: rgba(0, 242, 234, 0.1); }
.schedule-card:nth-child(2) .time-icon { background: rgba(123, 47, 247, 0.1); }
.schedule-card:nth-child(3) .time-icon { background: rgba(255, 0, 80, 0.1); }
.schedule-card .time {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.schedule-card .time-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.schedule-card .formats {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.schedule-card .reasoning {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ---------- Growth Tricks ---------- */
.tricks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.trick-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition-default);
}
.trick-card:hover {
  border-color: var(--border-hover);
}
.trick-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trick-card ul {
  list-style: none;
}
.trick-card li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.trick-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}
.trick-card .hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.trick-card .hashtag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.hashtag.primary { background: rgba(0, 242, 234, 0.1); color: var(--cyan); }
.hashtag.trending { background: rgba(255, 0, 80, 0.1); color: var(--magenta); }
.hashtag.niche { background: rgba(123, 47, 247, 0.1); color: var(--purple); }
.hashtag.bait { background: rgba(240, 208, 96, 0.1); color: var(--gold); }

/* ---------- Hook Lines ---------- */
.hooks-list {
  display: grid;
  gap: 8px;
}
.hook-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
  gap: 16px;
}
.hook-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.hook-item .hook-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 24px;
}
.hook-item .hook-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.hook-item .copy-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.hook-item .copy-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 242, 234, 0.05);
}
.hook-item .copy-btn.copied {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0, 230, 118, 0.05);
}

/* ---------- Filming Setup ---------- */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.setup-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition-default);
}
.setup-card:hover { border-color: var(--border-hover); }
.setup-card .setup-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.setup-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.setup-card .setup-formats {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.setup-card ul {
  list-style: none;
}
.setup-card li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.setup-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ---------- Growth Milestones ---------- */
.milestones-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.milestones-table thead {
  background: var(--bg-card);
}
.milestones-table th {
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.milestones-table td {
  padding: 18px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.milestones-table tbody tr {
  transition: var(--transition-fast);
}
.milestones-table tbody tr:hover {
  background: var(--bg-card);
}
.milestones-table .followers {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--cyan);
}
.milestones-table .timeline { color: var(--text-secondary); }
.milestones-table .revenue {
  font-weight: 600;
  color: var(--green);
}
.milestone-tip {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.15);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.milestone-tip strong { color: var(--green); }

/* ---------- Video Result Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  max-width: 640px;
  width: 100%;
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}
.modal h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}
.modal video {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.modal .download-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Progress Bar ---------- */
.progress-container {
  display: none;
  margin-top: 20px;
}
.progress-container.active { display: block; }
.progress-bar-wrap {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-secondary);
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  width: 0%;
  transition: width 0.5s ease;
}
.progress-label {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* ---------- Calendar ---------- */
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.calendar-day {
  padding: 16px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  min-height: 140px;
}
.calendar-day.today {
  border-color: var(--cyan);
  background: rgba(0, 242, 234, 0.03);
}
.calendar-day .day-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.calendar-day .day-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.calendar-slot {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 4px;
  text-align: left;
}
.calendar-slot.morning { background: rgba(0, 242, 234, 0.1); color: var(--cyan); }
.calendar-slot.lunch { background: rgba(123, 47, 247, 0.1); color: var(--purple); }
.calendar-slot.evening { background: rgba(255, 0, 80, 0.1); color: var(--magenta); }
.calendar-slot.generated { opacity: 0.5; text-decoration: line-through; }

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-default);
  z-index: 300;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .generator-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .tricks-grid { grid-template-columns: 1fr; }
  .setup-grid { grid-template-columns: 1fr; }
  .calendar-week { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .main { padding: 80px 16px 60px; }
  .hero { padding: 40px 0; }
  .formula-bar { flex-wrap: wrap; justify-content: center; }
  .playbook-grid { grid-template-columns: 1fr; }
  .generator { padding: 24px; }
  .format-grid { grid-template-columns: 1fr; }
  .calendar-week { grid-template-columns: repeat(2, 1fr); }
}
