/* ===========================================================
   DXB PRO — dashboard (dark, search-first)
   =========================================================== */

.edge {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 30;
  background: linear-gradient(90deg, transparent, var(--gold-500) 30%, var(--gold-300) 50%, var(--gold-500) 70%, transparent);
  opacity: .8;
}

/* ── Shell ─────────────────────────────────────────────── */

.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }

.main { display: flex; flex-direction: column; min-width: 0; }

/* ── Sidebar ───────────────────────────────────────────── */

.side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  background: var(--nav-900);
  border-right: 1px solid var(--line);
}

.side__logo { display: block; padding: 6px 10px 24px; }
.side__logo img { display: block; width: 118px; height: auto; }

.nav { display: grid; gap: 2px; }

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  color: var(--text-mute);
  background: none;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: .16s var(--ease);
}

.nav__item:hover { color: var(--text); background: rgba(255,255,255,.05); }

.nav__item.is-active {
  color: var(--gold-500);
  background: rgba(238,186,43,.1);
}

.nav__item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: var(--gold-500);
  border-radius: 0 2px 2px 0;
}

.side__foot { margin-top: auto; }

.side__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-mute);
  text-decoration: none;
  border-radius: 9px;
  transition: .16s var(--ease);
}

.side__link:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* ── Top bar ───────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 12px 24px;
  background: rgba(8,13,24,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar__logo { display: none; }
.bar__logo img { display: block; width: 100px; height: auto; }

.bar__title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.bar__sub { margin: 1px 0 0; font-size: 13px; color: var(--text-mute); }

.bar__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  font: inherit;
  font-size: 13px;
  color: var(--gold-500);
  background: rgba(238,186,43,.09);
  border: 1px solid rgba(238,186,43,.26);
  border-radius: 999px;
  cursor: pointer;
  transition: .16s var(--ease);
}

.pill:hover { background: rgba(238,186,43,.16); }
.pill b { font-weight: 600; font-variant-numeric: tabular-nums; }

.who { display: flex; align-items: center; gap: 9px; }

.who__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-500);
  background: rgba(238,186,43,.12);
  border: 1px solid rgba(238,186,43,.24);
  border-radius: 50%;
}

.who__meta { display: flex; flex-direction: column; line-height: 1.25; }
.who__meta strong { font-size: 13px; font-weight: 500; }
.who__meta small { font-size: 11.5px; color: var(--text-mute); }

/* ── Shell ─────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 22px 24px 56px;
}

.view { display: none; }
.view.is-active { display: block; animation: rise .26s var(--ease); }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.head h2 { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--text-mute); }

.head--lg { align-items: flex-end; margin-bottom: 18px; }
.head--lg h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.head--lg p { margin: 3px 0 0; font-size: 13.5px; color: var(--text-soft); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

/* ── Hero search ───────────────────────────────────────── */

.hero {
  position: relative;
  padding: 22px;
  margin-bottom: 20px;
  background:
    radial-gradient(120% 160% at 88% -40%, rgba(238,186,43,.13), transparent 58%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* ── Mode switch ───────────────────────────────────────── */

.modes {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mute);
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: .16s var(--ease);
}

.mode:hover { color: var(--text); background: rgba(255,255,255,.05); }

.mode.is-active {
  color: var(--gold-500);
  background: rgba(238,186,43,.1);
  border-color: rgba(238,186,43,.28);
}

.pane { display: none; }
.pane.is-active { display: block; animation: rise .24s var(--ease); }

.hero__row { display: flex; gap: 10px; }

.combo { position: relative; flex: 1; min-width: 0; }

.combo__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
}

.combo input {
  height: 52px;
  padding-left: 44px;
  font-size: 15.5px;
}

.combo__list {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 292px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--nav-800);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}

.combo__list[hidden] { display: none; }

.combo__opt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 11px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
}

.combo__opt small { font-size: 12px; color: var(--text-mute); white-space: nowrap; }
.combo__opt:hover, .combo__opt.is-on { background: rgba(238,186,43,.12); }
.combo__opt mark { color: var(--gold-500); background: none; }

.combo__none { padding: 11px; font-size: 13.5px; color: var(--text-mute); }

.combo__spin {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -8px;
  border: 2px solid var(--text-mute);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

.combo__spin[hidden] { display: none; }

.combo input:disabled { opacity: .5; cursor: not-allowed; }

/* ── Guided steps ──────────────────────────────────────── */

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }

.step {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 12px 0;
}

.step::after {           /* connector between step numbers */
  content: '';
  position: absolute;
  left: 13px;
  top: 40px;
  bottom: -4px;
  width: 1px;
  background: var(--line);
}

.step:last-child::after { display: none; }

.step.is-locked { opacity: .45; }
.step.is-locked .choices { pointer-events: none; }

.step__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mute);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.step.is-done .step__n {
  color: #10192A;
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.step.is-done .step__n::before {
  content: '';
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2310192A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.4l3.2 3.2L13 5'/%3E%3C/svg%3E") center/13px no-repeat;
}

.step.is-done .step__n { font-size: 0; }

.step__body { flex: 1; min-width: 0; }

.step__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-soft);
}

/* ── Custom select ─────────────────────────────────────── */

.select { position: relative; }

.select__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: .16s var(--ease);
}

.select__btn:hover { background: rgba(255,255,255,.07); border-color: var(--nav-700); }

.select__btn[aria-expanded="true"] {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(238,186,43,.2);
}

.select__value.is-empty { color: #8390A8; }

.select__caret { color: var(--text-mute); transition: transform .18s var(--ease); }
.select__btn[aria-expanded="true"] .select__caret { transform: rotate(180deg); }

.select__list {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--nav-800);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}

.select__list[hidden] { display: none; }

.select__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .14s var(--ease);
}

.select__opt strong { display: block; font-size: 14px; font-weight: 500; }
.select__opt small { display: block; font-size: 12px; color: var(--text-mute); }

.select__opt:hover, .select__opt.is-on { background: rgba(238,186,43,.12); }
.select__opt[aria-selected="true"] strong { color: var(--gold-500); }

.select__opt[aria-selected="true"]::after {
  content: '';
  flex: none;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23EEBA2B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.4l3.2 3.2L13 5'/%3E%3C/svg%3E") center/15px no-repeat;
}

.step.is-locked .select { pointer-events: none; }

.step__hint { margin: 7px 0 0; font-size: 12px; color: var(--text-mute); }
.step__hint.is-warn { color: var(--warning); }

.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero__note { margin: 0; font-size: 12.5px; color: var(--text-mute); }
.hero__note svg { vertical-align: -3px; margin-right: 7px; color: var(--gold-500); }

.hero__go {
  flex-direction: column;
  gap: 0;
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 600;
}

.hero__go .cost { font-size: 11px; font-weight: 500; opacity: .68; }

.hero__err {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--danger);
}

.hero__err[hidden] { display: none; }

/* ── Split ─────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.col { min-width: 0; }

/* ── Feed ──────────────────────────────────────────────── */

.feed {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.feed li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .14s var(--ease);
}

.feed li:last-child { border-bottom: 0; }
.feed li:hover { background: rgba(255,255,255,.03); }

.feed__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9px;
}

.feed__mark--ok   { color: var(--gold-500); background: rgba(238,186,43,.12); }
.feed__mark--none { color: var(--text-mute); background: rgba(255,255,255,.05); }

.feed__body { flex: 1; min-width: 0; }
.feed__body strong { display: block; font-size: 14px; font-weight: 500; }

.feed__body span {
  display: block;
  font-size: 12.5px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed__when { flex: none; font-size: 12px; color: var(--text-mute); }

/* ── Metrics ───────────────────────────────────────────── */

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 20px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.metric { padding: 14px 16px; background: var(--surface); }
.metric > span { display: block; font-size: 12px; color: var(--text-mute); }

.metric strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.metric .cur { font-size: 13px; font-weight: 500; color: var(--text-mute); }

.promo {
  padding: 18px;
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(238,186,43,.13), transparent 62%),
    var(--surface);
  border: 1px solid rgba(238,186,43,.22);
  border-radius: 14px;
}

.promo__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #10192A;
  background: var(--gold-500);
  border-radius: 999px;
}

.promo__lead { margin: 0 0 4px; font-size: 14px; }
.promo__lead strong { font-weight: 600; }
.promo__sub { margin: 0 0 14px; font-size: 12.5px; color: var(--text-soft); }
.promo__sub strong { color: var(--gold-500); font-weight: 600; }

/* ── Results ───────────────────────────────────────────── */

.results { margin-bottom: 20px; }
.results[hidden] { display: none; }

.results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.results__head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.results__head span { font-size: 12.5px; color: var(--text-mute); }

.owner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.owner__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-500);
  background: rgba(238,186,43,.12);
  border-radius: 11px;
}

.owner__head { min-width: 0; }

.owner__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.owner__where { margin: 1px 0 0; font-size: 13px; color: var(--text-mute); }

.owner__actions { display: flex; gap: 8px; align-items: flex-start; }

.owner__grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.owner__grid span { display: block; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--text-mute); }
.owner__grid strong { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }

.tag {
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
}

.tag--ok   { color: var(--success); background: rgba(53,201,154,.12); }
.tag--soft { color: var(--text-mute); background: rgba(255,255,255,.06); }

/* ── Current owner highlight ───────────────────────────── */

.owner--current {
  border-color: var(--gold-500);
  border-left: 3px solid var(--gold-500);
  background: linear-gradient(135deg, rgba(238,186,43,.06), var(--surface));
}

/* ── Data provenance ───────────────────────────────────── */

.source-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 9px 13px;
  font-size: 12.5px;
  color: var(--text-soft);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.source-note svg { color: var(--gold-500); }

/* Name-only results carry less than a full record — flag them warmer */
.source-note--warn {
  color: var(--warning);
  background: rgba(240,179,84,.08);
  border-color: rgba(240,179,84,.28);
}

.source-note--warn svg { color: var(--warning); }

/* ── Ownership timeline ────────────────────────────────── */

.tl {
  position: relative;
  padding: 4px 0 4px 20px;
  margin-bottom: 12px;
}

.tl::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  border-radius: 1px;
}

.tl__entry {
  position: relative;
  padding: 10px 0 10px 16px;
}

.tl__dot {
  position: absolute;
  left: -20px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-mute);
  border: 2px solid var(--bg);
  z-index: 1;
}

.tl__dot--ok {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(53,201,154,.2);
}

.tl__entry--transfer {
  padding: 12px 0 12px 16px;
  margin: 4px 0;
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}

.tl__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.tl__detail {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--text);
}

.tl__meta {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-mute);
}

/* ── Transfer bar (between owner cards) ────────────────── */

.transfer-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0;
  padding: 0 4px;
}

.transfer-bar__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.transfer-bar__info {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--text-mute);
  white-space: nowrap;
}

.transfer-bar__info strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Toolbar + filters ─────────────────────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.filters {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter {
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: .16s var(--ease);
}

.filter:hover { color: var(--text); }
.filter.is-active { color: #10192A; background: var(--gold-500); }

.toolbar__right { display: flex; gap: 10px; }
.toolbar input { width: 280px; height: 38px; font-size: 13.5px; }

/* ── Table ─────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.table th {
  padding: 10px 18px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-mute);
  background: rgba(255,255,255,.03);
  white-space: nowrap;
}

.table td {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

.table tbody tr { transition: background .14s var(--ease); }
.table tbody tr:hover { background: rgba(255,255,255,.03); }

.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .prop { font-weight: 500; white-space: normal; }
.table .muted { color: var(--text-mute); }

.table-empty {
  margin: 0;
  padding: 32px 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-mute);
}

.text-link {
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gold-500);
  background: none;
  border: 0;
  cursor: pointer;
}
.text-link:hover { text-decoration: underline; }

/* ── Plans ─────────────────────────────────────────────── */

.balance-inline { text-align: right; }
.balance-inline span { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-mute); }
.balance-inline strong { font-size: 17px; font-weight: 600; color: var(--gold-500); }

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.plan--featured {
  border-color: rgba(238,186,43,.5);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(238,186,43,.1), transparent 55%),
    var(--surface);
}

.plan__tag {
  position: absolute;
  top: -10px;
  left: 18px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--nav-800);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
}

.plan__tag--hot { color: #10192A; background: var(--gold-500); border-color: var(--gold-500); }

.plan h3 { margin: 0; font-size: 15px; font-weight: 600; }
.plan__for { margin: 0 0 14px; font-size: 12.5px; color: var(--text-mute); }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}

.plan__price span { font-size: 13px; font-weight: 500; color: var(--text-mute); }

.plan__unit { margin: 3px 0 16px; font-size: 12.5px; color: var(--text-soft); }
.plan__unit s { margin-right: 6px; color: var(--text-mute); }

.plan__list {
  flex: 1;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.plan__list li {
  position: relative;
  padding-left: 21px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.plan__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2335C99A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.4l3.2 3.2L13 5'/%3E%3C/svg%3E") center/14px no-repeat;
}

.plans__note { margin: 16px 0 0; font-size: 12.5px; color: var(--text-mute); }

/* ── Modal ─────────────────────────────────────────────── */

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }

.modal__backdrop { position: absolute; inset: 0; background: rgba(4,8,15,.72); backdrop-filter: blur(3px); }

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  background: var(--nav-850);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  animation: pop .22s var(--ease);
}

.modal__panel h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.modal__body { margin: 0 0 16px; font-size: 13.5px; color: var(--text-soft); }

.modal__lines {
  margin: 0 0 20px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.modal__lines div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.modal__lines dt { color: var(--text-mute); }
.modal__lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.modal__lines .total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; }
.modal__lines .total dd { color: var(--gold-500); }

.modal__actions { display: flex; gap: 10px; }
.modal__actions .btn { flex: 1; }

/* ── Toast ─────────────────────────────────────────────── */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  padding: 13px 17px;
  font-size: 13.5px;
  background: var(--nav-800);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
  animation: pop .25s var(--ease);
}

.toast::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

.toast[hidden] { display: none; }

@keyframes pop {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Mobile tab bar ────────────────────────────────────── */

.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(8,13,24,.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.tabbar__item.is-active { color: var(--gold-500); }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1240px) {
  .split { grid-template-columns: 1fr 300px; }
}

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .bar__sub { display: none; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); }

  .bar { min-height: 56px; padding: 10px 16px; gap: 12px; }
  .bar__logo { display: block; }
  .bar__head { display: none; }
  .who__meta { display: none; }

  .wrap { padding: 16px 16px calc(86px + env(safe-area-inset-bottom)); }

  .hero { padding: 16px; border-radius: 14px; }
  .hero__row { flex-wrap: wrap; }
  .combo { flex: 1 1 100%; }
  .combo input, .hero__go { height: 48px; }
  .hero__row .hero__go { flex: 1 1 100%; }

  .modes { gap: 6px; }
  .mode { flex: 1; justify-content: center; padding: 9px 10px; font-size: 12.5px; }
  .mode svg { display: none; }

  .hero__foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__foot .hero__go { width: 100%; }

  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__right { flex-direction: row; }
  .toolbar input { width: 100%; }
  .filters { justify-content: space-between; }
  .filter { flex: 1; }

  .owner { grid-template-columns: auto 1fr; }
  .owner__actions { grid-column: 1 / -1; }
  .owner__actions .btn { flex: 1; }

  .toast { left: 16px; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); max-width: none; }
}

@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; gap: 20px; }
  .plan--featured { order: -1; }   /* stacked cards are tall — lead with the popular one */

  /* Table collapses into stacked rows — no sideways scrolling on a phone */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }

  .table tr { padding: 12px 16px; border-top: 1px solid var(--line); }

  .table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
    border: 0;
    white-space: normal;
    text-align: right;
  }

  .table td::before {
    content: attr(data-label);
    flex: none;
    font-size: 11.5px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text-mute);
    text-align: left;
  }

  .table td.prop { font-size: 14.5px; }
}
