/* ═══════════════════════════════════════════════════════════
   صوتي · SAWTLY  —  نظام التصميم 2026
   Voice Lab · Aurora mesh · Glassmorphism · Fluid motion
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* ── Palette ── */
  --bg:        #07060f;
  --bg-2:      #0d0b1a;
  --surface:   rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.07);
  --stroke:    rgba(255,255,255,.09);
  --stroke-2:  rgba(255,255,255,.16);

  --violet:  #8b5cf6;
  --indigo:  #6366f1;
  --fuchsia: #d946ef;
  --amber:   #fbbf24;
  --orange:  #fb923c;
  --rose:    #fb7185;
  --mint:    #34d399;
  --cyan:    #22d3ee;

  --text:    #f4f2ff;
  --muted:   #a5a0c9;
  --faint:   #6f6a94;

  /* ── Gradients ── */
  --g-brand:  linear-gradient(120deg, #fbbf24 0%, #fb7185 42%, #8b5cf6 100%);
  --g-cool:   linear-gradient(120deg, #6366f1 0%, #d946ef 100%);
  --g-warm:   linear-gradient(120deg, #fb923c 0%, #fb7185 100%);
  --g-mint:   linear-gradient(120deg, #22d3ee 0%, #34d399 100%);

  /* ── Radii ── */
  --r1: 14px; --r2: 20px; --r3: 28px; --r4: 40px;
  --maxw: 1200px;

  /* ── Shadows / glow ── */
  --glow-v: 0 0 60px -12px rgba(139,92,246,.6);
  --glow-w: 0 0 60px -12px rgba(251,113,133,.55);
  --card-sh: 0 24px 70px -30px rgba(0,0,0,.9);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; width: 100%; }

body {
  font-family: 'IBM Plex Sans Arabic', 'Rubik', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ── Aurora mesh background ── */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  mix-blend-mode: screen; animation: drift 22s var(--ease) infinite alternate;
}
.aurora .a1 { width: 620px; height: 620px; background: #6d28d9; top: -160px; right: -120px; }
.aurora .a2 { width: 540px; height: 540px; background: #db2777; top: 10%; left: -160px; animation-delay: -6s; }
.aurora .a3 { width: 520px; height: 520px; background: #f59e0b; top: 46%; right: 8%; opacity: .35; animation-delay: -12s; }
.aurora .a4 { width: 600px; height: 600px; background: #0891b2; bottom: -220px; left: 20%; opacity: .3; animation-delay: -3s; }
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px,80px) scale(1.18); }
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; position: relative; z-index: 2; }
section { position: relative; z-index: 2; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════ Buttons ═══════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px; font-weight: 700; font-size: 1.02rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  position: relative; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--g-brand); color: #1a0b2e; box-shadow: var(--glow-w); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -14px rgba(251,113,133,.75); }
.btn-glass { background: var(--surface); color: var(--text); border: 1px solid var(--stroke-2); backdrop-filter: blur(10px); }
.btn-glass:hover { background: var(--surface-2); transform: translateY(-3px); }
.btn-lg { padding: 18px 38px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ═══════════════ Navbar ═══════════════ */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(7,6,15,.55); backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--stroke);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 42px; height: 42px; border-radius: 13px; background: var(--g-brand);
  display: grid; place-items: center; box-shadow: var(--glow-w); flex-shrink: 0;
}
.brand__logo svg { width: 24px; height: 24px; }
.brand__txt b { font-family: 'Rubik'; font-weight: 800; font-size: 1.3rem; display: block; line-height: 1; }
.brand__txt small { font-family: 'Space Grotesk'; font-size: .58rem; letter-spacing: 3px; color: var(--faint); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .96rem; transition: color .2s; position: relative; }
.nav__links a::after { content:''; position: absolute; bottom: -6px; right: 0; width: 0; height: 2px; background: var(--g-brand); border-radius: 2px; transition: width .3s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__act { display: flex; align-items: center; gap: 14px; }
.nav__signin { color: var(--muted); font-weight: 600; transition: color .2s; }
.nav__signin:hover { color: var(--text); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--stroke); color: var(--text); font-size: 1.3rem; }

/* ═══════════════ Hero ═══════════════ */
.hero { padding: 92px 0 60px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--stroke-2); backdrop-filter: blur(10px);
  font-size: .87rem; font-weight: 600; color: var(--muted); margin-bottom: 30px;
}
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(52,211,153,.5); animation: ping 1.8s infinite; }
@keyframes ping { 0%{ box-shadow: 0 0 0 0 rgba(52,211,153,.5);} 70%{ box-shadow: 0 0 0 10px rgba(52,211,153,0);} 100%{ box-shadow: 0 0 0 0 rgba(52,211,153,0);} }

.hero h1 {
  font-family: 'Rubik'; font-weight: 900; font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 26px;
}
.hero h1 .grad { background: var(--g-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 660px; margin: 0 auto 40px; color: var(--muted); font-size: clamp(1.08rem, 2.5vw, 1.35rem); }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.hero__trust { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--faint); font-size: .9rem; flex-wrap: wrap; }
.hero__trust .avatars { display: flex; }
.hero__trust .avatars i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); margin-inline-start: -9px; background: var(--g-cool); }
.hero__trust .avatars i:nth-child(2){ background: var(--g-warm);} .hero__trust .avatars i:nth-child(3){ background: var(--g-mint);} .hero__trust .avatars i:nth-child(4){ background: var(--g-brand);}
.stars { color: var(--amber); letter-spacing: 2px; }

/* Live waveform hero signature */
.hero__wave {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 120px; margin: 56px auto 0; max-width: 760px; overflow: hidden;
}
.hero__wave i {
  width: 5px; border-radius: 6px; background: var(--g-cool);
  animation: bar 1.5s var(--ease) infinite; opacity: .9;
}
@keyframes bar { 0%,100%{ height: 10px; } 50%{ height: var(--h,50px); } }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 60px; }
.stat { text-align: center; padding: 26px 14px; border-radius: var(--r2); background: var(--surface); border: 1px solid var(--stroke); backdrop-filter: blur(8px); }
.stat b { font-family: 'Space Grotesk'; font-size: 2.3rem; display: block; background: var(--g-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat span { color: var(--muted); font-size: .92rem; margin-top: 6px; display: block; }

/* ═══════════════ Section head ═══════════════ */
.head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.head .kick { display: inline-block; font-family: 'Space Grotesk'; letter-spacing: 4px; font-size: .78rem; font-weight: 600; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; background: var(--surface); border: 1px solid var(--stroke); color: var(--amber); margin-bottom: 18px; }
.head h2 { font-family: 'Rubik'; font-weight: 800; font-size: clamp(2rem, 5.5vw, 3.2rem); letter-spacing: -.8px; line-height: 1.15; }
.head p { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }

/* ═══════════════ Features ═══════════════ */
.features { padding: 90px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feat {
  padding: 34px 30px; border-radius: var(--r3); background: var(--surface);
  border: 1px solid var(--stroke); backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), border-color .3s, background .3s; position: relative; overflow: hidden;
}
.feat::before { content:''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(139,92,246,.12), transparent 60%); opacity: 0; transition: opacity .3s; }
.feat:hover { transform: translateY(-8px); border-color: var(--stroke-2); background: var(--surface-2); }
.feat:hover::before { opacity: 1; }
.feat__ic { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 22px; background: var(--surface-2); border: 1px solid var(--stroke-2); }
.feat__ic svg { width: 28px; height: 28px; }
.feat h3 { font-family: 'Rubik'; font-weight: 700; font-size: 1.35rem; margin-bottom: 10px; position: relative; }
.feat p { color: var(--muted); position: relative; }

/* ═══════════════ Studio (demo) ═══════════════ */
.studio { padding: 90px 0; }
.lab {
  max-width: 920px; margin: 0 auto; border-radius: var(--r4);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--stroke-2); backdrop-filter: blur(20px);
  box-shadow: var(--card-sh); padding: 8px; position: relative; overflow: hidden;
}
.lab::before { content:''; position: absolute; inset: -1px; padding: 1px; border-radius: var(--r4); background: var(--g-cool); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .3; pointer-events: none; }
.lab__bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; }
.lab__bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--stroke-2); }
.lab__bar i:nth-child(1){ background: #fb7185; } .lab__bar i:nth-child(2){ background: #fbbf24; } .lab__bar i:nth-child(3){ background: #34d399; }
.lab__bar span { margin-inline-start: auto; color: var(--faint); font-family: 'Space Grotesk'; font-size: .8rem; }
.lab__body { padding: 22px 30px 34px; }
.lab__row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.fld { flex: 1; min-width: 200px; }
.fld label { display: block; font-weight: 600; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.ctrl {
  width: 100%; padding: 14px 16px; border-radius: var(--r1); background: rgba(0,0,0,.35);
  border: 1px solid var(--stroke); color: var(--text); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.ctrl:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.15); }
select.ctrl { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a5a0c9' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; }
select.ctrl option { background: var(--bg-2); }
textarea.ctrl { min-height: 150px; resize: vertical; line-height: 1.9; }
.lab__meta { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 18px; color: var(--faint); font-size: .88rem; }
.lab__meta b { color: var(--amber); font-family: 'Space Grotesk'; }

.player { margin-top: 22px; padding: 22px; border-radius: var(--r2); background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.25); display: none; }
.player.on { display: block; animation: pop .45s var(--ease); }
@keyframes pop { from{ opacity:0; transform: translateY(14px) scale(.98);} to{ opacity:1; transform: none;} }
.player__wave { display: flex; align-items: center; gap: 3px; height: 56px; margin-bottom: 16px; }
.player__wave i { flex: 1; border-radius: 4px; background: var(--g-cool); opacity: .75; transition: transform .1s; }
.player__ctrls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.player__play { width: 50px; height: 50px; border-radius: 50%; background: var(--g-brand); color: #1a0b2e; display: grid; place-items: center; flex-shrink: 0; }
.player__play svg { width: 20px; height: 20px; }
.player__time { color: var(--muted); font-family: 'Space Grotesk'; font-size: .85rem; }
.player__bar { flex: 1; min-width: 120px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.player__bar span { display: block; height: 100%; width: 32%; background: var(--g-brand); border-radius: 4px; }

/* ═══════════════ Dialects ═══════════════ */
.dialects { padding: 90px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 100px; background: var(--surface); border: 1px solid var(--stroke); font-weight: 600; transition: all .22s var(--ease); cursor: default; }
.chip:hover { background: var(--surface-2); border-color: var(--violet); transform: translateY(-3px) scale(1.03); }
.chip .fl { font-size: 1.25rem; }

/* ═══════════════ How ═══════════════ */
.how { padding: 90px 0; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step { padding: 34px 30px; border-radius: var(--r3); background: var(--surface); border: 1px solid var(--stroke); position: relative; }
.step__n { font-family: 'Space Grotesk'; font-weight: 700; font-size: 3.4rem; line-height: 1; background: var(--g-brand); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 16px; opacity: .95; }
.step h3 { font-family: 'Rubik'; font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ═══════════════ Pricing ═══════════════ */
.pricing { padding: 90px 0; }
.toggle { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 100px; background: var(--surface); border: 1px solid var(--stroke); margin: 0 auto 52px; width: fit-content; max-width: 100%; }
.toggle button { padding: 11px 26px; border-radius: 100px; color: var(--muted); font-weight: 600; font-size: .95rem; transition: all .25s var(--ease); display: inline-flex; align-items: center; gap: 8px; }
.toggle button.on { background: var(--g-cool); color: #fff; box-shadow: 0 8px 24px -10px rgba(99,102,241,.8); }
.toggle .save { font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 100px; background: var(--mint); color: #052e1a; }

.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 38px 32px; border-radius: var(--r3); background: var(--surface); border: 1px solid var(--stroke); backdrop-filter: blur(10px); transition: transform .3s var(--ease); position: relative; }
.plan:hover { transform: translateY(-8px); }
.plan.top {
  background: linear-gradient(180deg, rgba(139,92,246,.14), rgba(255,255,255,.03));
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--glow-v); transform: scale(1.05);
}
.plan.top::before { content:''; position: absolute; inset: -1px; padding: 1px; border-radius: var(--r3); background: var(--g-brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan.top:hover { transform: scale(1.05) translateY(-8px); }
.plan__tag { position: absolute; top: -13px; right: 30px; padding: 6px 16px; border-radius: 100px; background: var(--g-brand); color: #1a0b2e; font-weight: 800; font-size: .8rem; box-shadow: var(--glow-w); }
.plan__name { font-family: 'Rubik'; font-weight: 700; font-size: 1.5rem; }
.plan__desc { color: var(--muted); font-size: .92rem; margin: 6px 0 22px; min-height: 40px; }
.plan__price { display: flex; align-items: flex-end; gap: 6px; }
.plan__price .amt { font-family: 'Space Grotesk'; font-weight: 700; font-size: 3.4rem; line-height: .9; }
.plan__price .cur { color: var(--muted); font-weight: 700; padding-bottom: 8px; font-size: 1.2rem; }
.plan__per { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.plan__note { display: inline-block; margin-top: 10px; font-size: .82rem; font-weight: 600; color: var(--mint); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25); padding: 4px 12px; border-radius: 100px; min-height: 0; }
.plan__old { color: var(--faint); text-decoration: line-through; font-size: .92rem; margin-top: 8px; min-height: 20px; }
.plan__old.hide { visibility: hidden; }
.plan__feats { list-style: none; margin: 26px 0; flex: 1; }
.plan__feats li { display: flex; align-items: flex-start; gap: 11px; padding: 8px 0; font-size: .97rem; }
.plan__feats .ck { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; display: grid; place-items: center; background: rgba(52,211,153,.14); }
.plan__feats .ck svg { width: 13px; height: 13px; stroke: var(--mint); }
.plan__feats li.no { color: var(--faint); }
.plan__feats li.no .ck { background: rgba(255,255,255,.05); }
.plan__feats li.no .ck svg { stroke: var(--faint); }

/* ═══════════════ FAQ ═══════════════ */
.faq { padding: 90px 0; }
.qa-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.qa { border-radius: var(--r2); background: var(--surface); border: 1px solid var(--stroke); overflow: hidden; transition: border-color .2s; }
.qa.open { border-color: var(--stroke-2); }
.qa__q { width: 100%; text-align: right; padding: 22px 26px; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text); }
.qa__q .pl { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--amber); font-size: 1.2rem; transition: transform .3s var(--ease); }
.qa.open .qa__q .pl { transform: rotate(135deg); }
.qa__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); color: var(--muted); }
.qa__a p { padding: 0 26px 24px; }
.qa.open .qa__a { max-height: 260px; }

/* ═══════════════ CTA ═══════════════ */
.cta { padding: 100px 0; }
.cta__box { text-align: center; padding: 74px 34px; border-radius: var(--r4); position: relative; overflow: hidden; background: var(--g-brand); }
.cta__box::after { content:''; position: absolute; inset: 0; background: radial-gradient(70% 120% at 50% 0%, rgba(255,255,255,.28), transparent 60%); }
.cta__box > * { position: relative; }
.cta__box h2 { font-family: 'Rubik'; font-weight: 900; font-size: clamp(1.9rem, 5.5vw, 3.1rem); color: #180a2b; letter-spacing: -.8px; margin-bottom: 16px; }
.cta__box p { color: rgba(24,10,43,.82); font-size: 1.18rem; margin-bottom: 32px; font-weight: 500; }
.btn-dark { background: #0b0616; color: #fff; }
.btn-dark:hover { transform: translateY(-3px); background: #000; }

/* ═══════════════ Footer ═══════════════ */
.footer { padding: 64px 0 30px; border-top: 1px solid var(--stroke); margin-top: 20px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.footer__brand p { color: var(--muted); margin: 16px 0 20px; max-width: 300px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--stroke); transition: all .2s; }
.social a svg { width: 18px; height: 18px; }
.social a:hover { background: var(--violet); transform: translateY(-3px); border-color: var(--violet); }
.footer__col h4 { font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); padding: 6px 0; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--stroke); color: var(--faint); font-size: .9rem; flex-wrap: wrap; gap: 14px; }
.pays { display: flex; gap: 8px; align-items: center; }
.pays .p { padding: 5px 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--stroke); font-size: .78rem; font-weight: 600; }

/* Floating WhatsApp */
.wa { position: fixed; bottom: 26px; left: 26px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(37,211,102,.6); transition: transform .2s; }
.wa svg { width: 30px; height: 30px; }
.wa:hover { transform: scale(1.1); }

/* Toast */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 130px); background: var(--bg-2); border: 1px solid var(--mint); color: var(--text); padding: 14px 26px; border-radius: 100px; font-weight: 600; z-index: 100; box-shadow: var(--card-sh); transition: transform .45s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

/* ═══════════════ Auth pages ═══════════════ */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 44px 38px; border-radius: var(--r3); background: var(--surface); border: 1px solid var(--stroke-2); backdrop-filter: blur(20px); box-shadow: var(--card-sh); }
.auth-card h1 { font-family: 'Rubik'; font-weight: 800; font-size: 1.8rem; text-align: center; margin-bottom: 8px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 30px; }
.auth-card .fld { margin-bottom: 18px; }
.auth-card .alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: .95rem; }
.auth-card .alt a { color: var(--violet); font-weight: 600; }
.alert { padding: 12px 16px; border-radius: var(--r1); margin-bottom: 20px; font-size: .92rem; font-weight: 500; }
.alert-err { background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.35); color: #fda4b4; }
.alert-ok { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); color: #6ee7b7; }

/* ═══════════════ Dashboard ═══════════════ */
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); border-inline-start: 1px solid var(--stroke); padding: 26px 18px; position: sticky; top: 0; height: 100vh; }
.side__brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 26px; }
.side__nav a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r1); color: var(--muted); font-weight: 600; transition: all .2s; margin-bottom: 4px; }
.side__nav a svg { width: 20px; height: 20px; }
.side__nav a:hover { background: var(--surface); color: var(--text); }
.side__nav a.active { background: var(--surface-2); color: var(--text); }
.side__foot { position: absolute; bottom: 22px; right: 18px; left: 18px; }
.dash__main { padding: 32px 36px; }
.dash__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.dash__head h1 { font-family: 'Rubik'; font-weight: 800; font-size: 1.8rem; }
.usage-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 30px; }
.ucard { padding: 26px; border-radius: var(--r2); background: var(--surface); border: 1px solid var(--stroke); }
.ucard .lbl { color: var(--muted); font-size: .9rem; }
.ucard .val { font-family: 'Space Grotesk'; font-size: 2.2rem; font-weight: 700; margin: 6px 0; }
.ucard .prog { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.ucard .prog span { display: block; height: 100%; background: var(--g-brand); border-radius: 4px; }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 960px) {
  .feat-grid, .steps, .plans { grid-template-columns: 1fr; }
  .plan.top { transform: none; } .plan.top:hover { transform: translateY(-8px); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .burger { display: grid; }
  .dash { grid-template-columns: 1fr; } .side { display: none; }
}
@media (max-width: 540px) {
  .lab__body { padding: 20px; } .cta__box { padding: 50px 24px; }
  .usage-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .toggle { width: 100%; }
  .toggle button { flex: 1; min-width: 0; padding: 10px 8px; font-size: .82rem; justify-content: center; }
  .toggle .save { padding: 2px 5px; font-size: .58rem; }
  .hero__wave { gap: 2px; overflow: hidden; }
  .hero__wave i { width: 4px; }
  .aurora span { filter: blur(70px); }
  .head h2 { font-size: 1.7rem; }
  .hero h1 { font-size: 2.3rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
