/* =========================================================
   AlfaOne Solutions — design system
   Black / white / one red. Montserrat (display) + Manrope (UI).
   ========================================================= */
:root {
  --red: #E10A17;
  --red-600: #BF0813;
  --red-50: #FFF1F2;
  --ink: #0B0B0C;
  --ink-2: #17171A;
  --ink-3: #26262B;
  --gray-700: #3B3B42;
  --muted: #6B6B74;
  --line: #E6E6EA;
  --line-2: #F0F0F2;
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --green: #0F9D4E;  --green-50: #EAF8F0;
  --amber: #B86E00;  --amber-50: #FFF6E5;
  --blue: #1D5BD6;   --blue-50: #EDF3FF;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(11,11,12,.06);
  --shadow: 0 1px 2px rgba(11,11,12,.05), 0 8px 24px -12px rgba(11,11,12,.18);
  --shadow-lg: 0 24px 60px -24px rgba(11,11,12,.35);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Montserrat', 'Manrope', system-ui, sans-serif;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--card); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
:focus-visible { outline: 3px solid rgba(225,10,23,.35); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .92; }
.h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.025em; line-height: 1; text-transform: uppercase; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.02em; text-transform: uppercase; }
.h3 { font-size: 1.15rem; font-weight: 800; }
.eyebrow { font-family: var(--display); font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--gray-700); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.red { color: var(--red); }
.strong { font-weight: 800; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.nowrap { white-space: nowrap; }
.link { color: var(--red); font-weight: 700; }
.link:hover { text-decoration: underline; }
.link-strong { font-weight: 700; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-gray { background: var(--bg); }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.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; }
.grow { flex: 1; min-width: 0; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
@media (max-width: 719px) { .hide-sm { display: none !important; } }
@media (min-width: 720px) { .show-sm { display: none !important; } }
@media (max-width: 1023px) { .hide-md { display: none !important; } }
.layout-2 { display: grid; gap: 16px; }
@media (min-width: 1100px) { .layout-2 { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; } }

/* ---------- Buttons ---------- */
.btn { --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 800; font-size: .95rem; letter-spacing: .005em; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s; white-space: nowrap; text-decoration: none; user-select: none; }
.btn:active { transform: scale(.97); }
.btn i { font-size: 1.15em; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgba(225,10,23,.7); }
.btn-primary:hover { background: var(--red-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; }
.btn-danger-ghost { background: transparent; border-color: var(--line); color: var(--red); }
.btn-danger-ghost:hover { border-color: var(--red); background: var(--red-50); }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.center-row { justify-content: center; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; cursor: pointer; font-size: 1.35rem; color: inherit; flex: none; }
.icon-btn:hover { background: rgba(127,127,127,.12); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: .85rem; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B74' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11,11,12,.07); }
.input.is-invalid { border-color: var(--red); }
.field-error { color: var(--red); font-size: .82rem; font-weight: 700; margin: 6px 0 0; }
.input-group { position: relative; }
.input-group .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.15rem; color: var(--muted); }
.input-sm { min-height: 40px; padding: 8px 12px; font-size: 15px; border-radius: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 1px; flex: none; }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.inline-form { display: inline; }
fieldset { border: 0; padding: 0; margin: 0; }

/* Choice cards (radio as card) */
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.choice:hover .choice-body { border-color: #bdbdc4; }
.choice input:checked + .choice-body { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,10,23,.12); background: #fff; }
.choice input:focus-visible + .choice-body { outline: 3px solid rgba(225,10,23,.35); }
.choice-radio { width: 22px; height: 22px; border: 2px solid #c9c9cf; border-radius: 50%; flex: none; display: grid; place-items: center; transition: border-color .15s; }
.choice input:checked + .choice-body .choice-radio { border-color: var(--red); }
.choice input:checked + .choice-body .choice-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.choice-title { font-weight: 800; }
.choice-sub { font-size: .85rem; color: var(--muted); }
.choice-price { margin-left: auto; text-align: right; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.choice-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--red); color: #fff; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }

/* Drop zone */
.dropzone { position: relative; display: block; border: 2px dashed #cfcfd6; border-radius: var(--radius-lg); padding: 26px 18px; text-align: center; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--red); background: var(--red-50); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone i { font-size: 2rem; color: var(--red); }
.dropzone strong { display: block; margin-top: 6px; }
.dropzone small { color: var(--muted); }
.dropzone-preview { margin-top: 12px; display: none; }
.dropzone-preview.has-file { display: block; }
.dropzone-preview img, .dropzone-preview video { max-height: 200px; margin: 0 auto; border-radius: 10px; }
.dropzone-name { font-size: .85rem; font-weight: 700; margin-top: 8px; word-break: break-all; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { font-size: 1.02rem; font-weight: 800; margin: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-head { padding: 18px 20px 0; }
.card-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-red { background: var(--red); color: #fff; border-color: var(--red); }
.card-link { display: block; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card-link:hover { border-color: #c9c9cf; box-shadow: var(--shadow); }
@media (max-width: 719px) { .card { padding: 16px; border-radius: 18px; } }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; letter-spacing: .01em; }
.badge-gray { background: var(--line-2); color: var(--gray-700); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-blue { background: var(--blue-50); color: var(--blue); }
.badge-red { background: var(--red-50); color: var(--red); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(15,157,78,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(15,157,78,0); } 100% { box-shadow: 0 0 0 0 rgba(15,157,78,0); } }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--red); color: #fff; }
.count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line-2); transition: background .12s; }
.list-item:first-child { border-top: 0; }
a.list-item:hover { background: #fafafb; }
.list-item .li-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); font-size: 1.25rem; flex: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-sub { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-end { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.list-item .ri-arrow-right-s-line { color: #b4b4bb; font-size: 1.3rem; }
@media (max-width: 719px) { .list-item { padding: 13px 16px; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: right; word-break: break-word; }

/* ---------- Tables (become cards on phones) ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 12px 16px; 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:hover { background: #fafafb; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  .table-cards td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table-cards td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: .8rem; text-align: left; }
  .table-cards td.td-main { display: block; text-align: left; font-size: 1rem; margin-bottom: 4px; }
  .table-cards td.td-main::before { display: none; }
  .table-cards .num { text-align: right; }
}

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(520px, calc(100% - 24px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-lg); animation: toast-in .25s ease; }
.toast i { font-size: 1.3rem; }
.toast-success i { color: #3ddc84; }
.toast-error { background: var(--red); }
.toast-x { margin-left: auto; background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .7; padding: 0 4px; }
.toast.is-hiding { opacity: 0; transform: translateY(-8px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-size: .92rem; margin-bottom: 16px; }
.alert i { font-size: 1.3rem; flex: none; line-height: 1.2; }
.alert-red { background: var(--red-50); color: #8f0610; }
.alert-amber { background: var(--amber-50); color: #7a4800; }
.alert-blue { background: var(--blue-50); color: #133f96; }
.alert-green { background: var(--green-50); color: #0a6a35; }
.alert-gray { background: var(--bg); color: var(--gray-700); }
.alert strong { display: block; }
.alert .btn { margin-top: 10px; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 40px 20px; }
.empty > i { font-size: 2.6rem; color: #c3c3ca; }
.empty h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.empty p { color: var(--muted); max-width: 360px; margin: 0 auto 18px; }

/* ---------- Stats ---------- */
.stat { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat > i { position: absolute; top: 14px; right: 14px; font-size: 1.25rem; color: var(--red); }
.stat-label { font-size: .78rem; font-weight: 700; color: var(--muted); padding-right: 26px; }
.stat-value { font-family: var(--display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: .78rem; color: var(--muted); }
.stats-dark .stat { background: var(--ink-2); border-color: var(--ink-3); color: #fff; }
.stats-dark .stat-label, .stats-dark .stat-sub { color: #a7a7af; }

/* ---------- Progress ---------- */
.progress { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--red); border-radius: inherit; transition: width .6s ease; }
.card-dark .progress { background: rgba(255,255,255,.14); }
.ring { --p: 0; --size: 92px; width: var(--size); height: var(--size); border-radius: 50%; background: conic-gradient(var(--red) calc(var(--p) * 1%), rgba(255,255,255,.14) 0); display: grid; place-items: center; flex: none; }
.ring-light { background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--line-2) 0); }
.ring > div { width: calc(var(--size) - 16px); height: calc(var(--size) - 16px); border-radius: 50%; background: var(--ink); display: grid; place-items: center; text-align: center; line-height: 1.05; }
.ring-light > div { background: #fff; }
.ring strong { font-family: var(--display); font-size: 1.5rem; font-weight: 800; display: block; }
.ring small { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; font-weight: 700; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.timeline li.is-key::after { border-color: var(--red); }
.timeline .tl-msg { font-weight: 700; font-size: .92rem; }
.timeline .tl-time { font-size: .78rem; color: var(--muted); }

/* Status stepper */
.steps-bar { display: flex; gap: 6px; margin: 4px 0 2px; }
.steps-bar span { flex: 1; height: 5px; border-radius: 999px; background: rgba(255,255,255,.16); }
.steps-bar span.done { background: var(--red); }
.steps-labels { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #9b9ba3; margin-top: 8px; }
.steps-labels .on { color: #fff; }

/* ---------- Tabs (segmented) ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; padding: 9px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem; background: #fff; border: 1px solid var(--line); color: var(--gray-700); white-space: nowrap; cursor: pointer; }
.tabs a.is-active, .tabs button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs .count { margin-left: 6px; background: var(--red); height: 18px; min-width: 18px; font-size: .68rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }

.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: .9rem; flex: none; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }

/* ---------- Search bar ---------- */
.searchbar { display: flex; gap: 8px; margin-bottom: 14px; }
.searchbar .input { min-height: 46px; }
.searchbar .search-input { position: relative; flex: 1; }
.searchbar .search-input i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchbar .search-input .input { padding-left: 40px; }

/* =========================================================
   PUBLIC WEBSITE
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(11,11,12,.06); padding-top: var(--safe-t); }
.nav { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand img { height: 44px; width: auto; }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .92rem; color: var(--gray-700); }
.nav-links a:hover { color: var(--ink); background: var(--bg); }
.nav-links a.is-active { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-toggle { width: 44px; height: 44px; border: 0; background: var(--bg); border-radius: 12px; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
@media (min-width: 1040px) { .nav-links { display: flex; } .nav-cta { margin-left: 8px; } .nav-toggle { display: none; } }
.mobile-menu { position: fixed; inset: calc(70px + var(--safe-t)) 0 0 0; background: #fff; z-index: 49; padding: 16px 16px calc(24px + var(--safe-b)); overflow-y: auto; animation: menu-in .2s ease; display: flex; flex-direction: column; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.mobile-menu nav a { display: flex; align-items: center; gap: 14px; padding: 15px 6px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: -.01em; border-bottom: 1px solid var(--line-2); }
.mobile-menu nav a i { color: var(--red); font-size: 1.3rem; }
.mobile-menu nav a.is-active { color: var(--red); }
.mobile-menu-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
body.menu-open { overflow: hidden; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); padding: 28px 0 0; }
.hero-grid { display: grid; gap: 20px; align-items: center; }
.hero-badges { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-badges span { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; }
.hero-badges span:nth-child(2) { background: var(--red); }
.hero-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.7rem, 10.5vw, 5.6rem); line-height: .9; letter-spacing: -.035em; margin: 0 0 14px; }
.hero-title .red { display: block; }
.hero-tag { font-family: var(--display); font-weight: 700; letter-spacing: .32em; text-transform: uppercase; font-size: clamp(.82rem, 2.4vw, 1.05rem); margin-bottom: 18px; position: relative; padding-top: 16px; }
.hero-tag::before { content: ''; position: absolute; top: 0; left: 0; width: 64px; height: 4px; background: var(--red); border-radius: 2px; }
.hero-copy { color: var(--gray-700); font-size: 1.08rem; max-width: 520px; margin-bottom: 22px; }
.hero-price { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 22px; font-weight: 700; color: var(--muted); }
.hero-price strong { font-family: var(--display); color: var(--ink); font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em; }
.hero-visual { position: relative; margin: 0 -16px; }
.hero-visual img { width: 100%; height: auto; }
.hero-visual::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background: linear-gradient(transparent, #f6f6f7); pointer-events: none; }
.hero-slash { position: absolute; right: -60px; top: 80px; width: 260px; height: 520px; background: var(--red); transform: skewX(-28deg); opacity: .95; z-index: 0; display: none; }
@media (min-width: 960px) {
  .hero { padding: 56px 0 0; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 0; }
  .hero-grid > :first-child { position: relative; z-index: 2; }
  .hero-title { font-size: clamp(3rem, 5.4vw, 4.7rem); }
  .hero-visual { margin: 0 -80px 0 -24px; z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
  .hero-visual::after { display: none; }
  .hero-slash { display: block; }
}
.hero-trust { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: 18px; }
.hero-trust i { color: var(--red); font-size: 1.1rem; }

/* Feature trio (flyer icons) */
.trio { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 0; } .trio .trio-item + .trio-item { border-left: 1px solid var(--line); } }
.trio-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
@media (min-width: 720px) { .trio-item { flex-direction: column; align-items: center; text-align: center; border: 0; border-radius: 0; padding: 8px 28px; background: transparent; } }
.icon-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.7rem; flex: none; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line); }
.trio-item h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.05rem; margin: 2px 0 4px; letter-spacing: -.01em; }
.trio-item p { margin: 0; color: var(--gray-700); font-size: .95rem; }

/* Pricing */
.pricing { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pricing { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
.price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-head { background: var(--ink); color: #fff; padding: 14px 16px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: .9rem; letter-spacing: .02em; text-align: center; min-height: 54px; display: grid; place-items: center; }
.price-card.is-featured .price-head { background: var(--red); }
.price-body { padding: 20px 18px 18px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.price { font-family: var(--display); font-weight: 900; color: var(--red); font-size: 2.6rem; letter-spacing: -.03em; line-height: 1; margin-bottom: 4px; }
.price sup { font-size: .45em; vertical-align: .9em; margin-right: 1px; }
.price .cents { font-size: .45em; vertical-align: .9em; }
.price-per { font-size: .8rem; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.price-tagline { font-size: .92rem; color: var(--gray-700); margin-bottom: 14px; }
.price-feats { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; font-size: .86rem; display: grid; gap: 7px; }
.price-feats li { display: flex; gap: 8px; }
.price-feats i { color: var(--red); }
.price-body .btn { margin-top: auto; }
.price-flag { font-size: .65rem; letter-spacing: .12em; background: #fff; color: var(--red); padding: 2px 7px; border-radius: 5px; margin-top: 4px; display: inline-block; }
@media (max-width: 639px) {
  .pricing-compact .price-card { flex-direction: row; align-items: stretch; }
  .pricing-compact .price-head { writing-mode: initial; min-width: 108px; font-size: .78rem; padding: 12px; }
  .pricing-compact .price-body { flex-direction: row; align-items: center; text-align: left; padding: 14px; gap: 12px; }
  .pricing-compact .price { font-size: 1.9rem; margin: 0; }
  .pricing-compact .price-tagline, .pricing-compact .price-feats, .pricing-compact .price-per { display: none; }
  .pricing-compact .price-body .btn { margin: 0 0 0 auto; min-height: 42px; padding: 0 14px; }
}
.price-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 18px; }

/* Steps */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 22px; border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--ink-3); }
.step-num { font-family: var(--display); font-weight: 900; font-size: 2.4rem; color: var(--red); line-height: 1; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; font-weight: 800; color: #fff; }
.step p { color: #a9a9b1; margin: 0; font-size: .93rem; }
.section-gray .step, .section:not(.section-dark) .step { background: #fff; border-color: var(--line); }
.section:not(.section-dark) .step h3 { color: var(--ink); }
.section:not(.section-dark) .step p { color: var(--gray-700); }

/* Split / media */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split-rev > :first-child { order: 2; } }
.media-frame { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ink); }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li i { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; font-size: .95rem; margin-top: 1px; }
.section-dark .check-list li { color: #e9e9ec; }

/* Phone mock (app preview) */
.phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 40px; background: #000; padding: 10px; box-shadow: var(--shadow-lg), 0 0 0 1px #2a2a2e inset; }
.phone-screen { border-radius: 31px; overflow: hidden; background: var(--bg); color: var(--ink); }
.phone-top { background: var(--ink); color: #fff; padding: 22px 16px 16px; }
.phone-top small { color: #9c9ca4; font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.phone-top h4 { margin: 2px 0 12px; font-size: 1.05rem; }
.phone-body { padding: 12px; display: grid; gap: 8px; }
.phone-row { background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 700; }
.phone-row span:last-child { font-family: var(--display); font-weight: 800; }
.phone-tabs { display: flex; justify-content: space-around; padding: 10px 6px 14px; background: #fff; border-top: 1px solid var(--line); color: #9c9ca4; font-size: 1.2rem; }
.phone-tabs .on { color: var(--red); }

/* Service tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.tile { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile > i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--red-50); color: var(--red); font-size: 1.45rem; margin-bottom: 14px; }
.tile h3 { font-size: 1.08rem; font-weight: 800; }
.tile p { color: var(--gray-700); font-size: .94rem; margin-bottom: 12px; }
.tile .link { margin-top: auto; font-size: .9rem; }
.tile-feature { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile-feature p { color: #b9b9c0; }
.tile-feature > i { background: var(--red); color: #fff; }

/* Logos */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px; }
.logos img { height: 46px; width: auto; filter: grayscale(1); opacity: .65; transition: .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: 34px 22px; }
.cta-band::after { content: ''; position: absolute; right: -40px; top: -40px; bottom: -40px; width: 120px; background: var(--red); transform: skewX(-24deg); }
.cta-band > * { position: relative; z-index: 1; }
.cta-phone { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -.02em; line-height: 1; display: inline-flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.cta-phone i { width: 56px; height: 56px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 1.6rem; }
@media (min-width: 900px) { .cta-band { padding: 48px 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; } .cta-band::after { width: 200px; right: -60px; } .cta-band .btn-row { margin-right: 120px; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 800; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: .8; color: var(--red); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--gray-700); margin: 0 0 18px; }

/* Page hero (inner pages) */
.page-hero { background: var(--ink); color: #fff; padding: 52px 0 46px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: 0; bottom: 0; width: 160px; background: var(--red); transform: skewX(-24deg); opacity: .95; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { color: #c4c4cb; max-width: 620px; margin-bottom: 0; }
@media (min-width: 900px) { .page-hero { padding: 84px 0 72px; } .page-hero::after { width: 260px; right: -60px; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--gray-700); }

/* Contact */
.contact-cards { display: grid; gap: 10px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.contact-card i { width: 46px; height: 46px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.contact-card small { display: block; color: var(--muted); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.contact-card strong { word-break: break-word; }
.map { border: 0; width: 100%; height: 280px; border-radius: var(--radius-lg); filter: grayscale(.4); }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 56px 0 calc(28px + var(--tabbar-h) + var(--safe-b)); }
@media (min-width: 900px) { .site-footer { padding-bottom: 28px; } }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-grid h4 { font-family: var(--display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: #8d8d95; margin-bottom: 14px; }
.footer-grid a, .footer-grid span { display: flex; align-items: center; gap: 8px; color: #dcdce0; font-size: .93rem; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-grid img { height: 44px; width: auto; margin-bottom: 14px; }
.muted-light { color: #9d9da5; font-size: .93rem; max-width: 320px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: var(--ink-3); display: grid !important; place-items: center; font-size: 1.15rem; padding: 0 !important; }
.socials a:hover { background: var(--red); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--ink-3); margin-top: 40px; padding-top: 20px; color: #85858d; font-size: .82rem; }

/* =========================================================
   TAB BAR (mobile app navigation)
   ========================================================= */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-around; align-items: stretch; height: calc(var(--tabbar-h) + var(--safe-b)); padding: 0 6px var(--safe-b); background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-top: 1px solid var(--line); }
.tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8b8b93; font-size: .68rem; font-weight: 800; letter-spacing: .01em; }
.tabbar a i { font-size: 1.45rem; line-height: 1; }
.tabbar a.is-active { color: var(--ink); }
.tabbar a.is-active i { color: var(--red); }
.tabbar a.is-active i::before { font-weight: normal; }
.tabbar .tab-fab { flex: none; width: 56px; height: 56px; margin: -18px 6px 0; border-radius: 18px; background: var(--red); color: #fff; box-shadow: 0 10px 22px -8px rgba(225,10,23,.8); align-self: flex-start; }
.tabbar .tab-fab i { font-size: 1.7rem; color: #fff; }
.tabbar .dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .62rem; display: grid; place-items: center; border: 2px solid #fff; }
.tabbar-site { display: flex; }
@media (min-width: 900px) { .tabbar-site { display: none; } }
body.site { padding-bottom: 0; }

/* =========================================================
   APP / ADMIN SHELL
   ========================================================= */
body.shell { background: var(--bg); min-height: 100vh; }
.sidebar { display: none; }
.shell-main { min-height: 100vh; padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 20px); }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 10px; background: var(--ink); color: #fff; min-height: calc(62px + var(--safe-t)); }
.topbar-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: none; }
.topbar-mark img { width: 34px; height: auto; }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 1.08rem; font-weight: 800; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.005em; }
.topbar-title p { margin: 0; font-size: .78rem; color: #a3a3ab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; gap: 6px; align-items: center; }
.topbar-actions .btn { min-height: 38px; padding: 0 12px; font-size: .84rem; }
.topbar .icon-btn:hover { background: rgba(255,255,255,.1); }
.content { padding: 16px; max-width: 1200px; margin: 0 auto; }
.content > .toasts { position: fixed; }
.page-intro { margin-bottom: 18px; }

@media (min-width: 1024px) {
  .tabbar:not(.tabbar-site) { display: none; }
  .sidebar { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: 256px; background: var(--ink); color: #fff; padding: 22px 14px 16px; z-index: 50; overflow-y: auto; }
  .shell-main { margin-left: 256px; padding-bottom: 40px; }
  .topbar { background: rgba(245,245,247,.9); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 18px 28px; border-bottom: 1px solid var(--line); }
  .topbar-title h1 { font-size: 1.35rem; }
  .topbar-title p { color: var(--muted); }
  .topbar-mark { display: none; }
  .topbar .icon-btn:hover { background: rgba(11,11,12,.06); }
  .content { padding: 24px 28px; }
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.sidebar-brand img { height: 40px; width: auto; }
.sidebar-new { margin-bottom: 16px; }
.sidebar-nav { display: grid; gap: 2px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #b4b4bc; font-weight: 700; font-size: .93rem; }
.sidebar-nav a i { font-size: 1.25rem; }
.sidebar-nav a:hover { background: var(--ink-2); color: #fff; }
.sidebar-nav a.is-active { background: var(--ink-3); color: #fff; }
.sidebar-nav a.is-active i { color: var(--red); }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ink-3); display: grid; gap: 2px; }
.sidebar-user { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; margin-bottom: 6px; }
.sidebar-user:hover { background: var(--ink-2); }
.sidebar-user strong { display: block; font-size: .9rem; }
.sidebar-user small { display: block; color: #8d8d95; font-size: .76rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; color: #a3a3ab; font-weight: 700; font-size: .86rem; background: none; border: 0; cursor: pointer; text-align: left; }
.sidebar-link:hover { color: #fff; background: var(--ink-2); }

/* Hero card in app (dark, red accents) */
.hero-card { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: 20px; position: relative; overflow: hidden; }
.hero-card::after { content: ''; position: absolute; right: -50px; top: -20px; width: 90px; height: 200%; background: var(--red); transform: skewX(-24deg); opacity: .9; }
.hero-card > * { position: relative; z-index: 1; }
.hero-card .muted { color: #a3a3ab; }
.hero-card h2 { font-size: 1.3rem; font-weight: 800; }
.greeting { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1; margin-bottom: 6px; }

/* Campaign card */
.camp { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; transition: border-color .15s, box-shadow .15s; }
.camp:hover { border-color: #c9c9cf; box-shadow: var(--shadow); }
.camp + .camp { margin-top: 10px; }
.camp-top { display: flex; align-items: flex-start; gap: 12px; }
.camp-thumb { width: 64px; height: 44px; border-radius: 8px; background: var(--ink) center/cover no-repeat; flex: none; display: grid; place-items: center; color: #555; overflow: hidden; }
.camp-thumb img, .camp-thumb video { width: 100%; height: 100%; object-fit: cover; }
.camp-title { font-weight: 800; line-height: 1.25; }
.camp-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.camp-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.camp-foot .progress { flex: 1; }

/* Creative (ad artwork) */
.screen-frame { background: #0e0e10; border-radius: 14px; padding: 10px; box-shadow: inset 0 0 0 1px #2a2a2e; }
.screen-frame .creative { width: 100%; max-height: 360px; object-fit: contain; border-radius: 6px; background: #000; margin: 0 auto; }
.creative-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.thumbs .creative { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: #000; }

/* Bar chart (pure CSS) */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.bars .bar { flex: 1; min-width: 4px; background: var(--red); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; opacity: .88; transition: opacity .15s; }
.bars .bar:hover { opacity: 1; }
.bars .bar.is-dim { background: #d9d9de; }
.bars-x { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: 6px; font-weight: 700; }
.card-dark .bars .bar.is-dim { background: var(--ink-3); }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 12px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .94rem; line-height: 1.45; word-wrap: break-word; }
.msg-body { display: block; white-space: pre-wrap; }
.msg-time { display: block; font-size: .7rem; margin-top: 4px; opacity: .6; }
.msg-me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg-them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-tag { display: table; font-size: .7rem; font-weight: 800; background: rgba(127,127,127,.18); border-radius: 6px; padding: 1px 6px; margin-bottom: 4px; }
.chat-day { align-self: center; font-size: .72rem; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin: 8px 0; }
.composer { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b)); background: var(--bg); padding: 10px 0 12px; display: flex; gap: 8px; align-items: flex-end; }
.composer .textarea { min-height: 50px; max-height: 160px; border-radius: 24px; padding: 13px 18px; resize: none; }
.composer .btn { border-radius: 50%; width: 50px; min-height: 50px; padding: 0; flex: none; }
@media (min-width: 1024px) { .composer { bottom: 0; } }

/* Install banner */
.install-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 16px; }
.install-card img { width: 46px; height: 46px; border-radius: 12px; }
.install-card .grow strong { display: block; font-size: .95rem; }
.install-card .grow span { font-size: .82rem; color: var(--muted); }

/* Sheet / modal */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(11,11,12,.45); z-index: 90; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); max-height: 88vh; overflow-y: auto; animation: sheet-up .22s ease; }
.sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: #d4d4d9; margin: 0 auto 16px; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } }
@media (min-width: 720px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 24px; padding-bottom: 24px; } }

/* Menu grid (admin "More", account page) */
.menu-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-top: 1px solid var(--line-2); font-weight: 700; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; text-align: left; font-size: 1rem; }
.menu-list > :first-child, .menu-list form:first-child button { border-top: 0; }
.menu-list a > i:first-child, .menu-list button > i:first-child { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 1.15rem; }
.menu-list a > .ri-arrow-right-s-line { margin-left: auto; color: #b4b4bb; font-size: 1.3rem; }
.menu-list .count { margin-left: auto; }
.menu-list a:hover { background: #fafafb; }
.menu-title { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 4px 8px; }

/* Order summary */
.summary { display: grid; gap: 10px; font-size: .95rem; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; }
.summary-total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 800; font-size: 1.15rem; }
.pay-option { margin-bottom: 10px; }
.pay-logos { display: flex; gap: 6px; font-size: 1.4rem; color: var(--gray-700); }
.copy-field { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 12px; padding: 10px 12px; font-weight: 800; }
.copy-field span { flex: 1; min-width: 0; word-break: break-all; }

/* Auth */
body.auth { background: #fff; }
.auth-wrap { min-height: 100vh; display: grid; }
.auth-side { display: none; }
.auth-main { display: flex; flex-direction: column; align-items: center; padding: calc(28px + var(--safe-t)) 18px calc(28px + var(--safe-b)); }
.auth-logo img { height: 54px; width: auto; margin-bottom: 26px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .toasts { position: static; transform: none; width: 100%; margin-bottom: 14px; }
.auth-card h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.auth-foot { text-align: center; color: var(--muted); margin-top: 22px; font-size: .94rem; }
.auth-admin .auth-side { background: var(--ink-2); }
@media (min-width: 960px) {
  .auth-wrap { grid-template-columns: 1fr 1fr; }
  .auth-side { display: flex; background: var(--ink); color: #fff; position: relative; overflow: hidden; align-items: center; padding: 48px; }
  .auth-side::after { content: ''; position: absolute; right: -90px; top: 0; bottom: 0; width: 180px; background: var(--red); transform: skewX(-22deg); }
  .auth-side-inner { position: relative; z-index: 1; max-width: 520px; }
  .auth-side h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 3rem; line-height: .95; letter-spacing: -.03em; margin: 34px 0 14px; }
  .auth-side h2 span { color: var(--red); }
  .auth-side p { color: #b9b9c0; font-size: 1.05rem; }
  .auth-car { margin-top: 30px; border-radius: 18px; }
  .auth-main { justify-content: center; }
  .auth-logo { display: none; }
}

/* Invoice */
.invoice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; max-width: 820px; margin: 0 auto; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 4px solid var(--red); padding-bottom: 18px; margin-bottom: 22px; }
.invoice-head img { height: 52px; width: auto; }
.invoice h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; margin: 0; }
.invoice .table th, .invoice .table td { padding-left: 0; padding-right: 0; }
.stamp { display: inline-block; border: 3px solid var(--green); color: var(--green); font-family: var(--display); font-weight: 900; padding: 4px 12px; border-radius: 8px; transform: rotate(-6deg); letter-spacing: .1em; }
.stamp-unpaid { border-color: var(--amber); color: var(--amber); }
@media print {
  body.shell { background: #fff; }
  .sidebar, .topbar, .tabbar, .no-print, .toasts { display: none !important; }
  .shell-main { margin: 0 !important; padding: 0 !important; }
  .content { padding: 0 !important; max-width: none; }
  .invoice { border: 0; padding: 0; }
}

/* Misc */
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; font-weight: 700; margin: 18px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.notice-test { background: var(--amber-50); color: var(--amber); font-weight: 800; font-size: .78rem; padding: 6px 10px; border-radius: 8px; display: inline-block; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--bg); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.text-right { text-align: right; }
.w-100 { width: 100%; }
details.inline-edit > summary { list-style: none; cursor: pointer; }
details.inline-edit > summary::-webkit-details-marker { display: none; }
.color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.d-block { display: block; }
.card + .alert, .alert + .card { margin-top: 16px; }
.kv + .summary { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* Messages: photos, shared ads, approved-ads gallery */
.msg-photo { display: block; width: 180px; max-width: 100%; margin: 0 0 6px; border-radius: 12px; overflow: hidden; background: rgba(127,127,127,.15); }
.msg-photo img, .msg-photo video { display: block; width: 100%; height: 120px; object-fit: cover; }
.msg:has(.msg-photo) { padding: 6px 6px 8px; }
.msg:has(.msg-photo) .msg-body, .msg:has(.msg-photo) .msg-time, .msg:has(.msg-photo) .msg-tag { padding: 0 6px; }
.attach-btn { border-radius: 50%; width: 50px; min-height: 50px; padding: 0; flex: none; font-size: 1.25rem; }
.composer.has-file { flex-wrap: wrap; }
.attach-preview { flex: 1 1 100%; order: -1; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 8px; }
.attach-preview[hidden] { display: none; }
.attach-preview img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.attach-preview span { flex: 1; font-size: .85rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; }
.ad-tile { flex: none; width: 180px; margin: 0; scroll-snap-align: start; }
.ad-tile a { display: block; border-radius: 10px; overflow: hidden; background: #111; aspect-ratio: 3 / 1; }
.ad-tile img, .ad-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-tile figcaption { display: flex; flex-direction: column; margin: 6px 0; font-size: .8rem; font-weight: 700; line-height: 1.3; }
.ad-tile figcaption small { color: var(--muted); font-weight: 600; }
.ad-tile .btn { width: 100%; }

/* ---------- Showcase: real client ads on the homepage ---------- */
.showcase { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .showcase { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.show-item { margin: 0; background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.show-media { aspect-ratio: 3 / 1; background: #000; }
.show-media img, .show-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; color: #fff; }
.show-item figcaption strong { font-size: .98rem; font-weight: 800; }
.show-item figcaption span { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }

/* ---------- Phones: cleaner, aligned public pages ---------- */
@media (max-width: 719px) {
  .site .section { padding: 44px 0; }
  .site .section-sm { padding: 28px 0; }
  .site .section-head { margin-bottom: 22px; }
  .hero { padding-top: 20px; }
  .hero-badges { flex-wrap: nowrap; gap: 6px; margin-bottom: 14px; }
  .hero-badges span { font-size: .58rem; letter-spacing: .1em; padding: 5px 7px; white-space: nowrap; }
  .hero-copy { font-size: 1rem; margin-bottom: 16px; }
  .site .btn-row > .btn { flex: 1 1 100%; justify-content: center; }
  .hero-trust { font-size: .8rem; }
  .hero-visual { margin: 6px -16px 0; }
  /* pricing rows: equal columns so every row lines up */
  .pricing-compact .price-head { flex: 0 0 36%; min-width: 0; font-size: .72rem; line-height: 1.25; text-align: center; padding: 10px 8px; }
  .pricing-compact .price-body { padding: 10px 12px; gap: 8px; }
  .pricing-compact .price { font-size: 1.6rem; flex: 1; }
  .pricing-compact .price-body .btn { flex: 0 0 92px; min-height: 40px; padding: 0; justify-content: center; }
  /* steps & tiles: two compact columns instead of a long single column */
  .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step { padding: 16px 14px; }
  .step-num { font-size: 1.6rem !important; margin-bottom: 6px !important; }
  .step h3 { font-size: .95rem; }
  .step p { font-size: .82rem; line-height: 1.45; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; }
  .tile > i { width: 38px; height: 38px; font-size: 1.15rem; margin-bottom: 10px; border-radius: 10px; }
  .tile h3 { font-size: .9rem; line-height: 1.25; }
  .tile p { display: none; }
  .tile .link { font-size: .8rem; }
  .tile-feature { grid-column: 1 / -1; }
  .tile-feature p { display: block; font-size: .86rem; }
  .cta-band { padding: 26px 18px; }
  .cta-band::after { width: 46px; right: -26px; }
  .cta-phone { font-size: 1.9rem !important; }
  .split { gap: 28px; }
}

.composer .textarea { flex: 1 1 0; min-width: 0; }
.composer .attach-btn, .composer > .btn { flex: 0 0 auto; }

/* Showcase strip: compact, one row, auto-scrolls when there are many clients */
.showcase-band { padding: 26px 0 30px; overflow: hidden; }
.sc-band { padding: 18px 0 20px; }
.sc-label { margin: 0 0 10px; font-family: var(--display); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-700); text-align: center; }
.sc-strip { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sc-strip::-webkit-scrollbar { display: none; }
.sc-track { display: flex; gap: 10px; padding: 0 16px; width: max-content; }
.sc-strip:not(.is-scrolling) .sc-track { margin: 0 auto; }
.sc-strip.is-scrolling { overflow: hidden; }
.sc-strip.is-scrolling .sc-track { animation: sc-move calc(var(--n) * 4s) linear infinite; }
.sc-strip.is-scrolling:hover .sc-track { animation-play-state: paused; }
@keyframes sc-move { to { transform: translateX(calc(-50% - 5px)); } }
.sc-tile { flex: none; width: 150px; aspect-ratio: 3 / 1; border-radius: 6px; overflow: hidden; background: #111; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.sc-tile img, .sc-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .sc-tile { width: 180px; } }
@media (prefers-reduced-motion: reduce) { .sc-strip.is-scrolling { overflow-x: auto; } .sc-strip.is-scrolling .sc-track { animation: none; } }

.ads-bar summary::-webkit-details-marker { display: none; }
.ads-bar[open] summary .ri-arrow-down-s-line { transform: rotate(180deg); }
.media-thumb:active { opacity: .85; }

@media (min-width: 960px) { .grid-4.dash-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .grid-4.dash-stats { grid-template-columns: repeat(5, 1fr); } }

/* Branded confirm dialog */
.ao-modal{position:fixed;inset:0;z-index:2000;background:rgba(11,11,12,.45);display:flex;align-items:center;justify-content:center;padding:16px;opacity:0;transition:opacity .15s}
.ao-modal.is-open{opacity:1}
.ao-modal-box{background:#fff;border-radius:16px;max-width:400px;width:100%;padding:24px 22px 18px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.25);transform:translateY(8px) scale(.98);transition:transform .15s}
.ao-modal.is-open .ao-modal-box{transform:none}
.ao-modal-icon{width:48px;height:48px;border-radius:50%;background:var(--red-50);color:var(--red);display:flex;align-items:center;justify-content:center;font-size:24px;margin:0 auto 12px}
.ao-modal-box h3{font-family:var(--display);font-weight:800;font-size:1.15rem;margin:0 0 6px}
.ao-modal-box p{color:var(--gray-700);font-size:.95rem;line-height:1.45;margin:0 0 18px}
.ao-modal-btns{display:flex;gap:8px}
.ao-modal-btns .btn{flex:1}
.btn-danger{background:var(--red);color:#fff}
