/* =========================================================
   Salis — public site v3 "الرمل والكحلي"
   Sand + navy from the logo, copper accents.
   El Messiri for headings, Almarai for text.
   ========================================================= */

:root {
    --navy: #1E2F5C;        /* logo navy: buttons, headings */
    --navy-2: #33467A;      /* lines on navy */
    --ink: #1B2440;         /* body text */
    --muted: #4B5368;       /* secondary text, AA on white and sand */
    --line: #EAE2D6;
    --bg: #FFFFFF;
    --sand: #F4EEE5;
    --sand-2: #E9DFD0;
    --copper: #9C5A28;      /* logo copper, AA on white */
    --copper-soft: #E8B98C; /* copper on navy */
    --on-navy: #C7CEE0;

    /* kept for the admin pages */
    --tint: #F4EEE5;
    --brand: #1E2F5C;

    --font: "Almarai", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
    --font-head: "El Messiri", "Almarai", serif;
    --wrap: 1180px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
    margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.75;
    color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--copper); }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: var(--font-head); font-weight: 700; line-height: 1.25; }
:focus-visible { outline: 3px solid rgba(30, 47, 92, .45); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 10px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 820px; }

/* ---------- Type ---------- */
.display { font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.1; color: var(--navy); }
.headline { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.2; }
.section-sub { margin-top: 10px; font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--muted); }
.section-head { margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 11px 24px; border-radius: 12px; border: 1px solid transparent;
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; text-decoration: none;
    transition: background .15s ease, transform .1s ease, border-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 7px 16px; font-size: .9375rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 15px 32px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary, .btn-wa, .btn-dark { background: var(--navy); color: #fff; }
.btn-primary:hover, .btn-wa:hover, .btn-dark:hover { background: #16244A; color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: #DCD2C4; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.link-more { font-weight: 700; color: var(--navy); }
.link-more::after { content: " ›"; }
[dir="rtl"] .link-more::after { content: " ‹"; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: var(--navy); }
.nav-brand img { border-radius: 50%; }
.nav-brand span { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.nav-links { display: flex; gap: 30px; font-size: .9375rem; }
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--copper); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }
.nav-lang { font-size: .9375rem; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--sand); padding-top: clamp(56px, 9vw, 96px); text-align: center; overflow: hidden; }
.hero-emblem { width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 50%; box-shadow: 0 10px 30px rgba(30, 47, 92, .12); }
.hero-sub { max-width: 36em; margin: 20px auto 0; font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.9; color: var(--muted); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-gallery { margin-top: clamp(44px, 7vw, 72px); display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; align-items: end; }
.hero-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px 22px 0 0; }
.hero-gallery .hero-main { aspect-ratio: auto; height: clamp(320px, 38vw, 470px); }
.hero-gallery img:not(.hero-main) { height: clamp(240px, 28vw, 340px); aspect-ratio: auto; object-position: center 45%; }

/* ---------- Highlights ---------- */
.highlights { padding: clamp(40px, 6vw, 60px) 0; border-bottom: 1px solid var(--line); }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.highlight + .highlight { border-inline-start: 1px solid var(--line); }
.highlight { padding: 4px 12px; }
.highlight-big { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; color: var(--copper); }
.highlight-small { margin-top: 4px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 104px) 0; }
.section.sand { background: var(--sand); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy .headline { color: #fff; }
.section.navy .section-sub { color: var(--on-navy); }

/* ---------- Locks ---------- */
.locks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; }
.lock { background: #fff; border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(30, 47, 92, .04); }
.lock-media { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; background: var(--sand); }
.lock-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.lock:hover .lock-media img { transform: scale(1.03); }
.lock-badge { position: absolute; top: 14px; inset-inline-start: 14px; background: #fff; color: var(--navy); font-size: .8125rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.lock-body { padding: 22px 8px 6px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lock-title { font-size: clamp(1.4rem, 2.4vw, 1.7rem); }
.lock-title a { color: var(--navy); }
.lock-desc { color: var(--muted); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lock-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lock-specs li { display: flex; gap: 10px; align-items: baseline; font-size: .9375rem; color: var(--ink); line-height: 1.6; }
.lock-specs li::before { content: ""; flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--copper); transform: translateY(-2px); }
.lock-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.lock-price { color: var(--muted); font-size: 1rem; }
.lock-price span { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--navy); }
.lock-price small { display: block; font-size: .8125rem; color: var(--copper); margin-top: -4px; }
.lock-actions { display: flex; align-items: center; gap: 18px; }

/* ---------- Methods (navy band) ---------- */
.methods-wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 64px); align-items: center; }
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--navy-2); border-radius: 20px; overflow: hidden; }
.method { background: var(--navy); padding: 28px; }
.method svg { color: var(--copper-soft); }
.method h3 { margin-top: 12px; font-size: 1.4rem; font-weight: 600; color: var(--copper-soft); }
.method p { margin-top: 4px; color: var(--on-navy); font-size: .9375rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--copper); color: var(--copper); font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; }
.step h3 { margin-top: 18px; font-family: var(--font); font-size: 1.25rem; color: var(--ink); }
.step p { margin: 6px auto 0; color: var(--muted); max-width: 28ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--radius-md); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--copper); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); max-width: 62ch; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .btn { margin-top: 28px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; min-height: 52vh; display: grid; align-items: center; }
.notfound-code { font-family: var(--font-head); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--sand-2); line-height: 1; }
.notfound .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .875rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer-brand span { font-size: 1.35rem; }
.footer a { color: var(--ink); }
.footer-legal { color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { padding: clamp(28px, 6vw, 64px) 0 clamp(48px, 8vw, 96px); }
.pdp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.pdp-media { position: sticky; top: calc(var(--nav-h) + 20px); }
.pdp-stage { background: var(--sand); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; }
.pdp-stage img { width: 100%; height: 100%; object-fit: cover; }
.pdp-stage iframe { width: 100%; height: 100%; border: 0; }
.pdp-thumbs { margin-top: 12px; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pdp-thumb { position: relative; flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: var(--sand); cursor: pointer; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.is-active { border-color: var(--navy); }
.pdp-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .35); font-size: .9rem; }
.pdp-back { font-size: .9375rem; font-weight: 700; }
.pdp-back::before { content: "‹ "; }
[dir="rtl"] .pdp-back::before { content: "› "; }
.pdp-title { margin-top: 12px; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.25; }
.pdp-price { margin-top: 16px; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.pdp-note { margin-top: 2px; color: var(--copper); font-size: .9375rem; }
.pdp-info .btn-block { margin-top: 26px; }
.pdp-desc { margin-top: 28px; color: var(--ink); line-height: 1.9; }
.pdp-h { margin-top: 34px; font-size: 1.35rem; }
.pdp-features { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pdp-features li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.pdp-features li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--copper); transform: translateY(-2px); }
.pdp-warranty { margin-top: 30px; background: var(--sand); border-radius: var(--radius-md); padding: 4px 22px 20px; }
.pdp-warranty .pdp-h { margin-top: 16px; }
.pdp-warranty p { margin-top: 6px; color: var(--muted); }

/* Reviews */
.notice { margin-top: 24px; padding: 14px 18px; border-radius: 14px; background: #e8f5ed; color: #0b5d31; text-align: center; }
.rating-summary { margin-top: 20px; text-align: center; font-size: 1.1rem; }
.rating-summary span:first-child { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; vertical-align: middle; color: var(--navy); }
.stars { color: var(--copper); letter-spacing: 2px; }
.reviews { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.review { background: #fff; border-radius: var(--radius-md); padding: 18px 22px; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.review p { color: var(--ink); }
.review-form { margin-top: 36px; background: #fff; border-radius: var(--radius-lg); padding: 28px 26px; display: grid; gap: 16px; }
.review-form h3 { font-size: 1.4rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.field { display: grid; gap: 6px; font-size: .9375rem; font-weight: 700; }
.field input, .field textarea {
    width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: var(--sand);
    border: 1px solid transparent; border-radius: 12px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(30, 47, 92, .12); }
.review-form .btn { justify-self: start; }
.star-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input legend { width: 100%; font-size: .9375rem; font-weight: 700; margin-bottom: 6px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; color: var(--sand-2); cursor: pointer; line-height: 1; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--copper); }
.star-input input:focus-visible + label { outline: 3px solid rgba(30, 47, 92, .45); border-radius: 6px; }

/* Sticky buy bar — phones only */
.buybar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nav-inner { grid-template-columns: 1fr auto; }
    .nav-links { display: none; }
    .methods-wrap { grid-template-columns: 1fr; }
    .pdp-grid { grid-template-columns: 1fr; }
    .pdp-media { position: static; }
}
@media (max-width: 640px) {
    body { font-size: 1rem; }
    :root { --nav-h: 60px; }
    .wrap { padding-inline: 18px; }
    .nav-inner { padding: 0 18px; }
    .nav-brand span { font-size: 1.4rem; }
    .hero-emblem { width: 76px; height: 76px; margin-bottom: 20px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-gallery { grid-template-columns: 1fr; }
    .hero-gallery img:not(.hero-main) { display: none; }
    .hero-gallery .hero-main { height: 320px; border-radius: 20px 20px 0 0; }
    .highlight { padding: 0 6px; }
    .highlight-small { font-size: .8125rem; }
    .lock { padding: 12px; }
    .lock-body { padding: 18px 6px 4px; }
    .methods { grid-template-columns: 1fr 1fr; }
    .method { padding: 20px 16px; }
    .method h3 { font-size: 1.2rem; }
    .steps { grid-template-columns: 1fr; gap: 36px; }
    .faq summary { padding: 18px; }
    .faq details p { padding: 0 18px 18px; }
    .footer-inner { flex-direction: column; text-align: center; }

    .pdp-info > .btn-block { display: none; }
    .buybar {
        display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
        background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
        border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    }
    .buybar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .buybar-title { font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
    .buybar-price { font-size: .875rem; }
    .buybar-price span { color: var(--muted); }
    .buybar .btn { min-height: 42px; padding: 8px 22px; }
    body:has(.buybar) .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .faq summary::after, .lock-media img { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
    .nav, .buybar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* =========================================================
   Admin (grouped lists, same sand + navy palette)
   ========================================================= */
.is-admin { background: var(--tint); }
.is-admin .nav { background: rgba(244, 238, 229, .9); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn-quiet { background: rgba(0, 0, 0, .06); color: var(--ink); }
.btn-quiet:hover { background: rgba(0, 0, 0, .1); color: var(--ink); }
.btn-danger-quiet { background: rgba(215, 0, 21, .08); color: #d70015; }
.btn-google { background: #fff; color: var(--ink); border: 1px solid var(--line); min-height: 50px; font-weight: 600; }
.btn-google:hover { background: #fafafa; color: var(--ink); }

.admin { max-width: 720px; padding-top: clamp(24px, 5vw, 44px); padding-bottom: 72px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-head h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.1; }
.admin-back { display: inline-block; margin-bottom: 10px; font-size: .95rem; }
.admin-back::before { content: "‹ "; }
[dir="rtl"] .admin-back::before { content: "› "; }

.admin-alert { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fff7e6; color: #8a5300; font-size: .95rem; }
.admin-alert.is-error { background: #fde8ea; color: #a1000f; }

.group-title { margin: 30px 0 8px; padding-inline: 16px; font-size: .8rem; font-weight: 500; color: var(--muted); }
.group { background: #fff; border-radius: 14px; overflow: hidden; }
.group-foot { margin-top: 8px; padding-inline: 16px; font-size: .8rem; color: var(--muted); }

.row-item { display: flex; align-items: center; gap: 14px; position: relative; width: 100%; }
.row-item + .row-item, .group > .row-item + form, .group > form + .row-item { border-top: 1px solid #e5e5ea; }
.row-pad { padding: 14px 16px; }
.row-stack { flex-direction: column; align-items: stretch; }
.row-main { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; color: var(--ink); text-decoration: none !important; -webkit-tap-highlight-color: transparent; }
.row-main:active { background: #ececf0; }
.row-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--tint); flex: none; }
.row-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.row-title { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.row-sub { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.row-chevron::after { content: "›"; color: #c7c7cc; font-size: 1.5rem; line-height: 1; }
[dir="rtl"] .row-chevron::after { content: "‹"; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row-empty { padding: 18px 16px; color: var(--muted); }
.row-danger { justify-content: center; background: none; border: 0; font: inherit; font-size: 1rem; color: #d70015; cursor: pointer; }
.row-danger:active { background: #fbeaec; }
.badge { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 980px; background: #fff1d6; color: #8a5300; font-size: .75rem; font-weight: 600; }

/* Switch */
.switch { position: relative; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { display: block; width: 51px; height: 31px; border-radius: 31px; background: #e9e9eb; transition: background .2s; position: relative; }
.switch-track::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .25s cubic-bezier(.3, 1.3, .6, 1); }
.switch input:checked + .switch-track { background: #1E2F5C; }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
[dir="rtl"] .switch input:checked + .switch-track::after { transform: translateX(-20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid rgba(30, 47, 92, .45); outline-offset: 2px; }

/* Form rows */
.form-group { display: block; }
.field-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 50px; }
.field-row + .field-row { border-top: 1px solid #e5e5ea; }
.field-row:not(.field-col) > span:first-child { flex: 0 0 120px; font-size: .95rem; color: var(--ink); }
.field-row input[type="text"], .field-row input[type="number"], .field-row input[type="url"], .field-row textarea {
    flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 4px 0; outline: none;
}
.field-row textarea { resize: vertical; line-height: 1.6; }
.field-row ::placeholder { color: #b0b0b5; }
.field-col { flex-direction: column; align-items: stretch; gap: 8px; }
.field-col > span:first-child { flex: none; font-size: .85rem; color: var(--muted); }
.field-col textarea { background: var(--tint); border-radius: 10px; padding: 10px 12px; }
.field-row:focus-within > span:first-child { color: var(--brand); }
.field-hint { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.form-actions { padding: 14px 16px; border-top: 1px solid #e5e5ea; display: flex; justify-content: flex-end; }

.file-pick { display: flex; align-items: center; gap: 12px; cursor: pointer; flex-wrap: wrap; }
.file-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-pick input:focus-visible + .btn { outline: 3px solid rgba(30, 47, 92, .45); outline-offset: 2px; }
.file-pick-name { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb-tile { position: relative; width: 76px; height: 76px; }
.thumb-tile[hidden] { display: none; }
.thumb-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: var(--tint); }
.thumb-remove { position: absolute; top: -7px; inset-inline-end: -7px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: #8e8e93; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.hero-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; }

.savebar { position: sticky; bottom: 0; z-index: 30; margin-top: 18px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    background: rgba(244, 238, 229, .9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.savebar-inner { display: flex; justify-content: flex-end; gap: 10px; }

.review-admin p { color: var(--ink); line-height: 1.6; }
.review-admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review-admin.is-hidden { background: #fffbf2; }

.admin-login { min-height: calc(100vh - var(--nav-h) - 80px); display: grid; place-items: center; padding: 40px 20px; }
.admin-login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 22px; padding: 36px 28px; text-align: center; }
.admin-login-logo { margin: 0 auto 18px; border-radius: 50%; }
.admin-login-card h1 { font-size: 1.6rem; letter-spacing: -0.01em; }
.admin-login-card > p { margin: 8px 0 24px; color: var(--muted); font-size: .95rem; }
.admin-login-card .admin-alert { text-align: start; }

.footer-admin { background: transparent; border-top: 0; }
.debug { margin-top: 24px; padding: 12px; background: #fff; border-radius: 12px; font-size: .75rem; overflow: auto; direction: ltr; }

@media (max-width: 734px) {
    .field-row:not(.field-col) > span:first-child { flex-basis: 96px; font-size: .9rem; }
}
.is-admin .nav-brand span { font-size: 1.35rem; }
.admin-head h1, .admin-login-card h1 { font-family: var(--font-head); color: var(--navy); }
