/* Oranje Lead — web app styles. Colour, type and radius tokens come from
   themes.css (generated from the mobile app's themes), so every theme and
   dark mode the app offers works here too. */

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--appBg);
  color: var(--text1);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: var(--fw-display-extra); letter-spacing: -0.01em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-display-bold); margin: 0; line-height: 1.25; }
h1 { font-size: 26px; font-weight: var(--fw-display-extra); }
h2 { font-size: 18px; }
h3 { font-size: 15.5px; }
p { margin: 0; }
.muted { color: var(--text2); }
.faint { color: var(--text3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 700; }
.danger-text { color: var(--danger); }
.success-text { color: var(--success); }
.label { display: block; font-weight: 600; font-size: 12.5px; color: var(--text2); margin-bottom: 7px; }
.label .optional { font-weight: 500; color: var(--text3); margin-left: 6px; }
.label .req { color: var(--danger); }
.section-title { font-family: var(--font-display); font-weight: var(--fw-display-bold); font-size: 16px; margin: 0 0 12px; }
.group-label { font-weight: 700; font-size: 12.5px; color: var(--text2); margin: 24px 0 10px; }

/* ---------- app shell ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--navyDeep); color: #fff; display: flex; flex-direction: column; padding: 22px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; background: #fff; }
.brand span { font-family: var(--font-display); font-weight: var(--fw-display-extra); font-size: 17px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  color: rgba(255,255,255,0.62); font-weight: 600;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav a.active .icon { color: var(--violet); }
.nav .badge-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.side-wallet { margin-top: auto; background: rgba(255,255,255,0.06); border-radius: 16px; padding: 16px; }
.side-wallet .tiny { color: rgba(255,255,255,0.55); }
.side-wallet .amount { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: var(--fw-display-extra); font-size: 26px; margin: 2px 0 12px; }
.side-user { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px; border-radius: 12px; color: #fff; }
.side-user:hover { background: rgba(255,255,255,0.06); text-decoration: none; }
.side-user .who { min-width: 0; }
.side-user .who div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--violet); color: #fff; font-family: var(--font-display); font-weight: var(--fw-display-bold);
}

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 14px 32px; background: color-mix(in srgb, var(--appBg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.topbar h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .mobile-brand { display: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; position: relative;
  background: var(--surface); border: 1px solid var(--border); color: var(--text1); flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--violet); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.credit-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: 40px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--text1);
}
.credit-pill:hover { border-color: var(--violet); text-decoration: none; }
.content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px 32px 60px; }
.content.narrow { max-width: 760px; }
.content.medium { max-width: 960px; }

.tabbar { display: none; }

@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .topbar { padding: 10px 16px; }
  .topbar .mobile-brand { display: flex; }
  .topbar .credit-pill { display: none; }
  .content { padding: 18px 16px 120px; }
  .tabbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
    background: var(--navyDeep); border-radius: var(--r-pill); padding: 6px; justify-content: space-around;
    box-shadow: 0 8px 26px color-mix(in srgb, var(--violet) 22%, transparent);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: var(--r-pill);
    color: var(--tabBarInactive); font-size: 10.5px; font-weight: 600;
  }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.active { color: #fff; background: rgba(255,255,255,0.1); }
  .tabbar a.active .icon { color: var(--violet); }
}

/* back link row used on sub-pages */
.back-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: var(--text1); }
.back-btn:hover { background: var(--surface); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px; box-shadow: var(--card-shadow); }
.card + .card { margin-top: 14px; }
:is(.grid-2, .grid-3, .quick-grid, .lead-grid, .tiles, .type-cards, .split, .row) > .card { margin-top: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.card-flush { padding: 0; overflow: hidden; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.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: 16px; }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: stretch; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .home-aside { order: -1; }
  .credits-hero { padding: 20px; }
  .credits-hero .big { font-size: 38px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r-button); font-weight: 700; font-size: 14px; border: 1.5px solid transparent;
  transition: opacity .12s, background-color .12s, border-color .12s; white-space: nowrap; text-decoration: none !important;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: var(--btn-shadow); }
.btn-primary:hover:not(:disabled) { background: var(--violetDark); }
.btn-dark { background: var(--navyDeep); color: #fff; }
.btn-outline { border-color: var(--violet); color: var(--violet); background: transparent; }
.btn-outline:hover:not(:disabled) { background: var(--violetSoft); }
.btn-ghost { border-color: var(--border); color: var(--text1); background: var(--surface); }
.btn-ghost:hover:not(:disabled) { border-color: var(--text3); }
.btn-danger-outline { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-danger-outline:hover:not(:disabled) { background: var(--dangerSoft); }
.btn-amber { background: var(--amberSoft); color: var(--amberDark); border-color: var(--amber); }
.btn-amber-solid { background: var(--amberDark); color: var(--surface); }
.btn-amber-solid:hover:not(:disabled) { opacity: .92; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--r-mini); }
.btn-block { width: 100%; }
.link-btn { color: var(--violet); font-weight: 700; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { color: var(--text3); cursor: default; text-decoration: none; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--violet) 25%, transparent);
  border-top-color: var(--violet); animation: spin .8s linear infinite; display: inline-block;
}
.btn .spinner, .spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.btn-primary .spinner, .btn-dark .spinner { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.input, .textarea, .select {
  width: 100%; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface);
  padding: 12px 15px; font-size: 14.5px; font-weight: 500; color: var(--text1); outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text3); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--violet); }
.input.invalid, .textarea.invalid { border-color: var(--danger); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 6px; font-weight: 600; }
.hint { color: var(--text3); font-size: 12px; margin-top: 7px; line-height: 1.5; }
.phone-row { display: flex; gap: 10px; }
.cc { display: inline-flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 14px; font-weight: 600; background: var(--surface); white-space: nowrap; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-wrap .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: var(--text3); }
.input-prefix { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); padding-left: 14px; }
.input-prefix:focus-within { border-color: var(--violet); }
.input-prefix .input { border: 0; padding-left: 8px; }
.form-error { display: flex; gap: 8px; align-items: flex-start; background: var(--dangerSoft); color: var(--danger); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.form-ok { background: var(--successSoft); color: var(--success); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }

.switch { position: relative; width: 46px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--border); transition: background .15s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--violet); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ---------- chips / pills / badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 12.5px; color: var(--text2);
}
.chip:hover { border-color: var(--text3); }
.chip.active { background: var(--navyDeep); border-color: var(--navyDeep); color: #fff; }
[data-mode="dark"] .chip.active { background: var(--violet); border-color: var(--violet); }
.chip .count { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--appBg); font-size: 11px; text-align: center; color: var(--text2); }
.chip.active .count { background: #fff; color: var(--violet); }
.chip .count.alert { background: var(--dangerSoft); color: var(--danger); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-badge); font-weight: 700; font-size: 11px; white-space: nowrap; }
.b-available { background: var(--successSoft); color: var(--success); }
.b-sold { background: var(--border); color: var(--text2); }
.b-exclusive { background: var(--amberSoft); color: var(--amberDark); }
.b-verified { background: var(--verifiedSoft); color: var(--verifiedDark); }
.b-mobile { background: var(--successSoft); color: var(--success); }
.b-own { background: var(--violetSoft); color: var(--violetDark); }
.pill-soft { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--violetSoft); color: var(--violetDark); font-weight: 600; font-size: 12px; }

.cat-icon {
  display: inline-grid; place-items: center; flex-shrink: 0; border-radius: var(--icon-radius);
  background: var(--cat); color: #fff;
}
[data-theme="slate"] .cat-icon { background: transparent; color: var(--cat); }
.coin {
  display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%;
  background: #F5B72E; border: 2px solid #C98A12; color: #C98A12; font-weight: 800; line-height: 1;
  box-shadow: inset 0 0 0 2px #FFE08A;
}

/* ---------- states ---------- */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 48px 20px; color: var(--text2); }
.state .emoji { font-size: 34px; }
.state h3 { color: var(--text1); }
.state p { max-width: 380px; }
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.notice .icon { margin-top: 1px; }
.notice-info { background: var(--violetSoft); color: var(--text1); }
.notice-info .icon { color: var(--violet); }
.notice-warn { background: var(--warningSoft); color: var(--text1); }
.notice-warn .icon { color: var(--warning); }
.notice-danger { background: var(--dangerSoft); color: var(--text1); }
.notice-danger .icon { color: var(--danger); }
.notice-amber { background: var(--amberSoft); color: var(--text1); }
.notice-amber .icon { color: var(--amberDark); }
.notice-plain { background: var(--surface); border: 1px solid var(--border); color: var(--text2); }

/* ---------- credits hero (the app's dark credits card) ---------- */
.credits-hero {
  position: relative; overflow: hidden; border-radius: calc(var(--r-card) + 6px); color: #fff; padding: 26px 28px;
  background: linear-gradient(135deg, #2E1F16 0%, #150F0B 70%);
}
.credits-hero::after {
  content: ''; position: absolute; right: -80px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--violet) 55%, transparent) 0%, transparent 70%); opacity: .55; pointer-events: none;
}
.credits-hero .lbl { color: rgba(255,255,255,0.62); font-weight: 600; font-size: 13px; }
.credits-hero .big { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: var(--fw-display-extra); font-size: 46px; line-height: 1.05; margin-top: 6px; letter-spacing: -0.02em; }
.credits-hero .stats { display: flex; gap: 0; margin-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
.credits-hero .stat { flex: 1; color: #fff; }
.credits-hero .stat + .stat { border-left: 1px solid rgba(255,255,255,0.1); padding-left: 18px; }
.credits-hero .stat b { display: block; font-family: var(--font-display); font-size: 22px; }
.credits-hero .stat span { color: rgba(255,255,255,0.55); font-size: 12px; }
.credits-hero a.stat:hover { text-decoration: none; }
.credits-hero .btn-light { background: #fff; color: var(--navyDeep); }
.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.12); overflow: hidden; margin: 8px 0 6px; }
.progress > div { height: 100%; background: var(--amber); border-radius: 99px; transition: width .6s ease; }

/* ---------- lead card ---------- */
.lead-card { display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: border-color .12s; }
.lead-card:hover { border-color: color-mix(in srgb, var(--violet) 45%, var(--border)); }
.lead-card .head { display: flex; gap: 12px; }
.lead-card .name { font-family: var(--font-title); font-weight: 700; font-size: 15.5px; color: var(--text1); word-break: break-word; }
.lead-card .meta-line { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text2); margin-top: 3px; }
.lead-card .meta-line .icon { color: var(--text3); }
.lead-card .vertical { font-size: 12.5px; font-weight: 600; color: var(--text2); margin-top: 2px; }
.lead-card .cat { font-size: 12px; color: var(--text3); }
.lead-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-card .desc { color: var(--text2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lead-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text3); }
.lead-card .credits-amt { font-weight: 800; color: var(--violet); font-size: 13.5px; }
.lead-card .actions { display: flex; gap: 8px; }
.lead-card .actions .btn-primary { flex: 1; }
.sq-btn { width: 42px; height: 40px; border-radius: var(--r-mini); display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text2); flex-shrink: 0; }
.sq-btn:hover { border-color: var(--text3); }
.sq-btn.danger { color: var(--danger); background: var(--dangerSoft); border-color: transparent; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ca-btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: var(--r-mini); font-weight: 700; font-size: 12.5px; padding: 0 8px; white-space: nowrap; }
.ca-call { background: #E7F1FE; color: #2563EB; }
.ca-email { background: #FEEEE7; color: #EA580C; }
.ca-wa { background: #E4F9EE; color: #1DA851; }
.ca-ai { background: var(--violetSoft); color: var(--violetDark); }
[data-mode="dark"] .ca-call { background: rgba(37,99,235,.18); color: #8AB4FF; }
[data-mode="dark"] .ca-email { background: rgba(234,88,12,.18); color: #FDBA8C; }
[data-mode="dark"] .ca-wa { background: rgba(29,168,81,.18); color: #6EE7A0; }
.contact-lines { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text2); }
.contact-lines .row { gap: 6px; }

.fu-strip { display: flex; gap: 12px; align-items: center; background: var(--appBg); border-radius: 12px; padding: 10px 12px; text-align: left; width: 100%; }
.fu-strip:hover { outline: 1px solid var(--border); }
.fu-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.fu-action { display: inline-flex; align-items: center; gap: 5px; color: var(--violet); font-weight: 700; font-size: 12.5px; white-space: nowrap; }

/* ---------- banner carousel ---------- */
.banner { position: relative; }
.banner .frame { position: relative; aspect-ratio: 2 / 1; border-radius: var(--r-card); overflow: hidden; background: var(--border); }
.banner .track { display: flex; height: 100%; transition: transform .45s ease; }
.banner .slide { flex: 0 0 100%; height: 100%; position: relative; display: block; }
.banner .slide img { width: 100%; height: 100%; object-fit: cover; }
.banner .cta {
  position: absolute; left: 5.3%; bottom: 9%; max-width: 70%; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 16px; background: var(--violet); color: #fff; font-weight: 700; font-size: 12.5px;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.banner .dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.banner .dots button { height: 6px; width: 6px; border-radius: 3px; background: var(--border); transition: width .2s; }
.banner .dots button.on { width: 18px; background: var(--violet); }

/* ---------- list rows ---------- */
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text1); }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover, button.list-row:hover { background: var(--appBg); text-decoration: none; }
button.list-row { width: 100%; text-align: left; }
.row-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--violetSoft); color: var(--violetDark); flex-shrink: 0; }
.tx-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }

.summary { background: var(--appBg); border-radius: 14px; padding: 12px 14px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text2); padding: 3px 0; }
.summary .line b { color: var(--text1); }
.summary .total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; font-weight: 800; color: var(--text1); font-size: 14.5px; }

.detail-rows .dr { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 13.5px; }
.detail-rows .dr span { color: var(--text2); }
.detail-rows .dr b { text-align: right; font-weight: 600; }
.detail-rows .dr.stacked { flex-direction: column; gap: 3px; }
.detail-rows .dr.stacked b { text-align: left; }

/* ---------- option cards (buy sheet, packages) ---------- */
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--surface); margin-bottom: 10px;
}
.opt:hover:not(:disabled) { border-color: var(--text3); }
.opt.on { border-color: var(--violet); background: var(--violetSoft); }
.opt.on-amber { border-color: var(--amberDark); background: var(--amberSoft); }
.opt:disabled { opacity: .55; cursor: not-allowed; }
.opt .radio { color: var(--border); }
.opt.on .radio { color: var(--violet); }
.opt.on-amber .radio { color: var(--amberDark); }
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.type-card { text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); }
.type-card.on { border-color: var(--violet); background: var(--violetSoft); }
.type-card.excl { border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); }
.type-card.excl.on { border-color: var(--amberDark); background: var(--amberSoft); }
.type-card:disabled { opacity: .55; cursor: not-allowed; }
.type-card .t { font-weight: 800; margin-top: 8px; }
.type-card .p { font-weight: 700; font-size: 13px; }
.type-card .s { font-size: 11.5px; color: var(--text2); margin-top: 2px; }

.seg { display: inline-flex; background: var(--appBg); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--text2); }
.seg button.on { background: var(--surface); color: var(--text1); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,7,30,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface); color: var(--text1); border-radius: 22px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: pop .18s ease;
}
.modal.wide { max-width: 720px; }
.modal.small { max-width: 420px; }
@keyframes pop { from { transform: translateY(12px); opacity: .6; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 4px 20px 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--border); }
.modal-foot .btn { flex: 1; }
@media (max-width: 640px) {
  .overlay { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 22px 22px 0 0; max-height: 92vh; animation: rise .2s ease; padding-bottom: env(safe-area-inset-bottom); }
  @keyframes rise { from { transform: translateY(30px); } }
}
.drawer-overlay { justify-content: flex-end; padding: 0; align-items: stretch; }
.drawer { background: var(--appBg); width: 100%; max-width: 460px; height: 100%; display: flex; flex-direction: column; animation: slide .2s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: .7; } }
@media (max-width: 640px) { .drawer-overlay { align-items: stretch; } .drawer { max-width: none; } }

.alert-msg { white-space: pre-line; color: var(--text2); font-size: 14px; line-height: 1.55; }
.toast-host { position: fixed; z-index: 200; top: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--navyDeep); color: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 600; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; gap: 10px; align-items: flex-start; animation: pop .2s ease; }
.toast.ok .icon { color: #3FCE84; }
.toast.err .icon { color: #F0685C; }
.toast button { margin-left: auto; color: rgba(255,255,255,.7); }

/* picker list rows */
.check-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.check-row .box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border); display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.check-row.on .box { background: var(--violet); border-color: var(--violet); }
.check-row.on .txt { color: var(--violetDark); font-weight: 600; }
.select-field { display: flex; align-items: center; gap: 10px; min-height: 52px; width: 100%; text-align: left; border: 1.5px solid var(--border); border-radius: 14px; padding: 10px 15px; background: var(--surface); }
.select-field:hover { border-color: var(--text3); }
.select-field.invalid { border-color: var(--danger); }
.select-field .ph { color: var(--text3); font-weight: 500; }
.select-field .pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* grid tiles (verticals) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); text-align: center; font-weight: 600; font-size: 12px; color: var(--text2); }
.tile:hover { border-color: var(--text3); }
.tile.on { border-color: var(--violet); background: var(--violetSoft); color: var(--violetDark); }
.tile .tick { position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; }
.tile .grid-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--appBg); display: grid; place-items: center; }

/* profile */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head .avatar { width: 62px; height: 62px; font-size: 24px; box-shadow: 0 0 0 4px var(--violetSoft); }

/* activity */
.activity { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.activity:last-child { border-bottom: 0; }
.activity .a-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--violetSoft); color: var(--violetDark); display: grid; place-items: center; flex-shrink: 0; }

/* auth layout */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art {
  position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #2E1F16 0%, #150F0B 60%);
}
.auth-art::before { content: ''; position: absolute; right: -160px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--violet) 60%, transparent), transparent 68%); opacity: .7; }
.auth-art .pitch { position: relative; max-width: 440px; }
.auth-art .pitch h2 { font-family: var(--font-display); font-weight: var(--fw-display-extra); font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; }
.auth-art .pitch p { color: rgba(255,255,255,.7); margin-top: 14px; font-size: 15px; max-width: 380px; }
.auth-art .facts { position: relative; display: flex; gap: 28px; color: rgba(255,255,255,.75); font-size: 13px; }
.auth-art .facts b { display: block; color: #fff; font-family: var(--font-display); font-size: 15px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form .inner { width: 100%; max-width: 420px; }
.auth-logo { width: 72px; height: 72px; margin: 0 auto 14px; }
.auth-title { text-align: center; margin-bottom: 26px; }
.auth-title h1 { font-size: 24px; }
.auth-title p { color: var(--text2); margin-top: 6px; }
@media (max-width: 900px) {
  .auth { display: block; }
  .auth-art { display: none; }
  .auth-form { padding: 28px 16px 48px; align-items: flex-start; }
}

/* onboarding */
.onboard { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; transition: background .4s; }
.onboard .phone { position: relative; width: min(420px, 100vw); height: min(860px, 100vh); }
.onboard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.onboard .top { position: absolute; top: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; color: #fff; font-weight: 700; }
.onboard .bottom { position: absolute; left: 22px; right: 22px; bottom: 30px; display: flex; align-items: center; justify-content: space-between; }
.onboard .dots { display: flex; gap: 6px; }
.onboard .dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.45); transition: width .2s; }
.onboard .dots span.on { width: 22px; background: #fff; }
.onboard .next { background: #fff; border-radius: 99px; padding: 13px 22px; font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }
.onboard .arrows { position: absolute; top: 50%; left: -70px; right: -70px; display: flex; justify-content: space-between; pointer-events: none; }
.onboard .arrows button { pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; }
@media (max-width: 600px) { .onboard .arrows { display: none; } }

/* misc */
.kbd-search { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); padding: 0 14px; }
.kbd-search:focus-within { border-color: var(--violet); }
.kbd-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; font-weight: 500; }
.kbd-search .icon { color: var(--text3); }
.filter-btn { position: relative; width: 48px; height: 48px; border-radius: 14px; background: var(--navyDeep); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.filter-btn .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); border: 2px solid var(--navyDeep); }
.qa-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.qa-item:last-child { border-bottom: 0; }
.faq { border-bottom: 1px solid var(--border); }
.faq:last-child { border-bottom: 0; }
.faq button { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 15px 18px; text-align: left; font-weight: 600; }
.faq p { padding: 0 18px 16px; color: var(--text2); }
.prose h2 { margin: 26px 0 8px; font-size: 19px; }
.prose h3 { margin: 16px 0 4px; font-size: 14.5px; font-family: var(--font-body); font-weight: 700; }
.prose p { color: var(--text2); max-width: 68ch; }
.city-box { border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); max-height: 240px; overflow-y: auto; }
.city-box .check-row { padding: 11px 14px; }
input[type="range"] { width: 100%; accent-color: var(--violet); }
.footer-bar { position: sticky; bottom: 0; background: color-mix(in srgb, var(--appBg) 92%, transparent); backdrop-filter: blur(10px); padding: 14px 0; margin-top: 18px; border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .footer-bar { bottom: 84px; }
  .sticky-aside { position: static !important; }
}
.preview-box { background: var(--appBg); border-radius: 14px; padding: 14px; white-space: pre-wrap; font-size: 13px; color: var(--text1); }
