/* Asasa Gold — neumorphic UI, dark-green header, green-lit ground.
 * Brand: dark green #0D4A46 (trust), lime #8CCB50 (positive action), text #1A1F1B. */

:root {
    --base: #e6ede8;
    --surface: #eff3f1;
    --sh-dark: #ccd5d2;
    --sh-light: #ffffff;

    --green-dark: #0D4A46;
    --green-ink: #0a3d39;
    --green: #8CCB50;
    --green-bright: #7cbf3e;
    --green-soft: #e7f3d9;
    --gold: #c9a24b;

    --text: #1A1F1B;
    --text-muted: #4f5c55;
    --placeholder: #7c8a83;
    --danger: #a4231b;
    --danger-soft: #f7ddd9;
    --focus: var(--green-dark);

    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 12px;
    --r-pill: 999px;

    --raise: 6px 6px 14px var(--sh-dark), -6px -6px 14px var(--sh-light);
    --raise-sm: 3px 3px 8px var(--sh-dark), -3px -3px 8px var(--sh-light);
    --raise-hover: 9px 11px 24px var(--sh-dark), -8px -8px 20px var(--sh-light), 0 16px 34px -14px rgba(13, 74, 70, 0.28);
    --inset: inset 4px 4px 9px var(--sh-dark), inset -4px -4px 9px var(--sh-light);
    --inset-sm: inset 2px 2px 6px var(--sh-dark), inset -2px -2px 6px var(--sh-light);

    --hairline: rgba(13, 74, 70, 0.10);

    font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: #e4ece6; }
html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    position: relative;
    z-index: 0;
    color: var(--text);
    line-height: 1.5;
    background: transparent;
    -webkit-font-smoothing: antialiased;
    font-family: inherit;
}

/* Ambient aurora — the colour and life behind the cards. */
body::before {
    content: "";
    position: fixed;
    inset: -12%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(48rem 40rem at 6% -10%, rgba(13, 74, 70, 0.40), transparent 66%),
        radial-gradient(42rem 36rem at 112% 2%, rgba(140, 203, 80, 0.36), transparent 68%),
        radial-gradient(54rem 48rem at 50% 122%, rgba(13, 74, 70, 0.26), transparent 70%),
        radial-gradient(32rem 28rem at 88% 52%, rgba(201, 162, 75, 0.18), transparent 74%),
        linear-gradient(155deg, rgba(140, 203, 80, 0.12), transparent 46%, rgba(13, 74, 70, 0.12));
    animation: aurora 32s ease-in-out infinite alternate;
}
@keyframes aurora {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-2.6%, 1.8%, 0) scale(1.07); }
}

/* Dot lattice + soft vignette. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(13, 74, 70, 0.075) 1px, transparent 1.6px),
        radial-gradient(150% 130% at 50% 38%, transparent 52%, rgba(13, 74, 70, 0.12));
    background-size: 26px 26px, 100% 100%;
    background-position: -1px -1px, 0 0;
    -webkit-mask-image: radial-gradient(160% 130% at 50% 0%, #000 62%, transparent 100%);
            mask-image: radial-gradient(160% 130% at 50% 0%, #000 62%, transparent 100%);
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

::selection { background: rgba(140, 203, 80, 0.38); color: var(--green-ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(13, 74, 70, 0.28); border-radius: var(--r-pill); border: 3px solid var(--base); }
::-webkit-scrollbar-thumb:hover { background: rgba(13, 74, 70, 0.45); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn:focus-visible,
.segmented button:focus-visible,
.unit-toggle button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }

/* ---------- Floating header (dark green, the page's anchor) ---------- */
body { padding-top: 96px; }

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 16px 20px;
    pointer-events: none;
}
.header-bar {
    pointer-events: auto;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px 10px 12px;
    border-radius: 20px;
    background: linear-gradient(118deg, #0a413c 0%, #10554f 58%, #0b453f 100%);
    border: 1px solid rgba(140, 203, 80, 0.22);
    box-shadow: 0 22px 46px -20px rgba(13, 74, 70, 0.62), 0 6px 16px -8px rgba(0, 0, 0, 0.18);
    transform-origin: top center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.site-header.scrolled .header-bar {
    transform: scale(0.978);
    box-shadow: 0 14px 32px -18px rgba(13, 74, 70, 0.68), 0 4px 12px -8px rgba(0, 0, 0, 0.24);
}
.brand {
    display: flex; align-items: center; gap: 13px; min-width: 0;
    text-decoration: none; color: inherit;
}
.brand:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: var(--r-sm); }
.brand .mark {
    width: 42px; height: 42px; flex: none;
    border-radius: 13px;
    display: grid; place-items: center;
    color: var(--green-ink);
    background: linear-gradient(150deg, #9bd961, #79bd3c);
    box-shadow: 0 8px 20px -7px rgba(140, 203, 80, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.brand .mark svg { display: block; filter: drop-shadow(0 1px 0.5px rgba(255, 255, 255, 0.35)); }
.brand-name {
    margin: 0;
    font-weight: 700; font-size: 1.16rem; letter-spacing: -0.014em; color: #f3f8ef;
}

/* ---------- Trading availability pill (on the dark header) ---------- */
.availability {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 0.82rem; font-weight: 600; white-space: nowrap;
    padding: 9px 15px; border-radius: var(--r-pill);
    color: rgba(243, 248, 239, 0.82);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: background-color 0.25s ease, color 0.25s ease;
}
.availability .dot {
    width: 9px; height: 9px; border-radius: var(--r-pill); flex: none;
    background: rgba(243, 248, 239, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
.availability.is-available {
    color: #d9f2ba;
    background: rgba(140, 203, 80, 0.2);
}
.availability.is-available .dot {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(140, 203, 80, 0.3);
    animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(140, 203, 80, 0.32); }
    50%      { box-shadow: 0 0 0 7px rgba(140, 203, 80, 0.08); }
}
.availability.is-paused { color: #f7c8c2; background: rgba(233, 96, 86, 0.22); }
.availability.is-paused .dot { background: #ef6f64; box-shadow: 0 0 0 3px rgba(239, 111, 100, 0.25); }

/* ---------- Layout ---------- */
main { padding: 34px 0 84px; }
.section { margin-top: 40px; }
.section > h2 {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em;
    color: var(--text); margin: 0 0 16px; padding-left: 2px;
}
.section > h2::before {
    content: ""; width: 14px; height: 3px; border-radius: 2px; flex: none;
    background: linear-gradient(90deg, var(--green-dark), var(--green));
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
    position: relative;
    isolation: isolate;
    background-color: var(--surface);
    background-image: repeating-linear-gradient(45deg,
        rgba(13, 74, 70, 0.022) 0, rgba(13, 74, 70, 0.022) 1px,
        transparent 1px, transparent 11px);
    border-radius: var(--r-lg);
    padding: 22px;
    box-shadow: var(--raise);
}
.card::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(125% 100% at 0% 0%, rgba(140, 203, 80, 0.16), transparent 46%);
    opacity: 0.6;
    transition: opacity 0.28s ease;
    pointer-events: none;
    z-index: -1;
}
.card.stat, .card.market {
    transition: transform 0.28s cubic-bezier(.22,.61,.36,1), box-shadow 0.28s ease;
}
@media (hover: hover) {
    .card.stat:hover, .card.market:hover {
        transform: translateY(-4px);
        box-shadow: var(--raise-hover);
    }
    .card.stat:hover::before, .card.market:hover::before { opacity: 1; }
}

.panel h3 { margin: 0 0 16px; font-size: 1.14rem; letter-spacing: -0.01em; }

.stat .label { color: var(--text-muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.stat .value { font-size: 1.68rem; font-weight: 700; letter-spacing: -0.022em; margin-top: 10px; color: var(--text); }
.stat .value.sm { font-size: 1.25rem; }

/* ---------- Market panel ---------- */
.market { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 24px; align-items: start; }
.market .rate-big .value { font-size: 2.1rem; color: var(--green-dark); }
.market .price { padding-left: 22px; border-left: 1px solid var(--hairline); }
.market .price .label { color: var(--text-muted); font-size: 0.82rem; font-weight: 600; }
.market .price .value { font-size: 1.34rem; font-weight: 700; margin-top: 5px; }
.market .price.buy .value { color: var(--green-dark); }
.market .price.sell .value { color: var(--text); }

.meta { margin-top: 14px; color: var(--text-muted); font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.meta strong { color: var(--text); font-weight: 600; }

.samples { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.78rem; color: var(--text-muted); }
.samples .sample b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.samples .sample.is-effective { color: var(--green-dark); }
.samples .sample.is-effective b { color: var(--green-dark); }
.samples .sample.is-effective::before { content: "●"; margin-right: 5px; color: var(--green); font-size: 0.7em; vertical-align: 1px; }
.samples .sample.is-down b { color: var(--text-muted); font-weight: 500; }

.notice {
    margin-top: 16px; padding: 13px 15px; border-radius: var(--r-md);
    background: var(--danger-soft); color: var(--danger); font-size: 0.9rem; font-weight: 500;
    box-shadow: var(--inset-sm);
}

/* ---------- Trade direction: neumorphic sliding toggle ---------- */
.segmented {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 6px; border-radius: var(--r-pill);
    background: var(--surface); box-shadow: var(--inset);
    user-select: none; -webkit-user-select: none;
    touch-action: pan-y;
}
/* The raised knob that slides between the two labels. */
.seg-thumb {
    position: absolute; top: 6px; bottom: 6px; left: 6px;
    width: calc(50% - 6px);
    border-radius: var(--r-pill);
    background: linear-gradient(145deg, #eff6e6, #e1ecd7);
    box-shadow: var(--raise-sm);
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.25s ease;
    z-index: 0; pointer-events: none;
}
.seg-thumb::after {
    content: ""; position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--green-dark), var(--green));
}
.segmented.sell .seg-thumb { transform: translateX(100%); }
.segmented.sell .seg-thumb::after { background: linear-gradient(90deg, var(--green-bright), #b7e089); }
.segmented.dragging { cursor: grabbing; }
.segmented.dragging .seg-thumb { transition: none; }
.segmented button {
    position: relative; z-index: 1;
    appearance: none; border: 0; background: transparent; cursor: pointer;
    padding: 14px 14px 16px; min-height: 48px; border-radius: var(--r-pill);
    font-weight: 700; font-size: 0.95rem; font-family: inherit;
    color: var(--text-muted);
    transition: color 0.2s ease;
    touch-action: pan-y;
}
.segmented button[aria-pressed="true"] { color: var(--green-dark); }
@media (hover: hover) {
    .segmented button:not([aria-pressed="true"]):hover { color: var(--text); }
}

.field { margin-top: 20px; }
.field > label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }

.unit-toggle { display: inline-flex; gap: 10px; }
.unit-toggle button {
    appearance: none; cursor: pointer; min-height: 44px; padding: 10px 16px;
    border: 0; border-radius: var(--r-pill);
    background: var(--surface); box-shadow: var(--raise-sm);
    font-weight: 600; font-size: 0.85rem; color: var(--text-muted);
    font-family: inherit;
    transition: color 0.15s ease, box-shadow 0.2s ease, transform 0.12s ease;
}
@media (hover: hover) {
    .unit-toggle button:hover { color: var(--text); transform: translateY(-1px); }
}
.unit-toggle button[aria-pressed="true"] {
    color: var(--green-dark); box-shadow: var(--inset-sm);
    background: linear-gradient(180deg, #eef7e2, var(--green-soft));
}

.amount-input { position: relative; display: flex; align-items: center; }
.amount-input .prefix { position: absolute; left: 18px; color: var(--text-muted); font-weight: 700; pointer-events: none; }
.amount-input .suffix { position: absolute; right: 18px; color: var(--text-muted); font-weight: 700; pointer-events: none; }
.amount-input input {
    width: 100%; font-size: 1.2rem; font-weight: 600; color: var(--text);
    padding: 15px 16px 15px 48px; min-height: 56px;
    border: 0; border-radius: var(--r-md); font-family: inherit;
    background: var(--surface); box-shadow: var(--inset);
    transition: box-shadow 0.2s ease;
}
.amount-input.unit-gold input { padding-left: 16px; padding-right: 48px; }
.amount-input input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.amount-input input:focus { box-shadow: var(--inset), inset 0 0 0 1.5px rgba(140, 203, 80, 0.5); }
.amount-input input[aria-invalid="true"] { box-shadow: var(--inset), inset 0 0 0 1.5px rgba(164, 35, 27, 0.55); }
.amount-input input::placeholder { color: var(--placeholder); }

.hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
    appearance: none; cursor: pointer; border: 0; border-radius: var(--r-md);
    font-weight: 700; font-size: 1rem; padding: 15px 20px; min-height: 54px; width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: inherit;
    transition: box-shadow 0.16s ease, transform 0.08s ease, background-color 0.16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    color: #f4faf0;
    background: linear-gradient(150deg, #12564f, #0c4641);
    box-shadow: var(--raise-sm);
}
@media (hover: hover) {
    .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--raise-sm), 0 12px 28px -8px rgba(13, 74, 70, 0.5); }
    .btn-confirm:hover { transform: translateY(-1px); box-shadow: var(--raise-sm), 0 12px 30px -8px rgba(140, 203, 80, 0.6); }
    .btn-ghost:hover { transform: translateY(-1px); }
}
.btn-primary:active { box-shadow: var(--inset-sm); }

.btn-confirm {
    color: var(--green-ink);
    background: linear-gradient(150deg, #9ad861, var(--green-bright));
    box-shadow: var(--raise-sm);
}
.btn-confirm:active { box-shadow: inset 2px 2px 6px rgba(90, 140, 45, 0.5), inset -2px -2px 6px rgba(220, 240, 200, 0.6); }

.btn-ghost { color: var(--text); background: var(--surface); box-shadow: var(--raise-sm); }
.btn-ghost:active { box-shadow: var(--inset-sm); }

.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: var(--inset-sm); transform: none; }

.btn .spinner {
    width: 16px; height: 16px; border-radius: var(--r-pill);
    border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}
.btn-confirm .spinner { border-color: rgba(13, 74, 70, 0.25); border-top-color: var(--green-ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Quote review ---------- */
.review dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 14px 16px; }
.review dt { color: var(--text-muted); font-size: 0.9rem; }
.review dd { margin: 0; font-weight: 700; text-align: right; }
.review dd.big { font-size: 1.15rem; color: var(--green-dark); }

.timer {
    margin-top: 20px; display: flex; align-items: center; justify-content: space-between;
    padding: 15px 18px; border-radius: var(--r-md);
    background: var(--surface); box-shadow: var(--inset-sm);
    transition: background-color 0.3s ease;
}
.timer .label { font-size: 0.82rem; font-weight: 600; color: var(--green-dark); }
.timer .count { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--green-dark); letter-spacing: 0.02em; }
.timer.is-warn { background: #fff3e1; }
.timer.is-warn .label, .timer.is-warn .count { color: #935700; }
.timer.is-expired { background: var(--danger-soft); }
.timer.is-expired .label, .timer.is-expired .count { color: var(--danger); }

/* ---------- Receipt ---------- */
.receipt-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.receipt-head .tick {
    width: 46px; height: 46px; flex: none; border-radius: var(--r-pill);
    display: grid; place-items: center;
    color: var(--green-ink);
    background: linear-gradient(180deg, #eef7e2, var(--green-soft));
    box-shadow: var(--raise-sm), 0 10px 22px -10px rgba(140, 203, 80, 0.7);
}
.receipt-head .tick svg { display: block; }
.receipt-head h3 { margin: 0; font-size: 1.24rem; }
.receipt-sub { color: var(--text-muted); font-size: 0.9rem; margin: 6px 0 18px; }
.receipt dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 11px 16px; }
.receipt dt { color: var(--text-muted); font-size: 0.86rem; }
.receipt dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.receipt .divider { grid-column: 1 / -1; border-top: 1px dashed rgba(13, 74, 70, 0.18); margin: 8px 0; }
.receipt .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; }

/* ---------- Error banner ---------- */
.error-banner {
    margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md);
    background: var(--danger-soft); color: var(--danger);
    font-size: 0.92rem; font-weight: 500; box-shadow: var(--inset-sm);
}
.field-error { color: var(--danger); font-size: 0.82rem; margin-top: 10px; font-weight: 600; }

/* ---------- Skeleton ---------- */
.skeleton { color: transparent !important; position: relative; overflow: hidden; border-radius: 8px; background: #dde3e0; box-shadow: var(--inset-sm); }
.skeleton::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%); animation: sweep 1.4s infinite;
}
@keyframes sweep { to { transform: translateX(100%); } }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ---------- SweetAlert2 (themed to the brand) ---------- */
.swal2-container { z-index: 2000; }
.swal-pop {
    border-radius: 20px;
    font-family: inherit;
    background: var(--surface);
    box-shadow: var(--raise), 0 24px 60px -24px rgba(13, 74, 70, 0.4);
    color: var(--text);
    padding: 26px 24px 22px;
}
.swal-pop .swal2-title { color: var(--text); font-weight: 700; letter-spacing: -0.01em; font-size: 1.2rem; }
.swal-pop .swal2-html-container { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; }
.swal-pop .swal2-actions { gap: 10px; margin-top: 20px; }
.swal-summary { text-align: left; display: grid; gap: 9px; margin-top: 10px; }
.swal-summary .r { display: flex; justify-content: space-between; gap: 18px; font-size: 0.92rem; color: var(--text-muted); }
.swal-summary .r b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.swal-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; }

.swal-btn {
    border: 0; border-radius: 12px; cursor: pointer;
    font-weight: 700; font-size: 0.95rem; font-family: inherit;
    padding: 12px 20px; min-height: 46px;
}
.swal-btn-confirm { background: linear-gradient(150deg, #12564f, #0c4641); color: #f4faf0; box-shadow: var(--raise-sm); }
.swal-btn-confirm:hover { background: linear-gradient(150deg, #12574f, #0b4340); }
.swal-btn-ghost { background: var(--surface); color: var(--text); box-shadow: var(--raise-sm); }

.swal-toast {
    border-radius: 14px;
    font-family: inherit;
    background: var(--surface);
    box-shadow: var(--raise);
    color: var(--text);
}
.swal-toast .swal2-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
    .swal2-show, .swal2-hide, .swal2-toast.swal2-show, .swal2-toast.swal2-hide { animation: none !important; }
}

/* ---------- Scroll reveal ---------- */
.has-reveal .section { opacity: 0; }
.has-reveal .section.in-view { animation: reveal-up 0.62s cubic-bezier(.22,.61,.36,1) both; }
.has-reveal .section.in-view .grid-3 > .card { animation: reveal-card 0.5s ease-out both; }
.has-reveal .section.in-view .grid-3 > .card:nth-child(1) { animation-delay: 0.10s; }
.has-reveal .section.in-view .grid-3 > .card:nth-child(2) { animation-delay: 0.18s; }
.has-reveal .section.in-view .grid-3 > .card:nth-child(3) { animation-delay: 0.26s; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes reveal-card { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .market { grid-template-columns: 1fr; gap: 18px; }
    .market .price { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); padding-top: 16px; }
}
@media (max-width: 760px) {
    body { padding-top: 132px; }
    .site-header { padding: 12px 12px; }
    .grid-3 { grid-template-columns: 1fr; gap: 16px; }
    .header-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .availability { align-self: stretch; justify-content: center; }
    .stat .value { font-size: 1.5rem; }
    .card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
    .availability.is-available .dot { animation: none; }
    .skeleton::after { animation: none; }
    .btn .spinner { animation-duration: 1.4s; }
    .btn, .segmented button, .unit-toggle button, .card.stat, .card.market { transition: none; }
    .seg-thumb, .header-bar { transition: none; }
    .has-reveal .section,
    .has-reveal .section.in-view,
    .has-reveal .section.in-view .grid-3 > .card { opacity: 1 !important; animation: none !important; transform: none !important; }
}
