/* ==========================================================================
   Kayshni - stylesheet
   Built on the Kayshni design system (kayshni-design-system/project):
   the :root block is tokens.json, the rules are its component bundle.
   Use the tokens; don't add raw colours, spacing or radii.
   Mobile first. Logical properties (inline-start/end) so one stylesheet
   serves Arabic (RTL) and English (LTR).
   Signature: the yellow sale tag + the 14-day "fuse" on every listing.
   ========================================================================== */

:root {
    /* colour: tokens.json color.tokens (usage notes there) */
    --ink: #102a2e;
    --ink-prose: #2c4144;
    --petrol: #0f5257;
    --petrol-600: #0a4246;
    --petrol-50: #e7f0ef;
    --petrol-line: #c7dcda;
    --tag: #ffc93c;
    --tag-600: #f2b414;
    --tag-ink: #3a2a00;
    --tag-soft: #fff4d1;
    --tag-paper: #fffbef;
    --tag-line: #f2d98d;
    --tag-line-soft: #f5dd95;
    --tag-deep: #8a6100;
    --tag-text: #6b4e00;
    --tag-note: #5a4710;
    --tag-muted: #6b5a2a;
    --paper: #f3f5f4;
    --surface: #ffffff;
    --on-fill: #ffffff;
    --muted: #5e6e6c;
    --line: #dde3e1;
    --line-strong: #c3cdca;
    --line-input: #808e8c;
    --media: #e3eae8;
    --media-icon: #9fb0ad;
    --media-stage: #0e2224;
    --chat-bg: #f7f9f8;
    --chat-day: #e4eae8;
    --save: #12805c;
    --save-soft: #e2f3ea;
    --save-ink: #0b5e40;
    --alert: #be3e29;
    --alert-600: #a93522;
    --alert-soft: #fbeae6;
    --alert-line: #ebc2b9;
    --alert-ink: #9a2e1c;
    --whatsapp: #0e703b;
    --whatsapp-600: #0b5c30;

    /* type */
    --font-body: "Almarai", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    --font-display: "Almarai", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

    /* space: 2px rhythm */
    --space-2: 2px;
    --space-4: 4px;
    --space-6: 6px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-14: 14px;
    --space-16: 16px;
    --space-18: 18px;
    --space-20: 20px;
    --space-24: 24px;
    --space-28: 28px;
    --space-32: 32px;
    --space-36: 36px;
    --space-40: 40px;
    --space-48: 48px;

    /* shape and depth */
    --radius: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    --radius-round: 50%;
    --shadow-sm: 0 1px 2px rgba(16, 42, 46, .06);
    --shadow: 0 1px 2px rgba(16, 42, 46, .05), 0 8px 24px rgba(16, 42, 46, .07);

    /* layout (gutter and header-h grow at the breakpoints below) */
    --wrap: 1200px;
    --gutter: 16px;
    --header-h: 64px;
    --bottom-nav-h: 64px;
}

/* --------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-12)); }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.7 var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol-600); }
h1, h2, h3 { margin: 0; line-height: 1.3; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
s { text-decoration-thickness: 1.5px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; border-radius: 4px; }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

.main { flex: 1; outline: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: var(--space-16); }

.visually-hidden, .hp {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link {
    position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: var(--on-fill); padding: var(--space-10) var(--space-16); border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--on-fill); }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.online { color: var(--save); }
.num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
    min-height: 44px; padding: 0 var(--space-18);
    border: 1px solid var(--line-strong); border-radius: var(--radius-md);
    background: var(--surface); color: var(--ink);
    font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-decoration: none; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--petrol); border-color: var(--petrol); color: var(--on-fill); }
.btn-primary:hover { background: var(--petrol-600); border-color: var(--petrol-600); color: var(--on-fill); }
.btn-tag { background: var(--tag); border-color: var(--tag); color: var(--tag-ink); }
.btn-tag:hover { background: var(--tag-600); border-color: var(--tag-600); color: var(--tag-ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-ghost--danger { color: var(--alert); }
.btn-danger { background: var(--alert); border-color: var(--alert); color: var(--on-fill); }
.btn-danger:hover { background: var(--alert-600); border-color: var(--alert-600); color: var(--on-fill); }
.btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: var(--on-fill); }
.btn-whatsapp:hover { background: var(--whatsapp-600); border-color: var(--whatsapp-600); color: var(--on-fill); }
.btn-sm { min-height: 36px; padding: 0 var(--space-12); font-size: .875rem; border-radius: 10px; gap: var(--space-6); }
.btn-lg { min-height: 52px; padding: 0 var(--space-24); font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--petrol); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn[disabled] { color: var(--muted); text-decoration: none; cursor: default; }

/* --------------------------------------------------------------- header */

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: var(--space-12); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: var(--space-8); text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: url("../img/favicon.svg") center / cover no-repeat; }
.brand-name { font: 700 1.35rem/1 var(--font-display); }
.brand--light, .brand--light:hover { color: var(--on-fill); }

.header-search { flex: 1; display: flex; align-items: center; position: relative; max-width: 520px; }
.header-search input {
    width: 100%; height: 42px; padding-inline: var(--space-14) 44px;
    border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper);
}
.header-search input:focus { outline: none; border-color: var(--petrol); background: var(--surface); box-shadow: 0 0 0 3px rgba(15, 82, 87, .15); }
.header-search button {
    position: absolute; inset-inline-end: 4px; width: 36px; height: 36px;
    display: grid; place-items: center; border: 0; border-radius: var(--radius-round);
    background: var(--petrol); color: var(--on-fill);
}

.header-nav { display: none; align-items: center; gap: var(--space-6); margin-inline-start: auto; }
.nav-link { padding: var(--space-8) var(--space-12); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-link:hover, .nav-link.is-active { background: var(--paper); color: var(--ink); }
.icon-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-round); color: var(--ink); }
.icon-link:hover, .icon-link.is-active { background: var(--paper); color: var(--ink); }
.icon-link .icon { width: 22px; height: 22px; }
.icon-link .badge { position: absolute; top: 2px; inset-inline-end: 0; }
.lang-link { padding: var(--space-6) var(--space-10); border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang-link:hover { color: var(--ink); background: var(--paper); }
.lang-link--mobile { flex-shrink: 0; }

.badge {
    display: inline-grid; place-items: center;
    min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: var(--radius-pill); background: var(--alert); color: var(--on-fill);
    font-size: .7rem; font-weight: 700; line-height: 1;
}
.badge--soft { background: var(--petrol-50); color: var(--petrol); margin-inline-start: var(--space-6); }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-trigger { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-4) var(--space-10) var(--space-4) var(--space-4); border-radius: var(--radius-pill); }
[dir="rtl"] .menu-trigger { padding: var(--space-4) var(--space-4) var(--space-4) var(--space-10); }
.menu-trigger:hover { background: var(--paper); }
.menu-name { font-weight: 500; font-size: .95rem; }
.menu-panel {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 220px; padding: var(--space-6);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.menu-panel a, .menu-panel button {
    display: flex; align-items: center; gap: var(--space-10); width: 100%;
    padding: var(--space-10) var(--space-12); border: 0; border-radius: 8px; background: none;
    color: var(--ink); text-decoration: none; text-align: start; font-size: .95rem;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--paper); }
.menu-panel form { border-top: 1px solid var(--line); margin-top: var(--space-4); padding-top: var(--space-4); }

.avatar {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 34px; height: 34px; border-radius: var(--radius-round);
    background: var(--petrol-50); color: var(--petrol);
    font: 700 .95rem/1 var(--font-display);
}
.avatar--lg { width: 48px; height: 48px; font-size: 1.2rem; }
.avatar--xl { width: 76px; height: 76px; font-size: 2rem; }

/* --------------------------------------------------------------- bottom nav (phones) */

.bottom-nav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line);
}
.bottom-nav a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
    color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 500;
}
.bottom-nav a .icon { width: 23px; height: 23px; }
.bottom-nav a.is-active { color: var(--petrol); }
.bottom-nav .badge { position: absolute; top: 6px; inset-inline-start: calc(50% + 4px); }
.bottom-nav-plus {
    display: grid; place-items: center; width: 44px; height: 44px; margin-top: -18px;
    border-radius: 14px; background: var(--tag); color: var(--tag-ink);
    box-shadow: 0 4px 12px rgba(242, 180, 20, .45);
}
.bottom-nav-sell { color: var(--ink) !important; }

/* --------------------------------------------------------------- flash */

.flash-stack { display: grid; gap: var(--space-8); margin-top: var(--space-16); }
.flash {
    display: flex; align-items: flex-start; gap: var(--space-10);
    padding: var(--space-12) var(--space-14); border-radius: var(--radius-md);
    background: var(--petrol-50); border-inline-start: 4px solid var(--petrol);
}
.flash p { flex: 1; }
.flash > .icon { margin-top: 3px; }
.flash--success { background: var(--save-soft); border-color: var(--save); }
.flash--success > .icon { color: var(--save); }
.flash--error { background: var(--alert-soft); border-color: var(--alert); }
.flash--error > .icon { color: var(--alert); }
.flash-close { border: 0; background: none; color: var(--muted); padding: var(--space-2); border-radius: 6px; }

/* --------------------------------------------------------------- sticker + price + 14-day fuse */

.sticker {
    position: absolute; top: 12px; inset-inline-start: 0; z-index: 1;
    padding: 5px var(--space-16) 5px 11px;
    background: var(--tag); color: var(--tag-ink);
    font: 700 .95rem/1 var(--font-display);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}
[dir="rtl"] .sticker {
    padding: 5px 11px 5px var(--space-16);
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.sticker--lg { top: 16px; font-size: 1.15rem; padding-block: var(--space-8); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-10); }
.price-now { font: 700 1.3rem/1.2 var(--font-display); color: var(--ink); }
.price-was { color: var(--muted); font-size: .9rem; }
.price-save { flex-basis: 100%; color: var(--save); font-weight: 600; font-size: .82rem; }
.price--lg .price-now { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); }
.price--lg .price-was { font-size: 1.05rem; }
.price--lg .price-save { margin-top: var(--space-6); font-size: .9rem; }
.price--lg .price-save > span { display: inline-block; padding: 3px var(--space-10); border-radius: var(--radius-pill); background: var(--save-soft); color: var(--save-ink); }

.life { display: flex; align-items: center; gap: var(--space-10); margin-top: var(--space-10); }
.life-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; flex: 1; max-width: 220px; }
.life-bar i { height: 6px; border-radius: 3px; background: var(--line); }
.life-bar i.on { background: var(--petrol); }
.life-text { font-size: .8rem; font-weight: 600; color: var(--petrol); white-space: nowrap; }
.life.is-ending .life-bar i.on { background: var(--alert); }
.life.is-ending .life-text { color: var(--alert); }
.life--compact { margin-top: var(--space-8); gap: var(--space-8); }
.life--compact .life-bar { gap: var(--space-2); }
.life--compact .life-bar i { height: 4px; }
.life--compact .life-text { font-size: .75rem; }

/* --------------------------------------------------------------- hero */

.hero { background: var(--petrol); color: var(--on-fill); overflow: hidden; }
.hero-grid { display: grid; gap: var(--space-40); padding-block: var(--space-36) var(--space-48); }
.eyebrow {
    display: inline-flex; align-items: center; gap: var(--space-6); margin-bottom: var(--space-14);
    padding: var(--space-4) var(--space-12); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .12);
    color: var(--tag); font-size: .875rem; font-weight: 600;
}
.hero h1 { font-size: clamp(1.9rem, 1.15rem + 3.3vw, 3.3rem); line-height: 1.22; max-width: 15ch; }
.hero-lead { margin-top: var(--space-14); font-size: 1.08rem; color: rgba(255, 255, 255, .86); max-width: 52ch; }

.hero-search {
    position: relative; display: flex; align-items: center; gap: var(--space-8);
    margin-top: var(--space-24); padding: var(--space-6); max-width: 560px;
    background: var(--surface); border-radius: 16px; color: var(--ink);
}
.hero-search > .icon { margin-inline-start: var(--space-10); color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font-size: 1rem; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--tag); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-10); margin-top: var(--space-18); }
.hero .btn-ghost { color: var(--on-fill); border-color: rgba(255, 255, 255, .45); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--on-fill); }
.hero :focus-visible { outline-color: var(--tag); }

/* The hanging price tag (signature). */
.hero-tag-wrap { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 34px; }
.hero-tag-wrap::before { /* the string */
    content: ""; position: absolute; top: -60px; inset-inline-start: 50%;
    width: 2px; height: 108px; background: rgba(255, 255, 255, .55);
    transform: rotate(16deg); transform-origin: bottom;
}
.hang-tag {
    position: relative; display: block; width: min(100%, 360px);
    padding: 54px 26px var(--space-24);
    background: var(--tag); color: var(--tag-ink); text-decoration: none;
    clip-path: polygon(22% 0, 78% 0, 100% 13%, 100% 100%, 0 100%, 0 13%);
    border-radius: 6px;
    transform: rotate(-4deg); transform-origin: 50% 24px;
    animation: tag-swing 1.6s cubic-bezier(.3, 1.4, .5, 1) both;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25));
}
a.hang-tag:hover { color: var(--tag-ink); }
a.hang-tag:hover .hang-title { text-decoration: underline; text-underline-offset: 4px; }
.hang-hole {
    position: absolute; top: 14px; inset-inline-start: calc(50% - 10px);
    width: 20px; height: 20px; border-radius: var(--radius-round);
    background: var(--petrol); box-shadow: 0 0 0 4px rgba(58, 42, 0, .18);
}
.hang-label { display: block; font-size: .85rem; font-weight: 600; opacity: .75; padding-inline-end: 70px; }
.hang-title { display: block; margin: var(--space-4) 0 var(--space-14); font-size: 1.15rem; line-height: 1.45; padding-inline-end: 70px; }
.hang-tag .price-now { color: var(--tag-ink); }
.hang-tag .price-was { color: rgba(58, 42, 0, .65); }
.hang-tag .price-save { color: var(--save-ink); }
.hang-tag .price-save > span { background: rgba(255, 255, 255, .7); }
.hang-meta { display: flex; align-items: center; gap: var(--space-6); margin-top: var(--space-12); font-size: .9rem; opacity: .8; }
.hang-tag .life-bar i { background: rgba(58, 42, 0, .16); }
.hang-tag .life-bar i.on { background: var(--tag-ink); }
.hang-tag .life-text { color: var(--tag-ink); }
.hang-sticker {
    position: absolute; top: 46px; inset-inline-end: 18px;
    display: grid; place-items: center; width: 66px; height: 66px; border-radius: var(--radius-round);
    background: var(--petrol); color: var(--on-fill); font: 700 1.15rem/1 var(--font-display);
    transform: rotate(10deg);
}
.hero-tag-note { margin-top: var(--space-18); font-size: .85rem; color: rgba(255, 255, 255, .7); }

@keyframes tag-swing {
    0% { transform: rotate(-14deg); }
    55% { transform: rotate(1deg); }
    100% { transform: rotate(-4deg); }
}

/* --------------------------------------------------------------- sections */

.section { padding-block: var(--space-32); }
.section--band { background: var(--petrol-50); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-16); margin-bottom: var(--space-18); }
.section-head h2 { font-size: 1.45rem; }
.section-note { color: var(--muted); font-size: .92rem; margin-top: var(--space-2); }
.link-more { display: inline-flex; align-items: center; gap: var(--space-4); font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.link-more .icon { width: 18px; height: 18px; }

.page-head { margin-block: var(--space-24) var(--space-20); }
.page-head h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.page-head p { margin-top: var(--space-6); }
.page-head--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-12); }

/* categories */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-10); }
.cat-tile {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-6); height: 100%;
    padding: var(--space-14) var(--space-6) var(--space-12); border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); text-decoration: none; text-align: center;
    transition: border-color .15s, transform .15s;
}
.cat-tile:hover { border-color: var(--petrol); color: var(--ink); transform: translateY(-2px); }
.cat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--petrol-50); color: var(--petrol); }
.cat-icon .icon { width: 24px; height: 24px; }
.cat-name { font-weight: 600; font-size: .85rem; line-height: 1.35; }
.cat-count { font-size: .78rem; color: var(--muted); }

.country-chips { display: flex; gap: var(--space-8); overflow-x: auto; padding-bottom: var(--space-6); margin-bottom: var(--space-18); scrollbar-width: thin; }
.chip {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: var(--space-6);
    padding: var(--space-6) var(--space-14); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap;
}
.chip:hover { border-color: var(--petrol); color: var(--ink); }
.chip.is-on { background: var(--petrol); border-color: var(--petrol); color: var(--on-fill); }

/* steps + promise */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-14); }
.steps li { padding: var(--space-20); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-n {
    display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-12);
    border-radius: 12px; background: var(--tag); color: var(--tag-ink); font: 700 1.2rem/1 var(--font-display);
}
.steps h3 { font-size: 1.08rem; margin-bottom: var(--space-6); }
.steps p { color: var(--muted); }

.promise { display: grid; gap: var(--space-18); padding: var(--space-24); border-radius: var(--radius); background: var(--ink); color: var(--on-fill); }
.promise-item { display: flex; gap: var(--space-14); }
.promise-item > .icon { width: 28px; height: 28px; color: var(--tag); margin-top: var(--space-2); }
.promise-item h3 { font-size: 1.02rem; margin-bottom: var(--space-4); }
.promise-item p { color: rgba(255, 255, 255, .75); font-size: .95rem; }

/* --------------------------------------------------------------- cards */

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-12); }
.card {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--media); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--media-icon); }
.card-placeholder .icon { width: 42px; height: 42px; stroke-width: 1.4; }
.card-count {
    position: absolute; bottom: 8px; inset-inline-end: 8px;
    display: inline-flex; align-items: center; gap: var(--space-4); padding: var(--space-2) var(--space-8);
    border-radius: var(--radius-pill); background: rgba(16, 42, 46, .7); color: var(--on-fill); font-size: .75rem;
}
.card-count .icon { width: 14px; height: 14px; }
.card-body { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-10) var(--space-12) var(--space-12); flex: 1; }
.card-cat { font-size: .75rem; color: var(--muted); }
.card-inst { color: var(--tag-deep); font-weight: 600; }
.card-title { font: 600 .95rem/1.5 var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 3px solid var(--petrol); outline-offset: 2px; }
.card .price { margin-top: var(--space-2); }
.card .price-now { font-size: 1.12rem; }
.card .price-was { font-size: .8rem; }
.card-meta { display: flex; align-items: center; gap: var(--space-4); margin-top: auto; padding-top: var(--space-4); font-size: .78rem; color: var(--muted); min-width: 0; }
.card-meta span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card-meta span:last-child { white-space: nowrap; flex-shrink: 0; }
.card-meta .icon { width: 14px; height: 14px; }
.card-meta .dot { opacity: .6; }

.fav-form { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; margin: 0; }
.fav-btn {
    display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--radius-round);
    background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-sm);
}
.fav-btn:hover { color: var(--alert); }
.fav-btn .icon { width: 20px; height: 20px; }
.fav-btn.is-on, .fav-inline.is-on { color: var(--alert); }
.fav-btn.is-on .icon, .fav-inline.is-on .icon { fill: currentColor; }

/* --------------------------------------------------------------- browse */

.browse { padding-block: var(--space-20) var(--space-40); }
.browse-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-12); margin-bottom: var(--space-16); }
.browse-head h1 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.sort-form { display: flex; align-items: center; gap: var(--space-8); }
.sort-form label { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.sort-form select { min-height: 40px; width: auto; }
.browse-grid { display: grid; gap: var(--space-16); }

.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters-toggle { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-14) var(--space-16); font-weight: 600; cursor: pointer; list-style: none; }
.filters-toggle::-webkit-details-marker { display: none; }
.filters-form { display: grid; gap: var(--space-14); padding: 0 var(--space-16) var(--space-16); }
.filters-actions { display: grid; gap: var(--space-8); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-6); margin-top: var(--space-28); }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-4);
    min-width: 40px; height: 40px; padding: 0 var(--space-10);
    border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
}
.pagination a:hover { border-color: var(--petrol); }
.pagination .is-current { background: var(--petrol); border-color: var(--petrol); color: var(--on-fill); font-weight: 700; }
.pagination .page-gap { border: 0; background: none; min-width: 20px; }
.pagination .icon { width: 18px; height: 18px; }

.empty { text-align: center; padding: var(--space-48) var(--space-16); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--space-14); border-radius: 20px; background: var(--petrol-50); color: var(--petrol); }
.empty-icon .icon { width: 30px; height: 30px; }
.empty h1, .empty h2 { font-size: 1.25rem; }
.empty p { color: var(--muted); margin: var(--space-8) auto var(--space-18); max-width: 46ch; }

/* --------------------------------------------------------------- forms */

.field { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.field > label, .field > legend, .label-row label { font-weight: 600; font-size: .95rem; }
.field > legend { margin-bottom: var(--space-6); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); }
.field--end { justify-content: flex-end; padding-bottom: var(--space-10); }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], select, textarea {
    width: 100%; min-height: 48px; padding: var(--space-10) var(--space-14);
    border: 1px solid var(--line-input); border-radius: var(--radius-md);
    background: var(--surface); font-size: 1rem; line-height: 1.5;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(15, 82, 87, .16); }
input[disabled] { background: var(--paper); color: var(--muted); }
[aria-invalid="true"] { border-color: var(--alert) !important; }
select {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    padding-inline-end: var(--space-40);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235E6E6C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
[dir="rtl"] select { background-position: left 12px center; }
select[disabled] { opacity: .55; cursor: not-allowed; }
::placeholder { color: var(--muted); }

.help { font-size: .85rem; color: var(--muted); line-height: 1.55; }
.field-error { font-size: .875rem; font-weight: 500; color: var(--alert); }
.field-grid { display: grid; gap: var(--space-14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }

.check { display: flex; align-items: flex-start; gap: var(--space-10); cursor: pointer; line-height: 1.55; }
.check input { width: 20px; height: 20px; margin: var(--space-2) 0 0; flex-shrink: 0; accent-color: var(--petrol); }

.switch { display: inline-flex; align-items: center; gap: var(--space-12); cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 46px; height: 26px; border-radius: var(--radius-pill); background: var(--line-input); transition: background .2s; flex-shrink: 0; }
.switch-ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: var(--radius-round); background: var(--surface); box-shadow: var(--shadow-sm); transition: inset-inline-start .2s; }
.switch input:checked + .switch-ui { background: var(--petrol); }
.switch input:checked + .switch-ui::after { inset-inline-start: 23px; }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--petrol); outline-offset: 2px; }

.input-unit, .input-reveal { position: relative; }
.input-unit input { padding-inline-end: 56px; }
.input-unit span { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }
.input-reveal input { padding-inline-end: var(--space-48); }
.input-reveal button { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.input-reveal button:hover { color: var(--ink); background: var(--paper); }

/* --------------------------------------------------------------- panels */

.panel { padding: var(--space-18); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h2 { display: flex; align-items: center; gap: var(--space-8); font: 700 1.08rem/1.4 var(--font-body); margin-bottom: var(--space-12); }
.panel h2 .icon { color: var(--petrol); }
.panel--danger { border-color: var(--alert-line); }
.panel--danger h2 { color: var(--alert); }

.pill {
    display: inline-flex; align-items: center; gap: var(--space-4);
    padding: var(--space-2) var(--space-10); border-radius: var(--radius-pill);
    background: var(--paper); border: 1px solid var(--line);
    font-size: .8rem; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.pill .icon { width: 14px; height: 14px; }
.pill--reason { background: var(--alert-soft); border-color: transparent; color: var(--alert-ink); }
.pill--tag { background: var(--tag-soft); border-color: var(--tag-line-soft); color: var(--tag-text); }
.pill--ok { background: var(--save-soft); border-color: transparent; color: var(--save-ink); }
.pill--alert { background: var(--alert); border-color: var(--alert); color: var(--on-fill); }

.status { display: inline-block; padding: var(--space-2) var(--space-10); border-radius: 6px; font-size: .78rem; font-weight: 700; }
.status--active { background: var(--save-soft); color: var(--save-ink); }
.status--sold { background: var(--petrol-50); color: var(--petrol); }
.status--removed, .status--banned { background: var(--alert-soft); color: var(--alert-ink); }
.status--expired, .status--deleted { background: var(--paper); color: var(--muted); }

/* --------------------------------------------------------------- listing page */

.listing-page { padding-block: var(--space-14) var(--space-40); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); font-size: .85rem; color: var(--muted); margin-bottom: var(--space-12); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--petrol); text-decoration: underline; }

.owner-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-10);
    padding: var(--space-12) var(--space-14); margin-bottom: var(--space-14);
    border-radius: var(--radius-md); background: var(--petrol-50); border: 1px solid var(--petrol-line);
}
.owner-bar--warn { background: var(--tag-soft); border-color: var(--tag-line); }
.owner-actions { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.owner-actions form { margin: 0; }

.listing-grid { display: grid; gap: var(--space-14); grid-template-areas: "gallery" "side" "main"; }
.gallery { grid-area: gallery; min-width: 0; }
.listing-side { grid-area: side; display: grid; gap: var(--space-14); align-content: start; }
.listing-main { grid-area: main; display: grid; gap: var(--space-14); align-content: start; min-width: 0; }

.gallery-main {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: var(--radius); background: var(--media-stage);
    margin-inline: calc(var(--gutter) * -1);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main--empty { display: grid; place-content: center; justify-items: center; gap: var(--space-8); background: var(--media); color: var(--ink-prose); }
.gallery-main--empty .icon { width: 56px; height: 56px; stroke-width: 1.3; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 0; border-radius: var(--radius-round); background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: var(--shadow-sm);
}
.gallery-nav--prev { inset-inline-start: 10px; }
.gallery-nav--next { inset-inline-end: 10px; }
.gallery-count { position: absolute; bottom: 10px; inset-inline-end: 10px; padding: var(--space-2) var(--space-10); border-radius: var(--radius-pill); background: rgba(16, 42, 46, .72); color: var(--on-fill); font-size: .8rem; }
.gallery-thumbs { display: flex; gap: var(--space-8); overflow-x: auto; padding: var(--space-10) 0 var(--space-2); }
.gallery-thumbs button { flex-shrink: 0; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; opacity: .7; }
.gallery-thumbs button.is-on, .gallery-thumbs button:hover { border-color: var(--petrol); opacity: 1; }
.gallery-thumbs img { width: 84px; height: 63px; object-fit: cover; }

.listing-tags { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-bottom: var(--space-10); }
.listing-title { font: 700 1.35rem/1.45 var(--font-body); margin-bottom: var(--space-12); }
.listing-terms { margin-top: var(--space-8); font-size: .9rem; color: var(--muted); }
.listing-facts { list-style: none; margin: var(--space-14) 0 0; padding: var(--space-14) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--space-8); font-size: .92rem; }
.listing-facts li { display: flex; align-items: center; gap: var(--space-8); }
.listing-facts .icon { color: var(--muted); }
.listing-tools { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-14); }
.listing-tools form { margin: 0; }

.contact { display: grid; gap: var(--space-12); }
.seller { display: flex; gap: var(--space-12); align-items: flex-start; }
.seller-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.seller-name:hover { text-decoration: underline; }
.phone-box { display: grid; gap: var(--space-8); }
.phone-number { font-size: 1.1rem; letter-spacing: .02em; }
.contact-form { display: grid; gap: var(--space-8); }
.contact-form label { font-weight: 600; font-size: .92rem; }

.safety ul { margin: 0 0 var(--space-10); padding-inline-start: var(--space-18); display: grid; gap: var(--space-6); font-size: .92rem; color: var(--muted); }
.safety a { font-size: .9rem; font-weight: 600; }

.installments { background: var(--tag-soft); border-color: var(--tag-line); }
.installments h2 .icon { color: var(--tag-deep); }
.installments .muted { margin-top: var(--space-12); color: var(--tag-muted); }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.spec-grid > div { padding: var(--space-10) var(--space-12); background: var(--surface); }
.installments .spec-grid { background: var(--tag-line); border-color: var(--tag-line); }
.installments .spec-grid > div { background: var(--tag-paper); }
.spec-grid dt { font-size: .8rem; color: var(--muted); }
.spec-grid dd { margin: var(--space-2) 0 0; font-weight: 600; }

.prose { line-height: 1.85; }
.prose.description { white-space: normal; overflow-wrap: anywhere; }

.report { padding: 0 var(--space-4); }
.report summary { display: inline-flex; align-items: center; gap: var(--space-6); cursor: pointer; color: var(--muted); font-size: .9rem; }
.report summary:hover { color: var(--alert); }
.report-form { display: grid; gap: var(--space-12); margin-top: var(--space-12); padding: var(--space-16); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.report-form fieldset { display: grid; gap: var(--space-8); }
.report-form legend { font-weight: 600; margin-bottom: var(--space-6); }

/* --------------------------------------------------------------- sell form */

.sell-page { padding-bottom: var(--space-40); }
.sell-form { display: grid; gap: var(--space-14); }
.form-section { display: grid; gap: var(--space-16); padding: var(--space-18); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form-section > h2 { font: 700 1.12rem/1.4 var(--font-body); }
.form-section > .help { margin-top: -10px; }

.cat-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.cat-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-option span {
    display: flex; align-items: center; gap: var(--space-10); height: 100%;
    padding: var(--space-12); border: 1.5px solid var(--line); border-radius: var(--radius-md);
    font-weight: 600; font-size: .92rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.cat-option span .icon { color: var(--petrol); }
.cat-option span:hover { border-color: var(--line-strong); }
.cat-option input:checked + span { border-color: var(--petrol); background: var(--petrol-50); }
.cat-option input:focus-visible + span { outline: 3px solid var(--petrol); outline-offset: 2px; }

.photo-drop { display: grid; gap: var(--space-12); }
.photo-drop input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-drop-label {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding: 26px var(--space-16);
    border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper);
    text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.photo-drop-label .icon { width: 34px; height: 34px; color: var(--petrol); margin-bottom: var(--space-4); }
.photo-drop-label:hover, .photo-drop.is-over .photo-drop-label { border-color: var(--petrol); background: var(--petrol-50); }
.photo-drop input:focus-visible + .photo-drop-label { outline: 3px solid var(--petrol); outline-offset: 2px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-8); }
.photo-grid:empty { display: none; }
.photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-cover { position: absolute; top: 6px; inset-inline-start: 6px; padding: 1px var(--space-8); border-radius: 6px; background: var(--tag); color: var(--tag-ink); font-size: .72rem; font-weight: 700; }
.photo-remove {
    position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: var(--space-6);
    padding: var(--space-4); background: rgba(16, 42, 46, .72); color: var(--on-fill); font-size: .75rem; cursor: pointer;
}
.photo-remove input { accent-color: var(--alert); }
.photo:has(input:checked) img { opacity: .35; }
.photo-x {
    position: absolute; top: 6px; inset-inline-end: 6px; display: grid; place-items: center;
    width: 26px; height: 26px; border: 0; border-radius: var(--radius-round); background: rgba(16, 42, 46, .75); color: var(--on-fill);
}
.photo-x .icon { width: 16px; height: 16px; }
.photo-grid--existing { margin-bottom: var(--space-4); }

.char-count { align-self: flex-end; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.char-count.is-short { color: var(--tag-deep); font-weight: 600; }

.desc-hints { padding: var(--space-10) var(--space-14); border-radius: var(--radius-md); background: var(--tag-soft); border: 1px solid var(--tag-line); font-size: .88rem; color: var(--tag-note); }
.desc-hints-title { display: flex; align-items: center; gap: var(--space-6); font-weight: 700; margin-bottom: var(--space-4); }
.desc-hints-title .icon { width: 18px; height: 18px; }
.desc-hints ul { margin: 0; padding-inline-start: var(--space-20); display: grid; gap: var(--space-2); }

.photo-tip { display: flex; align-items: flex-start; gap: var(--space-8); margin-top: -8px; font-size: .88rem; color: var(--petrol); }
.photo-tip .icon { margin-top: var(--space-2); }

.price-fields { display: grid; gap: var(--space-14); }
.preview-tag {
    position: relative; display: grid; gap: var(--space-2); padding: var(--space-16) var(--space-18) var(--space-16) var(--space-18);
    background: var(--tag); color: var(--tag-ink); border-radius: 10px;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
    padding-inline-end: var(--space-40);
}
[dir="rtl"] .preview-tag { clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%); }
.preview-label { font-size: .78rem; font-weight: 600; opacity: .7; }
.preview-now { font: 700 1.6rem/1.2 var(--font-display); }
.preview-was { opacity: .65; }
.preview-save { font-weight: 600; font-size: .9rem; }
.preview-sticker {
    position: absolute; top: 14px; inset-inline-end: 34px; padding: 3px var(--space-10); border-radius: var(--radius-pill);
    background: var(--petrol); color: var(--on-fill); font: 700 1rem/1.2 var(--font-display);
}
.preview-warn { color: var(--alert-ink); font-weight: 700; font-size: .9rem; }

.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-10); padding: var(--space-8) 0; }
.form-submit p { flex-basis: 100%; }

/* --------------------------------------------------------------- auth */

.auth-wrap { display: grid; place-items: center; padding-block: var(--space-28) var(--space-48); }
.auth-card { width: 100%; max-width: 460px; padding: 26px var(--space-20); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; }
.auth-card > .muted { margin: var(--space-6) 0 22px; }
.auth-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-14); border-radius: 16px; background: var(--tag); color: var(--tag-ink); }
.auth-icon .icon { width: 26px; height: 26px; }
.auth-switch { margin-top: var(--space-20); text-align: center; color: var(--muted); }
.otp-input { text-align: center; font: 700 1.9rem/1 var(--font-body); letter-spacing: .45em; padding-inline: var(--space-12); font-variant-numeric: tabular-nums; }
.resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-6); margin-top: var(--space-18); }

/* --------------------------------------------------------------- messages */

.chat-wrap { padding-block: var(--space-16) var(--space-16); }
.chat-layout {
    display: grid; grid-template-columns: 1fr;
    height: calc(100dvh - var(--header-h) - var(--bottom-nav-h) - 32px); min-height: 440px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.chat-list { display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--line); }
.chat-list-title { padding: var(--space-16) var(--space-16) var(--space-10); font-size: 1.3rem; }
.chat-layout--thread .chat-list { display: none; }
.chat-layout--list .chat-placeholder { display: none; }
.chat-placeholder { display: grid; place-content: center; justify-items: center; gap: var(--space-10); color: var(--muted); padding: var(--space-20); text-align: center; }
.chat-placeholder .icon { width: 46px; height: 46px; stroke-width: 1.4; }
.chat-empty { padding: var(--space-24) var(--space-16); display: grid; gap: var(--space-8); justify-items: start; }

.conv-list { list-style: none; margin: 0; padding: 0 var(--space-8) var(--space-8); overflow-y: auto; }
.conv { position: relative; display: flex; gap: var(--space-12); align-items: center; padding: var(--space-10); border-radius: 12px; color: var(--ink); text-decoration: none; }
.conv:hover { background: var(--paper); color: var(--ink); }
.conv.is-active { background: var(--petrol-50); }
.conv-thumb img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.conv-thumb .avatar { width: 52px; height: 52px; border-radius: 12px; font-size: 1.2rem; }
.conv-body { display: grid; flex: 1; min-width: 0; }
.conv-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); }
.conv-top time { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.conv-listing, .conv-preview { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-listing { color: var(--petrol); }
.conv-preview { color: var(--muted); }
.conv.is-unread .conv-preview { color: var(--ink); font-weight: 600; }

.thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.thread-head { display: flex; align-items: center; gap: var(--space-10); padding: var(--space-10) var(--space-14); border-bottom: 1px solid var(--line); }
.thread-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-round); color: var(--ink); }
.thread-back:hover { background: var(--paper); }
.thread-who { display: grid; line-height: 1.35; }
.thread-listing { padding: var(--space-8) var(--space-14); border-bottom: 1px solid var(--line); background: var(--paper); font-size: .9rem; }
.thread-listing a { display: flex; align-items: center; gap: var(--space-10); color: var(--ink); text-decoration: none; }
.thread-listing a > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.thread-listing strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-listing img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.thread-price { font: 700 1rem/1 var(--font-display); white-space: nowrap; }
.thread-scroll { flex: 1; overflow-y: auto; padding: var(--space-14); background: var(--chat-bg); }
.older-link { display: block; width: fit-content; margin: 0 auto var(--space-12); font-size: .85rem; }
.thread-safety { display: flex; align-items: center; gap: var(--space-8); width: fit-content; max-width: 100%; margin: 0 auto var(--space-14); padding: var(--space-6) var(--space-12); border-radius: 10px; background: var(--tag-soft); color: var(--tag-muted); font-size: .8rem; }
.bubbles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.bubble { max-width: min(78%, 520px); padding: var(--space-8) var(--space-12) var(--space-6); border-radius: 16px; overflow-wrap: anywhere; }
.bubble p { line-height: 1.6; }
.bubble--mine { align-self: flex-end; background: var(--petrol); color: var(--on-fill); border-end-end-radius: 4px; }
.bubble--theirs { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 4px; }
.bubble-meta { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4); margin-top: var(--space-2); font-size: .7rem; opacity: .75; }
.ticks .icon { width: 16px; height: 16px; }
.ticks.is-seen { color: var(--tag); opacity: 1; }
.bubble.is-pending { opacity: .6; }
.day-sep { align-self: center; margin: var(--space-8) 0; }
.day-sep span { padding: var(--space-2) var(--space-10); border-radius: var(--radius-pill); background: var(--chat-day); color: var(--ink-prose); font-size: .75rem; }
.composer { display: flex; align-items: flex-end; gap: var(--space-8); padding: var(--space-10); border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { min-height: 46px; max-height: 160px; resize: none; border-radius: 22px; padding: 11px var(--space-16); overflow-y: hidden; }
.composer textarea.is-tall { overflow-y: auto; }
.composer-send { width: 46px; min-height: 46px; padding: 0; border-radius: var(--radius-round); flex-shrink: 0; }
.composer--off { justify-content: center; padding: var(--space-16); }

/* --------------------------------------------------------------- account */

.account { padding-bottom: var(--space-40); }
.tabs { display: flex; gap: var(--space-4); overflow-x: auto; margin-bottom: var(--space-18); border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: var(--space-6); padding: var(--space-10) var(--space-14); color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-on { color: var(--petrol); border-bottom-color: var(--petrol); }
.tabs--compact { border: 0; margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-10); margin: 0 0 var(--space-18); }
.stat-row > div { padding: var(--space-14); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.stat-row dt { font-size: .8rem; color: var(--muted); }
.stat-row dd { margin: var(--space-2) 0 0; font: 700 1.5rem/1.2 var(--font-display); }
.stat-row dd .muted { font: 400 .9rem var(--font-body); }

.my-listings { list-style: none; margin: 0 0 var(--space-14); padding: 0; display: grid; gap: var(--space-10); }
.my-row { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-12); padding: var(--space-12); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.my-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--media); }
.my-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-info { min-width: 0; display: grid; gap: var(--space-2); align-content: start; }
.my-info h2 { font: 600 1rem/1.45 var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-info h2 a { color: var(--ink); text-decoration: none; }
.my-info h2 a:hover { text-decoration: underline; }
.my-price strong { font-family: var(--font-display); }
.my-meta { display: flex; gap: var(--space-14); }
.my-meta span { display: inline-flex; align-items: center; gap: var(--space-4); }
.my-meta .icon { width: 15px; height: 15px; }
.my-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-6); padding-top: var(--space-10); border-top: 1px solid var(--line); }
.my-actions form { margin: 0; }

.settings-grid { display: grid; gap: var(--space-14); align-items: start; }

.profile-head { display: flex; align-items: center; gap: var(--space-16); margin-block: var(--space-24) var(--space-4); padding: var(--space-20); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.profile-head h1 { font-size: 1.6rem; }
.profile-head p { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin-top: var(--space-4); }

/* --------------------------------------------------------------- static pages + errors */

.page { padding-block: var(--space-28) var(--space-48); }
.page h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); margin-bottom: var(--space-14); }
.page h2 { font: 700 1.2rem/1.4 var(--font-body); margin: var(--space-28) 0 var(--space-10); }
.page p, .page li { color: var(--ink-prose); }
.page p + p { margin-top: var(--space-12); }
.page ul, .page ol { padding-inline-start: 22px; display: grid; gap: var(--space-8); }
.page .lead { font-size: 1.12rem; color: var(--ink); }
.page .btn { margin-top: var(--space-18); }

.error-page { text-align: center; padding-block: 56px; }
.error-code {
    display: inline-block; margin-bottom: var(--space-18); padding: var(--space-10) 34px var(--space-10) 22px;
    background: var(--tag); color: var(--tag-ink); font: 700 3.4rem/1 var(--font-display);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
    direction: ltr;
}
.error-page h1 { font-size: 1.7rem; }
.error-page p { margin: var(--space-10) auto 0; max-width: 46ch; }
.error-page .hero-actions { justify-content: center; margin-top: var(--space-24); }

/* --------------------------------------------------------------- footer */

.site-footer { margin-top: var(--space-32); background: var(--ink); color: rgba(255, 255, 255, .78); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-28) var(--space-20); padding-block: var(--space-36) var(--space-28); }
.footer-brand { grid-column: 1 / -1; display: grid; gap: var(--space-12); max-width: 40ch; }
.footer-free { display: flex; align-items: center; gap: var(--space-6); color: var(--tag); font-weight: 600; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); }
.footer-contact a { color: var(--on-fill); font-weight: 600; text-underline-offset: 3px; }
.footer-contact a:hover { color: var(--tag); }
.footer-links { display: grid; gap: var(--space-8); align-content: start; }
.footer-links h2 { font: 700 .95rem/1.4 var(--font-body); color: var(--on-fill); margin-bottom: var(--space-4); }
.footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; width: fit-content; }
.footer-links a:hover { color: var(--on-fill); text-decoration: underline; }
/* Categories: full width on phones, two short columns so the list stays compact. */
.footer-cats { grid-column: 1 / -1; }
.footer-cats-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-20); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-8) var(--space-20); padding-block: var(--space-16); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .6); }
.footer-company a { color: var(--on-fill); font-weight: 700; text-underline-offset: 3px; }
.footer-company a:hover { color: var(--tag); }
.site-footer :focus-visible { outline-color: var(--tag); }

/* --------------------------------------------------------------- admin */

.admin-body { padding-bottom: 0; }
.admin-shell { display: grid; min-height: 100vh; }
.admin-side { background: var(--ink); color: var(--on-fill); padding: var(--space-16); }
.admin-side nav { display: flex; gap: var(--space-4); overflow-x: auto; margin-top: var(--space-14); }
.admin-side nav a { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-12); border-radius: 10px; color: rgba(255, 255, 255, .78); text-decoration: none; white-space: nowrap; font-size: .92rem; }
.admin-side nav a:hover, .admin-side nav a.is-on { background: rgba(255, 255, 255, .1); color: var(--on-fill); }
.admin-main { padding: var(--space-20) var(--gutter) var(--space-40); min-width: 0; display: grid; gap: var(--space-16); align-content: start; }
.admin-main .flash-stack { margin-top: 0; }
.admin-main .flash-stack.wrap { padding-inline: 0; max-width: none; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-12); }
.admin-head h1 { font-size: 1.5rem; }
.admin-search { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.admin-search input, .admin-search select { width: auto; min-width: 200px; min-height: 42px; }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-10); margin: 0; }
.admin-stats > div { padding: var(--space-14) var(--space-16); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.admin-stats > div.is-alert { border-color: var(--alert); background: var(--alert-soft); }
.admin-stats dt { font-size: .82rem; color: var(--muted); }
.admin-stats dd { margin: 0; font: 700 1.7rem/1.3 var(--font-display); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel .table-wrap { border: 0; border-radius: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: start; padding: var(--space-10) var(--space-12); font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: var(--space-10) var(--space-12); border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-listing { display: flex; gap: var(--space-10); min-width: 260px; }
.table-listing img { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.table-listing div { display: grid; }
.table-listing .icon { display: inline; width: 13px; height: 13px; vertical-align: -2px; }
.table-actions { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.table-actions form { margin: 0; }

/* --------------------------------------------------------------- toast */

.toast {
    position: fixed; inset-inline: 16px; bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 60;
    width: fit-content; max-width: calc(100% - 32px); margin-inline: auto;
    padding: var(--space-10) var(--space-18); border-radius: 12px; background: var(--ink); color: var(--on-fill); font-weight: 500;
    box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: none; }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* "This page is available in English" (app.js, Arabic pages only). Fixed, so it never shifts the layout. */
.lang-suggest {
    position: fixed; inset-inline: 16px; bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 55;
    display: flex; align-items: center; gap: var(--space-10); width: fit-content; max-width: calc(100% - 32px); margin-inline: auto;
    padding: var(--space-10) var(--space-10) var(--space-10) var(--space-18); border-radius: 12px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lang-suggest a { color: var(--petrol); font-weight: 700; }
.lang-suggest-close {
    min-width: 32px; min-height: 32px; border: 0; border-radius: 8px; background: transparent; color: inherit;
    font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.lang-suggest-close:hover { background: var(--line); }
@media (min-width: 900px) { .lang-suggest { bottom: 24px; } }

/* --------------------------------------------------------------- larger screens */

@media (min-width: 560px) {
    :root { --gutter: 20px; }
    .card-grid { gap: var(--space-16); }
    .cat-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-12); }
    .cat-name { font-size: .92rem; }
    .field-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .field-grid--2 { grid-template-columns: 1fr 1fr; }
    .cat-picker { grid-template-columns: repeat(4, 1fr); }
    .cat-option span { flex-direction: column; text-align: center; gap: var(--space-6); }
    .cat-option span .icon { width: 26px; height: 26px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .promise { grid-template-columns: repeat(3, 1fr); padding: var(--space-28); }
    .gallery-main { margin-inline: 0; }
    .my-row { grid-template-columns: 120px 1fr auto; align-items: center; }
    .my-actions { grid-column: auto; flex-direction: column; align-items: stretch; padding-top: 0; border-top: 0; }
    .auth-card { padding: var(--space-32) 30px; }
    .admin-stats { grid-template-columns: repeat(3, 1fr); }
    .form-section { padding: 22px; }
    .panel { padding: var(--space-20); }
}

@media (min-width: 900px) {
    :root { --gutter: 24px; --header-h: 70px; }
    body { padding-bottom: 0; }
    .bottom-nav, .lang-link--mobile { display: none; }
    .header-nav { display: flex; }
    .header-row { gap: var(--space-20); }
    .brand-name { font-size: 1.5rem; }
    .site-footer { margin-top: var(--space-48); }

    .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: 56px 64px; }
    .hero-tag-wrap { padding-top: 60px; }
    .hero-tag-wrap::before { top: -80px; height: 150px; }
    .section { padding-block: 44px; }
    .section-head h2 { font-size: 1.7rem; }

    .cat-grid { grid-template-columns: repeat(8, 1fr); }
    .card-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-18); }
    .card-grid--browse { grid-template-columns: repeat(3, 1fr); }
    .card-body { padding: var(--space-12) var(--space-14) var(--space-14); }
    .card .price-now { font-size: 1.25rem; }

    .browse-grid { grid-template-columns: 280px 1fr; align-items: start; gap: var(--space-24); }
    .filters { position: sticky; top: calc(var(--header-h) + 16px); }
    .filters-toggle { pointer-events: none; }

    .listing-grid {
        grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-20);
        grid-template-areas: "gallery side" "main side";
    }
    .listing-side { position: sticky; top: calc(var(--header-h) + 16px); }
    .listing-title { font-size: 1.5rem; }

    .settings-grid { grid-template-columns: 1.2fr 1fr; }

    .chat-layout { grid-template-columns: 340px 1fr; height: calc(100dvh - var(--header-h) - 48px); }
    .chat-wrap { padding-block: var(--space-20) var(--space-28); }
    .chat-layout--thread .chat-list { display: flex; }
    .chat-layout--list .chat-placeholder { display: grid; }
    .thread-back { display: none; }

    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.6fr; padding-block: var(--space-48) var(--space-36); }
    .footer-brand, .footer-cats { grid-column: auto; }

    .admin-shell { grid-template-columns: 240px 1fr; }
    .admin-side { position: sticky; top: 0; height: 100vh; padding: 22px var(--space-16); }
    .admin-side nav { flex-direction: column; overflow: visible; margin-top: var(--space-24); }
    .admin-main { padding: var(--space-28) var(--space-32) var(--space-48); }
    .admin-stats { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1200px) {
    .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------- motion + print */

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

@media print {
    .site-header, .bottom-nav, .site-footer, .listing-tools, .contact, .report { display: none !important; }
    body { background: var(--surface); padding: 0; }
}

/* --------------------------------------------------------------- page experience + HTML semantics (SEO WP5)
   Markup changes for search and accessibility that must not change the look. */

/* Breadcrumb as an ordered list (partials/crumbs.php). Same spacing as the old inline links; the "/"
   separator is generated, with empty alt text where browsers support it so screen readers skip it. */
.crumbs { display: block; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: var(--space-6); min-width: 0; }
.crumbs li + li::before { content: "/"; content: "/" / ""; }

/* Tap targets of at least 24px (WCAG 2.2): the padding grows the target, the negative margin gives the
   space back, so nothing moves. */
.crumbs a,
.footer-links a { display: inline-block; padding-block: var(--space-2); margin-block: calc(var(--space-2) * -1); }

/* Seller text carries its own dir + lang. A title still lines up with the page (an Arabic title on an
   English card stays flush with the price under it); the description follows its own direction.
   (Physical sides from the page's dir: text-align: match-parent is not supported in Chromium.) */
html[dir="ltr"] :is(.card-title, .listing-title, .spec-grid dd[dir]) { text-align: left; }
html[dir="rtl"] :is(.card-title, .listing-title, .spec-grid dd[dir]) { text-align: right; }
.card-title { margin: 0; }

/* Country chips as a real list (<ul class="country-chips"><li><a class="chip">): no bullets or indent. */
ul.country-chips { margin-block-start: 0; padding-inline-start: 0; list-style: none; }
ul.country-chips > li { display: flex; flex-shrink: 0; }

/* Footer column headings as plain text (<p class="footer-title">), styled like the old h2. */
.footer-title { font: 700 .95rem/1.4 var(--font-body); color: var(--on-fill); margin-bottom: var(--space-4); }

/* Desktop: the filter form is visible from the first paint, so app.js opening the <details> later moves
   nothing. Browsers without ::details-content drop this rule and keep that app.js fallback; phones keep
   the closed drawer. (Its own rule: an unknown pseudo-element invalidates the whole selector list.) */
@media (min-width: 900px) {
    .filters::details-content { content-visibility: visible; block-size: auto; }
}

/* --------------------------------------------------------------- hub copy, home strips, FAQ, footer columns (SEO WP3) */

/* Browse hubs (listings/index.php): intro under the H1; facts, tip and sub-hub links under the grid. */
.hub-intro { max-width: 78ch; margin-bottom: var(--space-18); color: var(--ink-prose); font-size: .95rem; line-height: 1.8; }
.hub-notes { display: grid; gap: var(--space-12); margin-top: var(--space-28); }
.hub-facts { color: var(--muted); font-size: .92rem; }
.hub-tip {
    display: flex; align-items: flex-start; gap: var(--space-10);
    padding: var(--space-14) var(--space-16); border: 1px solid var(--petrol-line); border-radius: var(--radius-md);
    background: var(--petrol-50); color: var(--ink-prose); font-size: .92rem;
}
.hub-tip > .icon { color: var(--petrol); margin-top: var(--space-4); }
.hub-tip strong { color: var(--ink); }
.hub-links { margin-top: var(--space-28); }
.hub-links-title { font: 700 1.05rem/1.4 var(--font-body); margin-bottom: var(--space-10); }
.hub-links-list { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.hub-links-list li { max-width: 100%; }
.hub-links-list .chip { max-width: 100%; white-space: normal; }
.hub-links-n { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

/* Home: a tighter section for the strips, the three reason hubs, "What is Kayshni?". A section's "all ..."
   link now names its target, so on a narrow phone it may drop under the heading instead of overflowing. */
.section--tight { padding-block: var(--space-16); }
.section-head { flex-wrap: wrap; }
.reason-strip { display: grid; gap: var(--space-10); margin: 0; padding: 0; list-style: none; }
.reason-card {
    display: flex; align-items: center; gap: var(--space-14); height: 100%;
    padding: var(--space-16); border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); text-decoration: none;
}
.reason-card:hover { border-color: var(--petrol); color: var(--ink); }
.reason-icon {
    display: inline-grid; place-items: center; flex-shrink: 0; width: var(--space-48); height: var(--space-48);
    border-radius: var(--radius-md); background: var(--tag-soft); color: var(--tag-deep);
}
.reason-body { display: grid; gap: var(--space-2); flex: 1; min-width: 0; }
.reason-name { font-size: 1.02rem; }
.reason-text { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.reason-count { color: var(--petrol); font-size: .82rem; font-weight: 700; }
.reason-card > .icon:last-child { color: var(--muted); }
.about-strip { padding: var(--space-24) var(--space-20); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.about-strip h2 { font-size: 1.35rem; margin-bottom: var(--space-10); }
.about-strip p { max-width: 78ch; color: var(--ink-prose); }
.about-strip .about-strip-links { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); margin-top: var(--space-14); }

/* Static pages: the FAQ (h3 + p, /how-it-works#faq) and the operator's details (/about, /contact). */
.faq { display: grid; gap: var(--space-10); margin-top: var(--space-14); }
.faq-item { padding: var(--space-16) var(--space-18); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.page .faq-item h3 { font: 700 1.02rem/1.5 var(--font-body); margin-bottom: var(--space-6); color: var(--ink); }
.operator {
    display: grid; grid-template-columns: max-content 1fr; gap: var(--space-8) var(--space-18); margin: var(--space-12) 0 0;
    padding: var(--space-16) var(--space-18); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
}
.operator dt { color: var(--muted); font-size: .9rem; }
.operator dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

@media (min-width: 900px) {
    .reason-strip { grid-template-columns: repeat(3, 1fr); gap: var(--space-14); }
    .about-strip { padding: var(--space-28) var(--space-32); }
    /* Footer: brand beside two rows of link columns (Marketplace, Information, Special deals / By country,
       Categories), now that it has five of them. */
    .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
    .footer-brand { grid-row: span 2; align-content: start; }
    .footer-cats { grid-column: span 2; }
}

/* (SEO integration) Gone listing page (listings/gone.php): the notice box keeps the same distance from the
   header as the static pages (.page) instead of touching it. */
.gone-page { padding-top: var(--space-28); }

/* --------------------------------------------------------------- urgent-sale extras */
/* Seller deadline (sell_by), the share kit, timed auctions, the deal guide and the sale-mode picker. */

.deadline { display: flex; align-items: center; gap: var(--space-8); margin-top: var(--space-10); padding: var(--space-8) var(--space-12); border-radius: var(--radius-md); background: var(--tag-soft); color: var(--tag-text); font-size: .9rem; }
.deadline .icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--tag-deep); }
.deadline.is-hot { background: var(--alert-soft); color: var(--alert-ink); }
.deadline.is-hot .icon { color: var(--alert); }

.card-flag { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); font-size: .78rem; font-weight: 700; color: var(--tag-deep); min-width: 0; }
.card-flag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-flag .icon { width: 14px; height: 14px; flex-shrink: 0; }
.card-flag.is-hot { color: var(--alert); }
.card-flag--auction { color: var(--petrol); }

.share-kit { margin-top: var(--space-14); }
.share-kit-buttons { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.share-kit .share-wa .icon { color: var(--whatsapp); }
.share-kit .share-tg .icon, .share-kit .share-fb .icon { color: var(--petrol); }
.share-kit--owner { margin: 0 0 var(--space-14); padding: var(--space-12) var(--space-14); border-radius: var(--radius-md); background: var(--surface); border: 1px dashed var(--petrol-line); }
.share-kit-title { display: flex; align-items: center; gap: var(--space-8); }
.share-kit-title .icon { color: var(--petrol); }
.share-kit-help { margin: var(--space-4) 0 var(--space-10); }

.pill--auction { background: var(--petrol-50); border-color: var(--petrol-line); color: var(--petrol); }
.price-label { flex-basis: 100%; font-size: .78rem; font-weight: 700; color: var(--petrol); }

.auction { border-color: var(--petrol-line); }
.auction-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); margin: 0 0 var(--space-12); }
.auction-stats > div { padding: var(--space-10); border-radius: var(--radius-md); background: var(--petrol-50); }
.auction-stats dt { font-size: .75rem; color: var(--muted); }
.auction-stats dd { margin: var(--space-2) 0 0; font-weight: 700; font-size: 1rem; color: var(--ink); }
.auction-reserve { margin-bottom: var(--space-10); color: var(--tag-text); }
.auction-reserve.is-met { color: var(--save-ink); }
.auction.is-ended .auction-stats > div { background: var(--paper); }
.bid-form { display: grid; gap: var(--space-6); }
.bid-form label { font-weight: 600; }
.bid-row { display: flex; gap: var(--space-8); }
.bid-row .input-unit { flex: 1; min-width: 0; }
.bid-row .btn { flex-shrink: 0; }
.bid-history { margin-top: var(--space-12); }
.bid-history summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.bid-history ol { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.bid-history li { display: flex; justify-content: space-between; gap: var(--space-10); padding: var(--space-6) 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.bid-history li:last-child { border-bottom: 0; }
.auction > .muted:last-child { margin-top: var(--space-12); }

.deal-guide { margin-top: var(--space-14); padding-top: var(--space-12); border-top: 1px solid var(--tag-line); }
.deal-guide-title { display: flex; align-items: center; gap: var(--space-8); margin-bottom: var(--space-8); }
.deal-guide-title .icon { color: var(--tag-deep); }
.deal-guide ul { margin: 0; padding-inline-start: var(--space-18); display: grid; gap: var(--space-6); font-size: .9rem; }
.spec-wide { grid-column: 1 / -1; }

.mode-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.mode-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-option span {
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-2) var(--space-10); height: 100%;
    padding: var(--space-12); border: 1.5px solid var(--line); border-radius: var(--radius-md); cursor: pointer;
    transition: border-color .15s, background .15s;
}
.mode-option span .icon { grid-row: span 2; color: var(--petrol); }
.mode-option small { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.mode-option span:hover { border-color: var(--line-strong); }
.mode-option input:checked + span { border-color: var(--petrol); background: var(--petrol-50); }
.mode-option input:focus-visible + span { outline: 3px solid var(--petrol); outline-offset: 2px; }
.sale-mode { margin-bottom: var(--space-14); }
[data-auction-fields] { margin-bottom: var(--space-14); }
.price-fields[data-locked] input, .price-fields[data-locked] select { opacity: .7; }

@media (max-width: 520px) {
    .mode-picker { grid-template-columns: 1fr; }
    .auction-stats { grid-template-columns: 1fr 1fr; }
    .auction-stats > div:last-child { grid-column: 1 / -1; }
    .bid-row { flex-direction: column; }
}
