/*
Global Menu Watch V3 design system
This file deliberately styles BOTH the old Cursor classes and the newer classes:
.header + .site-header, .container + .page-shell, .card + .section-card + .hero-card.
That means the design still holds if Cursor applies files in stages.
*/
:root {
    color-scheme: light;
    --page: #fff7ea;
    --page-2: #fff1d6;
    --ink: #171312;
    --ink-soft: #4d4541;
    --muted: #786e68;
    --card: rgba(255, 255, 255, .88);
    --card-solid: #ffffff;
    --line: rgba(60, 43, 31, .12);
    --line-strong: rgba(213, 34, 50, .28);
    --red: #d71920;
    --red-2: #ff3856;
    --red-soft: #ffe5e9;
    --yellow: #ffcf2f;
    --yellow-2: #ffb000;
    --yellow-soft: #fff4bd;
    --green: #0f9f6e;
    --green-soft: #dff8ef;
    --blue: #2364d2;
    --blue-soft: #e7f0ff;
    --shadow: 0 22px 70px rgba(108, 54, 22, .12);
    --shadow-card: 0 14px 34px rgba(83, 46, 22, .10);
    --radius-sm: 14px;
    --radius: 24px;
    --radius-lg: 34px;
    --container: 1180px;
    --tap: 48px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    min-height: 100%;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 207, 47, .48), transparent 24rem),
        radial-gradient(circle at 95% 6%, rgba(215, 25, 32, .18), transparent 28rem),
        linear-gradient(180deg, var(--page), #fffaf2 48%, #f8efe2 100%);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(128, 86, 43, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 86, 43, .038) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), transparent 72%);
}
a { color: inherit; text-decoration: none; }
a:not(.btn):not(.product-card):not(.country-tile):not(.brand):not(.app-brand):not(.top-nav a):not(.admin-tabs a):not(.mobile-bottom-nav a) { color: var(--red); font-weight: 800; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; line-height: 1.05; }
h1 { font-size: clamp(2.1rem, 6vw, 4.65rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }
code {
    border-radius: .55rem;
    padding: .12rem .35rem;
    background: #fff2d6;
    border: 1px solid rgba(117, 76, 23, .16);
    color: #7b4210;
}

.skip-link {
    position: fixed;
    top: -5rem;
    left: 1rem;
    z-index: 999;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: .75rem 1rem;
    font-weight: 900;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid rgba(35, 100, 210, .42); outline-offset: 3px; }

.header,
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(60, 43, 31, .10);
    background: rgba(255, 250, 242, .86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.header-inner,
.header {
    min-height: 72px;
}
.header-inner {
    width: min(100% - 2rem, calc(var(--container) + 60px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .72rem 0;
}
.header:not(.site-header) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem max(1rem, calc((100vw - var(--container)) / 2));
}
.brand,
.app-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    font-weight: 950;
    color: var(--ink);
}
.brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(215, 25, 32, .26);
    overflow: visible;
}
.brand-mark img {
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
}
.brand-copy { display: grid; gap: .03rem; line-height: 1.05; }
.brand-copy strong { font-size: 1.02rem; letter-spacing: -.03em; }
.brand-copy small { color: var(--muted); font-weight: 800; font-size: .73rem; }
.brand:not(.app-brand) { color: var(--red); font-size: 1.08rem; }

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    flex: 1;
    width: 100%;
}
.top-nav-group {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex: 1;
}
.top-nav-group-left { justify-content: flex-end; }
.top-nav-group-right { justify-content: flex-start; }
.site-header .brand-mark {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.admin-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(60, 43, 31, .14);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-card);
    font-size: 1.05rem;
}
.top-nav a,
.admin-tabs a {
    color: var(--ink-soft);
    font-weight: 900;
    padding: .68rem .9rem;
    border-radius: 999px;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.top-nav a:hover,
.admin-tabs a:hover { color: var(--ink); background: rgba(255, 207, 47, .24); }
.top-nav a.nav-active,
.admin-tabs a.nav-active {
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-2));
    box-shadow: 0 10px 24px rgba(215, 25, 32, .22);
}
.nav-toggle {
    display: none;
    width: var(--tap);
    height: var(--tap);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    place-content: center;
    gap: 4px;
    box-shadow: var(--shadow-card);
}
.nav-toggle span { width: 20px; height: 2px; border-radius: 99px; background: currentColor; display: block; }

.container,
.page-shell {
    width: min(100% - 2rem, var(--container));
    margin: 0 auto;
    padding: 1.55rem 0 2.2rem;
    position: relative;
    z-index: 1;
}
.footer,
.site-footer {
    width: min(100% - 2rem, var(--container));
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: .88rem;
}
.footer p,
.site-footer p {
    margin: 0;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .62);
}
.footer strong { color: var(--ink); }

.card,
.section-card,
.hero-card,
.admin-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: clamp(1rem, 3vw, 1.65rem);
    margin-bottom: 1rem;
    overflow: hidden;
}
.card::after,
.section-card::after,
.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.hero,
.home-hero,
.hero-card {
    min-height: 330px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
    align-items: center;
    gap: clamp(1.25rem, 4vw, 3.3rem);
    border-radius: var(--radius-lg);
    padding: clamp(1.2rem, 4vw, 2.2rem);
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 207, 47, .55), transparent 16rem),
        linear-gradient(135deg, #ffffff, #fff7e6 58%, #ffecee);
}
.hero-copy { display: grid; gap: 1rem; max-width: 820px; }
.hero h1,
.hero-card h1 { max-width: 12ch; }
.home-hero h1 { max-width: 16ch; }
.hero p,
.hero-card p,
.lead { color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.14rem); max-width: 72ch; }
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .42rem;
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid rgba(215, 25, 32, .14);
    border-radius: 999px;
    padding: .33rem .72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
}
.hero-panel {
    min-height: 265px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 68% 24%, rgba(255,255,255,.96), rgba(255,255,255,.38) 32%, transparent 33%),
        linear-gradient(135deg, var(--yellow), #ffdd69 44%, #ff6a6f);
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(215, 25, 32, .16);
    padding: 1rem;
}
.hero-panel::before {
    content: "M";
    position: absolute;
    inset: auto 5% -23% auto;
    font-size: clamp(9rem, 18vw, 14rem);
    line-height: .9;
    font-weight: 1000;
    color: rgba(255,255,255,.66);
    letter-spacing: -.1em;
}
.hero-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .68rem .9rem;
    font-weight: 950;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 14px 30px rgba(62, 31, 5, .14);
}
.hero-badge-one { top: 1.2rem; left: 1.2rem; }
.hero-badge-two { bottom: 1.25rem; right: 1.2rem; }
.hero-orbit {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.1rem;
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
}
.hero-orbit span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.82);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
}
.hero-badge-two + .hero-orbit { bottom: 4.5rem; }
.watchlist-panel {
    position: relative;
    z-index: 2;
    display: grid;
    gap: .8rem;
    height: 100%;
    border-radius: 20px;
    padding: .95rem;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(255, 255, 255, .85);
    backdrop-filter: blur(3px);
}
.watchlist-head { display: grid; gap: .28rem; }
.watchlist-label {
    margin: 0;
    color: var(--red);
    font-weight: 950;
    letter-spacing: .02em;
}
.watchlist-subtitle {
    margin: 0;
    color: #654a3a;
    font-size: .92rem;
    line-height: 1.35;
}
.watchlist-list {
    display: grid;
    gap: .6rem;
    align-content: start;
}
.watchlist-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    padding: .58rem .64rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(60, 43, 31, .10);
}
.watchlist-country-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--ink);
    font-weight: 900;
    min-width: 0;
}
.watchlist-country-link:hover { color: var(--red); text-decoration: none; }
.watchlist-emoji {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 207, 47, .35);
}
.watchlist-country-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.watchlist-follow-form { margin: 0; }
.watchlist-follow-form .btn { min-width: 100px; }

.search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .65rem;
    align-items: center;
}
.multi-filter-bar {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.multi-filter-bar button {
    width: 100%;
}
.search-bar input,
input,
textarea,
select {
    width: 100%;
    min-height: var(--tap);
    border: 1px solid rgba(60, 43, 31, .14);
    border-radius: 16px;
    padding: .82rem .95rem;
    background: rgba(255,255,255,.86);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
textarea { min-height: 116px; resize: vertical; }
input::placeholder,
textarea::placeholder { color: #9b918a; }
input:focus,
textarea:focus,
select:focus { border-color: rgba(35,100,210,.48); outline: 3px solid rgba(35,100,210,.14); }
.search-bar.sticky { position: sticky; top: 86px; z-index: 10; }
.form-card,
form { display: grid; gap: .78rem; }
.form-card label,
form label { color: var(--ink-soft); font-weight: 850; }

.btn,
.search-bar button,
button.btn {
    min-height: var(--tap);
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .82rem 1.12rem;
    background: linear-gradient(135deg, var(--red), var(--red-2));
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(215, 25, 32, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover,
.search-bar button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(215, 25, 32, .28); }
.btn-secondary {
    color: var(--red);
    background: #fff;
    border: 1px solid rgba(215,25,32,.26);
    box-shadow: none;
}
.btn-secondary:hover { background: var(--red-soft); box-shadow: 0 12px 26px rgba(215,25,32,.10); }
.btn-compact { min-height: 40px; padding: .62rem .86rem; }
.cta-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-top: .2rem; }

.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .7rem;
    padding: .78rem;
    background: rgba(255,255,255,.74);
}
.stats-strip div {
    padding: .9rem 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #fff8e3);
    border: 1px solid var(--line);
}
.stats-strip strong { display: block; font-size: 1.65rem; letter-spacing: -.06em; line-height: 1; }
.stats-strip span { color: var(--muted); font-weight: 850; font-size: .86rem; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.section-heading > div { display: grid; gap: .45rem; }
.muted { color: var(--muted); }
.empty-state {
    grid-column: 1 / -1;
    padding: 1.1rem;
    border-radius: 18px;
    background: #fff8e8;
    border: 1px dashed rgba(117, 76, 23, .26);
    color: var(--muted);
}

.product-grid,
.country-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: .95rem;
}
.product-card,
.country-tile,
.mini-card {
    position: relative;
    min-width: 0;
    display: grid;
    gap: .7rem;
    align-content: start;
    padding: .78rem;
    border: 1px solid rgba(60, 43, 31, .12);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #fffaf2);
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(83, 46, 22, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
}
.product-card:hover,
.country-tile:hover,
.mini-card:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 25, 32, .25);
    box-shadow: 0 22px 45px rgba(83, 46, 22, .14);
}
.collector-badge,
.status-pill,
.meta-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .28rem .65rem;
    font-size: .72rem;
    font-weight: 950;
    line-height: 1;
}
.collector-badge {
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid rgba(215,25,32,.18);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.product-media,
.product-media-fallback,
.media-thumb,
.item-image {
    width: 100%;
    display: block;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(60, 43, 31, .10);
    object-fit: contain;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.9);
}
.product-media,
.product-media-fallback { aspect-ratio: 4 / 3; padding: .35rem; }
.product-media-fallback { display: grid; place-items: center; color: var(--muted); background: #fff8ea; border-style: dashed; font-weight: 900; }
.product-media-fallback.large { aspect-ratio: 1 / 1; min-height: 320px; }
.product-card-title {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 950;
}
.product-card-subtitle { margin: 0; color: var(--muted); font-weight: 750; font-size: .88rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.meta-chip,
.status-pill { color: #6b4a05; background: var(--yellow-soft); border: 1px solid rgba(255,176,0,.26); }
.meta-link { color: var(--red); background: var(--red-soft); border-color: rgba(215,25,32,.16); }
.status-pill.ok { color: #056746; background: var(--green-soft); border-color: rgba(15,159,110,.20); }
.status-pill.limited,
.status-pill.warning { color: #745000; background: var(--yellow-soft); border-color: rgba(255,176,0,.32); }
.status-pill.error,
.warn .status-pill { color: #8b1220; background: var(--red-soft); border-color: rgba(215,25,32,.22); }
.country-flag { display: block; font-size: 2.4rem; line-height: 1; }

.item-hero {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 2.4rem);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 4vw, 2.2rem);
    background:
        radial-gradient(circle at 12% 12%, rgba(255,207,47,.35), transparent 16rem),
        linear-gradient(135deg, #fff, #fff7e7 58%, #ffecef);
}
.item-media-panel {
    padding: .8rem;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.92), 0 18px 48px rgba(83,46,22,.10);
}
.item-image,
.media-thumb { max-height: 520px; object-fit: contain; }
.item-copy-panel { display: grid; gap: 1rem; }
.item-copy-panel h1 { font-size: clamp(2.1rem, 5vw, 4rem); }
.item-copy,
.item-art { min-width: 0; }
.action-card { display: grid; gap: .9rem; }
.compact-form { grid-template-columns: 1fr 120px auto; align-items: end; }
.state-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: .7rem;
    align-items: center;
}
.state-chip {
    min-height: var(--tap);
    display: flex;
    align-items: center;
    gap: .55rem;
    border-radius: 16px;
    padding: .75rem .85rem;
    background: #fff8e8;
    border: 1px solid rgba(117, 76, 23, .16);
    color: var(--ink);
}
input[type="checkbox"] { width: 1.05rem; min-height: auto; accent-color: var(--red); }

.list-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item strong { font-weight: 950; }
.rating-display {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.stars {
    letter-spacing: .08em;
    color: #ffb000;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 1rem;
    align-items: start;
}
.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}
.stat-card {
    display: grid;
    gap: .35rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: .95rem;
    background: linear-gradient(135deg, #fff, #fff8e9);
}
.stat-card span {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 800;
}
.stat-card strong {
    font-size: 1.85rem;
    letter-spacing: -.05em;
    line-height: 1;
}
.btn-ghost {
    min-height: 40px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: none;
}
.card-scroll {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.media-thumb-sm {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}
.warn {
    border: 1px solid rgba(215,25,32,.22);
    border-radius: 12px;
    background: var(--red-soft);
    padding: .45rem .65rem;
}

/* Admin compatibility, no need to replace all admin PHP just for the design pass */
.admin-tabs {
    width: min(100% - 2rem, var(--container));
    margin: 1rem auto 0;
    position: relative;
    z-index: 3;
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    padding: .45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    box-shadow: var(--shadow-card);
}
.admin-tabs a { flex: 0 0 auto; }
.is-admin .card h1,
.is-admin .card h2 { margin-bottom: .65rem; }
.admin-table,
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}
th, td { padding: .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #fff6df; color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffaf2;
    padding: 1rem;
    color: var(--ink-soft);
}
.flash-message { border-color: rgba(15,159,110,.22); background: var(--green-soft); }
.flash-error,
.warn { border-color: rgba(215,25,32,.22); background: var(--red-soft); }

.mobile-bottom-nav {
    position: fixed;
    left: .75rem;
    right: .75rem;
    bottom: calc(.75rem + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .25rem;
    border: 1px solid rgba(60, 43, 31, .14);
    border-radius: 26px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: .42rem;
    box-shadow: 0 20px 42px rgba(83, 46, 22, .16);
}
.mobile-bottom-nav a {
    min-height: 48px;
    display: grid;
    place-items: center;
    gap: .04rem;
    color: var(--muted);
    font-weight: 950;
    border-radius: 18px;
}
.mobile-bottom-nav span { font-size: 1rem; line-height: 1; }
.mobile-bottom-nav small { font-size: .68rem; }
.mobile-bottom-nav a.nav-active,
.mobile-bottom-nav a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-2));
}

@media (min-width: 861px) {
    body { padding-bottom: 0; }
    .mobile-bottom-nav { display: none; }
    .site-header .header-inner { min-height: 116px; }
    .site-header .header-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    .site-header .app-brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        margin: 0;
        gap: 0;
    }
    .site-header .app-brand .brand-copy {
        display: none;
    }
    .site-header .brand-mark {
        width: auto;
        height: auto;
        flex: 0 0 auto;
        border-radius: 0;
    }
    .site-header .brand-mark img {
        width: auto;
        height: 92px;
        max-width: none;
    }
    .site-header .top-nav {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 148px 0 18px;
        gap: 1rem;
    }
    .site-header .top-nav-group {
        flex: 0 0 calc(50% - 148px);
        max-width: calc(50% - 148px);
    }
    .site-header .top-nav-group-left {
        justify-content: flex-end;
    }
    .site-header .top-nav-group-right {
        justify-content: flex-start;
    }
    .site-header .admin-shortcut {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
    }
}

@media (max-width: 960px) {
    .hero,
    .home-hero,
    .hero-card,
    .item-hero { grid-template-columns: 1fr; }
    .hero h1,
    .hero-card h1,
    .home-hero h1 { max-width: 100%; }
    .hero-panel { min-height: 220px; }
    .compact-form,
    .state-options,
    .split-layout,
    .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .header-inner { min-height: 66px; }
    .brand-copy small { display: none; }
    .brand-mark { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; }
    .nav-toggle { display: grid; }
    .top-nav {
        position: fixed;
        top: 76px;
        left: 1rem;
        right: 1rem;
        display: grid;
        gap: .35rem;
        padding: .65rem;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 255, 255, .96);
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .16s ease, transform .16s ease;
    }
    .top-nav-group { display: grid; gap: .35rem; }
    .top-nav-group-left,
    .top-nav-group-right { justify-content: stretch; }
    .admin-shortcut { display: none; }
    body.nav-open .top-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .search-bar { grid-template-columns: 1fr; }
    .search-bar button { width: 100%; }
    .section-heading { display: grid; align-items: start; }
    .admin-tabs { border-radius: 22px; }
}

@media (max-width: 600px) {
    body::before { background-size: 34px 34px; }
    h1 { font-size: clamp(2.05rem, 11vw, 3.4rem); }
    .container,
    .page-shell,
    .footer,
    .site-footer { width: min(100% - 1rem, var(--container)); }
    .container,
    .page-shell { padding-top: .8rem; }
    .card,
    .section-card,
    .hero-card { border-radius: 20px; padding: 1rem; }
    .hero,
    .home-hero { min-height: auto; border-radius: 24px; }
    .stats-strip { grid-template-columns: 1fr; }
    .product-grid,
    .country-grid,
    .card-grid { grid-template-columns: 1fr; gap: .75rem; }
    .product-card {
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: center;
        gap: .7rem;
    }
    .product-card .collector-badge { grid-column: 1 / -1; }
    .country-tile.product-card { grid-template-columns: auto minmax(0, 1fr); }
    .country-tile.product-card .collector-badge { grid-column: 1 / -1; }
    .product-media,
    .product-media-fallback { aspect-ratio: 1 / 1; }
    .media-thumb,
    .item-image { max-height: 360px; }
    .item-media-panel { padding: .5rem; border-radius: 20px; }
    .cta-row .btn { width: 100%; }
    .hero-badge { font-size: .82rem; }
    .hero-badge-two { display: none; }
    .hero-orbit { bottom: 1rem; }
    .watchlist-item {
        grid-template-columns: 1fr;
        justify-items: start;
    }
    .watchlist-follow-form .btn,
    .watchlist-item > .btn { min-width: 0; }
}
