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

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card: rgba(20, 20, 35, 0.85);
  --bg-card-hover: rgba(25, 25, 45, 0.95);
  --border-subtle: rgba(100, 100, 255, 0.1);
  --border-accent: rgba(100, 100, 255, 0.25);
  --text-primary: #e8e8f0;
  --text-secondary: #9090a8;
  --text-muted: #606078;
  --accent-purple: #6c3cff;
  --accent-blue: #3c8cff;
  --accent-green: #7dffaa;
  --accent-green-dim: rgba(100, 255, 150, 0.1);
  --gradient-main: linear-gradient(135deg, #6c3cff, #3c8cff);
  --gradient-green: linear-gradient(135deg, #3cff8c, #3cc8ff);
  --shadow-glow: 0 0 80px rgba(80, 60, 255, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-purple);
}

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-main);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 8px 20px;
  background: var(--gradient-main);
  border: none;
  border-radius: 100px;
  color: white;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108, 60, 255, 0.35);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: var(--hero-mouse-y, 200px);
  left: var(--hero-mouse-x, 50%);
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108, 60, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(108, 60, 255, 0.1);
  border: 1px solid rgba(108, 60, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 60, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 60, 255, 0.4);
  color: white;
}

.btn-primary-alt {
  background: var(--gradient-green);
  color: #0a0a0f;
  box-shadow: 0 4px 20px rgba(60, 255, 140, 0.2);
}

.btn-primary-alt:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(60, 255, 140, 0.35);
  color: #0a0a0f;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-accent);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 13px;
}

/* ─── Interactive Graphs ─── */
.graphs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.graph-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
}

.graph-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.graph-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.graph-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: var(--text-secondary);
  display: inline-block;
}

.graph-controls {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 100px;
  gap: 2px;
}

.graph-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.graph-btn:hover {
  color: var(--text-primary);
}

.graph-btn.active {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 2px 10px rgba(108, 60, 255, 0.2);
}

.canvas-wrapper {
  position: relative;
  height: 340px;
  width: 100%;
}

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-icon.purple {
  background: rgba(108, 60, 255, 0.12);
}

.feature-icon.blue {
  background: rgba(60, 140, 255, 0.12);
}

.feature-icon.green {
  background: rgba(60, 255, 140, 0.12);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ─── How It Works ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin: 0 auto 24px;
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(108, 60, 255, 0.2);
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.step-connector {
  display: none;
}

/* ─── Pricing ─── */
.pricing-card {
  max-width: 440px;
  margin: 56px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
}

.pricing-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(125, 255, 170, 0.1);
  border: 1px solid rgba(125, 255, 170, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 24px;
}

.pricing-amount {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-amount .currency {
  font-size: 28px;
  vertical-align: super;
  color: var(--text-secondary);
}

.pricing-period {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--accent-green);
  font-size: 16px;
  flex-shrink: 0;
}

/* ─── FAQ ─── */
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.active {
  border-color: var(--border-accent);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-chevron {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 90%;
  max-width: 460px;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s;
}

.modal-overlay.visible .modal {
  transform: translateY(0) scale(1);
}

.modal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal .modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: rgba(108, 60, 255, 0.5);
  box-shadow: 0 0 20px rgba(108, 60, 255, 0.12);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-error {
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

/* ─── Success Page ─── */
.success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow);
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(125, 255, 170, 0.1);
  border: 2px solid rgba(125, 255, 170, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s ease;
}

.success-card h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-card .success-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 36px;
}

.code-reveal {
  background: rgba(125, 255, 170, 0.04);
  border: 1px solid rgba(125, 255, 170, 0.12);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
}

.code-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.code-value {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 10px;
  color: var(--accent-green);
  animation: fadeInUp 0.5s ease 0.3s both;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent-green-dim);
  border: 1px solid rgba(125, 255, 170, 0.2);
  border-radius: 100px;
  color: var(--accent-green);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(125, 255, 170, 0.15);
}

.success-instructions {
  margin-top: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
}

.success-instructions h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-instructions ol {
  list-style: none;
  counter-reset: steps;
}

.success-instructions ol li {
  counter-increment: steps;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.success-instructions ol li::before {
  content: counter(steps);
  width: 22px;
  height: 22px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* ─── Lookup Page ─── */
.lookup-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.lookup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 560px;
  width: 100%;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow);
}

.lookup-card h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.lookup-card .lookup-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.google-btn {
  width: 100%;
  padding: 14px;
  background: white;
  border: 1px solid #dadce0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s;
}

.google-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-btn svg {
  width: 18px;
  height: 18px;
}

.codes-list {
  margin-top: 32px;
}

.codes-list h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.code-item {
  background: rgba(125, 255, 170, 0.04);
  border: 1px solid rgba(125, 255, 170, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.code-item-info {
  flex: 1;
}

.code-item-info .watch-id {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.code-item-info .code-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--accent-green);
}

.code-item-info .code-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Loading / States ─── */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 32px auto;
}

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

.error-message {
  background: rgba(255, 100, 100, 0.06);
  border: 1px solid rgba(255, 100, 100, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: #ff6b6b;
  margin-top: 16px;
  display: none;
}

.error-message.visible {
  display: block;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 24px;
    gap: 16px;
  }

  .hero {
    padding: 120px 24px 80px;
  }

  .section {
    padding: 64px 0;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pricing-card,
  .success-card,
  .lookup-card {
    padding: 32px 24px;
  }

  .code-value {
    font-size: 32px;
    letter-spacing: 6px;
  }

  .modal {
    padding: 28px;
    margin: 16px;
  }

  .code-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .pricing-amount {
    font-size: 44px;
  }
}

/* ─── Dashboard ─── */
.dashboard-container {
  min-height: 100vh;
  padding-top: 80px;
}

.dashboard-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 40px 24px;
}

.dashboard-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow);
  animation: fadeInUp 0.5s ease;
}

.dashboard-auth-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.dashboard-auth-card h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.dashboard-auth-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.dashboard-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  animation: fadeInUp 0.4s ease;
}

.dashboard-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

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

.dashboard-user-name {
  font-size: 15px;
  font-weight: 600;
}

.dashboard-user-email {
  font-size: 12px;
  color: var(--text-muted);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  animation: fadeInUp 0.4s ease 0.1s both;
}

.dashboard-title {
  font-size: 24px;
  font-weight: 800;
}

/* ─── Order Cards ─── */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.4s ease;
}

.order-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: background 0.3s;
}

.order-card.succeeded::before {
  background: var(--gradient-green);
}

.order-card.pending::before {
  background: linear-gradient(135deg, #ffaa3c, #ff8c3c);
}

.order-card.failed::before {
  background: linear-gradient(135deg, #ff6b6b, #ff3c3c);
}

.order-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.order-watch-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.order-watch-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
  display: block;
}

.order-status {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-success {
  background: rgba(125, 255, 170, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(125, 255, 170, 0.2);
}

.status-pending {
  background: rgba(255, 170, 60, 0.1);
  color: #ffaa3c;
  border: 1px solid rgba(255, 170, 60, 0.2);
  animation: pulse 2s infinite;
}

.status-failed {
  background: rgba(255, 100, 100, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 100, 100, 0.2);
}

.order-code-section {
  margin-top: 20px;
  padding: 20px;
  background: rgba(125, 255, 170, 0.04);
  border: 1px solid rgba(125, 255, 170, 0.1);
  border-radius: var(--radius-md);
  text-align: center;
}

.order-code-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 8px;
}

.order-code-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 8px;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.order-footer {
  margin-top: 12px;
}

.order-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Empty State (dashboard) ─── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  font-size: 14px;
  animation: fadeInUp 0.4s ease;
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Dashboard responsive ─── */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .dashboard-user-info {
    flex-direction: column;
  }

  .dashboard-actions {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .order-code-value {
    font-size: 28px;
    letter-spacing: 5px;
  }

  .dashboard-auth-card {
    padding: 36px 24px;
  }
}

/* ─── Terms & Conditions ─── */
.terms-section {
  margin-bottom: 40px;
}

.terms-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.terms-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.terms-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.terms-section ul li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 6px 0 6px 20px;
  position: relative;
}

.terms-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: bold;
}

.terms-section a {
  color: var(--accent-blue);
}

.terms-section a:hover {
  color: var(--accent-purple);
}

/* ─── Custom Confirm Dialog ─── */
.confirm-modal {
  text-align: center;
  max-width: 420px;
}

.confirm-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.confirm-modal h2 {
  text-align: center;
}

.confirm-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  text-align: left;
}

.confirm-body .confirm-highlight {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  padding: 14px;
  margin: 14px 0;
  background: rgba(108, 60, 255, 0.08);
  border: 1px solid rgba(108, 60, 255, 0.2);
  border-radius: var(--radius-sm);
  letter-spacing: 2px;
}

.confirm-body .confirm-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 14px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.15);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #ff9b9b;
  line-height: 1.5;
}

.btn-danger {
  background: linear-gradient(135deg, #ff4b4b, #ff6b6b);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 75, 75, 0.25);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 75, 75, 0.35);
  color: white;
}

/* ─── Watch ID Help Toggle (in Add License modal) ─── */
.watch-id-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 8px 0 0;
  padding: 10px 14px;
  background: rgba(108, 60, 255, 0.06);
  border: 1px solid rgba(108, 60, 255, 0.18);
  border-radius: var(--radius-sm);
  color: var(--accent-purple, #a78bfa);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: left;
}

.watch-id-toggle:hover {
  background: rgba(108, 60, 255, 0.12);
  border-color: rgba(108, 60, 255, 0.35);
}

.watch-id-chevron {
  font-size: 10px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.watch-id-help {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
}

.watch-id-help.open {
  max-height: 260px;
  opacity: 1;
  padding-bottom: 4px;
}

.watch-id-steps {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 10px 0 8px;
}

.watch-id-images {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 60, 255, 0.3) transparent;
}

.watch-id-images::-webkit-scrollbar {
  height: 4px;
}

.watch-id-images::-webkit-scrollbar-track {
  background: transparent;
}

.watch-id-images::-webkit-scrollbar-thumb {
  background: rgba(108, 60, 255, 0.3);
  border-radius: 4px;
}

.watch-id-images img {
  height: 150px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  object-fit: contain;
  background: var(--bg-secondary);
}

/* ─── FAQ Tutorial Images (in FAQ accordion) ─── */
.faq-tutorial-images {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 60, 255, 0.3) transparent;
}

.faq-tutorial-images::-webkit-scrollbar {
  height: 4px;
}

.faq-tutorial-images::-webkit-scrollbar-track {
  background: transparent;
}

.faq-tutorial-images::-webkit-scrollbar-thumb {
  background: rgba(108, 60, 255, 0.3);
  border-radius: 4px;
}

.faq-tutorial-images img {
  height: 160px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  object-fit: contain;
  background: var(--bg-primary);
}