:root {
    --primary: #496BBF;
    --primary-dark: #36528f;
    --primary-soft: #eef2fc;
    --ink: #121319;
    --muted: #5b6270;
    --line: #e4e8f0;
    --bg: #f6f8fc;
    --white: #ffffff;
    --success: #128a5b;
    --danger: #c02b3e;
    --warning: #b7791f;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 18px 50px rgba(18, 19, 25, .08);
    --shadow-sm: 0 6px 18px rgba(18, 19, 25, .06);
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 4.4vw, 52px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
code { font-size: .87em; background: var(--bg); padding: 2px 6px; border-radius: 5px; }
pre { background: #0f172a; color: #d7e0f4; padding: 16px; border-radius: var(--radius-sm); overflow: auto; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(840px, calc(100% - 40px)); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hide-sm { display: inline-flex; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-size: 15.5px; font-weight: 600; line-height: 1.2; cursor: pointer; text-align: center;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(73, 107, 191, .22); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-soft); }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-white { background: #fff; color: var(--primary); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; color: inherit; padding: 0; cursor: pointer; font-size: inherit; text-decoration: underline; }

/* ---------- Topbar + header ---------- */
.topbar { background: #10172b; color: #dbe3f5; font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px 0; }
.topbar-badge { background: #ffca45; color: #2a2100; font-weight: 700; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.topbar-timer b { font-variant-numeric: tabular-nums; color: #fff; }
.coupon-chip { background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 255, 255, .4); color: #fff; font: inherit; font-weight: 700; padding: 1px 8px; border-radius: 6px; cursor: pointer; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), #7e57ff); color: #fff; font-size: 18px; font-weight: 800; }
.logo-light { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav > a, .nav-dropdown-toggle { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 500; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.main-nav > a:hover, .nav-dropdown-toggle:hover { background: var(--bg); text-decoration: none; }
.nav-dropdown { position: relative; }
.caret { width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 0; width: 320px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 14.5px; }
.nav-dropdown-menu a:hover { background: var(--bg); text-decoration: none; }
.nav-dropdown-menu span { display: block; color: var(--muted); font-size: 12.5px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 56px; background: radial-gradient(900px 480px at 85% 10%, #e7edff 0%, transparent 65%), linear-gradient(180deg, #fbfcff, #fff); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--primary-dark); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.hero h1 { margin-bottom: 14px; }
.text-primary { color: var(--primary); }
.lead { font-size: 18.5px; color: var(--muted); max-width: 560px; }
.lead-sm { font-size: 17px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; color: var(--muted); font-size: 14.5px; }
.hero-points li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 7px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { width: 268px; height: 540px; background: #0d1220; border-radius: 40px; padding: 11px; box-shadow: 0 40px 80px rgba(20, 30, 70, .28); transform: rotate(-3deg); position: relative; }
.phone-speaker { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 86px; height: 7px; background: #1d2638; border-radius: 8px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; background: #fff; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone-appbar { background: var(--primary); color: #fff; display: flex; align-items: center; gap: 8px; padding: 30px 14px 12px; font-size: 13px; font-weight: 700; }
.phone-logo { width: 22px; height: 22px; background: #fff; color: var(--primary); display: grid; place-items: center; border-radius: 6px; font-size: 12px; }
.phone-menu { margin-left: auto; }
.phone-content { padding: 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.phone-banner { height: 96px; border-radius: 12px; background: linear-gradient(135deg, #dfe7ff, #f1e6ff); }
.phone-line { height: 9px; border-radius: 5px; background: #edf0f6; }
.phone-line.w-70 { width: 70%; } .phone-line.w-90 { width: 90%; } .phone-line.w-50 { width: 50%; } .phone-line.w-80 { width: 80%; } .phone-line.w-60 { width: 60%; }
.phone-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 6px 0; }
.phone-card { height: 62px; border-radius: 10px; background: #f4f6fb; border: 1px solid #eef1f8; }
.phone-nav { display: flex; justify-content: space-around; padding: 12px 0 18px; border-top: 1px solid #f0f2f8; font-size: 16px; color: #9aa3b5; }
.phone-nav .active { color: var(--primary); }
.phone-progress { position: absolute; left: 0; top: 74px; height: 2px; width: 62%; background: #ffc83d; }
.float-card { position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 9px 14px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; z-index: 5; }
.float-card-1 { top: 48px; left: 0; }
.float-card-2 { bottom: 52px; right: -14px; }
.tick { width: 20px; height: 20px; border-radius: 50%; background: #e5f7ee; color: var(--success); display: grid; place-items: center; font-size: 12px; }

.trust-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 24px 0; gap: 16px; }
.trust-grid div { display: flex; flex-direction: column; }
.trust-grid strong { font-size: 24px; letter-spacing: -.02em; }
.trust-grid span { color: var(--muted); font-size: 13.5px; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-tight { padding: 48px 0 70px; }
.section-alt { background: var(--bg); }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; box-shadow: var(--shadow-sm); }
.step-card:nth-child(2) { transform: translateY(-10px); }
.step-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; font-size: 21px; background: var(--primary-soft); border-radius: 12px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; margin-bottom: 7px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.apps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-align: center; }
.app-icon { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; box-shadow: var(--shadow-sm); }
.app-card h3 { font-size: 14.5px; margin: 0 0 6px; }
.app-tag { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 20px; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.check-list li { padding-left: 30px; position: relative; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #e5f7ee; color: var(--success); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.check-list b { color: var(--ink); }
.benefit-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.benefit-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.benefit-row:last-of-type { border-bottom: 0; }
.benefit-row span { color: var(--muted); }

.cta-band { background: linear-gradient(120deg, var(--primary), #6b3fd4); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { margin: 0; color: #dbe3ff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero { padding: 48px 0 38px; background: radial-gradient(700px 320px at 80% 0%, #e9efff, transparent 70%), #fbfcff; border-bottom: 1px solid var(--line); }
.page-hero.compact { padding: 36px 0 30px; }
.page-hero h1 { margin-bottom: 10px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.promo-banner { margin-top: 22px; background: #fff; border: 1px dashed #c9d5f5; border-radius: 10px; padding: 12px 16px; font-size: 14.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.promo-tag { background: #ffca45; color: #2a2100; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 20px; text-transform: uppercase; }
.promo-timer { margin-left: auto; color: var(--muted); }
.promo-timer b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; display: flex; flex-direction: column; height: 100%; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price-ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.price-card h3 { font-size: 14px; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.price-line { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price-old { color: #98a0af; text-decoration: line-through; font-size: 17px; }
.price-amount { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.price-suffix { color: var(--muted); font-size: 12.5px; }
.price-blurb { color: var(--muted); font-size: 14px; margin: 8px 0 16px; min-height: 42px; }
.price-features { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 7px; flex: 1; font-size: 13.5px; }
.price-features li { display: flex; gap: 8px; align-items: flex-start; }
.price-features .mark { color: var(--success); font-size: 12px; line-height: 1.5; }
.price-features li.off { color: #9aa3b5; }
.price-features li.off .mark { color: #c7cdd8; }
.price-features em { color: var(--muted); font-style: normal; font-size: 12px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table th { background: var(--bg); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:not(:first-child) { text-align: center; }

.faq { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--primary); font-size: 20px; line-height: 1; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-answer { padding: 0 0 16px; color: var(--muted); font-size: 15px; }
.faq-answer p:last-child { margin: 0; }
.faq-group-title { margin-top: 34px; font-size: 22px; }

.prose h2 { font-size: 25px; margin-top: 34px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #333947; }
.prose ul { padding-left: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.stat-row div { background: var(--bg); border-radius: var(--radius-sm); padding: 18px; text-align: center; }
.stat-row b { display: block; font-size: 24px; }
.stat-row span { color: var(--muted); font-size: 13px; }

/* ---------- Forms / wizard ---------- */
.form-layout { display: grid; grid-template-columns: 1.55fr .85fr; gap: 28px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.form-head h2 { font-size: 24px; margin-bottom: 4px; }
.plan-pill { background: var(--primary-soft); color: var(--primary-dark); border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wizard-progress { height: 7px; background: var(--bg); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.wizard-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), #7e57ff); transition: width .25s ease; }
.wizard-steps { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; font-size: 13px; color: var(--muted); }
.wizard-step.active { color: var(--primary); font-weight: 700; }
.wizard-step.done { color: var(--success); }

.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=search], select, textarea {
    width: 100%; padding: 11px 13px; border: 1px solid #d5dbe7; border-radius: 9px; font: inherit; font-size: 15px; background: #fff; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(73, 107, 191, .13); }
input[type=file] { width: 100%; font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; border: 1px solid #d5dbe7; border-radius: 10px; padding: 14px; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; }
.choice-body b { display: block; font-size: 14.5px; }
.choice-body small { display: block; color: var(--muted); font-size: 12.5px; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }

.upload-box { position: relative; border: 2px dashed #ccd5e6; border-radius: 12px; min-height: 132px; display: grid; place-items: center; text-align: center; padding: 14px; background: #fbfcff; cursor: pointer; overflow: hidden; }
.upload-box.compact { min-height: 110px; }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 8px; }
.upload-placeholder b { display: block; font-size: 14px; }
.upload-placeholder small { color: var(--muted); font-size: 12px; }
.upload-icon { font-size: 26px; display: block; margin-bottom: 4px; }
.color-row { display: flex; gap: 10px; align-items: center; }
input[type=color] { width: 52px; height: 44px; padding: 3px; border: 1px solid #d5dbe7; border-radius: 9px; background: #fff; cursor: pointer; }
.color-text { max-width: 120px; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eef1f7; }
.switch-row:last-child { border-bottom: 0; }
.switch-row small { display: block; color: var(--muted); font-size: 12.5px; }
.switch-label { font-weight: 600; margin: 0; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; background: #cfd6e3; border-radius: 20px; transition: background .18s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.option-list { border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.check { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 14.5px; font-weight: 500; }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--primary); }
.terms-check { font-weight: 500; }
.addon-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #eef1f7; cursor: pointer; align-items: center; }
.addon-row:last-child { border-bottom: 0; }
.addon-row b { display: block; font-size: 14.5px; }
.addon-row small { color: var(--muted); font-size: 12.5px; }
.addon-right { display: flex; align-items: center; gap: 12px; }
.addon-price { font-weight: 700; font-size: 14px; color: var(--primary-dark); }
.addon-row input { width: 18px; height: 18px; accent-color: var(--primary); }

.summary-box { background: var(--bg); border-radius: 10px; padding: 16px 18px; margin: 8px 0 22px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.summary-row.total { border-top: 1px solid #dbe1ec; margin-top: 6px; padding-top: 12px; font-size: 17px; }
.summary-box .small { margin: 10px 0 0; }

.wizard-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.form-side { display: grid; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h3 { font-size: 16px; margin-bottom: 12px; }
.timeline { list-style: none; counter-reset: tl; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { padding-left: 34px; position: relative; }
.timeline li::before { counter-increment: tl; content: counter(tl); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.timeline b { display: block; font-size: 14.5px; }
.timeline span { color: var(--muted); font-size: 12.5px; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 13px 16px; border-radius: 10px; margin: 16px 0; font-size: 14.5px; border: 1px solid; }
.alert-success { background: #eaf8f1; border-color: #bfe8d4; color: #0c6b48; }
.alert-info { background: #edf3ff; border-color: #c7d8fb; color: #274b93; }
.alert-danger { background: #fdecef; border-color: #f5c2cb; color: #98283a; }
.alert-warning { background: #fff7e5; border-color: #f1dea8; color: #7a5a10; }
.alert-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }
.error-list { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Order page ---------- */
.order-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eef1f7; color: #475062; }
.status-completed { background: #e5f7ee; color: #0c6b48; }
.status-processing, .status-queued { background: #fff4d9; color: #8a5b00; }
.status-failed { background: #fdecef; color: #98283a; }
.status-awaiting_payment, .status-awaiting_delivery { background: #edf3ff; color: #274b93; }
.order-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 24px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 21px; margin-bottom: 18px; }
.order-timeline { display: grid; gap: 18px; }
.order-step { display: flex; gap: 14px; align-items: flex-start; }
.order-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eef1f7; color: #8a93a5; font-size: 13px; font-weight: 800; flex: none; }
.order-step.done .order-dot { background: #e5f7ee; color: var(--success); }
.order-step.current .order-dot { background: var(--primary); color: #fff; }
.order-step b { display: block; font-size: 15px; }
.order-step small { color: var(--muted); font-size: 13px; }
.order-step.current b { color: var(--primary-dark); }
.download-box, .payment-box { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; background: #fbfcff; }
.download-box b { display: block; font-size: 17px; }
.pay-amount { font-size: 30px; font-weight: 800; margin: 6px 0 14px; }
.pay-amount span { font-size: 14px; color: var(--muted); font-weight: 500; }
.bank-details { white-space: pre-wrap; background: #fff; border: 1px dashed #ccd5e6; color: var(--ink); font-family: var(--font); padding: 14px; border-radius: 9px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 0; }
.detail-grid dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.detail-grid dd { margin: 2px 0 0; font-size: 14.5px; word-break: break-word; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.1); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; }
.tag-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 4px 11px; font-size: 12.5px; color: #414a5c; }
.tag-list li.off { opacity: .55; text-decoration: line-through; }

/* ---------- Coupons ---------- */
.coupon-list { display: grid; gap: 14px; }
.coupon-card { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px dashed #c1cde8; border-radius: var(--radius); padding: 20px 22px; }
.coupon-value { font-size: 26px; font-weight: 800; color: var(--primary); min-width: 84px; text-align: center; }
.coupon-value small { display: block; font-size: 11px; letter-spacing: .08em; }
.coupon-info { flex: 1; }
.coupon-info b { display: block; font-size: 16px; letter-spacing: .04em; }
.coupon-info span { color: var(--muted); font-size: 13px; }
.ordered-list { padding-left: 20px; color: #333947; }
.ordered-list li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1424; color: #aeb9d0; padding: 52px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.site-footer a { display: block; color: #aeb9d0; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.footer-about { margin: 14px 0 0; font-size: 13.5px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid #1d2740; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0; font-size: 12.5px; }
.footer-bottom.container { width: min(1180px, calc(100% - 40px)); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: #121319; color: #fff; padding: 11px 20px; border-radius: 30px; font-size: 14px; opacity: 0; visibility: hidden; transition: all .2s ease; z-index: 100; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Admin ---------- */
.admin-body { background: #f4f6fb; font-size: 15px; }
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.admin-sidebar { background: #101728; color: #c3cce0; padding: 22px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { color: #c3cce0; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.admin-nav a:hover { background: #1a2338; color: #fff; text-decoration: none; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-sidebar-foot { margin-top: auto; font-size: 13px; display: grid; gap: 8px; }
.admin-sidebar-foot a { color: #8fa0c2; }
.admin-main { padding: 26px 30px 50px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.admin-topbar h1 { font-size: 24px; margin: 0; }
.admin-user { color: var(--muted); font-size: 13.5px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat-card span { color: var(--muted); font-size: 12.5px; display: block; }
.stat-card b { font-size: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 18px; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef1f7; vertical-align: top; }
.data-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfe; }
.data-table tr:last-child td { border-bottom: 0; }
.message-cell { max-width: 420px; white-space: pre-wrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-row input, .filter-row select { width: auto; min-width: 180px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.pager a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-grid { display: grid; grid-template-columns: 1.6fr .8fr; gap: 26px; }
.admin-grid h3, .panel > h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.build-log { max-height: 420px; font-size: 12px; line-height: 1.55; }
.admin-icon { width: 84px; height: 84px; border-radius: 18px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.stack { display: grid; gap: 10px; }

.login-shell { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(700px 400px at 80% 0%, #e9efff, transparent), #f6f8fc; padding: 24px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 34px; width: min(420px, 100%); }
.login-card h1 { font-size: 24px; margin: 18px 0 4px; }
.blank-body { background: var(--bg); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .apps-grid { grid-template-columns: repeat(4, 1fr); }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-grid { gap: 24px; }
    .phone { transform: scale(.92) rotate(-3deg); }
    .form-layout { grid-template-columns: 1fr; }
    .order-layout { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .hide-sm { display: none; }
    .main-nav { position: fixed; inset: 74px 0 auto; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; display: none; z-index: 49; max-height: calc(100vh - 74px); overflow: auto; }
    .main-nav.open { display: flex; }
    .main-nav .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; width: auto; border: 0; padding: 0 0 0 10px; }
    .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
    .nav-toggle { display: flex; }
    .header-inner { gap: 14px; }
    .hero { padding: 44px 0 30px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .phone { height: 460px; width: 230px; }
    .steps { grid-template-columns: 1fr; }
    .step-card:nth-child(2) { transform: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .apps-grid { grid-template-columns: repeat(3, 1fr); }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; }
    .admin-nav { display: flex; }
    .admin-sidebar-foot { margin-left: auto; display: flex; gap: 12px; }
    .admin-main { padding: 20px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .page-hero { padding: 34px 0 26px; }
    .section { padding: 54px 0; }
    .section-tight { padding: 32px 0 50px; }
    .grid-2 { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .coupon-card { flex-wrap: wrap; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .container { width: calc(100% - 32px); }
    .topbar-timer { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .header-actions .btn-primary { display: none; }
    .form-card { padding: 20px; }
    .choice-grid { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .wizard-actions { flex-direction: column-reverse; align-items: stretch; }
    .wizard-actions .btn { width: 100%; }
}

/* ===== Admin v2 (MightyWeb inspired) ===== */

.status-badge.status-cancelled { background: #eef1f7; color: #5b6270; }
