:root {
  --bg: #08140f;
  --bg-elevated: rgba(10, 29, 23, .78);
  --surface: rgba(9, 25, 19, .72);
  --surface-soft: rgba(12, 31, 24, .82);
  --surface-solid: #0d211b;
  --surface-hover: rgba(17, 41, 31, .94);
  --text: #f4fff8;
  --text-soft: #c7ddd2;
  --text-muted: #87a697;
  --line: rgba(123, 177, 151, .15);
  --line-strong: rgba(123, 177, 151, .28);
  --accent: #33e6b1;
  --accent-strong: #20c896;
  --accent-soft: rgba(51, 230, 177, .12);
  --accent-rgb: 51, 230, 177;
  --warning: #f3b562;
  --danger: #ff6c75;
  --telegram: #2da5e1;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, .25);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, .34);
  --radius: 22px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --container: 1220px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  --bg: #eef5f1;
  --bg-elevated: rgba(255, 255, 255, .88);
  --surface: rgba(255, 255, 255, .9);
  --surface-soft: rgba(250, 253, 251, .96);
  --surface-solid: #ffffff;
  --surface-hover: #ffffff;
  --text: #10241d;
  --text-soft: #345446;
  --text-muted: #5f7d70;
  --line: rgba(44, 83, 66, .13);
  --line-strong: rgba(44, 83, 66, .24);
  --accent-soft: rgba(51, 230, 177, .1);
  --shadow-soft: 0 12px 40px rgba(28, 53, 44, .08);
  --shadow-strong: 0 22px 54px rgba(28, 53, 44, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(var(--accent-rgb), .12), transparent 28%), radial-gradient(circle at bottom right, rgba(var(--accent-rgb), .08), transparent 26%), var(--bg);
  font-family: var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; }

.container { width: min(var(--container), calc(100% - 36px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; white-space: nowrap; border: 0; clip: rect(0,0,0,0); }

.ambient,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}
.ambient-one {
  background: radial-gradient(circle at 18% 12%, rgba(var(--accent-rgb), .2), transparent 25%);
  filter: blur(40px);
}
.ambient-two {
  background: radial-gradient(circle at 85% 4%, rgba(70, 103, 255, .16), transparent 22%), radial-gradient(circle at 80% 70%, rgba(var(--accent-rgb), .1), transparent 30%);
  filter: blur(32px);
}
.noise {
  z-index: -2;
  opacity: .2;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: 10px 10px;
  mix-blend-mode: overlay;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0;
  transition: padding .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled,
.site-header:has(+ main) {
  backdrop-filter: blur(16px);
}
.site-header.scrolled {
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 18px;
}
.brand-logo {
  display: block;
  width: clamp(190px, 25vw, 300px);
  height: auto;
  filter: none;
  border-radius: 14px;
}
html[data-theme="light"] .brand {
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(9, 25, 35, .96), rgba(7, 21, 30, .92));
  border: 1px solid rgba(20, 197, 255, .12);
  box-shadow: 0 10px 24px rgba(8, 24, 32, .14);
}

.desktop-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.desktop-nav a {
  padding: 10px 14px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.desktop-nav a:hover { background: var(--surface-hover); color: var(--text); }
.header-actions { display: inline-flex; align-items: center; gap: 10px; }
.icon-button,
.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.icon-button:hover,
.theme-toggle:hover { transform: translateY(-1px); background: var(--surface-hover); border-color: var(--line-strong); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .sun-icon,
html[data-theme="light"] .moon-icon { display: none; }
.telegram-pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.telegram-pill {
  color: #041610;
  background: linear-gradient(135deg, var(--accent), #5ff0c2);
  box-shadow: 0 14px 28px rgba(var(--accent-rgb), .18);
}
.telegram-pill:hover,
.button:hover { transform: translateY(-2px); }
.telegram-pill svg,
.button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.telegram-pill svg { fill: currentColor; stroke: none; }
.button-primary {
  color: #04150f;
  background: linear-gradient(135deg, var(--accent), #5ff0c2);
  box-shadow: 0 18px 34px rgba(var(--accent-rgb), .18);
}
.button-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.button-light {
  color: #04150f;
  border: 0;
  background: #ffffff;
}

.hero { padding: 50px 0 30px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}
.hero-copy,
.rate-preview,
.exchange-shell,
.rules-teaser-card,
.cta-card,
.rules-nav-card,
.rules-article,
.rules-cta,
.guarantees-copy,
.logo-card,
.mini-badge {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}
.hero-copy {
  padding: 34px;
  border-radius: var(--radius-xl);
}
.eyebrow {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .12);
}
.hero h1,
.rules-hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.06em;
}
.hero h1 span,
.rules-hero h1 span { color: var(--accent); }
.hero-lead,
.rules-lead {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.trust-item {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
}
.trust-item svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-item strong { display: block; font-size: 15px; }
.trust-item small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }

.rate-preview {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.preview-orbit {
  position: absolute;
  inset: -110px auto auto -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .18);
  background: radial-gradient(circle at center, rgba(var(--accent-rgb), .12), transparent 60%);
}
.preview-head,
.preview-rate,
.preview-pair,
.preview-meta { position: relative; z-index: 1; }
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.preview-head > span:first-child { font-size: 12px; color: var(--text-soft); font-weight: 750; }
.api-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}
.api-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(243, 181, 98, .12);
}
.api-status[data-status="online"] i { background: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .12); }
.api-status[data-status="offline"] i { background: var(--danger); box-shadow: 0 0 0 6px rgba(255, 108, 117, .12); }
.preview-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.mini-asset {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 700;
}
.preview-pair svg,
.preview-rate svg { width: 18px; height: 18px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.preview-rate {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
}
.preview-rate span { color: var(--text-soft); font-size: 16px; }
.preview-rate strong { font-size: clamp(22px, 4vw, 34px); letter-spacing: -.05em; }
.preview-chart {
  position: relative;
  z-index: 1;
  height: 152px;
  margin-top: 24px;
  color: var(--accent);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .08), transparent);
  overflow: hidden;
}
.preview-chart svg { width: 100%; height: 100%; }
.chart-area { fill: url(#chartFill); }
.chart-line { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
.preview-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.preview-meta div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}
.preview-meta span,
.preview-meta strong { display: block; }
.preview-meta span { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.preview-meta strong { margin-top: 6px; font-size: 13px; line-height: 1.4; }
.preview-note { position: relative; z-index: 1; margin: 18px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.section-heading.centered,
.compact-heading {
  display: block;
  text-align: center;
}
.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-heading h2,
.rules-teaser-card h2,
.faq-intro h2,
.cta-card h2,
.guarantees-copy h3,
.rules-cta h3 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.05em; }
.section-heading p,
.faq-intro p,
.cta-card p,
.guarantees-copy p,
.rules-teaser-card p,
.rules-page .hero-lead { color: var(--text-soft); line-height: 1.7; }

.exchange-section,
.process-section,
.guarantees-section,
.rules-teaser-section,
.faq-section,
.cta-section,
.rules-sections { padding: 100px 0; }
.exchange-shell {
  display: grid;
  grid-template-columns: 1.1fr .78fr;
  gap: 0;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 34px;
}
.exchange-main { padding: 30px; }
.selector-layout,
.amount-grid,
.details-grid,
.request-fields,
.guarantees-layout,
.rules-grid,
.process-grid { display: grid; gap: 18px; }
.selector-layout { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.amount-grid { grid-template-columns: 1fr 1fr; margin-top: 18px; }
.details-grid { grid-template-columns: 1fr 1fr; margin-top: 18px; }
.request-fields { grid-template-columns: 1fr 1fr; }
.currency-card,
.detail-card,
.request-panel { border: 1px solid var(--line); border-radius: 28px; background: var(--surface-soft); }
.currency-card { padding: 22px; }
.selector-card { padding: 20px; }
.currency-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.compact-head { margin-bottom: 14px; }
.step-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--accent);
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), .2);
  background: rgba(var(--accent-rgb), .08);
  font-size: 14px;
  font-weight: 900;
}
.currency-head small { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.currency-head h3 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.03em; }
.asset-picker {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.asset-picker:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .28); background: var(--surface-hover); }
.asset-picker svg { width: 18px; height: 18px; margin-left: auto; color: var(--text-muted); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.asset-picker-icon,
.coin,
.asset-item-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: none;
  color: #04261a;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #6ef3c8);
  font-size: 20px;
  font-weight: 900;
}
.asset-picker-copy { min-width: 0; display: flex; flex-direction: column; align-items: start; }
.asset-picker-copy strong { font-size: 16px; }
.asset-picker-copy small { margin-top: 4px; color: var(--text-muted); font-size: 12px; text-align: left; }

.swap-divider { display: grid; place-items: center; }
.swap-button {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), .24);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .08), rgba(var(--accent-rgb), .15));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.swap-button span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), .14);
}
.swap-button svg { width: 20px; height: 20px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.amount-field {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
}
.amount-field input,
.amount-field output {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -.05em;
  border: 0;
  outline: 0;
  background: transparent;
}
.amount-field output { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amount-field input::placeholder { color: var(--text-muted); }
.currency-chip {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}
.currency-chip strong { display: block; font-size: 14px; }
.currency-chip small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; }
.field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
}
.quick-amounts { display: flex; align-items: center; gap: 8px; }
.text-button {
  min-height: 32px;
  padding: 0 12px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}
.text-button:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  color: var(--text-soft);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .08);
  font-size: 11px;
  font-weight: 800;
}
.network-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .1); }
.rate-strip {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
}
.rate-strip div span,
.rate-strip div strong { display: block; }
.rate-strip div span { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.rate-strip div strong { margin-top: 6px; font-size: 14px; line-height: 1.5; }
.rate-strip b { color: var(--accent); }
.refresh-rate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.refresh-rate:hover { background: var(--surface-hover); }
.refresh-rate svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.refresh-rate.loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.detail-card { padding: 22px; }
.detail-label { display: block; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.detail-card strong { display: block; margin-top: 12px; font-size: 18px; letter-spacing: -.03em; }
.detail-card p { margin: 10px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.65; }
.request-panel { margin-top: 18px; padding: 22px; }
.form-field > span { display: block; margin-bottom: 8px; color: var(--text-soft); font-size: 12px; font-weight: 750; }
.form-field small { display: block; margin-top: 8px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.input-wrap {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input-wrap:focus-within { border-color: rgba(var(--accent-rgb), .56); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .08); }
.input-wrap svg { width: 18px; height: 18px; flex: none; color: var(--text-muted); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.input-wrap input,
.input-wrap textarea {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: var(--text-muted); }
.textarea-wrap { min-height: 120px; align-items: start; padding-top: 14px; padding-bottom: 14px; }
.textarea-wrap textarea { resize: vertical; min-height: 86px; }
.input-wrap.invalid { border-color: rgba(255, 108, 117, .65); box-shadow: 0 0 0 4px rgba(255, 108, 117, .08); }
.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}
.reworked-footer { align-items: end; }
.check-row {
  max-width: 640px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-soft);
}
.custom-check svg { width: 12px; height: 12px; opacity: 0; fill: none; stroke: #04261a; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.check-row input:checked + .custom-check { border-color: var(--accent); background: var(--accent); }
.check-row input:checked + .custom-check svg { opacity: 1; }
.action-cluster { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px; }
.order-button { min-width: 260px; }
.exchange-summary {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-left: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .07), rgba(13, 33, 27, .72));
}
.summary-top { display: flex; align-items: center; gap: 12px; }
.summary-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: 15px;
  background: rgba(var(--accent-rgb), .08);
}
.summary-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.summary-top small { color: var(--text-muted); font-size: 11px; }
.summary-top h3 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.04em; }
.summary-list { margin: 26px 0; }
.summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.summary-list dt { color: var(--text-muted); font-size: 12px; }
.summary-list dd { margin: 0; text-align: right; font-size: 12px; font-weight: 780; }
.summary-total {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: 20px;
  background: rgba(var(--accent-rgb), .08);
}
.summary-total span,
.summary-total strong,
.summary-total small { display: block; }
.summary-total span { color: var(--text-soft); font-size: 12px; }
.summary-total strong { margin-top: 8px; font-size: 28px; letter-spacing: -.04em; }
.summary-total strong b,
.summary-total strong span { display: inline; color: var(--accent); }
.summary-total small { margin-top: 6px; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.summary-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.summary-chat:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-hover); }
.telegram-circle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  border-radius: 12px;
  background: var(--telegram);
}
.telegram-circle svg { width: 18px; height: 18px; fill: currentColor; }
.summary-chat > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.summary-chat strong { font-size: 12px; }
.summary-chat small { margin-top: 3px; color: var(--text-muted); font-size: 10px; }
.summary-chat .arrow { width: 17px; height: 17px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.process-grid { grid-template-columns: repeat(3, 1fr); margin-top: 45px; }
.process-card {
  position: relative;
  min-height: 286px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface-soft);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.process-card:hover { transform: translateY(-7px); border-color: rgba(var(--accent-rgb), .23); background: var(--surface-hover); }
.process-index { position: absolute; top: 18px; right: 18px; color: rgba(var(--accent-rgb), .13); font-size: 54px; font-weight: 900; letter-spacing: -.05em; }
.process-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: 17px;
  background: rgba(var(--accent-rgb), .08);
}
.process-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.process-card h3 { margin: 48px 0 11px; font-size: 20px; letter-spacing: -.03em; }
.process-card p { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.7; }

.guarantees-layout { grid-template-columns: 1.1fr .9fr; align-items: start; }
.guarantees-main .section-heading { margin-bottom: 26px; }
.guarantee-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.logo-card,
.guarantees-copy {
  padding: 24px;
  border-radius: 28px;
}
.logo-badge {
  width: max-content;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #5b6460, #202524);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.logo-badge.accent-alt { color: #ffe5bf; background: linear-gradient(135deg, #f4a13e, #556ca7); }
.logo-badge.olive { color: #e7ffd7; background: linear-gradient(135deg, #445d18, #a0cb32); }
.logo-badge.utopia { color: #ffffff; background: linear-gradient(135deg, #111c28, #1d9d7a); }
.logo-card p { margin: 18px 0 0; color: var(--text-soft); line-height: 1.75; }
.guarantees-copy h3 { font-size: 34px; }
.guarantee-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.guarantee-points span,
.mini-badge {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 850;
}
.guarantee-points span { border: 1px solid var(--line); background: var(--surface-soft); }
.badge-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.mini-badge {
  color: var(--text);
  border-radius: 20px;
  background: var(--surface-soft);
  min-height: 90px;
}

.rules-teaser-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 32px;
  border-radius: 34px;
}
.rules-points { margin: 18px 0 0; padding-left: 18px; color: var(--text-soft); line-height: 1.8; }
.rules-teaser-actions { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }

.faq-grid { display: grid; grid-template-columns: 330px 1fr; align-items: start; gap: 80px; }
.faq-intro { position: sticky; top: 116px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px;
  font-size: 17px;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { display: grid; place-items: center; color: var(--text-muted); }
.faq-list summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list p { margin: 0; padding: 0 4px 22px; color: var(--text-soft); line-height: 1.75; }

.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 34px;
}
.cta-glow {
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .3), transparent 65%);
  filter: blur(18px);
}
.cta-card > * { position: relative; z-index: 1; }

.site-footer { padding: 24px 0 36px; }
.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-top {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 18px; color: var(--text-soft); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding-top: 20px; color: var(--text-muted); font-size: 12px; }
.footer-bottom p { margin: 0; }
.mobile-telegram {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  width: 58px;
  height: 58px;
  display: none;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--telegram);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .22);
}
.mobile-telegram svg { width: 24px; height: 24px; fill: currentColor; }

.asset-modal[hidden] { display: none; }
.asset-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.asset-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 8, 5, .64);
  backdrop-filter: blur(8px);
}
.asset-dialog {
  position: relative;
  width: min(920px, calc(100% - 20px));
  max-height: min(86vh, 860px);
  display: flex;
  flex-direction: column;
  margin: 40px auto;
  padding: 18px;
  border: 1px solid rgba(93, 183, 150, .18);
  border-radius: 26px;
  background: #0d2943;
  color: #f8ffff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .45);
}
.modal-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-search {
  flex: 1;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(38, 247, 193, .6);
}
.modal-search svg,
.modal-close { color: #ffffff; }
.modal-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modal-search input {
  width: 100%;
  min-width: 0;
  color: #19f2b2;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 650;
}
.modal-search input::placeholder { color: #19f2b2; opacity: .92; }
.modal-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  opacity: .7;
}
.modal-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 8px 0;
}
.modal-heading-row h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.modal-heading-row small { color: rgba(255,255,255,.7); font-size: 12px; }
.modal-tabs,
.modal-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-tabs { margin-top: 16px; padding: 0 8px; }
.modal-tab,
.quick-chip {
  min-height: 38px;
  padding: 0 14px;
  color: rgba(255,255,255,.92);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}
.modal-tab.active,
.quick-chip.active,
.quick-chip:hover,
.modal-tab:hover {
  color: #ffffff;
  background: #18d89f;
}
.modal-chips { margin-top: 12px; padding: 0 8px; }
.asset-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  overflow: auto;
  padding: 0 4px 10px;
}
.asset-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  color: #f1fbff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.asset-item:hover { transform: translateY(-2px); border-color: rgba(24, 216, 159, .4); background: rgba(255,255,255,.05); }
.asset-item-icon { color: #04261a; }
.asset-item-copy strong { display: block; font-size: 15px; }
.asset-item-copy small { display: block; margin-top: 4px; color: rgba(255,255,255,.7); font-size: 12px; }
.asset-item-code { color: rgba(255,255,255,.9); font-size: 15px; font-weight: 900; }
.asset-empty {
  padding: 26px 18px;
  color: rgba(255,255,255,.74);
  text-align: center;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: min(420px, calc(100% - 36px));
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.toast.show { opacity: 1; visibility: visible; transform: translateY(0); }
.toast-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  color: #04150f;
  border-radius: 12px;
  background: var(--accent);
}
.toast-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.toast strong { display: block; font-size: 14px; }
.toast small { display: block; margin-top: 2px; color: var(--text-soft); font-size: 12px; }

.rules-page .hero,
.rules-page .exchange-section,
.rules-page .process-section,
.rules-page .faq-section,
.rules-page .cta-section { padding: 0; }
.rules-main { padding-top: 20px; }
.rules-hero { padding: 40px 0 18px; }
.rules-grid { grid-template-columns: 300px 1fr; align-items: start; }
.rules-sidebar { position: sticky; top: 116px; }
.rules-nav-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 28px;
}
.rules-nav-card strong { margin-bottom: 6px; font-size: 18px; }
.rules-nav-card a {
  padding: 12px 14px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 650;
}
.rules-nav-card a:hover { color: var(--text); border-color: var(--line-strong); }
.rules-content { display: grid; gap: 18px; }
.rules-article,
.rules-cta {
  padding: 28px;
  border-radius: 30px;
}
.rules-article h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -.04em;
}
.rules-article p { margin: 0 0 14px; color: var(--text-soft); line-height: 1.8; }
.rules-article p:last-child,
.rules-cta p:last-child { margin-bottom: 0; }
.rules-cta { text-align: center; }
.rules-cta p { color: var(--text-soft); line-height: 1.7; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1200px) {
  .hero-grid,
  .exchange-shell,
  .guarantees-layout,
  .faq-grid,
  .rules-grid { grid-template-columns: 1fr; }
  .exchange-summary { border-left: 0; border-top: 1px solid var(--line); }
  .faq-intro,
  .rules-sidebar { position: static; }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .trust-row,
  .amount-grid,
  .details-grid,
  .request-fields,
  .process-grid,
  .guarantee-cards,
  .badge-wall { grid-template-columns: 1fr; }
  .selector-layout { grid-template-columns: 1fr; }
  .swap-divider { margin: -4px 0; }
  .swap-button { width: 100%; max-width: 160px; }
  .section-heading { display: block; }
  .section-heading p { margin: 14px 0 0; }
  .rules-teaser-card,
  .cta-card,
  .order-footer,
  .footer-top,
  .footer-bottom { flex-direction: column; align-items: start; }
  .rules-teaser-actions,
  .action-cluster { width: 100%; }
  .action-cluster .button,
  .rules-teaser-actions .button,
  .order-button { width: 100%; }
  .preview-meta { grid-template-columns: 1fr; }
  .rate-strip { grid-template-columns: 1fr; }
  .mobile-telegram { display: grid; }
}

@media (max-width: 720px) {
  .container { width: min(var(--container), calc(100% - 22px)); }
  .header-inner { padding: 10px 12px; border-radius: 24px; }
  .header-actions .telegram-pill { display: none; }
  .hero { padding-top: 24px; }
  .hero-copy,
  .rate-preview,
  .exchange-main,
  .exchange-summary,
  .request-panel,
  .logo-card,
  .guarantees-copy,
  .rules-teaser-card,
  .rules-nav-card,
  .rules-article,
  .rules-cta,
  .cta-card { padding: 20px; }
  .hero h1,
  .rules-hero h1 { font-size: 38px; }
  .hero-lead,
  .rules-page .hero-lead { font-size: 16px; }
  .button,
  .telegram-pill { min-height: 46px; padding-inline: 16px; }
  .trust-item { min-height: auto; }
  .asset-dialog { width: min(100%, calc(100% - 10px)); margin: 10px auto; padding: 14px; border-radius: 20px; }
  .modal-topbar { align-items: start; }
  .modal-close { margin-top: 6px; }
  .asset-picker,
  .amount-field { min-height: 78px; }
  .amount-field input,
  .amount-field output { font-size: 29px; }
  .currency-chip { min-height: 50px; padding-inline: 10px; }
  .site-footer { padding-bottom: 90px; }
  .toast { right: 10px; bottom: 10px; }
}

/* Dynamic asset palettes */
.asset-picker-icon,
.coin,
.asset-item-icon {
  color: var(--asset-icon-text, #ffffff);
  background: linear-gradient(135deg, var(--asset-color-a, var(--accent)), var(--asset-color-b, var(--accent-strong)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 24px rgba(0,0,0,.12);
}
.asset-item-icon { font-size: 17px; letter-spacing: -.04em; }
.asset-item.opposite-selected {
  border-color: rgba(24, 216, 159, .28);
  background: rgba(24, 216, 159, .06);
}
body.modal-open { overflow: hidden; }
.toast[data-type="error"] .toast-icon { background: var(--danger); color: #fff; }

/* Independent monitoring wall */
.monitoring-block { margin-top: 28px; }
.monitoring-head {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: end;
  gap: 30px;
  margin-bottom: 18px;
  padding: 0 4px;
}
.monitoring-head h3 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.045em;
}
.monitoring-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}
.badge-wall { margin-top: 0; }
.mini-badge {
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.mini-badge b { font-size: 21px; letter-spacing: -.06em; }
.mini-badge span { color: var(--text-soft); font-size: 15px; }
.brand-best b { color: #f8f8f8; padding: 7px 8px; border-radius: 8px; background: #444; }
.brand-best span { color: var(--text); font-weight: 900; }
.brand-bits b { color: #f7a13f; font-size: 30px; }
.brand-bits span { font-style: italic; font-weight: 850; }
.brand-mm b { color: #d8bd73; }
.brand-trust b { color: #10b981; font-size: 30px; }
.brand-wot b { color: #ff4e42; font-size: 28px; }
.brand-ok b { color: #7b74ff; }
.brand-well b { color: #36c6d7; font-size: 28px; }
.brand-ex b { color: #f4f7ff; padding: 7px; border-radius: 8px; background: #345b86; }
.brand-sun b { color: #ff9f58; font-size: 29px; }

/* Reviews */
.reviews-section { padding: 100px 0; }
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 24px;
  align-items: start;
  margin-top: 40px;
}
.reviews-feed,
.review-form-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.reviews-feed { padding: 24px; }
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 2px 22px;
  border-bottom: 1px solid var(--line);
}
.reviews-score { display: flex; align-items: center; gap: 16px; }
.reviews-score > strong {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.07em;
}
.reviews-score span { display: flex; flex-direction: column; }
.reviews-score b { color: #f6bc4a; font-size: 18px; letter-spacing: .08em; }
.reviews-score small { margin-top: 5px; color: var(--text-muted); font-size: 11px; }
.reviews-legend { display: flex; flex-direction: column; gap: 8px; color: var(--text-muted); font-size: 11px; }
.reviews-legend span { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.demo-dot { background: #7a91a7; }
.local-dot { background: var(--accent); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.review-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-soft);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.review-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-hover); }
.review-card.local-review {
  border-color: rgba(var(--accent-rgb), .34);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .12), var(--surface-soft));
}
.review-card-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; }
.review-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #06271c;
  background: linear-gradient(135deg, var(--accent), #86f5d4);
  font-weight: 900;
}
.review-person { min-width: 0; display: flex; flex-direction: column; }
.review-person strong { font-size: 14px; }
.review-person small { margin-top: 4px; overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.review-stars { display: inline-flex; gap: 1px; }
.star { color: rgba(156, 174, 165, .28); font-size: 14px; line-height: 1; }
.star.active { color: #f6bc4a; }
.review-card p { margin: 22px 0 18px; color: var(--text-soft); font-size: 14px; line-height: 1.7; }
.review-badge {
  width: max-content;
  max-width: 100%;
  margin-top: auto;
  padding: 7px 10px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.local-review .review-badge { color: var(--accent); border-color: rgba(var(--accent-rgb), .25); }
.review-form-card {
  position: sticky;
  top: 112px;
  padding: 26px;
}
.review-form-card h3 { margin: 10px 0 0; font-size: 30px; letter-spacing: -.045em; }
.review-form-card > p { margin: 12px 0 24px; color: var(--text-soft); font-size: 14px; line-height: 1.65; }
.review-form-card form { display: grid; gap: 17px; }
.review-direction {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}
.review-direction span,
.rating-field > span { display: block; color: var(--text-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.review-direction strong { display: block; margin-top: 7px; font-size: 13px; line-height: 1.5; }
.rating-field { padding: 2px 0; }
.interactive-stars { display: flex; gap: 5px; margin-top: 9px; }
.interactive-stars .star {
  padding: 0;
  color: rgba(156, 174, 165, .35);
  border: 0;
  background: transparent;
  font-size: 30px;
  transition: transform .15s ease, color .15s ease;
}
.interactive-stars .star:hover { transform: translateY(-2px) scale(1.06); }
.interactive-stars .star.active { color: #f6bc4a; }
.rating-field small { display: block; margin-top: 7px; color: var(--text-muted); font-size: 10px; }
.review-submit { width: 100%; }
.local-review-note { color: var(--text-muted); font-size: 10px; line-height: 1.5; text-align: center; }

@media (max-width: 1200px) {
  .reviews-layout { grid-template-columns: 1fr; }
  .review-form-card { position: static; }
}

@media (max-width: 980px) {
  .monitoring-head { grid-template-columns: 1fr; align-items: start; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .reviews-feed,
  .review-form-card { padding: 18px; border-radius: 24px; }
  .reviews-summary { align-items: flex-start; flex-direction: column; }
  .review-card-top { grid-template-columns: auto 1fr; }
  .review-stars { grid-column: 2; }
  .monitoring-head { gap: 12px; }
}

.interactive-stars { gap: 10px; }
.rating-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.rating-option span { color: #f6bc4a; letter-spacing: .05em; }
.rating-option b { color: var(--text-soft); font-size: 12px; }
.rating-option:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.rating-option.active { border-color: rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .1); }
.rating-option.active b { color: var(--accent); }
.check-row a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .4); text-underline-offset: 2px; }
.check-row a:hover { text-decoration-color: currentColor; }

/* =========================================================
   Transfer Express — layout, chart, icon and review refinements
   ========================================================= */

/* The exchange form now owns the full container width. */
.exchange-shell {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
.exchange-main {
  width: 100%;
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
}
.exchange-summary { display: none; }
.exchange-main > *,
.selector-layout > *,
.amount-grid > *,
.details-grid > *,
.request-fields > * { min-width: 0; }
.asset-picker-copy strong,
.asset-picker-copy small,
.detail-card strong,
.detail-card p,
.check-row span,
.direction-flow-text { overflow-wrap: anywhere; }
.amount-field output { max-width: 100%; }
.order-button { min-width: 0; }
.logo-badge.accent-alt {
  max-width: 100%;
  white-space: normal;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

/* Local SVG brand and currency icons. */
.asset-picker-icon,
.coin,
.asset-item-icon,
.chart-asset-icon,
.review-asset-icon {
  overflow: hidden;
  color: transparent !important;
  border: 1px solid rgba(146, 189, 173, .18);
  background: color-mix(in srgb, var(--surface-solid) 88%, white 12%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px rgba(0,0,0,.1) !important;
}
.asset-picker-icon img,
.coin img,
.asset-item-icon img,
.chart-asset-icon img,
.review-asset-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.asset-picker-icon { padding: 9px; }
.coin { padding: 7px; }
.asset-item-icon { padding: 7px; font-size: 0; }

/* Interactive online chart. */
.chart-picker-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.chart-asset-button {
  min-width: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.chart-asset-button:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), .36);
  background: var(--surface-hover);
}
.chart-asset-icon,
.review-asset-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  padding: 7px;
  border-radius: 13px;
}
.chart-asset-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}
.chart-asset-copy small {
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.chart-asset-copy strong {
  width: 100%;
  margin-top: 4px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-asset-button > svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-swap-button,
.review-swap-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), .25);
  border-radius: 15px;
  background: rgba(var(--accent-rgb), .09);
}
.chart-swap-button svg,
.review-swap-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-current-rate {
  flex-wrap: wrap;
  margin-top: 18px;
}
.chart-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 19px;
}
.chart-toolbar > span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 760;
}
.chart-periods {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}
.chart-periods button {
  min-width: 38px;
  min-height: 30px;
  padding: 0 8px;
  color: var(--text-muted);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 850;
}
.chart-periods button.active {
  color: #04261a;
  background: var(--accent);
}
.preview-chart {
  height: 220px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), .09), transparent 75%),
    var(--surface-soft);
}
.preview-chart svg {
  position: absolute;
  inset: 10px 0 22px;
  width: 100%;
  height: calc(100% - 32px);
}
.chart-grid path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.chart-line {
  stroke-width: 3.2;
  vector-effect: non-scaling-stroke;
}
.chart-end-point {
  fill: var(--accent);
  stroke: var(--surface-solid);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.chart-state {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  text-align: center;
}
.chart-state[hidden] { display: none; }
.chart-state b { font-size: 12px; }
.chart-state small { max-width: 300px; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.chart-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
.chart-axis {
  position: absolute;
  right: 12px;
  bottom: 8px;
  left: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 9px;
}
.chart-summary-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}
.chart-summary-row div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}
.chart-summary-row span,
.chart-summary-row strong { display: block; }
.chart-summary-row span {
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chart-summary-row strong {
  margin-top: 5px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#chartChange[data-trend="up"] { color: var(--accent); }
#chartChange[data-trend="down"] { color: var(--danger); }

/* Reviews: clean heading, selectable direction and exact star score. */
.reviews-title {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.reviews-title h2 {
  margin: 0;
  font-size: clamp(52px, 9vw, 112px);
  line-height: .88;
  letter-spacing: -.075em;
}
.reviews-layout { margin-top: 28px; }
.reviews-feed { min-width: 0; }
.reviews-grid { margin-top: 0; }
.reviews-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 30px;
  color: var(--text-muted);
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  text-align: center;
}
.reviews-empty > span { color: var(--accent); font-size: 30px; }
.reviews-empty strong { color: var(--text); font-size: 18px; }
.reviews-empty p { max-width: 420px; margin: 0; font-size: 12px; line-height: 1.65; }
.review-card { min-height: 190px; }
.review-card p { margin-bottom: 0; }
.review-badge,
.reviews-summary,
.reviews-legend { display: none !important; }
.review-form-card > p,
.local-review-note { display: none !important; }
.review-direction { padding: 15px; }
.review-pair-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.review-asset-button {
  min-width: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
}
.review-asset-button:hover { border-color: rgba(var(--accent-rgb), .38); }
.review-asset-button > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}
.review-asset-button small {
  color: var(--text-muted);
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.review-asset-button strong {
  width: 100%;
  margin-top: 4px;
  overflow: hidden;
  font-size: 11px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-asset-button > svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.review-swap-button { width: 38px; height: 38px; border-radius: 13px; }
.review-pair-text {
  display: block;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 11px !important;
  line-height: 1.5;
}
.interactive-stars {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.interactive-stars .star {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  font-size: 23px;
}
.interactive-stars .star.active {
  color: #f6bc4a;
  border-color: rgba(246, 188, 74, .28);
  background: rgba(246, 188, 74, .07);
}
.rating-field small { font-size: 11px; }
.review-submit { min-height: 52px; }

/* Modal usability with many local icons. */
.modal-chips {
  overflow-x: auto;
  scrollbar-width: thin;
}
.asset-item { min-width: 0; }
.asset-item-copy { min-width: 0; }
.asset-item-copy strong,
.asset-item-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-item-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
}

@media (max-width: 1100px) {
  .selector-layout { grid-template-columns: 1fr; }
  .swap-divider { margin: -2px 0; }
  .swap-button { width: 100%; max-width: 180px; }
  .request-fields,
  .details-grid { grid-template-columns: 1fr; }
  .order-footer { align-items: stretch; flex-direction: column; }
  .check-row { max-width: none; }
  .action-cluster { width: 100%; }
  .action-cluster .button { flex: 1 1 220px; }
}

@media (max-width: 720px) {
  .exchange-shell { border-radius: 26px; }
  .exchange-main { padding: 14px; }
  .currency-card,
  .detail-card,
  .request-panel { border-radius: 22px; }
  .selector-card,
  .currency-card { padding: 16px; }
  .amount-grid { grid-template-columns: 1fr; }
  .amount-field { gap: 8px; padding: 0 12px; }
  .amount-field input,
  .amount-field output { font-size: clamp(25px, 9vw, 34px); }
  .currency-chip { flex: none; gap: 7px; }
  .field-meta { align-items: flex-start; flex-direction: column; }
  .quick-amounts { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .request-panel { padding: 16px; }
  .action-cluster { display: grid; grid-template-columns: 1fr; }

  .chart-picker-row { grid-template-columns: 1fr 40px 1fr; gap: 7px; }
  .chart-asset-button { min-height: 60px; padding: 8px; }
  .chart-asset-icon { width: 34px; height: 34px; padding: 6px; }
  .chart-asset-copy small { display: none; }
  .chart-asset-copy strong { font-size: 11px; }
  .chart-swap-button { width: 40px; height: 40px; }
  .chart-current-rate strong { font-size: 27px; }
  .chart-toolbar { align-items: flex-start; flex-direction: column; }
  .chart-periods { width: 100%; }
  .chart-periods button { flex: 1; }
  .preview-chart { height: 200px; }
  .chart-summary-row { grid-template-columns: 1fr 1fr; }
  .chart-summary-row div:first-child { grid-column: 1 / -1; }
  .preview-meta { grid-template-columns: 1fr; }

  .reviews-section { padding: 70px 0; }
  .reviews-title h2 { font-size: clamp(48px, 18vw, 74px); }
  .reviews-layout { gap: 18px; margin-top: 20px; }
  .reviews-feed,
  .review-form-card { padding: 14px; }
  .review-pair-picker { grid-template-columns: 1fr; }
  .review-swap-button { width: 100%; height: 36px; }
  .review-asset-button strong { font-size: 12px; }
  .interactive-stars { justify-content: space-between; gap: 4px; }
  .interactive-stars .star { width: min(44px, 17vw); height: min(44px, 17vw); font-size: 22px; }
  .review-card-top { grid-template-columns: auto 1fr; }
  .review-stars { grid-column: 1 / -1; }

  .asset-dialog {
    max-height: calc(100dvh - 12px);
    margin: 6px auto;
  }
  .asset-item { padding-inline: 8px; }
  .asset-item-code { font-size: 11px; }
}

@media (max-width: 440px) {
  .chart-picker-row { grid-template-columns: 1fr; }
  .chart-swap-button { width: 100%; height: 36px; }
  .chart-asset-button { width: 100%; }
  .chart-summary-row { grid-template-columns: 1fr; }
  .chart-summary-row div:first-child { grid-column: auto; }
  .preview-rate { align-items: center; }
  .review-form-card h3 { font-size: 26px; }
}

/* Review direction controls stay readable even in the narrow side card. */
.review-pair-picker {
  grid-template-columns: 1fr;
}
.review-swap-button {
  width: 100%;
  height: 36px;
}
.review-asset-button {
  width: 100%;
}
.review-asset-button strong {
  font-size: 12px;
  white-space: normal;
}

/* Prevent long trust labels from widening the mobile layout. */
.guarantees-layout,
.guarantees-main,
.guarantee-cards,
.guarantee-card,
.guarantees-copy,
.compact-heading,
.compact-heading > div {
  min-width: 0;
  max-width: 100%;
}
.logo-badge {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .logo-badge.accent-alt {
    width: 100%;
  }
}


/* =========================================================
   Transfer Express — usability pass: modal, themes, chart and logos
   ========================================================= */

html, body { max-width: 100%; overflow-x: clip; }

:root {
  --modal-bg: #0b2635;
  --modal-card: rgba(255,255,255,.035);
  --modal-line: rgba(187, 225, 212, .14);
  --modal-muted: rgba(238, 255, 249, .66);
}
html[data-theme="light"] {
  --modal-bg: #ffffff;
  --modal-card: #f4f8f6;
  --modal-line: rgba(28, 79, 59, .14);
  --modal-muted: #668477;
}
html[data-theme="light"] body {
  background:
    radial-gradient(circle at 8% 0%, rgba(var(--accent-rgb), .16), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(48, 112, 255, .10), transparent 24%),
    linear-gradient(180deg, #f7fbf9 0%, #edf5f1 52%, #e8f1ed 100%);
}
html[data-theme="light"] .ambient-one { opacity: .28; }
html[data-theme="light"] .ambient-two { opacity: .18; }
html[data-theme="light"] .noise { opacity: .045; mix-blend-mode: multiply; }

html[data-theme="light"] .header-inner {
  background: linear-gradient(135deg, rgba(5, 27, 24, .96), rgba(9, 35, 32, .94) 42%, rgba(8, 30, 34, .95));
  border-color: rgba(63, 216, 194, .14);
  box-shadow: 0 20px 44px rgba(7, 24, 28, .16);
}
html[data-theme="light"] .desktop-nav a {
  color: rgba(236, 247, 243, .88);
}
html[data-theme="light"] .desktop-nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}
html[data-theme="light"] .icon-button,
html[data-theme="light"] .theme-toggle {
  color: #ecfaf5;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
html[data-theme="light"] .icon-button:hover,
html[data-theme="light"] .theme-toggle:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}
html[data-theme="light"] .brand {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
html[data-theme="light"] .brand-logo {
  filter: none;
}
html[data-theme="light"] .site-header.scrolled .header-inner {
  background: linear-gradient(135deg, rgba(5, 27, 24, .98), rgba(9, 35, 32, .96) 42%, rgba(8, 30, 34, .97));
  border-color: rgba(63, 216, 194, .16);
  box-shadow: 0 20px 44px rgba(7, 24, 28, .18);
}

html[data-theme="light"] .site-footer {
  margin-top: 24px;
  padding: 26px 0 36px;
  background: linear-gradient(135deg, rgba(5, 27, 24, .94), rgba(9, 35, 32, .92) 42%, rgba(8, 30, 34, .94));
  border-top: 1px solid rgba(63, 216, 194, .10);
}
html[data-theme="light"] .footer-top {
  border-top-color: rgba(255,255,255,.10);
  border-bottom-color: rgba(255,255,255,.10);
}
html[data-theme="light"] .footer-links {
  color: rgba(236, 247, 243, .86);
}
html[data-theme="light"] .footer-links a:hover {
  color: #ffffff;
}
html[data-theme="light"] .footer-bottom {
  color: rgba(214, 231, 224, .74);
}
html[data-theme="light"] .hero-copy,
html[data-theme="light"] .rate-preview,
html[data-theme="light"] .exchange-shell,
html[data-theme="light"] .review-form-card,
html[data-theme="light"] .reviews-feed,
html[data-theme="light"] .rules-teaser-card,
html[data-theme="light"] .cta-card,
html[data-theme="light"] .guarantees-copy,
html[data-theme="light"] .logo-card {
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 50px rgba(35,72,57,.10);
}
html[data-theme="light"] .currency-card,
html[data-theme="light"] .detail-card,
html[data-theme="light"] .request-panel,
html[data-theme="light"] .review-card,
html[data-theme="light"] .review-direction {
  background: #f8fbf9;
}

/* Every asset icon sits on a neutral white canvas in both themes. */
.asset-picker-icon,
.coin,
.asset-item-icon,
.chart-asset-icon,
.review-asset-icon {
  background: #ffffff !important;
  border-color: rgba(18, 62, 45, .14) !important;
  box-shadow: 0 8px 20px rgba(2, 22, 15, .12) !important;
}

.button-light {
  border: 1px solid rgba(5, 42, 29, .24);
  box-shadow: 0 12px 28px rgba(2, 30, 20, .14), inset 0 0 0 1px rgba(255,255,255,.65);
}
html[data-theme="light"] .button-light {
  color: #08241a;
  border-color: #8fb6a5;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(30, 84, 61, .18), inset 0 0 0 1px #ffffff;
}
html[data-theme="light"] .button-light:hover {
  border-color: var(--accent-strong);
  background: #f7fffb;
}

/* The agreement has a visible, functional effect on the order button. */
.order-button:disabled,
.order-button[aria-disabled="true"] {
  opacity: .42;
  cursor: not-allowed;
  filter: grayscale(.42);
  transform: none !important;
  box-shadow: none;
}
.check-row.agreement-missing { color: var(--danger); }
.check-row.agreement-missing .custom-check { border-color: var(--danger); }

/* Full, theme-aware asset picker without nested horizontal scrolling. */
.asset-modal { overflow-y: auto; overscroll-behavior: contain; padding: 12px 0; }
.asset-modal-backdrop { position: fixed; background: rgba(2, 11, 8, .72); }
html[data-theme="light"] .asset-modal-backdrop { background: rgba(20, 44, 35, .38); }
.asset-dialog {
  width: min(1180px, calc(100% - 24px));
  max-height: none;
  min-height: min(720px, calc(100dvh - 24px));
  margin: 0 auto;
  overflow: visible;
  padding: clamp(14px, 2vw, 24px);
  color: var(--text);
  border-color: var(--modal-line);
  background: var(--modal-bg);
  box-shadow: 0 32px 110px rgba(0,0,0,.42);
}
.modal-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 2px 0 10px;
  background: linear-gradient(var(--modal-bg) 82%, transparent);
}
.modal-search { border-bottom-color: rgba(var(--accent-rgb), .64); }
.modal-search svg,
.modal-close { color: var(--text); }
.modal-search input { color: var(--accent); }
.modal-search input::placeholder { color: var(--accent); }
.modal-heading-row small,
.asset-item-copy small { color: var(--modal-muted); }
.modal-heading-row > div { min-width: 0; }
.modal-result-count {
  display: block;
  margin-top: 5px;
  color: var(--modal-muted);
  font-size: 11px;
}
.modal-tabs,
.modal-chips {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 8px;
  padding-inline: 8px;
}
.modal-tab,
.quick-chip {
  flex: 0 0 auto;
  color: var(--text-soft);
  border-color: var(--modal-line);
  background: var(--modal-card);
}
.modal-tab.active,
.quick-chip.active,
.quick-chip:hover,
.modal-tab:hover { color: #04261a; background: var(--accent); }
.modal-chips[hidden] { display: none; }
.asset-list {
  display: block;
  margin-top: 16px;
  overflow: visible;
  padding: 0 4px 10px;
}
.asset-group + .asset-group { margin-top: 18px; }
.asset-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 2px 8px;
  color: var(--text);
}
.asset-group-title strong { font-size: 13px; letter-spacing: .01em; }
.asset-group-title span {
  min-width: 28px;
  padding: 4px 8px;
  color: var(--text-muted);
  border: 1px solid var(--modal-line);
  border-radius: 999px;
  background: var(--modal-card);
  font-size: 10px;
  text-align: center;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.asset-item {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--text);
  border-color: var(--modal-line);
  background: var(--modal-card);
  text-align: left;
}
.asset-item:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), .46);
  background: color-mix(in srgb, var(--modal-card) 80%, rgba(var(--accent-rgb), .10));
}
.asset-item-copy { min-width: 0; }
.asset-item-title-row {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
}
.asset-item-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-item-code {
  flex: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
}
.asset-item-copy small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}
.asset-item.opposite-selected {
  border-color: rgba(var(--accent-rgb), .38);
  background: rgba(var(--accent-rgb), .09);
}

/* Precise chart hover/touch readout. */
.chart-area,
.chart-line,
.chart-end-point,
.chart-crosshair,
.chart-focus-point { pointer-events: none; }
.chart-hitbox { fill: transparent; pointer-events: all; cursor: crosshair; touch-action: none; }
.chart-crosshair {
  opacity: 0;
  stroke: var(--text-muted);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  transition: opacity .12s ease;
}
.chart-focus-point {
  opacity: 0;
  fill: var(--surface-solid);
  stroke: var(--accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  transition: opacity .12s ease;
}
.chart-crosshair.is-visible,
.chart-focus-point.is-visible { opacity: 1; }
.chart-tooltip {
  position: absolute;
  z-index: 6;
  width: max-content;
  max-width: min(245px, calc(100% - 20px));
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-solid);
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}
.chart-tooltip[hidden] { display: none; }
.chart-tooltip strong,
.chart-tooltip span { display: block; }
.chart-tooltip strong { font-size: 12px; }
.chart-tooltip span { margin-top: 4px; color: var(--text-muted); font-size: 10px; }

/* Actual PNG logos instead of CSS text imitations. */
.monitoring-logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.monitor-logo-card {
  min-width: 0;
  min-height: 104px;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 48, 35, .08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.monitor-logo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), .46);
  box-shadow: 0 18px 38px rgba(16, 48, 35, .14);
}
.monitor-logo-card.monitor-logo-dark { background: #14233a; }
.monitor-logo-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

/* Seeded and user-added reviews intentionally share one visual style. */
.review-card.local-review,
.review-card {
  border-color: var(--line);
  background: var(--surface-soft);
}

@media (max-width: 980px) {
  .asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .monitoring-logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .asset-modal { padding: 0; }
  .asset-dialog {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 0;
  }
  .modal-heading-row { align-items: flex-start; }
  .modal-heading-row small { max-width: 45%; text-align: right; }
  .modal-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .modal-tabs::-webkit-scrollbar { display: none; }
  .modal-chips { display: none; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-item { min-height: 72px; }
  .asset-item-copy strong { font-size: 11px; }
  .asset-item-copy small { font-size: 8px; }
  .monitoring-logo-wall { grid-template-columns: 1fr 1fr; gap: 10px; }
  .monitor-logo-card { min-height: 88px; padding: 12px; border-radius: 17px; }
  .monitor-logo-card img { max-height: 52px; }
}

@media (max-width: 420px) {
  .asset-grid { grid-template-columns: 1fr; }
  .asset-item { min-height: 64px; }
  .monitoring-logo-wall { grid-template-columns: 1fr; }
  .chart-tooltip { max-width: calc(100% - 14px); }
}

/* === Asset picker v2: one compact viewport, no clipped chip strip === */
.asset-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
}
.asset-modal[hidden] { display: none; }
.asset-dialog {
  width: min(1240px, 100%);
  height: min(900px, calc(100dvh - 20px));
  min-height: 0;
  max-height: calc(100dvh - 20px);
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-topbar {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  background: transparent;
}
.modal-heading-row,
.modal-tabs { flex: 0 0 auto; }
.modal-tabs {
  flex-wrap: wrap;
  overflow: visible;
  padding: 0 2px;
}
.modal-chips { display: none !important; }
.asset-list {
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 12px;
  padding: 2px 5px 12px 2px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), .62) transparent;
}
.asset-list::-webkit-scrollbar { width: 7px; }
.asset-list::-webkit-scrollbar-track { background: transparent; }
.asset-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .62);
  background-clip: padding-box;
}
.asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(134px, 1fr));
  gap: 7px;
}
.asset-item {
  min-height: 58px;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 15px;
}
.asset-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.asset-item-copy strong { font-size: 11px; }
.asset-item-copy small {
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.25;
  -webkit-line-clamp: 1;
}
.asset-item-code { font-size: 9px; }

/* Stronger visual separation between light and dark modes. */
html[data-theme="dark"] .asset-dialog {
  background: linear-gradient(145deg, #0a2635 0%, #0b1f2c 100%);
  border-color: rgba(79, 220, 179, .22);
}
html[data-theme="light"] .asset-dialog {
  color: #10241d;
  background: linear-gradient(145deg, #ffffff 0%, #f1f7f4 100%);
  border-color: rgba(40, 91, 69, .20);
  box-shadow: 0 30px 90px rgba(22, 60, 44, .22);
}
html[data-theme="light"] .asset-item {
  background: #ffffff;
  border-color: rgba(35, 82, 62, .14);
  box-shadow: 0 5px 16px rgba(28, 68, 51, .06);
}
html[data-theme="light"] .asset-item:hover {
  background: #f4fff9;
  border-color: rgba(var(--accent-rgb), .72);
}
html[data-theme="dark"] .asset-item {
  background: rgba(255,255,255,.035);
  border-color: rgba(180, 226, 208, .13);
}

/* CTA remains visibly button-shaped on the pale theme. */
html[data-theme="light"] .cta-card .button-light {
  border: 2px solid #6f9d89;
  outline: 1px solid rgba(255,255,255,.9);
  outline-offset: -4px;
  box-shadow: 0 12px 28px rgba(31, 86, 62, .17);
}

@media (max-width: 720px) {
  .asset-modal { padding: 0; }
  .asset-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    padding: 12px;
    border-radius: 0;
  }
  .modal-tabs {
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
    padding-bottom: 0;
  }
  .modal-tab { min-height: 38px; padding: 0 12px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-item { min-height: 62px; }
  .asset-item-copy strong { font-size: 10px; }
  .asset-item-copy small { font-size: 7.5px; }
  .asset-list { padding-right: 3px; }
}

@media (max-width: 350px) {
  .asset-grid { grid-template-columns: 1fr; }
}
.modal-tabs[hidden] { display: none !important; }
@media (max-width: 720px) {
  .asset-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
}

/* logo responsive */
@media (max-width: 680px) {
  .brand-logo { width: min(58vw, 228px); }
  html[data-theme="light"] .brand { padding: 0; }
}

/* Rules page mobile reliability: content must never stay hidden if a mobile browser
   delays or limits IntersectionObserver on a long document. */
@media (max-width: 980px) {
  .rules-page .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .rules-page .rules-main {
    overflow: visible;
  }

  .rules-page .rules-sections {
    padding-top: 34px;
  }

  .rules-page .rules-nav-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rules-page .rules-nav-card strong {
    grid-column: 1 / -1;
  }

  .rules-page .rules-nav-card a {
    min-width: 0;
    padding: 10px 12px;
    line-height: 1.35;
  }
}

@media (max-width: 560px) {
  .rules-page .rules-nav-card {
    grid-template-columns: 1fr;
  }
}
