:root {
  --bg: #ffffff;
  --bg-soft: #f1f3f5;
  --bg-muted: #eef0f2;
  --border: #e5e7eb;
  --border-strong: #dfe3e8;
  --text: #111111;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --icon: #64748b;
  --link: #1a6fe8;
  --accent: #ffe600;
  --danger: #e5484d;
  --success-bg: #e8f5ec;
  --success-text: #1e7a3c;
  --badge-new: #e8f1ff;
  --badge-new-text: #2f6fed;
  --promo: #f3eefc;
  --overlay: rgba(0, 0, 0, 0.4);
  --radius: 10px;
  --radius-sm: 8px;
  --header-h: 56px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --content-pad: 16px;
  --max: 430px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  min-height: 100vh;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 400;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

/* Fixed sticky header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: var(--header-h);
  padding: 0 8px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--text);
}

.dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: #ef3b2d;
  border-radius: 50%;
  border: 1.5px solid #fff;
  pointer-events: none;
  z-index: 1;
}

.brand {
  text-align: center;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.045em;
  text-decoration: none;
  color: var(--text);
  text-transform: lowercase;
  line-height: 1;
}

.bell-frame {
  /* subtle frame only when needed — keep light */
  border: 1px solid transparent;
  border-radius: 10px;
}

body[data-page="accounts"] .bell-frame {
  border-color: var(--border-strong);
}

/* Page shell */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--content-pad) 32px;
}

.page-title {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

body[data-page="transfer"] .page-title,
body[data-page="methods"] .page-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.page-sublink {
  display: inline-block;
  margin: -8px 0 20px;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 400;
  text-decoration: none;
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.btn-muted {
  background: var(--bg-soft);
  border: 1px solid transparent;
}

.btn-disabled,
.btn:disabled {
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  pointer-events: none;
  font-weight: 400;
}

.btn-outline {
  background: var(--bg);
  border: 1px solid var(--border-strong);
}

.create-account {
  font-weight: 400;
  gap: 10px;
}

.create-account .plus {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 300;
}

/* Segmented */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin: 14px 0 12px;
}

.segmented a,
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-secondary);
}

.segmented .active {
  background: var(--bg-muted);
  color: var(--text);
  font-weight: 500;
  box-shadow: none;
}

/* Form fields */
.field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 400;
  color: #222;
}

.field.disabled .field-label {
  color: var(--text-secondary);
}

.field-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
}

.field-control.muted {
  color: var(--text-secondary);
}

.field-control .grow {
  flex: 1;
}

.field-control .bal {
  color: var(--text);
  font-weight: 400;
  margin-right: 4px;
}

.field-control .chevron {
  color: var(--text-muted);
  display: inline-flex;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-muted);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
}

.amount-wrap {
  position: relative;
}

.amount-wrap input {
  width: 100%;
  min-height: 52px;
  padding: 10px 52px 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  background: #fff;
}

.amount-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-weight: 400;
}

.hint-range {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hint-range a {
  font-weight: 400;
}

.summary-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 16px;
  background: #f3f4f6;
  border-radius: var(--radius-sm);
  margin: 12px 0 20px;
  min-height: 64px;
}

.summary-box > span:first-child {
  font-size: 0.9rem;
  color: var(--text);
}

.summary-value {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.summary-value .int {
  font-size: 1.65rem;
}

.summary-value .cur {
  font-size: 0.95rem;
  font-weight: 400;
  margin-left: 4px;
}

.select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text);
  width: 100%;
  text-align: left;
  font-weight: 400;
}

.select-row .grow {
  flex: 1;
  font-weight: 400;
}

.select-row .acct-num {
  color: var(--text-secondary);
}

.select-row .chev,
.badge-row .chev {
  color: var(--text-muted);
  display: inline-flex;
}

.select-row .chev svg,
.badge-row .chev svg,
.field-control .chevron svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0 4px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--text);
}

.pill-btn.soft {
  background: var(--bg-soft);
  border-color: transparent;
}

.pill-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

/* Account cards */
.account-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-row .spacer {
  flex: 1;
}

.account-id {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

.account-id .name {
  font-weight: 400;
  margin-left: 6px;
}

.balance {
  margin: 0 0 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.balance .int {
  font-size: 2.05rem;
}

.balance .frac {
  font-size: 1.15rem;
  font-weight: 400;
}

.balance-unavailable {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.account-note {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.45;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  text-align: center;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
}

.action-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--text);
}

.action-icon.primary {
  background: var(--accent);
  color: #111;
}

.action-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-row.compact {
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  gap: 28px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 24px;
}

.pagination button {
  font-size: 1.15rem;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
}

.page-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
}

.page-num.active {
  background: #dfe5ec;
}

/* Order history */
.list-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 2px solid #111;
}

.order-row {
  display: grid;
  grid-template-columns: 40px 1fr auto 14px;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.pair-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9a227, #f0dfa0);
  position: relative;
}

.pair-icon::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    linear-gradient(#b22234 0 20%, #fff 20% 40%, #b22234 40% 60%, #fff 60% 80%, #b22234 80% 100%);
  border: 2px solid #fff;
  box-shadow: inset 7px 0 0 0 #3c3b6e;
}

.order-symbol {
  font-weight: 400;
  margin: 0 0 2px;
  font-size: 0.98rem;
}

.order-meta {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 400;
}

.order-meta .side {
  color: var(--link);
}

.order-meta .at {
  color: var(--text-secondary);
}

.order-pnl {
  font-weight: 400;
  font-size: 0.95rem;
}

.order-pnl.neg {
  color: var(--danger);
}

.order-pnl.pos {
  color: var(--success-text);
}

.chev {
  color: var(--text-muted);
  display: inline-flex;
}

.chev svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* Transfer / option cards */
.option-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 16px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.option-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.option-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 500;
}

.meta-line {
  margin: 0 0 3px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.meta-line span {
  color: var(--text);
  font-weight: 400;
}

/* Payment methods */
.section-title {
  margin: 20px 0 12px;
  font-size: 1.15rem;
  font-weight: 500;
}

.section-title:first-of-type {
  margin-top: 2px;
}

.saved-card,
.method-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.saved-card {
  min-height: 68px;
}

.method-card {
  align-items: flex-start;
  padding: 16px;
}

.pm-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  position: relative;
}

.pm-icon.phone {
  background: #111;
  color: var(--accent);
}

.pm-icon.mc {
  background: transparent;
  width: 44px;
  height: 28px;
  position: relative;
}

.pm-icon.mc::before,
.pm-icon.mc::after {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.pm-icon.mc::before {
  left: 0;
  background: #eb001b;
}

.pm-icon.mc::after {
  right: 0;
  background: #f79e1b;
  mix-blend-mode: multiply;
}

.pm-icon.binance {
  background: #f3ba2f;
  color: #111;
  clip-path: polygon(50% 0%, 90% 25%, 90% 75%, 50% 100%, 10% 75%, 10% 25%);
  border-radius: 0;
  font-size: 0.7rem;
}

.pm-icon.usdt {
  background: #26a17b;
}

.pm-icon.bnb {
  background: #f3ba2f;
  color: #111;
  clip-path: polygon(50% 0%, 90% 25%, 90% 75%, 50% 100%, 10% 75%, 10% 25%);
  border-radius: 0;
}

.pm-icon.btc {
  background: #f7931a;
}

.pm-icon.eth {
  background: #627eea;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  border-radius: 0;
}

.pm-icon.neteller {
  background: #8dc63f;
  border-radius: 10px;
}

.pm-icon.skrill {
  background: transparent;
  color: #862165;
  font-size: 1.4rem;
  font-weight: 800;
}

.pm-icon.tron {
  background: transparent;
  color: #ff0013;
  border: 2px solid #ff0013;
  font-size: 0.65rem;
  font-weight: 800;
}

.pm-icon .corner {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.pm-icon .corner.tron {
  background: #ff0013;
  color: #fff;
  border-color: #fff;
}

.pm-icon .corner.bnb {
  background: #f3ba2f;
  color: #111;
}

.pm-icon.svg-wrap svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.pm-body {
  flex: 1;
  min-width: 0;
}

.pm-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.pm-title {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
}

.saved-card .pm-title {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.saved-card .pm-sub {
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
}

.pm-sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.rec-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 0.78rem;
  font-weight: 500;
}

.kebab {
  color: var(--text-muted);
  padding: 4px 2px;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--content-pad) 40px;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.55;
  font-weight: 400;
}

.site-footer p {
  margin: 0 0 12px;
}

.legal-links {
  list-style: none;
  padding: 6px 0 14px;
  margin: 0;
}

.legal-links li {
  margin-bottom: 9px;
}

.legal-links a {
  color: var(--link);
  font-weight: 400;
}

.copyright {
  margin-top: 6px;
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 110;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(75vw, 320px);
  background: #fff;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  z-index: 120;
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.drawer::-webkit-scrollbar {
  display: none;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: var(--header-h);
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.drawer-body {
  padding: 4px 0 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon);
}

.avatar svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.user-name {
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.user-email {
  margin: 2px 0 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  font-size: 0.95rem;
}

.drawer-link svg,
.nav-item > button svg,
.balance-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--icon);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  color: var(--icon);
}

.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.balance-box {
  margin: 8px 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.balance-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-weight: 500;
  font-size: 0.95rem;
}

.balance-toggle .grow {
  flex: 1;
}

.balance-toggle .unit {
  font-weight: 400;
}

.tag-new {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--badge-new);
  color: var(--badge-new-text);
  font-size: 0.68rem;
  font-weight: 500;
  vertical-align: middle;
}

.hide-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.balance-box.open .hide-row {
  display: flex;
}

.wallets-panel {
  display: none;
}

.balance-box.open + .wallets-panel,
.wallets-panel.open {
  display: block;
}

.switch {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #d0d0d0;
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.wallet-block {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.wallet-bal {
  margin: 0 0 4px;
  font-weight: 500;
  font-size: 1.05rem;
}

.wallet-bal .unit {
  font-weight: 400;
}

.wallet-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.wallet-label {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 400;
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-actions .btn {
  min-height: 40px;
  min-width: 108px;
  width: auto;
  padding: 8px 16px;
  font-size: 0.9rem;
  background: var(--bg-soft);
}

.count-badge {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bg-soft);
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-item > button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.nav-item .grow {
  flex: 1;
}

.nav-item .nav-chev {
  transition: transform 0.15s ease;
  color: var(--icon);
  display: inline-flex;
}

.nav-item.open .nav-chev {
  transform: rotate(180deg);
}

.nav-sub {
  display: none;
  padding: 0 8px 8px 48px;
}

.nav-item.open .nav-sub {
  display: block;
}

.nav-sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  font-size: 0.94rem;
}

.nav-sub a.active {
  background: var(--bg-soft);
}

.nav-sub a .ext {
  color: var(--icon);
  display: inline-flex;
}

.nav-sub a .ext svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.promo-card {
  margin: auto 12px 12px;
  padding: 14px;
  border-radius: 8px;
  background: var(--promo);
  border: 1px solid #e6ddf5;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: sticky;
  bottom: 12px;
  line-height: 1.3;
}

.promo-card svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  flex-shrink: 0;
}

body.drawer-open {
  overflow: hidden;
}

.sort-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 1.6;
}

@media (min-width: 768px) {
  .page,
  .site-footer {
    max-width: 480px;
  }
}
