:root {
  --ink: #14231e;
  --muted: #68766f;
  --paper: #f2f4ef;
  --card: #ffffff;
  --line: #dfe5df;
  --green: #167a59;
  --green-bright: #20b982;
  --green-dark: #10231d;
  --green-deep: #0b1915;
  --lime: #c9f45b;
  --red: #b64343;
  --amber: #9a6b16;
  --shadow: 0 18px 55px rgba(21, 43, 34, .08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { letter-spacing: -.025em; }
h2 { margin-bottom: 0; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.1; }
h3 { margin-bottom: 0; }
.hidden { display: none !important; }

.site-header { width: min(1240px, calc(100% - 48px)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 23px; letter-spacing: .08em; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; padding: 7px; border-radius: 12px; background: var(--green-dark); color: var(--lime); stroke-width: 2.8; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.main-nav { display: flex; align-items: center; gap: 32px; color: #53635b; font-size: 14px; font-weight: 600; }
.main-nav a { transition: color .2s; }
.main-nav a:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 130px; }
.user-chip { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: transparent; }
.icon-button svg { width: 20px; height: 20px; }

.button { min-height: 48px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 13px; font-weight: 700; font-size: 14px; line-height: 1.2; transition: transform .18s, background .18s, border-color .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .58; transform: none; }
.button-small { min-height: 42px; padding: 10px 17px; }
.button-full { width: 100%; }
.button-accent { background: var(--lime); color: var(--green-deep); box-shadow: 0 8px 24px rgba(201, 244, 91, .12); }
.button-accent:hover { background: #d6fa7d; }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 9px 20px rgba(22, 122, 89, .15); }
.button-primary:hover { background: #116b4d; }
.button-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.button-dark-ghost { border-color: rgba(255, 255, 255, .2); color: #fff; background: rgba(255, 255, 255, .03); }
.button-outline { border-color: #bdc9c1; background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--green); color: var(--green); }

.hero { width: min(1240px, calc(100% - 48px)); min-height: 580px; margin: 8px auto 0; padding: 68px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; overflow: hidden; position: relative; border-radius: 32px; color: #fff; background: radial-gradient(circle at 78% 5%, rgba(61, 159, 119, .26), transparent 34%), linear-gradient(130deg, #122b22, #0b1915 70%); box-shadow: 0 24px 70px rgba(11, 25, 21, .13); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to right, transparent, #000); pointer-events: none; }
.hero-copy, .hero-quote { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: #b8d3c6; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-dark { color: var(--green); }
.status-dot { width: 7px; height: 7px; display: inline-block; flex-shrink: 0; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(32, 185, 130, .12); }
.hero h1 { margin-bottom: 24px; font-size: clamp(48px, 5.2vw, 73px); line-height: 1.01; letter-spacing: -.055em; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-copy > p { max-width: 560px; margin-bottom: 30px; color: #b7c7bf; font-size: 17px; line-height: 1.65; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 13px 20px; color: #91a99d; font-size: 12px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--green-bright); }
.hero-quote { padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: 25px; background: rgba(255,255,255,.065); box-shadow: inset 0 1px rgba(255,255,255,.07); backdrop-filter: blur(14px); }
.quote-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #e4eee9; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.live-label { display: inline-flex; align-items: center; gap: 7px; color: #8ed8b8; font-size: 9px; letter-spacing: .12em; }
.quote-label { margin-top: 38px; color: #93a99e; font-size: 12px; }
.hero-price { margin-top: 3px; font-size: clamp(43px, 5vw, 62px); font-weight: 780; line-height: 1.2; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.quote-updated { min-height: 20px; color: #849d90; font-size: 11px; }
.quote-divider { height: 1px; margin: 26px 0 22px; background: rgba(255,255,255,.11); }
.quote-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-prices > div { display: flex; flex-direction: column; }
.quote-prices span { color: #93a99e; font-size: 11px; }
.quote-prices strong { margin: 4px 0; font-size: 23px; font-variant-numeric: tabular-nums; }
.quote-prices small { color: #729080; font-size: 10px; }

.section { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 96px 0 0; }
.section-heading { margin-bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading > p { max-width: 440px; margin-bottom: 0; color: var(--muted); font-size: 14px; }
.source-note { color: var(--muted); font-size: 11px; line-height: 1.7; text-align: right; }
.source-note a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.market-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 10px 30px rgba(21,43,34,.035); }
.market-title { display: flex; align-items: center; gap: 13px; }
.market-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--green); background: #edf6f0; }
.market-icon svg { width: 22px; height: 22px; }
.market-title h3 { font-size: 19px; }
.market-title p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.market-mid { margin-top: 29px; font-size: clamp(37px, 4.5vw, 52px); font-weight: 780; line-height: 1.1; font-variant-numeric: tabular-nums; }
.market-caption { margin-top: 5px; color: var(--muted); font-size: 11px; }
.market-details { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.market-details > div { padding: 16px; display: flex; flex-direction: column; border-radius: 14px; background: #f5f7f3; }
.market-details span { color: var(--muted); font-size: 10px; }
.market-details strong { margin: 3px 0; font-size: 18px; font-variant-numeric: tabular-nums; }
.market-details small { color: #89968f; font-size: 9px; }
.spread-line { margin-top: 18px; padding-top: 15px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.spread-line strong { color: var(--ink); font-size: 12px; }
.overall-strip { margin-top: 20px; padding: 26px 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; border-radius: 20px; color: #fff; background: var(--green-dark); }
.overall-strip > div:first-child { display: flex; flex-direction: column; }
.overall-strip span { font-size: 15px; font-weight: 700; }
.overall-strip small { color: #8da89a; font-size: 11px; }
.overall-strip > strong { color: var(--lime); font-size: 37px; font-variant-numeric: tabular-nums; }
.formula { color: #8da89a; font-size: 11px; text-align: right; }
.owner-strip { margin-top: 12px; padding: 22px 28px; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; align-items: center; gap: 24px; border: 1px solid #cdddcf; border-radius: 20px; background: #e8f2e7; }
.owner-title { display: flex; align-items: center; gap: 12px; }
.owner-badge { padding: 7px 9px; border-radius: 8px; color: var(--lime); background: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.owner-title > div, .owner-price, .owner-volume { display: flex; flex-direction: column; }
.owner-title strong { font-size: 13px; }
.owner-title small, .owner-price span, .owner-volume span { color: var(--muted); font-size: 10px; }
.owner-price strong, .owner-volume strong { margin-top: 3px; font-size: 18px; font-variant-numeric: tabular-nums; }
.rates-warning { margin: 12px 0 0; padding: 12px 16px; border-radius: 12px; color: var(--amber); background: #fff4d9; font-size: 12px; }

.exchange-layout { display: grid; grid-template-columns: 1.25fr .75fr; align-items: start; gap: 22px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.exchange-form { padding: 32px; }
.segmented { margin-bottom: 26px; padding: 5px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; border-radius: 14px; background: #eff2ed; }
.segmented button { min-height: 44px; padding: 10px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; }
.segmented button.active { color: var(--green-dark); background: #fff; box-shadow: 0 3px 12px rgba(20,35,30,.08); }
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 19px; display: flex; flex-direction: column; gap: 7px; }
.field > span { color: #405149; font-size: 12px; font-weight: 700; }
.field > span i { color: #94a098; font-size: 10px; font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 13px 15px; border: 1px solid #d8e0d9; outline: none; border-radius: 12px; color: var(--ink); background: #fafbf9; font-size: 16px; transition: border-color .18s, box-shadow .18s; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,122,89,.09); }
.field input::placeholder, .field textarea::placeholder { color: #a1aba5; }
.field small { color: #87938c; font-size: 10px; }
.amount-input { position: relative; }
.amount-input input { padding-right: 85px; font-size: 20px; font-weight: 650; }
.amount-input > strong { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: var(--green); font-size: 14px; }
.form-note { margin: 13px 5px 0; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }
.calculation-card { padding: 30px; position: sticky; top: 24px; overflow: hidden; border-radius: var(--radius); color: #fff; background: linear-gradient(145deg, #153629, #0e211a); box-shadow: var(--shadow); }
.calc-label { color: #8fad9e; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.calc-direction { margin-top: 8px; font-size: 20px; font-weight: 700; }
.calc-rate { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #9eb5a9; font-size: 11px; }
.calc-rate strong { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.calc-total { margin-top: 14px; padding-bottom: 25px; display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-total span { color: #9eb5a9; font-size: 11px; }
.calc-total strong { margin-top: 3px; color: var(--lime); font-size: 38px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.calc-breakdown { padding: 20px 0; display: grid; gap: 10px; }
.calc-breakdown > div { display: flex; justify-content: space-between; gap: 15px; color: #8fad9e; font-size: 10px; }
.calc-breakdown strong { color: #d3e2da; font-size: 11px; text-align: right; }
.fix-note { padding: 14px; display: flex; align-items: flex-start; gap: 10px; border-radius: 12px; color: #9eb5a9; background: rgba(255,255,255,.055); font-size: 10px; }
.fix-note svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--green-bright); }
.fix-note strong { color: #d3e2da; }

.requests-section { padding-bottom: 96px; }
.empty-state { padding: 42px 25px; text-align: center; box-shadow: none; }
.empty-icon { width: 52px; height: 52px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 16px; color: var(--green); background: #eaf3ed; }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { margin-bottom: 8px; font-size: 20px; }
.empty-state p { max-width: 500px; margin: 0 auto 20px; color: var(--muted); font-size: 13px; }
.requests-list { display: grid; gap: 13px; }
.request-card { padding: 24px; display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: center; gap: 22px; box-shadow: none; }
.request-id { display: flex; align-items: center; gap: 12px; }
.request-asset { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; border-radius: 12px; color: var(--green); background: #e9f3ed; font-size: 11px; font-weight: 850; }
.request-id strong { display: block; font-size: 14px; }
.request-id small, .request-cell span { display: block; color: var(--muted); font-size: 10px; }
.request-cell strong { display: block; margin-top: 3px; font-size: 14px; font-variant-numeric: tabular-nums; }
.request-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.status { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 20px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-new { color: #8b5e08; background: #fff1c9; }
.status-confirmed { color: #23639a; background: #e4f0fc; }
.status-completed { color: #1a6b4c; background: #dff2e7; }
.status-cancelled { color: #7b8580; background: #ecefed; }
.text-button { padding: 0; border: 0; color: var(--red); background: none; font-size: 10px; }
.request-expiry { color: var(--muted); font-size: 9px; }

.safety-section { width: min(1240px, calc(100% - 48px)); margin: 0 auto 24px; padding: 54px 60px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; border-radius: 28px; color: #fff; background: var(--green-dark); }
.safety-section h2 { font-size: 34px; }
.safety-points { display: grid; gap: 20px; }
.safety-points p { margin: 0; display: flex; align-items: flex-start; gap: 17px; color: #a7bdb1; font-size: 13px; }
.safety-points strong { color: var(--lime); font-size: 12px; }
.site-footer { width: min(1160px, calc(100% - 48px)); min-height: 170px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 30px; color: var(--muted); font-size: 12px; }
.site-footer p { margin-bottom: 4px; }
.site-footer > div:nth-child(2) a { color: var(--green); font-weight: 700; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }

.modal { width: min(460px, calc(100% - 28px)); max-height: 90dvh; padding: 34px; overflow-y: auto; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(7, 20, 15, .66); backdrop-filter: blur(5px); }
.modal-close { width: 38px; height: 38px; position: absolute; top: 15px; right: 15px; border: 0; border-radius: 50%; color: var(--muted); background: #f0f3ef; font-size: 24px; line-height: 1; }
.modal-kicker { margin-bottom: 8px; color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.modal h2 { margin-bottom: 12px; font-size: 30px; }
.modal > form > p, .modal > p { margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.check-field { margin: 3px 0 22px; display: flex; align-items: center; gap: 10px; color: #4c5e54; font-size: 12px; cursor: pointer; }
.check-field input { width: 19px; height: 19px; accent-color: var(--green); }
.modal-error { margin: 13px 0 0 !important; padding: 10px; border-radius: 9px; color: var(--red) !important; background: #fff0f0; text-align: center; }
.success-mark { width: 52px; height: 52px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e3f4e9; }
.success-mark svg { width: 28px; height: 28px; stroke-width: 2.3; }
.success-details { margin-bottom: 22px; padding: 16px; display: grid; gap: 9px; border-radius: 13px; background: #f3f6f1; }
.success-details > div { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; }
.success-details strong { color: var(--ink); text-align: right; }
.success-modal .button + .button { margin-top: 9px; }
.toast { max-width: min(420px, calc(100% - 30px)); padding: 13px 18px; position: fixed; z-index: 20; right: 22px; bottom: max(22px, env(safe-area-inset-bottom)); border-radius: 12px; color: #fff; background: #173d2e; box-shadow: 0 12px 35px rgba(0,0,0,.18); font-size: 12px; }
.toast.error { background: #873f3f; }

.admin-body { background: #f3f5f1; }
.admin-header { border-bottom: 1px solid var(--line); }
.admin-live { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.admin-live strong { color: var(--ink); font-size: 19px; font-variant-numeric: tabular-nums; }
.admin-main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 90px; }
.admin-welcome { margin-bottom: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.admin-welcome .eyebrow { margin-bottom: 10px; }
.admin-welcome h1 { margin-bottom: 8px; font-size: 38px; }
.admin-welcome p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.admin-stats article { padding: 23px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.admin-stats span { color: var(--muted); font-size: 11px; }
.admin-stats strong { margin: 5px 0; font-size: 32px; }
.admin-stats small { color: #8b9890; font-size: 10px; }
.admin-section { margin-top: 54px; }
.admin-section-heading { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-section-heading > div { display: flex; align-items: center; gap: 14px; }
.admin-number { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; color: var(--green); background: #e2ede5; font-size: 11px; font-weight: 800; }
.admin-section-heading h2 { font-size: 23px; }
.admin-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.save-state { color: var(--green); font-size: 11px; }
.settings-global { margin-bottom: 14px; padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; box-shadow: none; }
.settings-global .field { margin-bottom: 0; }
.asset-settings { margin-bottom: 18px; padding: 8px 24px 18px; box-shadow: none; }
.asset-settings-head, .asset-setting-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 70px; align-items: center; gap: 18px; }
.asset-settings-head { padding: 15px 0 12px; color: var(--muted); font-size: 10px; }
.asset-setting-row { padding: 13px 0; border-top: 1px solid #e8ece7; }
.asset-setting-name { display: flex; align-items: center; gap: 10px; }
.asset-setting-name strong { font-size: 13px; }
.asset-setting-name small { display: block; color: var(--muted); font-size: 9px; }
.asset-setting-price { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.asset-setting-row input[type="text"] { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; font-size: 16px; }
.switch-label { display: flex; justify-content: center; }
.switch-label input { width: 20px; height: 20px; accent-color: var(--green); }
.settings-hint { margin: 15px 0 0; color: var(--muted); font-size: 10px; }
.request-filters { margin-bottom: 16px; display: grid; grid-template-columns: 1fr 240px; gap: 15px; }
.request-filters .field { margin-bottom: 0; }
.admin-requests { display: grid; gap: 10px; }
.admin-request { padding: 19px 21px; display: grid; grid-template-columns: 1.1fr 1.1fr 1.2fr 1fr 1fr 140px; align-items: center; gap: 16px; box-shadow: none; }
.admin-request-main { display: flex; align-items: center; gap: 10px; }
.admin-request-main strong { font-size: 12px; }
.admin-request-main small, .admin-request-cell span { display: block; color: var(--muted); font-size: 9px; }
.admin-request-cell strong { display: block; margin-top: 2px; font-size: 11px; overflow-wrap: anywhere; }
.admin-request-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.admin-status-select { width: 100%; min-height: 38px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fafbf9; font-size: 11px; }
.admin-public-link { margin-top: 18px; display: block; color: var(--muted); font-size: 11px; text-align: center; text-decoration: underline; }

@media (max-width: 1050px) {
  .hero { padding: 48px; gap: 34px; }
  .hero h1 { font-size: 54px; }
  .owner-strip { grid-template-columns: 1.2fr 1fr 1fr; }
  .owner-volume { grid-column: 2 / 4; flex-direction: row; align-items: center; gap: 10px; }
  .admin-request { grid-template-columns: 1fr 1fr 1fr; }
  .admin-status-select { max-width: 180px; }
}

@media (max-width: 820px) {
  .site-header { width: min(100% - 30px, 1240px); min-height: 76px; gap: 15px; }
  .main-nav { display: none; }
  .hero { width: calc(100% - 30px); padding: 38px; grid-template-columns: 1fr; }
  .hero-copy > p { max-width: 620px; }
  .hero-quote { max-width: 560px; width: 100%; }
  .section { width: calc(100% - 36px); padding-top: 72px; }
  .market-grid, .exchange-layout { grid-template-columns: 1fr; }
  .calculation-card { position: static; }
  .overall-strip { grid-template-columns: 1fr auto; }
  .formula { grid-column: 1 / 3; text-align: left; }
  .owner-strip { grid-template-columns: 1fr 1fr; }
  .owner-title { grid-column: 1 / 3; }
  .owner-volume { grid-column: 1 / 3; }
  .safety-section { width: calc(100% - 30px); padding: 42px; grid-template-columns: 1fr; gap: 35px; }
  .site-footer { width: calc(100% - 36px); grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / 3; flex-direction: row; justify-content: space-between; align-items: center; }
  .request-card { grid-template-columns: 1fr 1fr; }
  .request-actions { align-items: flex-start; }
  .admin-live { display: none; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .settings-global { grid-template-columns: 1fr; }
  .asset-settings-head { display: none; }
  .asset-setting-row { grid-template-columns: 1fr 1fr 70px; }
  .asset-setting-price { display: none; }
}

@media (max-width: 560px) {
  .site-header { width: calc(100% - 24px); }
  .brand { font-size: 20px; }
  .brand-mark { width: 36px; height: 36px; }
  .header-actions { min-width: auto; }
  .user-chip { display: none; }
  .button-small { padding: 9px 13px; }
  .hero { width: calc(100% - 20px); min-height: 0; margin-top: 2px; padding: 30px 22px 22px; gap: 34px; border-radius: 24px; }
  .hero h1 { font-size: clamp(41px, 12.5vw, 53px); }
  .hero-copy > p { font-size: 14px; }
  .hero-buttons { display: grid; }
  .hero-buttons .button { width: 100%; }
  .hero-trust { gap: 10px 14px; }
  .hero-quote { padding: 22px; }
  .quote-label { margin-top: 27px; }
  .hero-price { font-size: 43px; }
  .quote-prices strong { font-size: 19px; }
  .section { width: calc(100% - 24px); padding-top: 62px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-heading h2 { font-size: 32px; }
  .source-note { text-align: left; }
  .market-card { padding: 22px; }
  .market-details { gap: 10px; }
  .market-details > div { padding: 12px; }
  .market-details strong { font-size: 16px; }
  .overall-strip { padding: 22px; gap: 14px; }
  .overall-strip > strong { font-size: 29px; }
  .owner-strip { padding: 20px; gap: 18px; }
  .owner-price strong, .owner-volume strong { font-size: 16px; }
  .exchange-form { padding: 21px; }
  .form-row-two { grid-template-columns: 1fr; gap: 0; }
  .segmented button { font-size: 11px; }
  .calculation-card { padding: 24px; }
  .calc-total strong { font-size: 33px; }
  .requests-section { padding-bottom: 65px; }
  .request-card { padding: 19px; gap: 17px 12px; }
  .request-card { grid-template-columns: 1fr 1fr; }
  .request-id { grid-column: 1 / 3; }
  .safety-section { width: calc(100% - 20px); padding: 30px 24px; }
  .safety-section h2 { font-size: 28px; }
  .site-footer { width: calc(100% - 28px); padding: 35px 0; grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { grid-column: auto; }
  .modal { padding: 28px 22px; }
  .toast { right: 15px; }
  .admin-header .button { font-size: 11px; }
  .admin-main { width: calc(100% - 24px); padding-top: 32px; }
  .admin-welcome { align-items: flex-start; flex-direction: column; }
  .admin-welcome h1 { font-size: 29px; }
  .admin-stats { gap: 10px; }
  .admin-stats article { padding: 17px; }
  .admin-stats strong { font-size: 28px; }
  .admin-section-heading { align-items: flex-start; }
  .admin-section-heading p { max-width: 250px; }
  .settings-global, .asset-settings { padding-left: 17px; padding-right: 17px; }
  .asset-setting-row { grid-template-columns: 1fr 60px; gap: 10px; }
  .asset-setting-name { grid-column: 1 / 3; }
  .request-filters { grid-template-columns: 1fr; }
  .admin-request { padding: 18px; grid-template-columns: 1fr 1fr; gap: 15px; }
  .admin-request-main { grid-column: 1 / 3; }
  .admin-status-select { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
