/* ==========================================================================
   Design tokens — deep indigo base, electric-blue → violet mesh accent.
   One motion language (--ease / --dur) shared by cards, configurator, checkout.
   ========================================================================== */
@font-face { font-family: 'Anek Bangla'; src: url('/assets/fonts/anek-bangla-bengali-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: 'Anek Bangla'; src: url('/assets/fonts/anek-bangla-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Hind Siliguri'; src: url('/assets/fonts/hind-siliguri-bengali-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hind Siliguri'; src: url('/assets/fonts/hind-siliguri-bengali-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Hind Siliguri'; src: url('/assets/fonts/hind-siliguri-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --font-body: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  --font-head: 'Anek Bangla', 'Hind Siliguri', system-ui, sans-serif;
  --blue: #3b82f6; --indigo: #6366f1; --violet: #8b5cf6; --fuchsia: #d946ef;
  --grad: linear-gradient(135deg, var(--blue), var(--violet));
  --success: #22c55e; --warn: #f59e0b; --danger: #ef4444;
  --radius: 18px; --radius-sm: 12px;
  --ease: cubic-bezier(.2,.7,.2,1); --dur: 220ms;
  --shadow: 0 10px 30px -12px rgba(15, 10, 60, .45);
  --glow: 0 0 0 1px rgba(139, 92, 246, .45), 0 18px 40px -18px rgba(99, 102, 241, .65);
  --container: 1180px;
}
:root, [data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0a1f; --bg-2: #110f2a; --surface: rgba(255,255,255,.045); --surface-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.1); --text: #f6f5ff; --muted: #aaa8cf; --input: rgba(255,255,255,.06);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) { color-scheme: light; --bg: #f6f6fb; --bg-2: #eceafa; --surface: #ffffff; --surface-2: #f3f2fd; --border: rgba(30,20,90,.12); --text: #14112e; --muted: #5d5a82; --input: #fff; --shadow: 0 12px 30px -16px rgba(40,30,120,.25); }
}
[data-theme='light'] { color-scheme: light; --bg: #f6f6fb; --bg-2: #eceafa; --surface: #ffffff; --surface-2: #f3f2fd; --border: rgba(30,20,90,.12); --text: #14112e; --muted: #5d5a82; --input: #fff; --shadow: 0 12px 30px -16px rgba(40,30,120,.25); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 16.5px; line-height: 1.7; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(139,92,246,.5); text-underline-offset: 3px; }
a:hover { color: #a78bfa; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--violet); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Mesh gradient — soft, layered glow */
.mesh { position: relative; isolation: isolate; background:
  radial-gradient(55% 70% at 12% 8%, rgba(59,130,246,.30), transparent 62%),
  radial-gradient(45% 65% at 88% 12%, rgba(139,92,246,.32), transparent 62%),
  radial-gradient(40% 55% at 55% 100%, rgba(99,102,241,.22), transparent 70%), var(--bg); }
[data-theme='light'] .mesh, :root:not([data-theme='dark']) .mesh { }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.nav-links { display: flex; gap: .25rem; }
.nav-links a { padding: .45rem .8rem; border-radius: 10px; text-decoration: none; color: var(--muted); transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; font-size: 1.05rem; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.icon-btn:hover { transform: translateY(-1px); border-color: rgba(139,92,246,.6); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--grad); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.menu-btn { display: none; }
.i-moon { display: none; }
[data-theme='light'] .i-sun { display: none; } [data-theme='light'] .i-moon { display: inline; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav-links { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: .75rem 1rem 1rem; background: var(--bg-2); border-bottom: 1px solid var(--border); transform-origin: top; transform: scaleY(.96); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: .7rem .8rem; }
  .brand span { font-size: .98rem; }
}

/* Buttons */
.btn { --b: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.25rem; border-radius: 12px; border: 1px solid var(--b); font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -12px rgba(99,102,241,.9); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 34px -12px rgba(139,92,246,.95); }
.btn-ghost { --b: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { --b: rgba(139,92,246,.6); color: var(--text); }
.btn-light { background: #fff; color: #1d1650; }
.btn-outline-light { --b: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .8rem; font-size: .9rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: .5rem 0; font: inherit; }

/* Cards & shared motion */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .8rem; background: var(--surface-2); border: 1px solid var(--border); }
.badge-offer { background: rgba(217,70,239,.16); border-color: rgba(217,70,239,.45); color: #f0abfc; }
[data-theme='light'] .badge-offer { color: #a21caf; }
.badge-soon { background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.45); }
.badge-verified { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.45); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-sm { padding: 2rem 0; }
.section-head { text-align: center; margin-bottom: 2.2rem; }
.page-hero { padding: 3.5rem 0 2.5rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(139,92,246,.45); background: rgba(139,92,246,.12); font-size: .9rem; margin-bottom: 1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Browser-frame mockups */
.browser-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); box-shadow: 0 30px 60px -30px rgba(10, 5, 40, .8), 0 0 0 1px rgba(139,92,246,.12); }
.bf-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.bf-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .bf-bar i:nth-child(2) { background: #febc2e; } .bf-bar i:nth-child(3) { background: #28c840; }
.bf-url { margin-left: 10px; flex: 1; font-size: .78rem; color: var(--muted); background: var(--surface); padding: 2px 10px; border-radius: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bf-body { aspect-ratio: 16 / 10; background: var(--bg); }
.bf-body img, .bf-body video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.frame-placeholder { height: 100%; display: grid; place-content: center; text-align: center; gap: .3rem; padding: 1rem; color: #fff; background: radial-gradient(70% 90% at 20% 10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--g)); font-family: var(--font-head); font-size: 1.3rem; font-weight: 650; }
.frame-placeholder small { font-family: var(--font-body); font-size: .8rem; font-weight: 400; opacity: .85; }

.showcase { position: relative; }
.showcase .slide { margin: 0; display: none; }
.showcase .slide.is-active { display: block; animation: fadeIn 500ms var(--ease); }
.showcase figcaption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .9rem; font-size: .95rem; }
.dots { display: flex; gap: .4rem; justify-content: center; margin-top: 1rem; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; transition: width var(--dur) var(--ease), background var(--dur) var(--ease); }
.dots button[aria-current='true'] { width: 26px; border-radius: 5px; background: var(--grad); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

/* Category & package grids */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.cat-card { text-decoration: none; display: flex; flex-direction: column; gap: .2rem; }
.cat-card:hover, .pkg-card:hover, .review:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: rgba(139,92,246,.5); color: inherit; }
.cat-ico { font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--grad); margin-bottom: .6rem; }
.cat-card img { border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; margin-bottom: .6rem; }
.cat-meta { margin-top: auto; font-size: .9rem; color: #a78bfa; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.pkg-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pkg-card .browser-frame { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); box-shadow: none; }
.pkg-media { display: block; }
.pkg-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pkg-body h3 { margin: 0; } .pkg-body h3 a { text-decoration: none; }
.pkg-body p { margin: 0; }
.pkg-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.pkg-actions { display: flex; gap: .6rem; margin-top: auto; padding-top: .6rem; flex-wrap: wrap; }
.pkg-actions .btn { flex: 1; }
.is-soon .pkg-media { filter: saturate(.6); }
.price { font-family: var(--font-head); font-size: 1.05rem; }
.price strong { font-size: 1.5rem; } .price s { color: var(--muted); font-size: .95rem; margin-left: .3rem; }
.price-from { color: var(--muted); font-size: .9rem; }
.countdown { display: inline-flex; gap: .4rem; align-items: baseline; padding: .35rem .7rem; border-radius: 10px; background: rgba(217,70,239,.1); border: 1px dashed rgba(217,70,239,.45); font-size: .9rem; width: fit-content; }
.countdown .cd-val { font-family: var(--font-head); font-weight: 650; font-variant-numeric: tabular-nums; }
.countdown.is-over { opacity: .6; }
.coupon-chip { display: inline-flex; gap: .3rem; width: fit-content; padding: .35rem .75rem; border-radius: 10px; border: 1px dashed rgba(59,130,246,.55); background: rgba(59,130,246,.1); color: var(--text); cursor: copy; font: inherit; font-size: .9rem; transition: transform var(--dur) var(--ease); }
.coupon-chip:hover { transform: translateY(-1px); }
.offer-strip { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.quote-nudge { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.empty { text-align: center; }

/* How it works / proof */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: s; }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: .8rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; }
.stat { min-width: 200px; text-align: center; padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; }
.stat span { color: var(--muted); font-size: .92rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.review { margin: 0; }
.review blockquote { margin: .6rem 0; }
.stars { color: #fbbf24; letter-spacing: 2px; } .stars .dim { color: var(--border); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 24px; border: 1px solid rgba(139,92,246,.35); background:
  radial-gradient(60% 120% at 0% 0%, rgba(59,130,246,.55), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(139,92,246,.6), transparent 60%), #17124a; color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .7rem; transition: border-color var(--dur) var(--ease); }
.faq details[open] { border-color: rgba(139,92,246,.5); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: #a78bfa; font-size: 1.3rem; line-height: 1; transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--muted); }

/* Package detail & configurator */
.pkg-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
.pkg-left { display: grid; gap: 1.3rem; min-width: 0; }
.pkg-right { position: sticky; top: 86px; }
@media (max-width: 960px) { .pkg-layout { grid-template-columns: 1fr; } .pkg-right { position: static; } }
.gallery .g-item { display: none; } .gallery .g-item.is-active { display: block; animation: fadeIn 350ms var(--ease); }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .7rem; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 92px; height: 58px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); color: var(--text); cursor: pointer; transition: border-color var(--dur) var(--ease); }
.gallery-thumbs button[aria-current='true'] { border-color: var(--violet); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-video { font-size: .8rem; }
.features { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.features.cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.features li { padding-left: 1.7rem; position: relative; }
.features li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 1.2rem; height: 1.2rem; margin-top: .25rem; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; color: #fff; background: var(--grad); }
.configurator { display: grid; gap: .9rem; }
.configurator h1 { font-size: 1.7rem; margin: 0; }
.configurator p { margin: 0; }
.cfg-base { display: flex; justify-content: space-between; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.addons { border: 0; padding: 0; margin: 0; display: grid; gap: .55rem; }
.addons legend { font-weight: 600; margin-bottom: .5rem; }
.addon { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.addon:hover { transform: translateY(-2px); border-color: rgba(139,92,246,.5); }
.addon.is-on { border-color: var(--violet); box-shadow: var(--glow); }
.addon-info { display: grid; gap: .1rem; } .addon-info small { color: var(--muted); line-height: 1.4; } .addon-price { color: #a78bfa; font-size: .9rem; }
.switch { position: relative; flex: 0 0 46px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); transition: background var(--dur) var(--ease); }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--dur) var(--ease); }
.switch input:checked + span { background: var(--grad); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.stepper button { width: 34px; height: 34px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1.1rem; }
.stepper input { width: 44px; height: 34px; text-align: center; border: 0; background: transparent; color: var(--text); font: inherit; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cfg-summary { display: grid; gap: .35rem; padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.cfg-summary .row { display: flex; justify-content: space-between; gap: 1rem; }
.cfg-summary .discount { color: #f0abfc; }
[data-theme='light'] .cfg-summary .discount { color: #a21caf; }
.cfg-summary .total { padding-top: .45rem; margin-top: .25rem; border-top: 1px solid var(--border); font-family: var(--font-head); font-size: 1.25rem; }
.cfg-summary .total .price strong { font-size: 1.25rem; }
.flash { animation: flash 450ms var(--ease); }
@keyframes flash { 0% { color: #a78bfa; transform: scale(1.06); } 100% { transform: none; } }
.demo-btn { margin-top: -.3rem; }
.notice { padding: .8rem 1rem; border-radius: var(--radius-sm); background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.4); }
.prose p { color: var(--muted); }

/* Forms */
.form { display: grid; gap: .9rem; }
.form h2 { margin: .4rem 0 0; font-size: 1.2rem; }
label { display: grid; gap: .3rem; font-weight: 500; font-size: .95rem; }
input, select, textarea { width: 100%; padding: .72rem .9rem; border-radius: 11px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
input[aria-invalid='true'], textarea[aria-invalid='true'], select[aria-invalid='true'] { border-color: var(--danger); }
.field-err { color: #fca5a5; font-size: .85rem; font-weight: 400; }
[data-theme='light'] .field-err { color: #b91c1c; }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
label.check input { width: 18px; height: 18px; margin-top: .3rem; flex: 0 0 auto; accent-color: var(--violet); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.form-msg { min-height: 1.2em; margin: 0; font-size: .95rem; }
.form-msg.is-error { color: #fca5a5; } .form-msg.is-ok { color: #86efac; }
[data-theme='light'] .form-msg.is-error { color: #b91c1c; } [data-theme='light'] .form-msg.is-ok { color: #15803d; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.co-left { display: grid; gap: 1.3rem; }
.sticky { position: sticky; top: 86px; display: grid; gap: .9rem; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .sticky { position: static; } }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: 0; }
.cart-line ul { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.cart-line .remove { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .88rem; padding: 0; text-align: left; }
.cart-line .remove:hover { color: var(--danger); }
.pay-methods { display: grid; gap: .55rem; }
.pay-method { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.pay-method:hover { transform: translateY(-2px); border-color: rgba(139,92,246,.5); }
.pay-method:has(input:checked) { border-color: var(--violet); box-shadow: var(--glow); }
.pay-method input { width: 18px; height: 18px; accent-color: var(--violet); flex: 0 0 auto; }
.pay-method span { display: grid; } .pay-method small { color: var(--muted); font-weight: 400; }
.coupon-form { display: flex; gap: .5rem; } .coupon-form input { text-transform: uppercase; }

/* Order result / portal */
.result { text-align: center; display: grid; gap: .6rem; justify-items: center; }
.result-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: var(--surface-2); }
.result.is-success .result-ico { background: linear-gradient(135deg, #22c55e, #10b981); color: #fff; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; text-align: left; margin: 1rem 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.manual-pay { width: 100%; text-align: left; border-top: 1px solid var(--border); padding-top: 1rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 2.2rem; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 7px; top: 22px; bottom: -2px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg); }
.timeline li.done { color: var(--text); } .timeline li.done::after { background: var(--grad); border-color: transparent; }
.timeline li.current { color: var(--text); font-weight: 650; } .timeline li.current::after { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.25); }
.portal-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; align-items: start; }
.portal-main { display: grid; gap: 1.3rem; }
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr; } }
.msgs { display: grid; gap: .6rem; max-height: 420px; overflow-y: auto; }
.msg { padding: .7rem .9rem; border-radius: 12px; background: var(--surface-2); max-width: 85%; }
.msg.client { justify-self: end; background: rgba(99,102,241,.18); }
.msg small { display: block; color: var(--muted); font-size: .78rem; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.file-list a { text-decoration: none; }
.rating-input { display: flex; gap: .3rem; flex-direction: row-reverse; justify-content: flex-end; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.8rem; color: var(--border); cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #fbbf24; }

/* Quiz */
.quiz { display: grid; gap: 1rem; }
.quiz-options { display: grid; gap: .55rem; }
.quiz-opt { text-align: left; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.quiz-opt:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: var(--glow); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad); transition: width 400ms var(--ease); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 2rem; background: var(--bg-2); }
.site-footer.mini { padding: 1.2rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h4 { font-size: 1rem; margin-bottom: .7rem; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); text-decoration: none; padding: .15rem 0; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: .9rem; }
.site-footer.mini .footer-bottom { margin: 0; padding: 0; border: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Promo bar & popup */
.promo-bar { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: .55rem 3rem .55rem 1rem; background: var(--grad); color: #fff; font-size: .95rem; position: relative; text-align: center; flex-wrap: wrap; }
.promo-bar a { color: #fff; font-weight: 600; }
.promo-close { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }
.popup { border: 1px solid var(--border); border-radius: 22px; padding: 1.8rem; max-width: 440px; width: calc(100% - 2rem); background: var(--bg-2); color: var(--text); box-shadow: var(--glow); }
.popup::backdrop { background: rgba(5,3,20,.6); backdrop-filter: blur(3px); }
.popup img { border-radius: 14px; margin-bottom: 1rem; }
.popup-x { position: absolute; right: .8rem; top: .6rem; background: none; border: 0; font-size: 1.6rem; color: var(--muted); cursor: pointer; }

/* Chat launcher */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.chat-bubble { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(99,102,241,.9); display: grid; place-items: center; transition: transform var(--dur) var(--ease); }
.chat-bubble:hover { transform: translateY(-3px) scale(1.04); }
.chat-panel { position: absolute; right: 0; bottom: 74px; width: min(370px, calc(100vw - 36px)); border-radius: 20px; border: 1px solid var(--border); background: var(--bg-2); box-shadow: var(--shadow), var(--glow); overflow: hidden; animation: fadeIn 260ms var(--ease); }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.chat-head .icon-btn { width: 34px; height: 34px; }
.chat-picker { display: grid; gap: .55rem; padding: 1rem; }
.chat-option { display: flex; gap: .8rem; align-items: center; text-align: left; padding: .85rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-decoration: none; cursor: pointer; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.chat-option:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: var(--glow); color: var(--text); }
.chat-option span:last-child { display: grid; } .chat-option small { color: var(--muted); line-height: 1.4; }
.co-ico { font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); flex: 0 0 auto; }
.chat-ai { padding: .8rem 1rem 1rem; display: grid; gap: .6rem; }
.chat-log { height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding-right: .2rem; }
.bubble { padding: .6rem .85rem; border-radius: 14px; max-width: 88%; white-space: pre-wrap; font-size: .95rem; line-height: 1.55; }
.bubble.bot { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.typing { opacity: .7; }
.chat-form { display: flex; gap: .4rem; }
.handoff { display: grid; gap: .5rem; padding: .7rem; border-radius: 12px; border: 1px dashed rgba(139,92,246,.5); }

/* Toasts */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: .5rem; }
.toast { padding: .7rem 1.1rem; border-radius: 12px; background: #1d1650; color: #fff; box-shadow: var(--shadow); animation: fadeIn 250ms var(--ease); }
.toast.is-error { background: #7f1d1d; }
