:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --ink: #121826;
  --muted: #667085;
  --line: #d9e1ec;
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --accent: #2563eb;
  --gold: #d8942d;
  --warn: #b45309;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.16);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.46);
}
html [hidden] {
  display: none !important;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef3f8 0%, #f7fafc 46%, #eef3f8 100%);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid rgba(217, 225, 236, .74);
  backdrop-filter: blur(22px);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  min-width: 0;
}
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}
.nav-links a:hover, .nav-links a.active { background: #e6f7f5; color: var(--brand-dark); }
.menu-button { display: none; border: 1px solid var(--line); background: white; padding: 9px 11px; border-radius: 8px; flex-shrink: 0; }

.hero {
  min-height: min(calc(100vh - 72px), 760px);
  display: grid;
  align-items: center;
  padding: 58px 0 44px;
  color: white;
  background:
    linear-gradient(108deg, rgba(4, 13, 27, 0.96), rgba(15, 52, 59, 0.9) 54%, rgba(13, 71, 65, 0.82)),
    url("../img/exchangerpoint-bitcoins.png") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(238,243,248,0), #eef3f8);
  pointer-events: none;
  z-index: 0;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-product { min-height: min(calc(100vh - 72px), 760px); align-items: center; }
.hero-copy { align-self: center; max-width: 620px; min-width: 0; position: relative; z-index: 1; }
.eyebrow { color: #8ce9dc; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow.dark { color: var(--brand-dark); }
h1, h2, h3 { margin: 0; letter-spacing: 0; line-height: 1.08; }
.hero h1 { font-size: clamp(42px, 5vw, 62px); max-width: 680px; }
.hero p { color: #d8e6ed; font-size: 18px; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  border: 0;
  border-radius: 8px;
  padding: 13px 17px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
}
.button.primary { background: var(--brand); color: white; }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { background: #eef4ff; color: #1849a9; }
.button.ghost { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.32); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust-strip span {
  border: 1px solid rgba(153, 246, 228, .72);
  border-radius: 999px;
  color: #dffdfa;
  background: rgba(45, 130, 124, .56);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
  text-shadow: none;
  box-shadow: 0 8px 20px rgba(2, 6, 23, .12);
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  max-width: 620px;
}
.hero-metrics div {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  padding: 14px;
  backdrop-filter: blur(18px);
}
.hero-metrics strong { display: block; color: white; font-size: 24px; line-height: 1; }
.hero-metrics span { color: #bfe4e1; display: block; font-size: 12px; font-weight: 800; margin-top: 8px; }

.quote-panel {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.72);
}
.market-strip { display: grid; gap: 10px; margin-top: 18px; }
.market-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fbfdff;
}
.market-row span { color: var(--muted); font-size: 13px; font-weight: 800; }
.market-row strong { font-size: 22px; white-space: nowrap; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.quick-item { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fbfdff; }
.quick-item strong { display: block; font-size: 22px; }
.quick-item span { color: var(--muted); font-size: 13px; }
.trade-console {
  background: rgba(255,255,255,.72);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(26px);
  min-width: 0;
}
.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid rgba(217,225,236,.76);
}
.trade-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 8px;
  background: #eef2f6;
  min-width: 160px;
}
.trade-switch button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #475467;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 38px;
}
.trade-switch button.active { background: white; color: var(--brand-dark); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.trade-panel { display: none; }
.trade-panel.active { display: block; }
.trade-shell.compact { border: 0; box-shadow: none; border-radius: 0; }
.trade-shell.compact .trade-head { padding-top: 16px; }
.minimum-note { color: var(--muted); font-size: 13px; font-weight: 800; align-self: center; }
.market-band {
  background: transparent;
  border-bottom: 0;
  margin-top: -18px;
  padding: 0 0 18px;
  position: relative;
  z-index: 4;
}
.market-layout {
  background: rgba(255,255,255,.76);
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 18px;
  padding: 18px;
  backdrop-filter: blur(24px);
}
.market-copy { align-self: center; padding: 8px; }
.market-copy h2 { font-size: clamp(24px, 3vw, 34px); }
.market-copy p { color: var(--muted); margin: 8px 0 0; }
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.market-row.premium {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 160px;
}
.market-row.premium span { font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.market-row.premium strong {
  display: block;
  font-size: clamp(24px, 2.05vw, 30px);
  letter-spacing: 0;
  line-height: 1.05;
  white-space: normal;
  word-break: keep-all;
}
.market-row small {
  color: #7a8699;
  font-size: 12px;
  font-weight: 700;
}
.rate-card { gap: 14px; }
.rate-lines {
  display: grid;
  gap: 12px;
  grid-template-rows: repeat(2, minmax(78px, 1fr));
  width: 100%;
}
.rate-lines div {
  background: rgba(255,255,255,.64);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78px;
  padding: 12px;
}
.rate-lines small {
  display: block;
  margin-bottom: 6px;
  text-transform: none;
}
.rate-lines strong { color: var(--ink); }
.market-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}
.shared-market-actions {
  margin-top: 18px;
  max-width: 340px;
}
.market-actions a {
  align-items: center;
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  border-radius: 8px;
  color: var(--brand-dark);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  padding: 10px;
  text-decoration: none;
}
.market-actions a:last-child {
  background: #eff8ff;
  border-color: #b2ddff;
  color: #175cd3;
}
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: start; }
.process-list { display: grid; gap: 14px; }
.process-list div { border-left: 4px solid var(--brand); padding: 4px 0 4px 16px; }
.process-list p { color: var(--muted); margin: 6px 0 0; }

.section { padding: 72px 0; }
.section.tight { padding: 42px 0 72px; }
.section-title { max-width: 760px; margin-bottom: 28px; }
.section-title.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-title h2 { font-size: clamp(28px, 4vw, 44px); }
.section-title p { color: var(--muted); font-size: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.band { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.card p { color: var(--muted); margin-bottom: 0; }

.market-intelligence {
  padding-top: 58px;
  background:
    linear-gradient(180deg, rgba(238,243,248,0), rgba(255,255,255,.76) 38%, rgba(238,243,248,.9));
}
.intelligence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 18px;
  align-items: stretch;
}
.chart-panel, .execution-panel, .feature-tile {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.chart-panel { padding: 20px; min-width: 0; }
.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.chart-head h2, .execution-panel h2 { font-size: clamp(26px, 3.4vw, 42px); }
.chart-badge {
  background: #101828;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
}
#btc-price-chart {
  width: 100%;
  aspect-ratio: 2.35;
  display: block;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc, #eef6f5);
  border: 1px solid rgba(217,225,236,.82);
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-top: 12px;
}
.chart-foot strong { color: var(--ink); }
.execution-panel { padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.execution-list { display: grid; gap: 12px; margin-top: 20px; }
.execution-list div {
  border: 1px solid rgba(217,225,236,.82);
  border-radius: 8px;
  background: rgba(248,250,252,.76);
  padding: 14px;
}
.execution-list strong { display: block; }
.execution-list span { color: var(--muted); display: block; font-size: 13px; margin-top: 5px; }
.product-system { background: #f8fafc; }
.feature-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feature-tile { padding: 20px; }
.feature-tile span {
  color: var(--gold);
  display: block;
  font-weight: 900;
  margin-bottom: 18px;
}
.feature-tile p { color: var(--muted); margin-bottom: 0; }

.trade-shell {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trade-head { padding: 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.step-pill { padding: 7px 10px; border-radius: 999px; background: #f2f4f7; color: var(--muted); font-size: 12px; font-weight: 800; }
.step-pill.active { background: #d1fadf; color: #05603a; }
.trade-body { padding: 22px; }
.form-step { display: none; animation: fadeIn .22s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { color: #344054; font-size: 13px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  min-height: 46px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #ccfbf1; border-color: var(--brand); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-grid.two { grid-template-columns: repeat(2, 1fr); }
.choice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  background: #fbfdff;
  font-weight: 800;
}
.choice input { width: auto; min-height: 0; margin-right: 7px; }
.choice.disabled { opacity: .45; cursor: not-allowed; }
.conditional-field { display: none; }
.conditional-field.active { display: flex; }
.legal-check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
  color: #475467;
  font-size: 13px;
}
.legal-check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; }
.legal-check a { color: var(--brand-dark); font-weight: 800; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.message { margin-top: 14px; padding: 12px; border-radius: 8px; background: #f2f4f7; color: var(--muted); display: none; }
.message.show { display: block; }
.message.error { background: #fef3f2; color: var(--danger); }
.message.success { background: #ecfdf3; color: var(--success); }
.summary { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eef2f6; padding-bottom: 8px; min-width: 0; }
.summary-row span { flex: 0 0 auto; }
.summary-row strong { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.summary-row:last-child { border-bottom: 0; padding-bottom: 0; }
.estimate-highlight {
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #05603a;
  font-weight: 900;
}

.trace-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.trace-table th, .trace-table td { text-align: left; padding: 13px; border-bottom: 1px solid var(--line); }
.trace-table th { background: #f8fafc; color: #344054; width: 32%; }
.status { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #fffaeb; color: var(--warn); font-weight: 800; }
.status.done { background: #ecfdf3; color: var(--success); }

.page-kicker { padding: 46px 0 20px; background: white; border-bottom: 1px solid var(--line); }
.page-kicker h1 { font-size: clamp(32px, 5vw, 54px); }
.page-kicker p { color: var(--muted); max-width: 720px; }
.knowledge-hero {
  background:
    radial-gradient(circle at 15% 10%, rgba(71, 167, 157, .18), transparent 34%),
    linear-gradient(135deg, #f8fbfb, #eef6f4 52%, #ffffff);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 46px;
}
.knowledge-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 28px;
  align-items: center;
}
.knowledge-hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; max-width: 880px; }
.knowledge-hero p { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 720px; }
.knowledge-panel {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.learning-path { display: grid; gap: 12px; margin-top: 18px; }
.learning-path a, .knowledge-link-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  padding: 16px;
  text-decoration: none;
}
.learning-path a strong, .knowledge-link-card strong { display: block; font-size: 17px; }
.learning-path a span, .knowledge-link-card span { color: var(--muted); display: block; font-size: 13px; margin-top: 5px; }
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.knowledge-link-card { min-height: 180px; }
.knowledge-link-card small {
  color: var(--brand);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.article-shell {
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.article-toc {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  position: sticky;
  top: 92px;
}
.article-toc strong { display: block; margin-bottom: 10px; }
.article-toc a { color: var(--muted); display: block; font-weight: 800; margin: 10px 0; text-decoration: none; }
.article-body {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
}
.article-body h2 { font-size: clamp(26px, 3vw, 38px); margin-top: 34px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p, .article-body li { color: var(--muted); font-size: 16px; line-height: 1.72; }
.article-body ul { display: grid; gap: 10px; padding-left: 20px; }
.article-callout {
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  border-radius: 8px;
  color: #05603a;
  font-weight: 800;
  margin: 24px 0;
  padding: 18px;
}
.article-callout.warning {
  background: #fffaeb;
  border-color: #fedf89;
  color: #93370d;
}
.guide-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.guide-matrix .card { background: white; }
.related-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related-guides a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  padding: 16px;
  text-decoration: none;
}


.site-footer { background: #101828; color: #d0d5dd; padding: 42px 0; }
.enterprise-footer {
  background:
    linear-gradient(180deg, #0b1220, #101828);
  padding: 54px 0 36px;
}
.footer-brand-row {
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.14);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding-bottom: 26px;
}
.footer-brand-row p { color: #b9c0cc; margin: 8px 0 0; max-width: 620px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 24px; }
.footer-grid.enterprise { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 28px; }
.site-footer a { color: #d0d5dd; display: block; margin: 8px 0; }
.site-footer strong { color: white; }
.footer-seo-links {
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 24px;
  padding-top: 18px;
}
.footer-seo-links a { color: #e5e7eb; font-size: 13px; margin: 0; }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #f2f4f7;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  padding: 8px 11px;
}
.footer-social a:hover { background: rgba(255,255,255,.1); }
.done-text {
  display: grid;
  gap: 14px;
  line-height: 1.6;
}
.address-line {
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111827;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  padding: 10px;
}
.wallet-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wallet-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}
.qr-image {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: auto;
  max-width: 180px;
  width: 100%;
}
.whatsapp-float {
  position: fixed;
  left: 14px;
  bottom: 22px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: var(--shadow);
}
.p2p-live-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(70, 150, 137, .12), transparent 32%),
    linear-gradient(135deg, #f8fafc 0%, #eef4f3 100%);
}
.p2p-live-grid {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: .9fr 1.1fr;
}
.p2p-live-copy h1,
.p2p-live-copy h2 {
  color: var(--ink);
  font-size: 42px;
  line-height: 1.06;
  margin: 10px 0 14px;
}
.p2p-live-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.p2p-live-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.p2p-live-points span {
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  font-weight: 850;
  padding: 12px 14px;
}
.p2p-card {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(15,23,42,.12);
}
.trace-order-panel,
.contact-page-panel {
  width: 100%;
}
.contact-support-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}
.contact-support-strip span {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  padding: 12px 14px;
}
.contact-channel-buttons {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}
.contact-channel {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  padding: 13px 14px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.contact-channel:hover {
  box-shadow: 0 12px 26px rgba(15,23,42,.12);
  transform: translateY(-1px);
}
.contact-channel.whatsapp {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}
.contact-channel.telegram {
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #075985;
}
.contact-channel.email {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}
.p2p-summary {
  margin-top: 16px;
}
.p2p-summary:empty {
  display: none;
}
.p2p-receive-line {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.p2p-receive-line select,
.p2p-inline-quote {
  min-width: 0;
  width: 100%;
}
.p2p-inline-quote {

  align-items: center;
  border: 1px solid #b8ebe3;
  border-radius: 8px;
  background: #ecfdf9;
  color: #087568;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  margin-top: 0;
  min-height: 48px;
  padding: 9px 10px;
}
.p2p-inline-quote.loading {
  background: #f8fafc;
  border-color: var(--line);
  color: var(--muted);
}
.p2p-inline-quote.error {
  background: #fef3f2;
  border-color: #fecaca;
  color: var(--danger);
}
.trade-room-page {
  background: #f4f7f6;
}
.trade-room-section {
  padding-top: 82px;
}
.trade-room-shell {
  display: grid;
  gap: 22px;
}
.trade-room-status h1 {
  color: var(--ink);
  font-size: 42px;
  margin: 8px 0;
}
.trade-room-status p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}
.pin-panel, .summary-card, .chat-panel {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.pin-panel {
  display: grid;
  gap: 16px;
  max-width: 460px;
  padding: 24px;
}
.trade-room-grid {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
}
.trade-room-summary {
  align-content: start;
  display: grid;
  gap: 14px;
  min-height: 620px;
}
.summary-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.summary-card h2 {
  color: var(--ink);
  margin: 0;
}
.summary-card h2.active { color: #0f766e; }
.summary-card h2.paid, .summary-card h2.completed { color: #039855; }
.summary-card h2.escalated { color: #b54708; }
.summary-card h2.expired { color: #b54708; }
.summary-card h2.disputed { color: #8142f5; }
.summary-card h2.cancelled { color: #d92d20; }
.role-badge, .online-dot {
  align-self: start;
  background: #dff7ef;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}
.role-badge.admin {
  background: #e0ecff;
  color: #1d4ed8;
}
.trade-actions {
  display: grid;
  gap: 10px;
}
.button.danger {
  background: #dc2626;
  color: #fff;
}
.button.warning {
  background: #f59e0b;
  color: #111827;
}
.button.success {
  background: #047857;
  color: #fff;
}
.trade-side-box {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
}
.trade-side-box h3 {
  margin: 0;
}
.escrow-note {
  color: #334155;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}
.risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  padding: 7px 10px;
}
.tag.danger {
  background: #fee2e2;
  color: #991b1b;
}
.tag.success {
  background: #dcfce7;
  color: #166534;
}
.history-link {
  color: #0f766e;
  font-weight: 950;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  overflow: hidden;
}
.chat-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}
.chat-head h2 {
  margin: 4px 0 0;
}
.chat-messages {
  align-content: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}
.chat-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-block;
  max-width: min(68%, 560px);
  padding: 8px 10px;
  width: fit-content;
}
.chat-message.admin {
  align-self: flex-end;
  background: #dbeafe;
  border-color: #60a5fa;
  margin-left: auto;
  margin-right: 0;
}
.chat-message.buyer {
  align-self: flex-start;
  background: #f7fbfa;
  margin-left: 0;
  margin-right: auto;
}
.chat-message.system {
  align-self: center;
  background: #f8fafc;
  border-color: #cbd5e1;
  max-width: min(76%, 640px);
  margin: 0 auto;
}
.chat-message.admin.system {
  align-self: flex-end;
  background: #dbeafe;
  border-color: #60a5fa;
  margin-left: auto;
  margin-right: 0;
  max-width: min(68%, 560px);
}
.chat-message.buyer.system {
  align-self: flex-start;
  background: #f7fbfa;
  margin-left: 0;
  margin-right: auto;
  max-width: min(68%, 560px);
}
.chat-message.warning {
  align-self: center;
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
  max-width: min(76%, 640px);
  margin: 0 auto;
}
.chat-message.success {
  align-self: center;
  background: #064e3b;
  border-color: #047857;
  max-width: min(76%, 640px);
  margin: 0 auto;
}
.chat-message.success strong,
.chat-message.success p,
.chat-message.success span {
  color: #ecfdf5;
}
.chat-message.moderator {
  align-self: center;
  background: #f4efff;
  border-color: #8142f5;
  color: #8142f5;
  max-width: min(76%, 640px);
  margin: 0 auto;
}
.chat-message.moderator strong,
.chat-message.moderator p,
.chat-message.moderator span {
  color: #8142f5;
}
.chat-message.attachment {
  background: #f8fafc;
  border-style: dashed;
}
.chat-message > div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}
.chat-message strong {
  color: var(--ink);
}
.chat-message span {
  color: var(--muted);
  font-size: 12px;
}
.chat-message p {
  color: #334155;
  line-height: 1.42;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.attachment-link {
  color: #0f766e;
  display: inline-flex;
  font-weight: 900;
  margin-top: 8px;
}
.chat-composer {
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 16px;
  position: relative;
}
.chat-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  position: relative;
}
.upload-form.compact {
  margin: 0;
}
.attach-button {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  min-height: 48px;
  padding: 0 14px;
}
.attach-button input {
  display: none;
}
.chat-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  padding: 13px 14px;
}
.command-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 58px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  display: grid;
  min-width: 280px;
  overflow: hidden;
  position: absolute;
  z-index: 10;
}
.command-menu button {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 13px;
  text-align: left;
}
.command-menu button:hover {
  background: #f0fdfa;
}
.command-menu span {
  color: var(--muted);
  font-size: 12px;
}
.cancelled-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-weight: 850;
  padding: 16px;
}

.table-wrap {
  overflow-x: auto;
}
.trade-history-table {
  background: white;
  border-collapse: collapse;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 980px;
  overflow: hidden;
  width: 100%;
}
.trade-history-table th,
.trade-history-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}
.trade-history-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .menu-button { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .hero { min-height: auto; }
  .hero-grid, .split, .footer-grid, .footer-grid.enterprise, .market-grid, .market-layout, .intelligence-grid, .process-grid, .p2p-live-grid, .trade-room-grid, .knowledge-hero-grid, .knowledge-grid, .article-shell, .guide-matrix, .related-guides { grid-template-columns: 1fr; }
  .article-toc { position: static; }
  .hero-copy { width: min(100%, 720px); max-width: none; }
  .hero-metrics, .feature-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .console-top { align-items: stretch; flex-direction: column; }
  .trade-switch { width: 100%; }
  .footer-brand-row { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 22px, 1160px); }
  .section { padding: 48px 0; }
  .form-grid, .choice-grid, .quick-grid { grid-template-columns: 1fr; }
  .hero-metrics, .feature-matrix { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: 36px; overflow-wrap: anywhere; }
  .hero p { font-size: 17px; }
  .chart-head, .chart-foot { flex-direction: column; }
  #btc-price-chart { aspect-ratio: 1.45; }
  .wallet-grid { grid-template-columns: 1fr; }
  .trade-head { align-items: flex-start; flex-direction: column; }
  .form-actions { flex-direction: column-reverse; }
  .button { width: 100%; }
  .trace-table th, .trace-table td { display: block; width: 100%; }
  .trade-room-status h1, .p2p-live-copy h2 { font-size: 32px; }
  .chat-message { max-width: 100%; }
  .chat-form { grid-template-columns: 1fr; }
}

.order-mode-note {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  color: #0f766e;
  font-weight: 800;
  margin: 18px 0 0;
  padding: 14px 16px;
}
.order-mode-note a { color: #0f766e; text-decoration: underline; }


.p2p-hero .p2p-live-grid {
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
  gap: 54px;
}
.p2p-hero .hero-copy {
  max-width: 660px;
}
.p2p-hero .p2p-card {
  color: var(--ink);
  width: 100%;
}
.p2p-hero .p2p-card .trade-head h3 {
  color: var(--ink);
}
.p2p-hero .p2p-receive-line {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.p2p-receive-line select,
.p2p-inline-quote {
  min-height: 46px;
}

.p2p-hero .p2p-card {
  align-self: center;
  background: #ffffff;
  border: 1px solid rgba(217, 225, 236, 0.95);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
  backdrop-filter: none;
}
.p2p-hero .p2p-card .trade-head {
  background: #ffffff;
}
.p2p-hero .p2p-card .trade-body {
  background: #ffffff;
}
.p2p-hero .p2p-card label,
.p2p-hero .p2p-card .minimum-note {
  color: #344054;
}
.p2p-hero .p2p-card input,
.p2p-hero .p2p-card select,
.p2p-hero .p2p-card textarea {
  background: #ffffff;
  border-color: #cfd8e3;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.03);
}
.p2p-hero .p2p-inline-quote {
  background: #ecfdf3;
  border-color: #99f6e4;
  color: #0f766e;
}
.p2p-hero .hero-copy h1 {
  max-width: 820px;
}

/* Index P2P hero final overrides */
.p2p-hero .hero-copy,
.p2p-hero .hero-copy h1,
.p2p-hero .hero-copy p {
  color: #ffffff;
  text-shadow: 0 18px 44px rgba(2, 6, 23, .38);
}
.p2p-hero .hero-copy p {
  color: rgba(232, 246, 246, .9);
}
.p2p-hero .eyebrow {
  color: #99f6e4;
}
.p2p-hero .p2p-card {
  min-width: 0;
}

@media (max-width: 1100px) {
  .p2p-hero {
    padding: 68px 0 92px;
  }
  .p2p-hero .p2p-live-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .p2p-hero .hero-copy {
    max-width: 760px;
  }
  .p2p-hero .p2p-card {
    align-self: stretch;
    max-width: 760px;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .p2p-hero {
    padding: 42px 0 72px;
  }
  .p2p-hero .container {
    max-width: 100%;
    overflow: hidden;
    width: min(100% - 24px, 1160px);
  }
  .p2p-hero .hero-copy {
    max-width: 100%;
    width: 100%;
  }
  .p2p-hero .hero-copy h1 {
    font-size: 30px;
    line-height: 1.12;
    max-width: 100%;
    overflow-wrap: normal;
  }
  .p2p-hero .hero-copy p {
    font-size: 16px;
    line-height: 1.6;
  }
  .p2p-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .p2p-hero .trust-strip {
    display: grid;
    grid-template-columns: 1fr;
  }
  .p2p-hero .trust-strip span {
    text-align: center;
  }
  .p2p-hero .p2p-card {
    max-width: 100%;
    overflow: hidden;
  }
  .p2p-hero .trade-head {
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
  }
  .p2p-hero .trade-body {
    padding: 20px;
  }
  .p2p-hero .steps {
    flex-wrap: wrap;
  }
  .p2p-hero .p2p-receive-line {
    grid-template-columns: 1fr;
  }
  .p2p-hero .form-actions {
    align-items: stretch;
    gap: 14px;
  }
  .p2p-hero .minimum-note {
    display: block;
    line-height: 1.45;
    max-width: 100%;
    overflow-wrap: break-word;
    white-space: normal;
  }
  .p2p-hero .minimum-note span {
    display: block;
  }
}

@media (max-width: 620px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .p2p-hero {
    box-sizing: border-box;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .p2p-hero .container,
  .p2p-hero .p2p-live-grid,
  .p2p-hero .hero-copy,
  .p2p-hero .p2p-card {
    box-sizing: border-box;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    width: calc(100vw - 24px) !important;
  }
  .p2p-hero .p2p-live-grid {
    display: block !important;
  }
  .p2p-hero .hero-copy h1 {
    display: block;
    font-size: 28px !important;
    line-height: 1.14;
    max-width: calc(100vw - 24px) !important;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .p2p-hero .hero-copy h1 span {
    display: block;
  }
  .p2p-hero .hero-copy p {
    max-width: calc(100vw - 24px) !important;
    overflow-wrap: break-word;
    width: calc(100vw - 24px) !important;
  }
  .p2p-hero .hero-copy p span {
    display: block;
  }
  .p2p-hero .p2p-card {
    margin-top: 34px;
  }
  .p2p-hero .form-grid,
  .p2p-hero .p2p-receive-line {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .p2p-hero input,
  .p2p-hero select,
  .p2p-hero textarea,
  .p2p-hero .p2p-inline-quote,
  .p2p-hero .button {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}


.trade-mode-toggle {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px 22px 0;
}
.trade-mode-toggle button {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  font-weight: 900;
  padding: 11px 12px;
}
.trade-mode-toggle button.active {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.escrow-fund-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
}
.escrow-fund-box strong {
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .p2p-live-section {
    overflow-x: hidden;
  }
  .p2p-live-section .container,
  .p2p-live-section .p2p-live-grid,
  .p2p-live-section .p2p-live-copy,
  .p2p-live-section .p2p-card {
    box-sizing: border-box;
    max-width: calc(100vw - 22px);
    min-width: 0;
    width: calc(100vw - 22px);
  }
  .p2p-live-copy h1,
  .p2p-live-copy h2 {
    font-size: 32px;
    line-height: 1.12;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .p2p-live-copy p {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .p2p-receive-line {
    grid-template-columns: minmax(0, 1fr);
  }
  .p2p-inline-quote {
    width: 100%;
  }
}

.trade-room-grid {
  align-items: stretch;
}
.trade-room-grid > * {
  min-width: 0;
}
.trade-room-summary {
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
}
.chat-panel {
  height: min(78vh, 780px);
  max-height: 780px;
  min-height: 640px;
  min-width: 0;
}
.chat-messages {
  max-height: 100%;
  overscroll-behavior: contain;
}
.chat-head-actions {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}
#admin-buyer-location {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  max-width: 190px;
  overflow-wrap: anywhere;
  white-space: normal;
}
@media (max-width: 1100px) {
  .trade-room-summary {
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .chat-panel {
    height: 680px;
    max-height: 680px;
    min-height: 680px;
  }
}
@media (max-width: 620px) {
  .trade-room-summary {
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .chat-panel {
    height: 620px;
    max-height: 620px;
    min-height: 620px;
  }

  .chat-head {
    align-items: flex-start;
    gap: 12px;
  }
  .chat-head-actions {
    align-self: stretch;
    justify-content: space-between;
    width: 100%;
  }
}

.wallet-edit {
  align-items: center;
  border-bottom: 1px solid #eef2f6;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: -4px;
  padding-bottom: 8px;
}
.wallet-edit label {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  grid-column: 1 / -1;
}
.wallet-edit input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  min-height: 34px;
  min-width: 0;
  overflow: hidden;
  padding: 4px 0;
  text-overflow: ellipsis;
}
.wallet-edit input:hover,
.wallet-edit input:focus {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
  padding: 8px 10px;
}
.wallet-edit .button {
  min-height: 34px;
  padding: 8px 10px;
}

.escrow-address-row {
  align-items: start;
}
.escrow-address-list {
  display: grid;
  gap: 10px;
  width: 100%;
}
.escrow-address-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 72px;
  padding: 10px;
}
.escrow-address-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.escrow-address-copy strong {
  color: var(--ink);
  font-size: 13px;
}
.escrow-address-copy small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}
.escrow-qr-image {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 72px;
  object-fit: contain;
  padding: 4px;
  width: 72px;
}
@media (max-width: 620px) {
  .escrow-address-card {
    grid-template-columns: minmax(0, 1fr) 64px;
  }
  .escrow-qr-image {
    height: 64px;
    width: 64px;
  }
}


.trust-system {
  background: linear-gradient(180deg, rgba(238,243,248,.2), #f8fafc 70%);
  padding-top: 58px;
}
.trust-system-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
}
.trust-system-copy,
.checklist-card,
.lifecycle-rail > div {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.trust-system-copy { padding: 26px; }
.trust-system-copy h2,
.safety-grid h2 { font-size: clamp(28px, 3.6vw, 46px); }
.trust-system-copy p,
.safety-grid p { color: var(--muted); margin-bottom: 0; }
.trust-proof-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.trust-proof-grid div {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.82));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16,24,40,.1);
  padding: 20px;
}
.trust-proof-grid strong {
  color: var(--ink);
  display: block;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}
.trust-proof-grid span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 10px;
}
.trade-lifecycle { background: #f8fafc; }
.lifecycle-rail {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.lifecycle-rail > div {
  min-height: 220px;
  padding: 20px;
  position: relative;
}
.lifecycle-rail > div::after {
  background: var(--brand);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 20px;
  opacity: .28;
  position: absolute;
  right: 20px;
  top: 58px;
}
.lifecycle-rail span {
  color: var(--brand-dark);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 42px;
}
.lifecycle-rail strong { display: block; font-size: 18px; }
.lifecycle-rail p { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.safety-checklist { background: linear-gradient(180deg, #f8fafc, #eef3f8); }
.safety-grid {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}
.checklist-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.checklist-card div {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px 15px 48px;
  position: relative;
}
.checklist-card div::before {
  align-items: center;
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  border-radius: 999px;
  color: var(--success);
  content: "OK";
  display: flex;
  font-size: 10px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  left: 14px;
  position: absolute;
  top: 16px;
  width: 24px;
}
.checklist-card strong { display: block; }
.checklist-card span { color: var(--muted); display: block; font-size: 13px; margin-top: 4px; }
@media (max-width: 1100px) {
  .trust-system-grid,
  .safety-grid,
  .lifecycle-rail { grid-template-columns: 1fr; }
  .lifecycle-rail > div { min-height: 0; }
}
@media (max-width: 620px) {
  .trust-proof-grid { grid-template-columns: 1fr; }
  .trust-system-copy,
  .checklist-card,
  .lifecycle-rail > div { padding: 18px; }
}


@media (max-width: 620px) {
  .p2p-hero .p2p-live-copy {
    display: none !important;
  }
  .p2p-hero {
    padding-top: 24px;
  }
  .p2p-hero .p2p-card {
    margin-top: 0;
  }
}


@media (max-width: 620px) {
  .p2p-hero .p2p-card,
  .p2p-hero .trade-mode-toggle,
  .p2p-hero .trade-head,
  .p2p-hero .trade-body {
    max-width: 100%;
    min-width: 0;
  }
  .p2p-hero .trade-mode-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 18px;
    padding-right: 18px;
  }
  .p2p-hero .trade-mode-toggle button {
    min-width: 0;
    white-space: nowrap;
  }
}



.pwa-install-card,
.pwa-install-hint {
  display: none;
}
@media (max-width: 820px) {
  body.pwa-install-ready .pwa-install-card {
    align-items: center;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(13, 148, 136, 0.22);
    border-radius: 16px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 18px;
    padding: 14px 16px;
  }
  .pwa-install-card strong {
    color: var(--ink);
    display: block;
    font-size: 15px;
    line-height: 1.25;
  }
  .pwa-install-card span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 3px;
  }
  .pwa-install-button {
    appearance: none;
    background: #0f766e;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 14px;
  }
  .pwa-install-button:disabled {
    background: #94a3b8;
    cursor: default;
  }
  .pwa-install-hint {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    margin-top: 10px;
    padding: 10px 12px;
  }
}
@media (max-width: 620px) {
  .pwa-install-card {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .pwa-install-button {
    width: 100%;
  }
}
