/* ===================================================================
   AdyFly — Premium dark theme (vanilla CSS, no build step)
   Designed for Hostinger shared hosting. Works in all modern browsers.
   =================================================================== */

:root {
  /* Premium dark surface */
  --bg: #0a0d1a;
  --bg-2: #0f1326;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);

  --fg: #f4f6fb;
  --fg-muted: #9aa3b8;
  --fg-dim: #6b7488;

  /* Brand gradients */
  --af-cyan: #22d3ee;
  --af-blue: #3b82f6;
  --af-violet: #a855f7;
  --af-fuchsia: #d946ef;
  --af-emerald: #34d399;

  --grad-brand: linear-gradient(110deg, #06b6d4 0%, #3b82f6 45%, #a855f7 100%);
  --grad-text: linear-gradient(100deg, #67e8f9 0%, #818cf8 45%, #c084fc 100%);

  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 4px 16px -4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 10px 40px -10px rgba(99, 102, 241, 0.5);

  --maxw: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  background-image:
    radial-gradient(60rem 60rem at 80% -10%, rgba(168, 85, 247, 0.15), transparent 60%),
    radial-gradient(50rem 50rem at -10% 20%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(40rem 40rem at 50% 120%, rgba(217, 70, 239, 0.1), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 100%; }

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--af-cyan), var(--af-violet)); border-radius: 999px; }

/* ===================== Layout helpers ===================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.section { padding: 5rem 0; position: relative; }
main { flex: 1; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-center { text-align: center; }

/* Glass surfaces */
.glass {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.glass-strong {
  background: var(--card-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

/* ===================== Navbar ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.75rem 1rem;
  display: flex; justify-content: center;
  transition: var(--transition);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--maxw);
  padding: 0.6rem 1rem;
  border-radius: 16px;
  transition: var(--transition);
}
.navbar.scrolled .navbar-inner {
  background: var(--card-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  width: 38px !important;
  height: 38px !important;
  max-width: none !important;
  flex-shrink: 0;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 9px;
  padding: 0 !important;
  background: transparent !important;
}
@media (min-width: 768px) {
  .brand-mark { width: 42px !important; height: 42px !important; }
}
@media (min-width: 1024px) {
  .brand-mark { width: 44px !important; height: 44px !important; }
}
.brand-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-tag { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg-dim); }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 0.9rem; border-radius: 10px;
  font-size: 0.875rem; font-weight: 500; color: var(--fg-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-actions { display: none; align-items: center; gap: 0.5rem; }
.nav-toggle { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; color: #fff; background: rgba(255,255,255,0.05); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; right: -100%; bottom: 0; width: 80%; max-width: 360px;
  background: var(--bg-2); border-left: 1px solid var(--border);
  padding: 1.5rem; z-index: 200; transition: right 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a { display: block; padding: 0.85rem 1rem; border-radius: 10px; color: var(--fg-muted); font-weight: 500; }
.mobile-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.menu-overlay.open { opacity: 1; pointer-events: auto; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.25rem; border-radius: 12px;
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition);
  white-space: nowrap; border: 1px solid transparent;
  text-decoration: none;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-brand {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 8px 30px -8px rgba(99, 102, 241, 0.6);
}
.btn-brand:hover { box-shadow: 0 12px 40px -8px rgba(168, 85, 247, 0.7); transform: translateY(-2px); }
.btn-outline { background: rgba(255,255,255,0.05); color: #fff; border-color: var(--border-strong); backdrop-filter: blur(10px); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-ghost { color: var(--fg-muted); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: #fff; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ===================== Hero ===================== */
.hero {
  padding: 8rem 0 4rem;
  display: grid; gap: 3rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 500; color: #67e8f9;
}
.pulse-dot { position: relative; width: 8px; height: 8px; }
.pulse-dot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--af-cyan); }
.pulse-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--af-cyan); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%,100% { transform: scale(2.4); opacity: 0; } }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
  margin: 1.25rem 0;
}
.hero p.lead { font-size: 1.1rem; color: var(--fg-muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; font-size: 0.8rem; color: var(--fg-dim); }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust svg { width: 14px; height: 14px; }

/* Dashboard mockup */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ''; position: absolute; inset: -1.5rem; border-radius: 2rem;
  background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(168,85,247,0.2));
  filter: blur(40px); z-index: -1;
}
.dash-mock { padding: 1rem; border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.dash-mock::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-xl); padding: 1px;
  background: conic-gradient(from 0deg, transparent, var(--af-cyan), var(--af-violet), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.dash-chrome { display: flex; justify-content: space-between; align-items: center; padding: 0 0.5rem 0.75rem; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dash-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg-dim); }
.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.dash-tile { padding: 0.65rem; border-radius: var(--radius); background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.dash-tile-ico { width: 24px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.4rem; }
.dash-tile-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-dim); }
.dash-tile-value { font-size: 0.85rem; font-weight: 700; }
.dash-chart { margin-top: 0.75rem; padding: 0.75rem; border-radius: var(--radius); background: rgba(0,0,0,0.3); border: 1px solid var(--border); }
.dash-bars { display: flex; align-items: flex-end; gap: 4px; height: 96px; margin-top: 0.75rem; }
.dash-bars span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(to top, rgba(34,211,238,0.4), var(--af-violet)); animation: grow 0.8s ease-out backwards; }
@keyframes grow { from { height: 0; } }

.float-card {
  position: absolute; padding: 0.65rem 0.9rem; border-radius: var(--radius);
  background: var(--card-strong); backdrop-filter: blur(20px); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md); animation: float 6s ease-in-out infinite;
}
.float-card.top { top: -1.5rem; left: -1.5rem; }
.float-card.bot { bottom: -1.25rem; right: -1rem; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-indicator {
  position: absolute; bottom: -2rem; left: 50%; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 0.25rem;
  color: var(--fg-dim); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em;
}
.scroll-indicator .mouse { width: 22px; height: 36px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 4px; }
.scroll-indicator .wheel { width: 4px; height: 8px; border-radius: 4px; background: var(--af-cyan); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0.3; } }

/* ===================== Section heading ===================== */
.section-head { text-align: center; max-width: 48rem; margin: 0 auto 3rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: #67e8f9;
  margin-bottom: 1rem;
}
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--af-cyan); }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.section-head p { color: var(--fg-muted); margin-top: 0.75rem; font-size: 1rem; }

/* ===================== Steps ===================== */
.steps-grid { display: grid; gap: 1.5rem; }
.step { position: relative; }
.step-ico {
  width: 64px; height: 64px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--card-strong); border: 1px solid var(--border-strong);
  color: var(--af-cyan); margin-bottom: 1rem; position: relative;
}
.step-num {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad-brand); color: #fff; font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--fg-muted); }

/* ===================== Benefit cards ===================== */
.benefits-grid { display: grid; gap: 1rem; }
.benefit {
  padding: 1.25rem; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: var(--transition);
}
.benefit:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.benefit-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-strong); color: var(--af-cyan); margin-bottom: 1rem;
  transition: var(--transition);
}
.benefit:hover .benefit-ico { transform: scale(1.1); }
.benefit h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.benefit p { font-size: 0.875rem; color: var(--fg-muted); }

/* ===================== Calculator ===================== */
.calc-grid { display: grid; gap: 1.5rem; }
.calc-controls { padding: 1.5rem; }
.calc-row { margin-bottom: 1.5rem; }
.calc-row:last-child { margin-bottom: 0; }
.calc-label { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.calc-budget-tag { padding: 0.25rem 0.6rem; border-radius: 8px; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 0.85rem; }
.preset-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.preset {
  padding: 0.35rem 0.75rem; border-radius: 8px; font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--fg-muted);
  transition: var(--transition);
}
.preset:hover, .preset.active { background: rgba(34,211,238,0.15); border-color: rgba(34,211,238,0.4); color: #67e8f9; }
.preset.violet.active { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.4); color: #c4b5fd; }
.preset.emerald.active { background: rgba(52,211,153,0.15); border-color: rgba(52,211,153,0.4); color: #6ee7b7; }

/* Range slider */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: rgba(255,255,255,0.1); border-radius: 999px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-brand); cursor: pointer; box-shadow: 0 0 0 4px rgba(34,211,238,0.2);
}
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--af-cyan); border: none; cursor: pointer; }

.calc-results { padding: 1.5rem; display: flex; flex-direction: column; }
.result-tile { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem; border-radius: var(--radius); background: rgba(255,255,255,0.03); border: 1px solid var(--border); margin-bottom: 0.75rem; }
.result-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.result-ico.cyan { background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(59,130,246,0.1)); color: var(--af-cyan); }
.result-ico.violet { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(217,70,239,0.1)); color: var(--af-violet); }
.result-ico.emerald { background: linear-gradient(135deg, rgba(52,211,153,0.2), rgba(20,184,166,0.1)); color: var(--af-emerald); }
.result-label { font-size: 0.75rem; color: var(--fg-dim); }
.result-value { font-size: 1.25rem; font-weight: 700; }
.daily-box { margin-top: auto; padding: 0.75rem; border-radius: var(--radius); background: rgba(0,0,0,0.3); border: 1px solid var(--border); text-align: center; }
.notice { display: flex; gap: 0.5rem; padding: 0.75rem; border-radius: var(--radius); background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); color: #fcd34d; font-size: 0.8rem; margin-top: 1rem; }

/* ===================== Stats ===================== */
.stats-strip { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.75rem; padding: 1.5rem; }
.stat-card { padding: 1rem; border-radius: var(--radius); text-align: center; position: relative; overflow: hidden; }
.stat-value { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; }
.stat-value .suffix { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-dim); margin-top: 0.25rem; }

/* ===================== Packages ===================== */
.pkg-grid { display: grid; gap: 1.25rem; }
.pkg {
  padding: 1.5rem; border-radius: var(--radius-xl); position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); transition: var(--transition);
}
.pkg:hover { transform: translateY(-8px); }
.pkg.featured { background: var(--card-strong); border-color: var(--border-strong); box-shadow: 0 24px 70px -24px rgba(168,85,247,0.55); }
.pkg-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--grad-brand); color: #fff; font-size: 0.7rem; font-weight: 600; }
.pkg-price { font-size: 2rem; font-weight: 800; margin: 0.75rem 0 0; }
.pkg-price small { font-size: 0.75rem; color: var(--fg-dim); font-weight: 400; }
.pkg-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 1.25rem; }
.pkg-tag { padding: 0.2rem 0.5rem; border-radius: 8px; font-size: 0.7rem; font-weight: 500; }
.pkg-tag.cyan { background: rgba(34,211,238,0.1); color: #67e8f9; }
.pkg-tag.violet { background: rgba(168,85,247,0.1); color: #c4b5fd; }
.pkg-features { list-style: none; margin: 1rem 0; flex: 1; }
.pkg-features li { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.35rem 0; font-size: 0.875rem; color: var(--fg-muted); }
.pkg-features .check { width: 16px; height: 16px; border-radius: 50%; background: rgba(52,211,153,0.15); color: var(--af-emerald); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

/* ===================== Testimonials ===================== */
.testi-marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.testi-track { display: flex; gap: 1.25rem; width: max-content; animation: marquee 30s linear infinite; }
.testi-marquee:hover .testi-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.testi-card { width: 320px; flex-shrink: 0; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); }
.testi-stars { display: flex; gap: 2px; color: #fcd34d; margin-bottom: 1rem; }
.testi-quote { font-size: 0.9rem; color: var(--fg); margin-bottom: 1.25rem; }
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; color: #fff; }
.testi-name { font-size: 0.875rem; font-weight: 600; }
.testi-role { font-size: 0.75rem; color: var(--fg-dim); }

/* ===================== FAQ ===================== */
.faq-wrap { max-width: 48rem; margin: 0 auto; }
.faq-item { border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); margin-bottom: 0.75rem; overflow: hidden; }
.faq-item.open { background: var(--card-strong); }
.faq-q { width: 100%; text-align: left; padding: 1rem 1.25rem; font-weight: 600; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .chev { transition: transform 0.3s; flex-shrink: 0; color: var(--fg-muted); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.25rem; }
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 1.25rem; }
.faq-a p { font-size: 0.875rem; color: var(--fg-muted); }

/* ===================== Final CTA ===================== */
.cta-box { position: relative; overflow: hidden; padding: 3rem 2rem; text-align: center; border-radius: var(--radius-xl); background: var(--card-strong); border: 1px solid var(--border-strong); }
.cta-box h2 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.cta-box p { color: var(--fg-muted); max-width: 36rem; margin: 0 auto 2rem; }
.cta-glow-1, .cta-glow-2 { position: absolute; width: 240px; height: 240px; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.cta-glow-1 { background: rgba(34,211,238,0.3); top: -5rem; left: -5rem; }
.cta-glow-2 { background: rgba(168,85,247,0.3); bottom: -5rem; right: -5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; position: relative; }

/* ===================== Footer ===================== */
.footer { margin-top: auto; border-top: 1px solid var(--border); background: rgba(0,0,0,0.3); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.875rem; color: var(--fg-muted); margin: 1rem 0; max-width: 24rem; }
.footer-contact { font-size: 0.8rem; color: var(--fg-muted); }
.footer-contact p { margin: 0.4rem 0; display: flex; align-items: center; gap: 0.5rem; }
.footer-contact svg { width: 14px; height: 14px; color: var(--af-cyan); }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--fg-muted); transition: var(--transition); }
.footer-social a:hover { color: #fff; border-color: var(--border-strong); }
.footer-col h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--fg-muted); padding: 0.3rem 0; transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--fg-dim); }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom-links a:hover { color: #fff; }

/* ===================== Forms ===================== */
.form-card { max-width: 28rem; margin: 4rem auto; padding: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--fg); margin-bottom: 0.4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.65rem 0.9rem; border-radius: 10px;
  background-color: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--fg);
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--af-cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--fg-dim); }
.form-textarea { min-height: 100px; resize: vertical; }

/* Select dropdowns — solid dark background so option list is readable when expanded.
   The <option> elements inherit from the <select>, but on some browsers the dropdown
   list uses the OS theme. Setting a solid background + color on <option> fixes visibility. */
.form-select {
  background-color: #1a1f35 !important; /* solid dark — !important to override inline styles */
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2367e8f9' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
.form-select option,
.form-select option:checked,
.form-select option:hover,
.form-select option:focus {
  background-color: #1a1f35 !important;
  color: #f4f6fb !important;
}
.form-select option:checked,
.form-select option:hover {
  background-color: #2a3050 !important;
  color: #67e8f9 !important;
}
/* Also style ANY native <select> (even inline ones in admin tables) */
select {
  background-color: #1a1f35 !important;
  color: #f4f6fb !important;
}
select option {
  background-color: #1a1f35 !important;
  color: #f4f6fb !important;
  padding: 0.4rem;
}
select option:checked,
select option:hover,
select option:focus {
  background-color: #2a3050 !important;
  color: #67e8f9 !important;
}
.form-error { font-size: 0.75rem; color: #fca5a5; margin-top: 0.3rem; }
.form-hint { font-size: 0.75rem; color: var(--fg-dim); margin-top: 0.3rem; }
.form-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,0.05); margin-bottom: 1.25rem; }
.form-tabs button { padding: 0.5rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem; color: var(--fg-muted); transition: var(--transition); }
.form-tabs button.active { background: var(--grad-brand); color: #fff; }
.input-group { position: relative; }
.input-group .input-ico { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--fg-dim); pointer-events: none; }
.input-group .form-input { padding-left: 2.3rem; }
.input-group .input-action { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--fg-muted); }
.input-group .input-action:hover { color: #fff; }

/* ===================== Flash messages ===================== */
.flash { padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.875rem; }
.flash-success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.3); color: #6ee7b7; }
.flash-error { background: rgba(244,63,94,0.1); border: 1px solid rgba(244,63,94,0.3); color: #fda4af; }
.flash-info { background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.3); color: #67e8f9; }

/* ===================== Dashboard ===================== */
.dash-shell { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 6rem 1rem 3rem; max-width: var(--maxw); margin: 0 auto; }
.dash-sidebar { padding: 1rem; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); height: fit-content; position: sticky; top: 5rem; }
.dash-sidebar a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 10px; font-size: 0.875rem; color: var(--fg-muted); transition: var(--transition); margin-bottom: 2px; }
.dash-sidebar a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.dash-sidebar a.active { background: var(--grad-brand); color: #fff; font-weight: 600; }
.dash-sidebar a svg { width: 16px; height: 16px; flex-shrink: 0; }
.dash-content h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.dash-content > p { color: var(--fg-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat-tile { padding: 1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.stat-tile-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.stat-tile-label { font-size: 0.75rem; color: var(--fg-dim); }
.stat-tile-value { font-size: 1.35rem; font-weight: 700; }

.panel { padding: 1.25rem; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.panel h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.panel .panel-sub { font-size: 0.75rem; color: var(--fg-dim); margin-bottom: 1rem; }

/* Table */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 540px; }
table.data th { text-align: left; padding: 0.6rem 0.5rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-dim); border-bottom: 1px solid var(--border); font-weight: 600; }
table.data td { padding: 0.7rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
table.data tr:hover td { background: rgba(255,255,255,0.02); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; }
.badge-emerald { background: rgba(52,211,153,0.15); color: #6ee7b7; }
.badge-violet { background: rgba(168,85,247,0.15); color: #c4b5fd; }
.badge-amber { background: rgba(245,158,11,0.15); color: #fcd34d; }
.badge-rose { background: rgba(244,63,94,0.15); color: #fda4af; }
.badge-cyan { background: rgba(34,211,238,0.15); color: #67e8f9; }
.badge-muted { background: rgba(255,255,255,0.08); color: var(--fg-muted); }

/* Wizard */
.wizard-steps { display: flex; align-items: center; margin-bottom: 1.5rem; }
.wizard-step { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.wizard-circle { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: var(--fg-dim); }
.wizard-circle.active { border-color: rgba(34,211,238,0.4); background: rgba(34,211,238,0.15); color: #67e8f9; box-shadow: 0 0 0 1px rgba(34,211,238,0.25); }
.wizard-circle.done { background: var(--grad-brand); border-color: transparent; color: #fff; }
.wizard-line { flex: 1; height: 2px; background: rgba(255,255,255,0.1); margin: 0 0.5rem; border-radius: 999px; overflow: hidden; }
.wizard-line.done { background: var(--grad-brand); }
.wizard-label { font-size: 0.65rem; margin-top: 0.35rem; color: var(--fg-dim); }

/* ===================== Reveal animations ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }

/* ===================== Admin ===================== */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 5rem 1rem 3rem; max-width: var(--maxw); margin: 0 auto; }

/* ===================== Responsive ===================== */
@media (min-width: 640px) {
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-toggle { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .scroll-indicator { display: flex; }
  .steps-grid { grid-template-columns: repeat(5, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1.4fr 1fr; }
  .pkg-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .footer-bottom { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
