/* ==========================================================================
   Rasadid Hub — design system
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn.woff2") format("woff2-variations"), url("../fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #f7931e;
  --brand-600: #ee7d0d;
  --brand-700: #c96207;
  --brand-50: #fff7ec;
  --brand-100: #ffe9cc;
  --brand-grad: linear-gradient(135deg, #ffad42 0%, #f7931e 45%, #f0700f 100%);

  --violet: #7357f6; --violet-50: #f2efff; --violet-100: #e4ddff;
  --blue: #3b7cf6;   --blue-50: #edf3ff;   --blue-100: #dbe7ff;
  --green: #0fae7a;  --green-50: #e8faf3;  --green-100: #c9f1e1;
  --teal: #0b9f9b;   --teal-50: #e5f7f6;
  --red: #e5484d;    --red-50: #fdeeee;
  --gray-50: #f3f4f7;

  --ink: #1a2030;
  --ink-2: #384154;
  --muted: #6b7386;
  --faint: #9aa1b2;
  --line: #e7eaf0;
  --line-2: #f0f2f6;
  --bg: #f6f7fb;
  --card: #ffffff;

  --radius-lg: 26px;
  --radius: 20px;
  --radius-sm: 13px;
  --radius-xs: 9px;
  --shadow-xs: 0 1px 2px rgba(22, 28, 45, .05);
  --shadow-sm: 0 2px 8px -2px rgba(22, 28, 45, .07);
  --shadow: 0 14px 34px -14px rgba(22, 28, 45, .16);
  --shadow-lg: 0 30px 70px -28px rgba(22, 28, 45, .25);
  --ring: 0 0 0 4px rgba(247, 147, 30, .18);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0; font-weight: 800; letter-spacing: -.2px; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: embed; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container-sm { width: min(760px, 100% - 32px); margin-inline: auto; }
.container-md { width: min(980px, 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- background */
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #fbfbfe 0%, var(--bg) 60%); }
.page-bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.page-bg .b1 { width: 420px; height: 420px; background: #ffe2bd; top: -140px; right: -120px; }
.page-bg .b2 { width: 520px; height: 520px; background: #dfe8ff; top: 120px; left: -220px; }
.page-bg .b3 { width: 380px; height: 380px; background: #e6fbf2; bottom: -160px; right: 18%; opacity: .45; }

/* -------------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(231, 234, 240, .7);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 24px; font-weight: 900; letter-spacing: -.5px; }
.brand-sub { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.main-nav a { position: relative; padding: 8px 14px; font-size: 14.5px; color: var(--ink-2); border-radius: 10px; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--brand-700); background: var(--brand-50); }
.main-nav a.is-active { color: var(--brand-600); font-weight: 700; }
.main-nav a.is-active::after { content: ""; position: absolute; inset-inline: 14px; bottom: -15px; height: 3px; border-radius: 3px; background: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); font-size: 14px; font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.account-pill:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.account-pill .avatar { width: 32px; height: 32px; }
.btn.nav-toggle { display: none; }

.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-weight: 800; font-size: 14px; flex-shrink: 0; }

/* -------------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 14.5px; line-height: 1.4; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s, color .2s;
  background: #fff; color: var(--ink);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(240, 112, 15, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(240, 112, 15, .75), inset 0 1px 0 rgba(255, 255, 255, .25); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a3245; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink-2); box-shadow: var(--shadow-xs); }
.btn-outline:hover { border-color: #d6dae3; background: #fcfcfd; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--gray-50); }
.btn-soft { background: var(--brand-50); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-100); }
.btn-danger { background: var(--red-50); color: var(--red); }
.btn-danger:hover { background: #fbdcdc; }
.btn-success { background: var(--green); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 16px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.btn-circle { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* ---------------------------------------------------------------- utilities */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { font-size: 16px; }
.card-body { padding: 22px 24px; }
.glass { background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 56px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; } .mb-4 { margin-bottom: 32px; }
.divider { height: 1px; background: var(--line-2); margin: 18px 0; border: 0; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* -------------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.7; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-plain::before { display: none; }
.badge-gray { background: var(--gray-50); color: #5b6375; }
.badge-blue { background: var(--blue-50); color: var(--blue); }
.badge-teal { background: var(--teal-50); color: var(--teal); }
.badge-orange { background: var(--brand-50); color: var(--brand-700); }
.badge-violet { background: var(--violet-50); color: var(--violet); }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-red { background: var(--red-50); color: var(--red); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); color: var(--ink-2); }
.chip-orange { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.chip-violet { background: var(--violet-50); border-color: var(--violet-100); color: var(--violet); }
.chip-blue { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue); }
.chip-green { background: var(--green-50); border-color: var(--green-100); color: var(--green); }

.metric { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 7px; background: var(--green-50); color: var(--green); direction: ltr; }
.metric b { font-weight: 800; }
.metric-spam { background: var(--gray-50); color: var(--muted); }

/* --------------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.label .req { color: var(--red); }
.label .opt { color: var(--faint); font-weight: 500; font-size: 12px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #fff; font-size: 14.5px; transition: border-color .2s, box-shadow .2s; outline: none;
}
.input::placeholder, .textarea::placeholder { color: #b3b9c6; }
.input:hover, .select:hover, .textarea:hover { border-color: #d7dbe4; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.9; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239aa1b2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-left: 38px; }
.input-lg { padding: 15px 18px; font-size: 17px; border-radius: 15px; }
.input-otp { text-align: center; letter-spacing: 14px; font-size: 26px; font-weight: 800; direction: ltr; padding: 14px; }
.hint { font-size: 12.5px; color: var(--muted); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-inline-start: 46px; }
.input-group .icon { position: absolute; inset-inline-start: 15px; color: var(--faint); }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.7; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 3px; flex-shrink: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: #d9dde5; position: relative; transition: background .2s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(-18px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 8px; }

/* -------------------------------------------------------------------- alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid transparent; }
.alert .icon { margin-top: 3px; }
.alert-info { background: var(--blue-50); color: #1f4fae; border-color: var(--blue-100); }
.alert-success { background: var(--green-50); color: #0a7c57; border-color: var(--green-100); }
.alert-error { background: var(--red-50); color: #b42328; border-color: #f8d4d5; }
.alert-warn { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }

.toasts { position: fixed; top: calc(var(--header-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; width: min(520px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; box-shadow: var(--shadow-lg); animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2); }
.toast .close { margin-inline-start: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; padding: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ---------------------------------------------------------------------- hero */
.hero { padding: 64px 0 28px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); font-size: 13.5px; font-weight: 600; }
.hero h1 { margin-top: 14px; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.4; font-weight: 900; letter-spacing: -.8px; }
.hero h1 .accent { display: block; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.08em; }
.hero .lead { margin: 16px auto 0; max-width: 640px; color: var(--muted); font-size: 16.5px; }
.hero-deco { position: absolute; pointer-events: none; }

.section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head p { margin-top: 10px; color: var(--muted); }
.section-kicker { display: inline-block; color: var(--brand-600); font-weight: 800; font-size: 13px; margin-bottom: 6px; letter-spacing: .3px; }

/* ----------------------------------------------------------- service cards */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; text-align: right; }
.service-card {
  --tone: var(--brand); --tone-50: var(--brand-50); --tone-100: var(--brand-100);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 300px; padding: 26px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fff 30%, var(--tone-50) 100%);
  border: 1px solid #fff; box-shadow: var(--shadow), inset 0 0 0 1px rgba(231, 234, 240, .65);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--tone-100); }
.service-card.tone-violet { --tone: var(--violet); --tone-50: var(--violet-50); --tone-100: var(--violet-100); }
.service-card.tone-green { --tone: var(--green); --tone-50: var(--green-50); --tone-100: var(--green-100); }
.service-card .illus { direction: ltr; position: absolute; top: 14px; left: 10px; width: 52%; max-width: 190px; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.service-card:hover .illus { transform: translateY(-4px) rotate(-2deg) scale(1.03); }
.service-card .s-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--tone); box-shadow: var(--shadow-sm); }
.service-card .s-icon .icon { width: 26px; height: 26px; }
.service-card h3 { font-size: 21px; margin-top: auto; padding-top: 70px; }
.service-card p { margin-top: 6px; color: var(--muted); font-size: 14px; max-width: 290px; }
.service-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.service-card .chips .chip { background: rgba(255, 255, 255, .85); border-color: var(--tone-100); color: var(--tone); }
.service-card .s-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.service-card .s-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tone); color: #fff; box-shadow: 0 10px 20px -8px var(--tone); transition: transform .25s; }
.service-card:hover .s-go { transform: translateX(-5px); }
.service-card .s-price { font-size: 12.5px; color: var(--muted); }
.service-card .s-price b { color: var(--ink); font-size: 14px; }
.service-card .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.cta-block { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 36px; }
.cta-block .btn { min-width: 260px; }

/* ---------------------------------------------------------- platforms strip */
.platforms { display: flex; align-items: center; gap: 24px; margin-top: 30px; padding: 18px 22px; border-radius: var(--radius-lg); text-align: right; }
.platforms-title h3 { font-size: 17px; }
.platforms-title p { font-size: 12.5px; color: var(--muted); }
.platforms-track { flex: 1; min-width: 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; }
.platforms-track::-webkit-scrollbar { display: none; }
.platform { scroll-snap-align: start; flex: 0 0 auto; min-width: 176px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s; }
.platform:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.platform .p-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; }
.platform .p-domain { font-size: 11.5px; color: var(--faint); direction: ltr; }
.platforms-nav { display: flex; align-items: center; gap: 8px; }
.platforms-nav .btn-circle { width: 38px; height: 38px; }

.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 15px; flex-shrink: 0; overflow: hidden; background: var(--c, var(--brand)); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .08); }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-mark.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 21px; }
.logo-mark.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }

/* ------------------------------------------------------------- feature bar */
.features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.feature { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 10px 18px; }
.feature + .feature { border-right: 1px solid var(--line); }
.feature .f-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); color: var(--blue); }
.feature:nth-child(1) .f-icon { color: var(--brand-600); }
.feature h4 { font-size: 15px; }
.feature p { font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------------- steps flow */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.flow-step { position: relative; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); transition: box-shadow .25s, transform .25s; }
.flow-step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.flow-step .num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-weight: 900; font-size: 19px; box-shadow: 0 8px 18px -8px rgba(240, 112, 15, .8); }
.flow-step .flow-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flow-step h3 { font-size: 16.5px; }
.flow-step p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.flow-step .flow-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }

/* ------------------------------------------------------------------ outlets */
.outlet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.outlet-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.outlet-card .o-head { display: flex; align-items: center; gap: 12px; }
.outlet-card .o-head h3 { font-size: 17px; }
.outlet-card .o-domain { font-size: 12.5px; color: var(--muted); direction: ltr; text-align: right; }
.outlet-card .o-metrics { display: flex; gap: 6px; flex-wrap: wrap; }
.outlet-card .o-prices { display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 14px; font-size: 13.5px; }
.outlet-card .o-prices div { display: flex; justify-content: space-between; }

/* ----------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 12px 16px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fcfcfe; }
.table .num { font-variant-numeric: tabular-nums; }
.table-link { font-weight: 700; color: var(--ink); }
.table-link:hover { color: var(--brand-600); }

/* ---------------------------------------------------------------- stepper */
.stepper { display: flex; align-items: center; gap: 0; margin: 0 auto; padding: 0; list-style: none; max-width: 860px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.stepper li::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; margin-inline: 8px; }
.stepper li:last-child { flex: 0; }
.stepper li:last-child::after { display: none; }
.stepper .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #fff; border: 2px solid var(--line); color: var(--faint); flex-shrink: 0; transition: all .25s; }
.stepper li.done { color: var(--ink-2); }
.stepper li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.stepper li.done::after { background: var(--green); }
.stepper li.current { color: var(--ink); }
.stepper li.current .dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--ring); }

/* ---------------------------------------------------------------- wizard */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 28px; }
.wizard-main { min-width: 0; }
.wizard-panel { padding: 28px; }
.wizard-panel > h2 { font-size: 20px; }
.wizard-panel > .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; }
.summary h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.summary-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.summary-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.summary-list li .s-name { flex: 1; min-width: 0; }
.summary-list li .s-name small { display: block; color: var(--muted); font-size: 12px; }
.summary-empty { padding: 22px 10px; text-align: center; color: var(--faint); font-size: 13.5px; border: 1.5px dashed var(--line); border-radius: 14px; margin-top: 16px; }
.summary-total { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.summary-total div { display: flex; justify-content: space-between; }
.summary-total .grand { font-size: 17px; font-weight: 900; color: var(--ink); margin-top: 4px; }
.source-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 10px 12px; background: var(--gray-50); border-radius: 12px; margin-top: 14px; }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.choice {
  --tone: var(--brand); --tone-50: var(--brand-50);
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px;
  background: #fff; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.choice:hover { border-color: #d3d8e2; transform: translateY(-2px); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .c-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-50); color: var(--tone); }
.choice .c-title { font-weight: 800; font-size: 15.5px; }
.choice .c-desc { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.choice .c-check { position: absolute; top: 14px; left: 14px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; transition: all .2s; }
.choice .c-check .icon { width: 13px; height: 13px; }
.choice.is-selected, .choice:has(input:checked) { border-color: var(--tone); background: linear-gradient(160deg, #fff 40%, var(--tone-50)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 14%, transparent); }
.choice.is-selected .c-check, .choice:has(input:checked) .c-check { background: var(--tone); border-color: var(--tone); color: #fff; }
.choice.tone-violet { --tone: var(--violet); --tone-50: var(--violet-50); }
.choice.tone-green { --tone: var(--green); --tone-50: var(--green-50); }
.choice.compact { flex-direction: row; align-items: center; padding: 14px 16px; }
.choice.compact .c-icon { width: 38px; height: 38px; border-radius: 11px; }

.subtypes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--gray-50); }
.subtypes-label { width: 100%; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.seg { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; font-size: 14px; transition: all .2s; }
.seg input { position: absolute; opacity: 0; }
.seg:hover { border-color: #d3d8e2; }
.seg.is-selected { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }

.outlet-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.op { border: 1.5px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.op.is-selected { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(247, 147, 30, .12); }
.op-head { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; }
.op-head .op-name { flex: 1; min-width: 0; }
.op-head .op-name b { display: block; font-size: 15px; }
.op-head .op-name span { font-size: 12px; color: var(--faint); direction: ltr; display: block; text-align: right; }
.op-toggle { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; transition: all .2s; flex-shrink: 0; }
.op-toggle .icon { width: 14px; height: 14px; }
.op.is-selected .op-toggle { background: var(--brand); border-color: var(--brand); color: #fff; }
.op-meta { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 12px; }
.op-options { border-top: 1px solid var(--line-2); padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #fcfcfd; }
.op-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; cursor: pointer; font-size: 13.5px; transition: background .15s; border: 1px solid transparent; }
.op-opt:hover { background: #fff; border-color: var(--line); }
.op-opt input { accent-color: var(--brand); width: 16px; height: 16px; }
.op-opt .t { flex: 1; }
.op-opt .t small { display: block; color: var(--faint); font-size: 11.5px; }
.op-opt .p { font-weight: 800; white-space: nowrap; }
.op-opt.is-checked { background: var(--brand-50); border-color: var(--brand-100); }
.op-empty { padding: 12px 16px; font-size: 12.5px; color: var(--faint); border-top: 1px solid var(--line-2); }

.dropzone { position: relative; border: 1.5px dashed #d4d9e3; border-radius: 16px; padding: 24px; text-align: center; background: #fcfcfd; transition: border-color .2s, background .2s; cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-50); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 8px; display: grid; place-items: center; background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.dropzone b { display: block; font-size: 14px; }
.dropzone small { color: var(--muted); font-size: 12px; }
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; font-size: 13.5px; }
.file-item .thumb { width: 40px; height: 40px; border-radius: 9px; background: var(--gray-50); display: grid; place-items: center; color: var(--muted); overflow: hidden; flex-shrink: 0; }
.file-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-item .fi-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .fi-name small { display: block; color: var(--faint); font-size: 11.5px; }
.file-item.is-uploading { opacity: .7; }
.progress { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; margin-top: 4px; }
.progress span { display: block; height: 100%; background: var(--brand); width: 0; transition: width .2s; }

.backlink-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: center; }

/* -------------------------------------------------------------- invoice */
.invoice { padding: 0; overflow: hidden; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 28px; background: linear-gradient(135deg, #fff 30%, var(--brand-50)); border-bottom: 1px solid var(--line-2); }
.invoice-head h2 { font-size: 20px; }
.invoice-body { padding: 24px 28px; }
.totals { margin-inline-start: auto; width: min(360px, 100%); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { padding-top: 12px; border-top: 1px dashed var(--line); font-size: 18px; font-weight: 900; }
.totals .discount { color: var(--green); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ------------------------------------------------------------- timeline */
.track { display: flex; align-items: flex-start; gap: 0; padding: 6px 0; }
.track-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; font-size: 12px; color: var(--faint); font-weight: 600; }
.track-step::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.track-step:first-child::before { display: none; }
.track-step .t-dot { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--line); position: relative; z-index: 1; display: grid; place-items: center; }
.track-step.done { color: var(--ink-2); }
.track-step.done::before { background: var(--green); }
.track-step.done .t-dot { background: var(--green); border-color: var(--green); }
.track-step.done .t-dot::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.track-step.current { color: var(--brand-700); }
.track-step.current::before { background: linear-gradient(to left, var(--green), var(--brand)); }
.track-step.current .t-dot { border-color: var(--brand); box-shadow: var(--ring); }
.track-step.current .t-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }
.track.is-rejected .track-step.current { color: var(--red); }
.track.is-rejected .track-step.current .t-dot { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 72, 77, .15); }
.track.is-rejected .track-step.current .t-dot::after { background: var(--red); }
@keyframes pulse { 50% { transform: scale(.6); opacity: .6; } }

.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.feed li::before { content: ""; position: absolute; top: 34px; bottom: 0; right: 16px; width: 2px; background: var(--line-2); }
.feed li:last-child::before { display: none; }
.feed .f-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-50); color: var(--muted); flex-shrink: 0; position: relative; z-index: 1; }
.feed .f-ico .icon { width: 16px; height: 16px; }
.feed .f-ico.is-staff { background: var(--brand-50); color: var(--brand-600); }
.feed .f-ico.is-pay { background: var(--green-50); color: var(--green); }
.feed .f-ico.is-note { background: #fff8db; color: #a07800; }
.feed .f-body { flex: 1; min-width: 0; }
.feed .f-meta { font-size: 12px; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.feed .f-text { margin-top: 4px; font-size: 14px; white-space: pre-line; word-break: break-word; }
.feed .f-bubble { margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: var(--gray-50); font-size: 14px; white-space: pre-line; word-break: break-word; }
.feed .is-note-msg .f-bubble { background: #fffbe8; border: 1px dashed #f1dd8b; }
.attach-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; }
.attach-link:hover { border-color: var(--brand-100); color: var(--brand-700); }

/* -------------------------------------------------------- panel / admin shell */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 16px; background: #fff; border-left: 1px solid var(--line); overflow-y: auto; }
.sidebar .brand { padding: 4px 10px 18px; }
.side-label { font-size: 11.5px; font-weight: 700; color: var(--faint); padding: 14px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
.side-link .icon { color: var(--faint); transition: color .15s; }
.side-link:hover { background: var(--gray-50); }
.side-link.is-active { background: var(--brand-50); color: var(--brand-700); }
.side-link.is-active .icon { color: var(--brand-600); }
.side-link .count { margin-inline-start: auto; font-size: 11.5px; background: var(--brand); color: #fff; padding: 0 8px; border-radius: 99px; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; }
.side-user b { display: block; font-size: 14px; }
.side-user small { color: var(--muted); font-size: 12px; }
.shell-main { min-width: 0; padding: 26px 32px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.topbar h1 { font-size: 23px; }
.topbar .crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.topbar .crumbs a:hover { color: var(--brand-600); }
.shell-toggle { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.stat .st-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex-shrink: 0; }
.stat .st-icon.blue { background: var(--blue-50); color: var(--blue); }
.stat .st-icon.green { background: var(--green-50); color: var(--green); }
.stat .st-icon.violet { background: var(--violet-50); color: var(--violet); }
.stat .st-label { font-size: 12.5px; color: var(--muted); }
.stat .st-value { font-size: 21px; font-weight: 900; line-height: 1.4; }
.stat .st-value small { font-size: 12px; font-weight: 600; color: var(--muted); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.filters .input, .filters .select { width: auto; min-width: 150px; padding: 9px 13px; font-size: 13.5px; }
.filters .select { padding-left: 34px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--gray-50); border-radius: 13px; flex-wrap: wrap; }
.tabs a, .tabs button { padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); border: 0; background: none; cursor: pointer; }
.tabs .is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

.item-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.item-card + .item-card { margin-top: 14px; }
.item-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; flex-wrap: wrap; }
.item-head .ih-name { flex: 1; min-width: 160px; }
.item-head .ih-name b { display: block; }
.item-head .ih-name small { color: var(--muted); }
.item-body { padding: 4px 18px 18px; }
.deliver { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--green-50); border: 1px solid var(--green-100); margin-top: 12px; font-size: 13.5px; }
.deliver .icon { color: var(--green); }
.deliver a { color: #0a7c57; font-weight: 700; word-break: break-all; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .e-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.empty .e-icon .icon { width: 30px; height: 30px; }
.empty h3 { font-size: 17px; color: var(--ink); }
.empty p { margin-top: 6px; font-size: 14px; }

.code-box { position: relative; direction: ltr; text-align: left; background: #151a26; color: #e6e9f0; border-radius: 14px; padding: 16px 18px; font: 12.5px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.code-box .copy { position: absolute; top: 10px; right: 10px; }
.color-input { width: 52px; height: 46px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }

/* ---------------------------------------------------------------- auth */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: min(460px, 100%); padding: 34px; border-radius: var(--radius-lg); }
.auth-card .a-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: 18px; }
.auth-card .a-icon .icon { width: 28px; height: 28px; }
.auth-card h1 { font-size: 22px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.auth-perks { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.auth-perks span { display: inline-flex; align-items: center; gap: 6px; }
.auth-perks .icon { color: var(--green); width: 15px; height: 15px; }

/* ---------------------------------------------------------------- result */
.result-icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; }
.result-icon .icon { width: 40px; height: 40px; }
.result-icon.ok { background: var(--green-50); color: var(--green); box-shadow: 0 0 0 10px rgba(15, 174, 122, .07); }
.result-icon.fail { background: var(--red-50); color: var(--red); box-shadow: 0 0 0 10px rgba(229, 72, 77, .07); }

/* ---------------------------------------------------------------- faq */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding-bottom: 16px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------- price table */
.price-table td.p { font-weight: 800; white-space: nowrap; }
.price-table td.p small { display: block; color: var(--faint); font-weight: 500; font-size: 11.5px; }

/* --------------------------------------------------------------- footer */
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 42px 0 28px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); }
.footer-grid a:hover { color: var(--brand-600); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--faint); }

.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 38px 42px; border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 100% 0%, #2c3550 0%, #161b29 60%); color: #fff; }
.cta-band::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 147, 30, .55), transparent 65%); left: -80px; top: -120px; }
.cta-band h2 { font-size: 25px; position: relative; z-index: 1; }
.cta-band p { color: #b9c0d0; margin-top: 6px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ----------------------------------------------------------- animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .wizard { grid-template-columns: minmax(0, 1fr) !important; }
  .summary { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .main-nav { position: fixed; top: var(--header-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s; margin: 0; }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a.is-active::after { display: none; }
  .btn.nav-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .services, .outlet-grid, .flow, .grid-3 { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; }
  .platforms { flex-direction: column; align-items: stretch; }
  .platforms-nav { display: none; }
  .features { grid-template-columns: 1fr; gap: 8px; }
  .feature { justify-content: flex-start; }
  .feature + .feature { border-right: 0; border-top: 1px solid var(--line); }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset-block: 0; right: 0; width: 280px; z-index: 60; transform: translateX(100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: none; }
  .shell-toggle { display: inline-flex; }
  .shell-main { padding: 18px 16px 50px; }
  .choice-grid { grid-template-columns: 1fr; }
  .outlet-pick { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .account-pill .label-text { display: none; }
  .account-pill { padding: 4px; }
  .brand-sub { display: none; }
  .hero { padding-top: 40px; }
  .form-grid, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat .st-value { font-size: 18px; }
  .wizard-panel, .card-pad, .auth-card { padding: 20px; }
  .stepper li { font-size: 0; gap: 0; }
  .stepper li.current { font-size: 12.5px; gap: 6px; }
  .backlink-row { grid-template-columns: 1fr; }
  .track-step { font-size: 10.5px; }
  .invoice-head, .invoice-body { padding: 20px; }
  .invoice-head { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .table th, .table td { padding: 11px 12px; }
  .card-head, .card-body { padding-inline: 18px; }
  .hide-sm { display: none; }
  .wizard-nav .btn { flex: 1 1 auto; white-space: normal; padding-inline: 14px; }
  .wizard-nav { flex-wrap: wrap-reverse; }
}

/* -------------------------------------------------------------- print */
@media print {
  .site-header, .site-footer, .sidebar, .no-print, .page-bg, .toasts { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
