* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: calc(80px + var(--banner-offset, 0px)); }
html, body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a; color: #e2e8f0;
    overflow-x: hidden; width: 100%;
}
a { color: #f97316; text-decoration: none; }
@media (hover: hover) {
    a:hover { color: #fb923c; }
}

/* Stacked banners - sit naturally below the nav inside the fixed header */
.top-stack {
    display: flex; flex-direction: column;
}
.top-banner {
    display: none;
    background: #f97316; color: #fff;
    padding: 10px 16px; text-align: center;
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.3px;
}
.top-banner.live {
    background: linear-gradient(90deg, #f97316, #dc2626); color: #fff;
    animation: bannerPulse 2.5s ease-in-out infinite;
}
.top-banner.rain {
    background: #2563eb; color: #fff;
}
.top-banner.rain-severe {
    background: #1d4ed8; color: #fff;
}
.top-banner.temp-warn {
    background: #ca8a04; color: #fff;
}
.top-banner.ride {
    background: linear-gradient(90deg, #16a34a, #15803d); color: #fff;
}
.top-banner.ride a {
    color: #fff !important; text-decoration: underline; font-weight: 700;
}
.top-banner.temp-cold {
    background: #2563eb; color: #fff;
}
.top-banner.temp-hot {
    background: #dc2626; color: #fff;
}
@keyframes bannerPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(220,38,38,0); }
    50% { box-shadow: 0 4px 20px rgba(220,38,38,0.5); }
}
.top-banner i { margin-right: 6px; }
/* Anchor variant: keep the banner looking identical, but make tap target
   clearly clickable. Used on the Thursday banner so users can jump straight
   to the meet card (#when) from any page. Hover is gated to real pointer
   devices so touch taps don't leave a sticky brightness glow after navigation. */
.top-banner-link {
    text-decoration: none; color: #111827; cursor: pointer;
    transition: color 0.15s;
}
@media (hover: hover) {
    /* Text-colour-only hover (no bg/filter/overlay - those caused washed text +
       a stacking-context bug that hid the nav dropdown behind the banner).
       Banner text is dark on the orange by default; hover lifts it to white. */
    .top-banner-link:hover { color: #fff; }
}
.top-banner-link:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: -3px; }

/* Fixed header wrapper - nav + any banners */
.top-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
}
/* Nav */
.nav {
    background: rgba(10,10,10,0.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(249,115,22,0.15);
    padding: 14px 0;
}
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-brand {
    display: flex; align-items: center; gap: 12px;
}
.nav-brand img { height: 34px; display: block; }
.nav-brand .name {
    font-size: 14px; font-weight: 700; color: #cbd5e1;
    letter-spacing: 1.2px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: #cbd5e1; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; }

/* Dropdown nav item ("Get Involved") */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    color: #cbd5e1; font-size: 15px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; padding: 0;
    font-family: inherit; cursor: pointer; white-space: nowrap;
}
@media (hover: hover) {
    .nav-dropdown-toggle:hover { color: #fff; }
}
.nav-dropdown-toggle i {
    font-size: 12px; transition: transform 0.2s; opacity: 0.7;
}
.nav-dropdown.open .nav-dropdown-toggle i { transform: rotate(180deg); }
.nav-dropdown.active .nav-dropdown-toggle {
    color: #fff; background: #f97316;
    padding: 4px 10px; border-radius: 8px;
}
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 12px); right: 0;
    min-width: 240px;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 10px;
    padding: 6px; z-index: 10;
    display: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: flex !important; align-items: flex-start; gap: 10px;
    padding: 10px 12px; border-radius: 6px;
    color: #e2e8f0 !important; text-decoration: none;
    white-space: normal !important;
    transition: background 0.12s;
}
@media (hover: hover) {
    .nav-dropdown-menu a:hover { background: rgba(249,115,22,0.12); color: #fff !important; }
}
/* Override the solid-orange .nav-links a.active style inside the dropdown -
   in a flyout menu we want a subtle highlight, not a chunky pill */
.nav-dropdown-menu a.active {
    background: rgba(249,115,22,0.15) !important;
    color: #fff !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    border-left: 3px solid #f97316;
    padding-left: 9px !important;
}
.nav-dropdown-menu a.active .dd-sub { color: #cbd5e1; }
.nav-dropdown-menu a.active i { color: #fb923c; }
.nav-dropdown-menu a i {
    color: #f97316; font-size: 18px; flex-shrink: 0; margin-top: 2px;
}
.nav-dropdown-menu .dd-title {
    display: block; font-weight: 700; font-size: 14px; color: #fff;
}
.nav-dropdown-menu .dd-sub {
    display: block; font-size: 12px; color: #94a3b8; margin-top: 2px;
}
@media (hover: hover) {
    .nav-links a:hover { color: #fff; }
}
.nav-links a.active {
    color: #fff; background: #f97316;
    padding: 4px 10px; border-radius: 8px;
}
.nav-links a.active .nav-badge {
    background: #fff; color: #c2410c;
}
.nav-badge {
    display: none;
    background: #f97316; color: #fff;
    font-size: 11px; font-weight: 700; line-height: 1;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px;
    align-items: center; justify-content: center;
    margin-left: 4px;
    vertical-align: middle;
}
.nav-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    font-size: 18px; transition: all 0.15s;
    border: 1px solid transparent;
}
.nav-social + .nav-social { margin-left: -14px; }
.nav-social.primary {
    background: #f97316; color: #fff !important;
}
@media (hover: hover) {
    .nav-social.primary:hover { background: #ea580c; color: #fff !important; }
}
.nav-social.secondary {
    background: transparent; color: #f97316 !important;
    border-color: #f97316;
}
@media (hover: hover) {
    .nav-social.secondary:hover {
        background: rgba(249,115,22,0.15); color: #fb923c !important;
    }
}
.nav-toggle {
    display: none; background: none; border: none; color: #cbd5e1;
    font-size: 26px; cursor: pointer; padding: 4px;
}

section { padding: 40px 24px; }
.container { max-width: 1100px; margin: 0 auto; }

/* Hero */
.hero {
    padding-top: calc(100px + var(--banner-offset, 0px));
    padding-bottom: 20px;
    position: relative; text-align: center;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 900px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.nav-brand .brand-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    gap: 2px;
}
.nav-brand .name {
    white-space: nowrap;
}
.nav-brand .est {
    display: inline-block;
    font-size: 9px; font-weight: 700; color: #f97316;
    letter-spacing: 1.5px; line-height: 1.2;
    padding: 0 6px; margin-left: 8px;
    border: 1px solid rgba(249,115,22,0.4);
    border-radius: 4px;
    background: rgba(249,115,22,0.08);
    white-space: nowrap;
    vertical-align: middle;
    flex-shrink: 0;
    position: relative; top: -1px;
}
.nav-brand .tagline {
    font-size: 10px; font-weight: 600; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 1.5px;
    white-space: nowrap;
}
.hero-image {
    max-width: 100%; width: 720px; border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(249,115,22,0.2);
    margin-bottom: 36px;
}
.hero h1 {
    font-size: 56px; font-weight: 900; line-height: 1.05; margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero h1 .accent {
    color: #f97316;
}
.hero-sub {
    font-size: 19px; color: #94a3b8; max-width: 600px; margin: 0 auto 36px;
}
.hero-cta-row {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
/* Social-proof counts under the hero CTAs (rounded number, exact on hover). */
.hero-social-stats {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px;
}
.hss-item {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 16px; border-radius: 12px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none; color: #e2e8f0;
    transition: border-color .15s, background .15s, transform .15s;
}
@media (hover: hover) {
    .hss-item:hover { border-color: rgba(249,115,22,0.5); background: rgba(249,115,22,0.08); transform: translateY(-1px); }
}
.hss-item > i { font-size: 20px; color: #f97316; }
/* Fixed-width + tabular digits so the item doesn't jiggle while the count rolls up. */
.hss-num { font-size: 20px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; min-width: 4.5ch; text-align: center; }
/* Odometer reels: each digit is a 1em-tall clipped window over a vertical 0-9 column. */
.hss-num.hss-roll { display: inline-flex; align-items: flex-start; justify-content: center; }
.hss-digit { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.hss-reel { display: flex; flex-direction: column; will-change: transform; }
.hss-reel > span { height: 1em; line-height: 1; display: block; text-align: center; }
.hss-char { display: inline-block; }
.hss-label { font-size: 13px; color: #94a3b8; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px; font-weight: 700;
    font-size: 16px; cursor: pointer; border: none;
    transition: all 0.15s;
}
.btn-primary { background: #f97316; color: #fff; }
@media (hover: hover) {
    .btn-primary:hover { background: #ea580c; color: #fff; transform: translateY(-1px); }
}
.btn-secondary {
    background: rgba(255,255,255,0.05); color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.12);
}
@media (hover: hover) {
    .btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }
}
/* Colored secondary variants - same dark base, different accent color so a
   row of buttons doesn't read as a wall of grey. Icons + border carry the hue. */
.btn-secondary.btn-blue   { border-color: rgba(59,130,246,0.45); }
.btn-secondary.btn-blue i   { color: #60a5fa; }
@media (hover: hover) {
    .btn-secondary.btn-blue:hover   { background: rgba(59,130,246,0.18); border-color: #3b82f6; }
}
.btn-secondary.btn-green  { border-color: rgba(34,197,94,0.45); }
.btn-secondary.btn-green i  { color: #4ade80; }
@media (hover: hover) {
    .btn-secondary.btn-green:hover  { background: rgba(34,197,94,0.18); border-color: #22c55e; }
}
.btn-secondary.btn-purple { border-color: rgba(168,85,247,0.45); }
.btn-secondary.btn-purple i { color: #c084fc; }
@media (hover: hover) {
    .btn-secondary.btn-purple:hover { background: rgba(168,85,247,0.18); border-color: #a855f7; }
}

/* Next Meet panel (unified When/Where + countdown + weather) */
.nextmeet { padding: 24px 24px 30px; background: #0d0d0d; }
.nextmeet-card {
    max-width: 720px; margin: 0 auto;
    background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(249,115,22,0.02));
    border: 1px solid rgba(249,115,22,0.25);
    border-radius: 16px; padding: 32px 28px;
    text-align: center;
}
.nextmeet-card.live {
    background: linear-gradient(135deg, rgba(249,115,22,0.25), rgba(220,38,38,0.12));
    border-color: #f97316;
    box-shadow: 0 0 40px rgba(249,115,22,0.25);
    animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(249,115,22,0.2); }
    50% { box-shadow: 0 0 50px rgba(249,115,22,0.45); }
}
.nextmeet-label {
    font-size: 12px; font-weight: 700; color: #f97316;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.nextmeet-card.live .nextmeet-label { color: #fff; font-size: 14px; }
.nextmeet-title {
    font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px;
    line-height: 1.2;
}
.nextmeet-card.live .nextmeet-title { font-size: 32px; }
.nextmeet-chips {
    display: inline-flex; gap: 8px; flex-wrap: wrap;
    justify-content: center; margin: 14px 0 22px;
}
.nextmeet-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    font-size: 14px; color: #e2e8f0; font-weight: 600;
    line-height: 1.2;
}
.nextmeet-chip i { color: #f97316; font-size: 15px; display: inline-block; transform-origin: center; }
.nextmeet-chip-link {
    text-decoration: none; color: #e2e8f0; cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
@media (hover: hover) {
    .nextmeet-chip-link:hover {
        border-color: rgba(249,115,22,0.45);
        background: rgba(249,115,22,0.08);
        color: #fff;
    }
}
.nextmeet-chip-link:focus {
    border-color: rgba(249,115,22,0.45);
    background: rgba(249,115,22,0.08);
    color: #fff;
}
.nextmeet-chip .v { color: #fff; font-weight: 700; }
/* Countdown stopwatch heartbeat-style pulse on the 1s tick */
.nextmeet-chip i.bi-stopwatch {
    animation: cdHeartbeat 1s ease-in-out infinite;
}
@keyframes cdHeartbeat {
    0%, 28%, 100% { transform: scale(1); }
    14%          { transform: scale(1.22); }
    42%          { transform: scale(1.10); }
}
/* Coloured numbers/units inside the countdown */
.cd-num  {
    color: #f97316; font-weight: 800;
    font-variant-numeric: tabular-nums;
    /* Pin a width per digit so 0/1/5 take the same column - stops the chip
       from jittering as the seconds tick. */
    display: inline-block; min-width: 1ch; text-align: right;
}
.cd-unit { color: #94a3b8; font-weight: 600; margin: 0 4px 0 1px; }
/* Lock the whole countdown chip to tabular digits so the parent doesn't
   reflow when the number of digits in the seconds field changes. */
.nextmeet-chip .v { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
    .nextmeet-chips { flex-direction: column; align-items: stretch; }
    .nextmeet-chip { justify-content: center; }
}
.forecast-block {
    margin-bottom: 22px;
}
.rain-check {
    display: none; margin: 0 0 16px; padding: 10px 14px;
    background: rgba(59,130,246,0.10);
    border: 1px solid rgba(59,130,246,0.45);
    border-radius: 8px; color: #bfdbfe;
    font-size: 14px; font-weight: 500;
}
.rain-check.severe {
    background: rgba(29,78,216,0.15);
    border-color: rgba(29,78,216,0.55);
    color: #dbeafe;
}
.rain-check i { font-size: 16px; margin-right: 6px; vertical-align: -2px; }
.rain-check a {
    color: inherit; text-decoration: underline; font-weight: 700;
    white-space: nowrap;
}
@media (hover: hover) {
    .rain-check a:hover { color: #fff; }
}
.ride-verdict {
    display: none; margin: 0 0 16px; padding: 12px 16px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.35);
    border-radius: 8px; color: #bbf7d0;
    font-size: 14px; font-weight: 500;
    text-align: center; line-height: 1.4;
}
.ride-verdict.warn {
    background: rgba(250,204,21,0.08);
    border-color: rgba(250,204,21,0.35);
    color: #fde68a;
}
.ride-verdict.cold {
    background: rgba(59,130,246,0.22);
    border-color: rgba(96,165,250,0.75);
    color: #dbeafe;
}
.ride-verdict.bad {
    background: rgba(248,113,113,0.08);
    border-color: rgba(248,113,113,0.45);
    color: #fecaca;
}
.ride-verdict i.v-icon {
    font-size: 18px; margin-right: 8px; vertical-align: -3px;
}
.ride-verdict .v-title { font-weight: 800; color: #fff; }
.ride-verdict.warn .v-title { color: #fef3c7; }
.ride-verdict.cold .v-title { color: #dbeafe; }
.ride-verdict.bad .v-title { color: #fff; }
.ride-verdict .v-stats {
    margin-top: 6px;
    font-size: 13px; opacity: 0.9; line-height: 1.6;
    word-spacing: 4px;
}
.ride-verdict .v-stat {
    display: inline-block; white-space: nowrap;
}
.ride-verdict .v-stats i {
    font-size: 12px; margin-right: 4px; margin-left: 2px; opacity: 0.9;
}
.ride-verdict .v-stats i.bi-thermometer-half { color: #fbbf24; }
.ride-verdict .v-stats i.bi-person-fill { color: #cbd5e1; }
.ride-verdict .v-stats i.bi-wind { color: #a78bfa; }
.ride-verdict .v-stats i.bi-droplet-fill { color: #60a5fa; }
@media (max-width: 480px) {
    .ride-verdict .v-stats { margin-top: 8px; }
}
.top-banner a {
    color: #fff; text-decoration: underline; font-weight: 700;
    white-space: nowrap; margin-left: 6px;
}
.nextmeet-meta {
    display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
    font-size: 15px; color: #cbd5e1;
    padding: 14px 16px; margin-bottom: 22px;
    background: rgba(0,0,0,0.25); border-radius: 10px;
}
.nextmeet-meta .item {
    display: inline-flex; align-items: center; gap: 8px;
}
.nextmeet-meta i { color: #f97316; font-size: 16px; }
.nextmeet-meta .value { color: #fff; font-weight: 700; }
.nextmeet-meta .wx-time {
    color: #94a3b8; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-right: 3px;
}
/* Hourly strip */
.hourly-label {
    font-size: 11px; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 1.5px;
    text-align: center; margin-bottom: 8px;
}
.hourly-strip {
    display: flex; gap: 8px; margin: 0 auto 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    width: max-content; max-width: 100%;
    /* width:max-content lets the strip be exactly as wide as its cells, so it
       still centers via margin:auto when the row fits; once it doesn't, it
       overflows from the LEFT edge (scrollable both directions) instead of
       being pushed past the scroll origin by justify-content:center. */
}
.hourly-strip::-webkit-scrollbar { height: 4px; }
.hourly-strip::-webkit-scrollbar-thumb {
    background: rgba(249,115,22,0.3); border-radius: 2px;
}
.hour-cell {
    flex: 1 0 auto; min-width: 70px; max-width: 100px;
    padding: 10px 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    text-align: center;
    transition: all 0.15s;
}
.hour-cell.now {
    background: rgba(249,115,22,0.22);
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249,115,22,0.4), 0 6px 16px rgba(249,115,22,0.2);
    transform: translateY(-1px);
}
.hour-cell.now .h-temp { color: #fff; }
.hour-cell .h-time {
    font-size: 11px; color: #94a3b8; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.hour-cell.now .h-time { color: #f97316; }
.hour-cell .h-icon {
    font-size: 22px; color: #f97316; margin: 2px 0;
    line-height: 1;
}
.hour-cell .h-temp {
    font-size: 17px; color: #fff; font-weight: 800; margin-top: 2px;
}
.hour-cell .h-precip {
    font-size: 11px; color: #60a5fa; margin-top: 2px;
    min-height: 14px;
}
.hour-cell .h-precip:empty::before {
    content: '\00a0'; /* keep height consistent */
}
.sunset-marker {
    flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 0 4px;
    color: #fb923c; font-size: 10px; font-weight: 700;
    letter-spacing: 0.3px; line-height: 1;
    cursor: default;
    position: relative;
}
.sunset-marker i { font-size: 16px; color: #f97316; }
.sunset-marker .sunset-word {
    font-size: 9px; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.6px;
    line-height: 1; margin-bottom: 1px;
}
.sunset-marker .sunset-time { font-weight: 700; }

/* Weather skeleton (shown while the forecast API is loading) */
.hourly-skeleton { display: flex; }
.hourly-skeleton .hour-cell.sk {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04);
    pointer-events: none;
}
.hourly-skeleton .sk-bar {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skShimmer 1.6s ease-in-out infinite;
}
.hourly-skeleton .sk-time { height: 10px; width: 36px; margin: 0 auto 6px; }
.hourly-skeleton .sk-icon { height: 22px; width: 22px; border-radius: 50%; margin: 4px auto; }
.hourly-skeleton .sk-temp { height: 16px; width: 30px; margin: 6px auto 0; }
@keyframes skShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.sunset-marker::before, .sunset-marker::after {
    content: ''; position: absolute; left: 50%; width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(249,115,22,0.4), transparent);
}
.sunset-marker::before { top: 0; height: 30%; }
.sunset-marker::after { bottom: 0; height: 30%; }
.hourly-more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px; padding: 8px 16px;
    color: #fff !important; font-size: 13px; font-weight: 600;
    text-decoration: none;
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(249,115,22,0.45);
    border-radius: 999px;
    transition: all 0.15s;
}
@media (hover: hover) {
    .hourly-more:hover {
        background: #f97316;
        border-color: #f97316;
        color: #fff !important;
    }
}
@media (max-width: 600px) {
    .hour-cell { min-width: 60px; padding: 8px 6px; }
    .hour-cell .h-icon { font-size: 18px; }
    .hour-cell .h-temp { font-size: 15px; }
}
.nextmeet-actions {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.nextmeet-actions .btn {
    font-size: 15px; padding: 12px 22px;
}
@media (max-width: 600px) {
    .nextmeet { padding: 20px 16px 20px; }
    .nextmeet-card { padding: 22px 18px; }
    .nextmeet-title { font-size: 20px; }
    .nextmeet-card.live .nextmeet-title { font-size: 24px; }
    .nextmeet-meta { gap: 10px; font-size: 14px; flex-direction: column; padding: 12px; }
    .nextmeet-actions { flex-direction: column; }
    .nextmeet-actions .btn { width: 100%; justify-content: center; }
}

/* Gallery */
.gallery {
    padding: 20px 0 24px; background: #0a0a0a; overflow: hidden;
    position: relative;
}
.gallery::before, .gallery::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 80px;
    z-index: 2; pointer-events: none;
}
.gallery::before { left: 0; background: linear-gradient(to right, #0a0a0a, transparent); }
.gallery::after { right: 0; background: linear-gradient(to left, #0a0a0a, transparent); }
.gallery-title {
    text-align: center; margin-bottom: 24px;
}
.gallery-title h2 {
    font-size: 30px; font-weight: 800; color: #fff;
}
.gallery-title p { font-size: 15px; color: #94a3b8; margin-top: 4px; }
.gallery-track {
    display: flex; gap: 14px; width: max-content;
    animation: scrollGallery 180s linear infinite;
    animation-play-state: paused; /* JS starts it after images load and --scroll-distance is set */
}
.gallery-track.ready { animation-play-state: running; }
.gallery-track a {
    display: block; flex: 0 0 auto;
    transition: transform 0.2s;
}
@media (hover: hover) {
    .gallery-track a:hover { transform: scale(1.03); }
}
.gallery-track img {
    height: 280px; width: auto;
    border-radius: 10px;
    object-fit: cover; display: block;
    background: #1a1a1a;
    cursor: pointer;
}
@media (hover: hover) {
    .gallery-track a:hover img {
        box-shadow: 0 8px 20px rgba(249,115,22,0.25);
    }
    .gallery-track:hover { animation-play-state: paused; }
}
@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--scroll-distance, -50%)); }
}
@media (max-width: 768px) {
    .gallery-track img { height: 200px; }
    .gallery-title h2 { font-size: 24px; }
}

/* Contact */
.contact { background: #0a0a0a; padding: 30px 24px 50px; }
.contact-form {
    max-width: 560px; margin: 0 auto; text-align: left;
}
.contact-form .cf-row {
    display: flex; gap: 12px; margin-bottom: 12px;
}
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 16px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04); color: #fff;
    font-size: 15px; font-family: inherit;
    margin-bottom: 12px;
}
.contact-form .cf-row input {
    flex: 1; width: auto; margin-bottom: 0;
}
.contact-form textarea {
    width: 100%; resize: vertical; margin-bottom: 12px;
    min-height: 100px;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: rgba(249,115,22,0.5);
    background: rgba(255,255,255,0.06);
}
.contact-form input.invalid {
    border-color: rgba(248,113,113,0.6);
    background: rgba(248,113,113,0.06);
}
.contact-form .cf-honey { display: none; }
.contact-form .cf-submit {
    width: 100%; justify-content: center;
}
.contact-form .cf-msg {
    text-align: center; font-size: 15px;
}
.contact-form .cf-msg:not(:empty) { margin-top: 12px; }
.cf-msg.ok { color: #34d399; }
.cf-msg.err { color: #f87171; }
.contact-form .cf-hint {
    font-size: 13px; color: #94a3b8; margin: 4px 2px 16px; text-align: center;
}
.contact-divider {
    text-align: center; margin: 22px auto;
    color: #64748b; font-size: 13px; max-width: 560px;
    display: flex; align-items: center; gap: 14px;
}
.contact-divider::before, .contact-divider::after {
    content: ''; flex: 1; height: 1px;
    background: rgba(255,255,255,0.08);
}
@media (max-width: 600px) {
    .contact-form .cf-row { flex-direction: column; gap: 12px; }
}
.contact-inner {
    text-align: center; max-width: 720px; margin: 0 auto;
}
.section-title h2 {
    font-size: 38px; font-weight: 800; margin-bottom: 12px;
}
.section-title p {
    font-size: 17px; color: #94a3b8; margin-bottom: 22px;
}
.contact-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-bottom: 28px;
}
.contact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 22px 16px;
    transition: all 0.15s;
}
@media (hover: hover) {
    .contact-card:hover {
        border-color: rgba(249,115,22,0.4);
        background: rgba(249,115,22,0.05);
    }
}
.contact-card i {
    font-size: 24px; color: #f97316; margin-bottom: 10px;
}
.contact-card .name {
    font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px;
}
.contact-card .email {
    font-size: 14px; color: #cbd5e1; white-space: nowrap;
}
.contact-card .phone {
    font-size: 14px; color: #cbd5e1; margin-top: 4px;
}
.contact-card .contact-link {
    display: block; text-decoration: none; color: #cbd5e1 !important;
    padding: 2px 0; transition: color 0.12s;
}
@media (hover: hover) {
    .contact-card .contact-link:hover {
        color: #f97316 !important; text-decoration: underline;
    }
}

/* Press / In the News */
.press {
    padding: 60px 24px 20px; background: #0a0a0a;
}
.press-inner { max-width: 1100px; margin: 0 auto; }
.press-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 16px; margin-top: 24px;
}
.press-card {
    flex: 1 1 280px; max-width: 340px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; transition: all 0.15s;
    text-decoration: none;
    display: flex; flex-direction: column;
}
@media (hover: hover) {
    .press-card:hover {
        border-color: rgba(249,115,22,0.4);
        background: rgba(249,115,22,0.05);
        transform: translateY(-2px);
    }
}
.press-source {
    font-size: 12px; font-weight: 700; color: #f97316;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.press-title {
    font-size: 15px; font-weight: 600; color: #e2e8f0; line-height: 1.4;
    margin-bottom: 12px;
}
@media (hover: hover) {
    .press-card:hover .press-title { color: #fff; }
}
.press-date {
    font-size: 12px; color: #94a3b8; margin-top: auto;
    font-weight: 500;
    display: flex; align-items: center;
}
.press-arrow {
    margin-left: auto; font-size: 11px; opacity: 0.7;
}

/* Footer */
.footer {
    padding: 28px 24px; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 14px; color: #64748b;
}
.footer a { color: #94a3b8; }
@media (hover: hover) {
    .footer a:hover { color: #f97316; }
}


/* Vendor CTA strip on home page contact section */
.contact-vendor-cta {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; margin: 22px auto;
    max-width: 540px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(249,115,22,0.25);
    border-radius: 12px;
    text-align: left;
}
.contact-vendor-cta i {
    font-size: 24px; color: #f97316; flex-shrink: 0;
}
.contact-vendor-cta div {
    flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.contact-vendor-cta strong { color: #fff; font-size: 15px; font-weight: 700; }
.contact-vendor-cta span { color: #94a3b8; font-size: 13px; }
.contact-vendor-cta .btn { padding: 8px 16px; font-size: 14px; flex-shrink: 0; }
@media (max-width: 500px) {
    .contact-vendor-cta { flex-direction: column; text-align: center; }
    .contact-vendor-cta .btn { width: 100%; justify-content: center; }
}

/* Site footer (shared partial) */
.site-footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 24px 26px;
    color: #94a3b8;
    font-size: 14px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 28px 20px;
    margin-bottom: 30px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
    color: #94a3b8 !important; text-decoration: none;
    transition: color 0.15s;
}
@media (hover: hover) {
    .footer-col a:hover { color: #f97316 !important; }
}
.footer-label {
    font-size: 11px; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.footer-partners {
    margin-bottom: 28px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}
.footer-partners-label {
    font-size: 11px; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.footer-partners-row {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-partner-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    color: #cbd5e1 !important; font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}
@media (hover: hover) {
    .footer-partner-chip:hover {
        border-color: rgba(249,115,22,0.4);
        color: #fff !important;
        background: rgba(249,115,22,0.08);
    }
}
.footer-partner-chip img {
    width: 18px; height: 18px; border-radius: 3px;
    background: #fff;
}
.footer-partner-more {
    color: #f97316 !important; font-size: 13px; font-weight: 700;
    text-decoration: none; margin-left: auto;
}
@media (hover: hover) {
    .footer-partner-more:hover { color: #fb923c !important; }
}

.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 12px; font-size: 13px;
}
.footer-brand { color: #fff; font-weight: 800; letter-spacing: 1px; }
.footer-brand .accent { color: #f97316; }
.footer-meta { color: #64748b; }
@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-partner-more { margin-left: 0; margin-top: 6px; }
}

/* Desktop default: nav-socials is a flex group that stays together if the nav wraps */
.nav-socials { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.nav-socials .nav-social + .nav-social { margin-left: 0; }

/* Mobile */
@media (max-width: 768px) {
    /* Brand row competes with the hamburger - tighten everything so the icon always fits */
    .nav-inner   { padding: 0 14px; gap: 8px; }
    .nav-brand   { gap: 8px; min-width: 0; flex: 1; }
    .nav-brand img       { height: 30px; flex-shrink: 0; }
    .nav-brand .brand-text { min-width: 0; }
    .nav-brand .name     { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nav-brand .tagline  { font-size: 9px; letter-spacing: 0.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nav-brand .est      { font-size: 8px; letter-spacing: 0.5px; padding: 1px 4px; margin-left: 5px; top: 0; flex-shrink: 0; }
    .nav-toggle { font-size: 24px; padding: 4px 6px; flex-shrink: 0; }
    .hero { padding-top: calc(90px + var(--banner-offset, 0px)); padding-bottom: 24px; }
    .hero h1 { font-size: 38px; }
    .hero-sub { font-size: 16px; }
    /* Social stats: 2-up side by side (not two more full-width bars), short labels
       since the icon already identifies the platform. */
    .hero-social-stats { gap: 10px; margin-top: 18px; }
    .hss-item { flex: 1 1 0; min-width: 0; justify-content: center; padding: 9px 8px; gap: 6px; }
    .hss-item > i { font-size: 18px; }
    .hss-num { font-size: 18px; }
    .hss-label .lbl-plat { display: none; }
    .gallery { padding: 30px 0 20px; }
    .gallery-title { margin-bottom: 16px; }
    .contact-grid { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 28px; }
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(10,10,10,0.97); flex-direction: column; align-items: center;
        padding: 16px 24px; gap: 14px;
        border-bottom: 1px solid rgba(249,115,22,0.15);
    }
    .nav-links.open { display: flex; }
    /* Each menu item is centered as a block, so text + badge sit centered together */
    .nav-links > a {
        position: relative;
        justify-content: center;
    }
    /* Badge floats right of the text instead of widening the link's content box -
       keeps "Rides" visually centered on its line */
    .nav-links > a .nav-badge {
        position: absolute; left: 100%; top: 50%;
        transform: translate(6px, -50%);
        margin-left: 0;
    }
    /* FB + IG icons sit in a single centered row at the bottom (no overlap) */
    .nav-socials {
        display: flex; flex-direction: row; gap: 12px;
        justify-content: center;
    }
    .nav-socials .nav-social + .nav-social { margin-left: 0; }
    .nav-inner { position: relative; }
    /* Dropdown menu (Merch / Get Involved): center horizontally on mobile
       so it doesn't stick to the right of its centered toggle and overflow. */
    .nav-dropdown-menu {
        left: 50%; right: auto;
        transform: translateX(-50%);
        top: calc(100% + 8px);
    }
    section { padding: 50px 20px; }
}

/* "New version available" reload banner - shown when /version.php reports a fresher SHA. */
.nbn-reload-banner {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: #f97316; color: #fff;
    padding: 10px 16px;
    display: flex; align-items: center; justify-content: center; gap: 14px;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.35);
}
.nbn-reload-banner button {
    background: #fff; color: #f97316;
    border: 0; border-radius: 6px;
    padding: 6px 14px; font-weight: 700; font-size: 13px;
    cursor: pointer;
}
@media (hover: hover) {
    .nbn-reload-banner button:hover { background: #fef3c7; }
}

/* "Got pics from the meet?" CTA — homepage gallery + /photos header */
.gallery-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 18px; flex-wrap: wrap;
    margin-top: 10px;
}
.gallery-link { color: #f97316; font-weight: 600; text-decoration: none; font-size: 15px; }
@media (hover: hover) {
    .gallery-link:hover { text-decoration: underline; }
}
.gallery-actions .btn { padding: 10px 20px; font-size: 14px; }
.page-header-cta { margin-top: 16px; }
.page-header-cta .btn { padding: 10px 20px; font-size: 14px; }
@media (max-width: 560px) {
    .gallery-actions { flex-direction: column; gap: 12px; }
}

/* ===== Shared page header (used on partners, specials, vendors, merch, etc.) ===== */
.page-header {
    padding: calc(90px + var(--banner-offset, 0px)) 24px 4px;
    text-align: center;
}
.page-header h1 {
    font-size: 40px; font-weight: 900; color: #fff;
    margin-bottom: 6px;
}
.page-header h1 .accent { color: #f97316; }
.page-header p { font-size: 16px; color: #94a3b8; max-width: 560px; margin: 0 auto; }
.merch-track-btn {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
    padding: 9px 18px; border: 1px solid rgba(249,115,22,0.5); border-radius: 999px;
    color: #fb923c; text-decoration: none; font-weight: 600; font-size: 14px;
    transition: background 0.15s, border-color 0.15s;
}
@media (hover: hover) {
    .merch-track-btn:hover { background: rgba(249,115,22,0.12); border-color: #f97316; }
}

/* ===== /merch skeleton ===== */
.merch-section { max-width: 1100px; margin: 0 auto; padding: 24px 24px 40px; }

.merch-howto {
    display: flex; gap: 10px; align-items: center; justify-content: center;
    background: rgba(249,115,22,0.08);
    border: 1px solid rgba(249,115,22,0.25);
    border-radius: 10px; padding: 12px 16px;
    color: #cbd5e1; font-size: 14px; line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
}
.merch-howto i { color: #f97316; font-size: 18px; }

.merch-grid {
    display: grid;
    /* auto-fit collapses empty tracks and justify-content centers the cards, so a
       small catalog sits centered instead of crammed left; the 280px cap keeps two
       items from ballooning while extra products fill out the row as they're added. */
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: center;
    gap: 18px;
}
.merch-empty { text-align: center; padding: 60px 20px; color: #64748b; }
.merch-empty i { font-size: 48px; display: block; margin-bottom: 12px; color: #475569; }
.merch-empty p { font-size: 16px; margin: 0; }
.merch-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color 0.15s, transform 0.15s;
    scroll-margin-top: 130px; /* deep-link from the merch ad stops below the fixed nav/banner */
}
@media (hover: hover) {
    .merch-card:hover { border-color: rgba(249,115,22,0.4); transform: translateY(-2px); }
}
/* Arrival flash when deep-linked from the rolling merch ad (/merch#item-<id>). */
.merch-card.merch-flash { animation: merchCardFlash 2.4s ease-out; }
@keyframes merchCardFlash {
    0%   { box-shadow: 0 0 0 0 rgba(249,115,22,0); border-color: rgba(249,115,22,0.9); }
    12%  { box-shadow: 0 0 0 4px rgba(249,115,22,0.55), 0 0 26px rgba(249,115,22,0.45); border-color: rgba(249,115,22,0.9); }
    100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); border-color: rgba(255,255,255,0.08); }
}
@media (prefers-reduced-motion: reduce) { .merch-card.merch-flash { animation: none; } }
.merch-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #111827);
    display: flex; align-items: center; justify-content: center;
}
/* Absolutely positioned so the image's intrinsic (portrait) ratio can't stretch the
   square box - keeps every card uniform. object-fit: cover crops to fill. */
.merch-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.8s ease; }
/* Second layer used by the multi-image auto-crossfade (JS adds it to cards with >1 photo). */
.merch-img .merch-rot-layer { opacity: 0; }
.merch-img-fallback {
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center;
    color: #475569; font-size: 56px;
}
/* Text placeholder with an auto-generated colored background (no image set) */
.merch-ph {
    width: 100%; height: 100%; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 16px;
    font-weight: 800; line-height: 1.15;
    font-size: clamp(18px, 6vw, 30px);
}
/* "N images" hint on cards with a gallery */
.merch-img-count {
    position: absolute; bottom: 10px; right: 10px;
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(0,0,0,0.55); color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 3px 8px; border-radius: 999px;
    backdrop-filter: blur(4px);
}
.merch-img .stock {
    position: absolute; top: 10px; left: 10px;
    font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}
.stock.in   { background: rgba(34,197,94,0.85); color: #fff; }
.stock.low  { background: rgba(234,179,8,0.9); color: #1f2937; }
.stock.out  { background: rgba(100,116,139,0.85); color: #fff; }
.stock.soon { background: rgba(139,92,246,0.85); color: #fff; }
.stock.preorder { background: rgba(59,130,246,0.9); color: #fff; }
.merch-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.merch-body h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 0; }
.merch-blurb { font-size: 13px; color: #94a3b8; line-height: 1.4; margin: 0; flex: 1; }
.merch-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px;
}
.merch-price { font-size: 18px; font-weight: 800; color: #f97316; }
.merch-price.tba { color: #eab308; }
.add-btn {
    background: #f97316; color: #fff; border: 0;
    padding: 7px 14px; border-radius: 8px;
    font-weight: 700; font-size: 13px;
    cursor: pointer; display: flex; align-items: center; gap: 4px;
    font-family: inherit;
}
@media (hover: hover) {
    .add-btn:hover { background: #ea580c; }
}
.add-btn.disabled, .add-btn:disabled {
    background: rgba(100,116,139,0.3); color: #64748b;
    cursor: not-allowed;
}

/* Mobile: 2-up grid so cards aren't full-width-huge (see ~2 rows at a glance) */
@media (max-width: 560px) {
    .merch-section { padding: 20px 16px 36px; } /* was 100px bottom - killed the empty gap */
    .merch-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .merch-body { padding: 11px 11px 13px; gap: 4px; }
    .merch-body h3 { font-size: 14px; }
    .merch-blurb { font-size: 12px; line-height: 1.35;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .merch-bottom { margin-top: 8px; }
    .merch-price { font-size: 15px; }
    .add-btn { padding: 6px 9px; font-size: 12px; }
    .merch-img .stock { font-size: 10px; padding: 3px 8px; }
}

/* Merch card focus / click affordance */
.merch-card { cursor: pointer; }
.merch-card:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }

/* Merch detail modal */
.merch-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.merch-modal.open { display: flex; }
.merch-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
}
.merch-modal-inner {
    position: relative;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    width: 100%; max-width: 880px;
    max-height: 90vh; overflow: hidden;
    display: grid; grid-template-columns: 1.1fr 0.9fr;
}
.merch-modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(0,0,0,0.55); color: #fff; border: 0;
    font-size: 18px; line-height: 1; padding: 0;
    cursor: pointer; z-index: 2;
    display: inline-flex; align-items: center; justify-content: center;
}
.merch-modal-close i { display: block; line-height: 1; }
@media (hover: hover) {
    .merch-modal-close:hover { background: rgba(0,0,0,0.85); }
}
.merch-modal-img {
    position: relative;
    background: linear-gradient(135deg, #1f2937, #111827);
    aspect-ratio: 1 / 1;
}
.merch-modal-img img { width: 100%; height: 100%; object-fit: contain; }
/* Soft fade as the modal main image swaps (manual nav or auto-advance). */
.mm-main img { animation: mmFadeIn 0.45s ease; }
@keyframes mmFadeIn { from { opacity: 0.25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mm-main img { animation: none; } }
.merch-modal-img .merch-img-fallback {
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center;
    color: #475569; font-size: 96px;
}
.merch-modal-stock {
    position: absolute; top: 14px; left: 14px;
}
.merch-modal-stock .stock {
    font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.merch-modal-body {
    padding: 28px;
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.merch-modal-body h2 {
    font-size: 24px; font-weight: 800; color: #fff;
    margin: 0 0 10px;
}
.merch-modal-body p {
    color: #94a3b8; font-size: 15px; line-height: 1.55;
    margin: 0; flex: 1;
}
.merch-modal-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.merch-modal-price { font-size: 26px; font-weight: 900; color: #f97316; }
.merch-modal-price.tba { color: #eab308; }
.merch-modal-foot .add-btn { padding: 10px 18px; font-size: 14px; }

/* --- Size select + chart --- */
.mm-size-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 14px; margin-top: 20px;
}
.mm-size-pick { display: flex; flex-direction: column; gap: 6px; }
.mm-size-pick label {
    font-size: 12px; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.6px; flex: none;
}
.mm-size-select {
    background: #0b1220; color: #fff;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 9px;
    padding: 9px 12px; font-size: 15px; font-family: inherit;
    min-width: 150px; cursor: pointer;
}
.mm-size-select:focus { outline: none; border-color: #f97316; }
.mm-color-row { margin-top: 18px; }
.mm-color-row > label {
    display: block; font-size: 12px; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px;
}
.mm-color-current { color: #fff; text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
.mm-color-current.is-out { color: #fca5a5; }
.mm-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.mm-swatch {
    position: relative; width: 34px; height: 34px; border-radius: 50%; padding: 0;
    border: 2px solid rgba(255,255,255,0.25); cursor: pointer; background-clip: padding-box;
    transition: border-color .12s, box-shadow .12s;
}
.mm-swatch.selected { border-color: #f97316; box-shadow: 0 0 0 2px rgba(249,115,22,0.35); }
.mm-swatch.out { cursor: not-allowed; border-style: dashed; }
.mm-swatch.out::after {
    content: ''; position: absolute; inset: -2px; border-radius: 50%;
    background: linear-gradient(to top right, transparent calc(50% - 2px), #f8fafc 50%, transparent calc(50% + 2px));
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.6));
}
@media (hover: hover) {
    .mm-swatch:not(.out):hover { border-color: rgba(255,255,255,0.6); }
    /* Instant orange tooltip on hover. Uses ::before so out-of-stock swatches keep
       their diagonal strike on ::after - one pseudo each, no collision. */
    .mm-swatch[data-tip]:hover::before {
        content: attr(data-tip);
        position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
        background: #f97316; color: #0a0a0a;
        font-size: 12px; font-weight: 700; white-space: nowrap;
        padding: 5px 10px; border-radius: 7px; pointer-events: none; z-index: 6;
        box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    }
}
.mm-sizechart-btn {
    background: none; border: 0; color: #fb923c; cursor: pointer;
    font-size: 13px; font-weight: 600; font-family: inherit;
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 2px;
}
@media (hover: hover) {
    .mm-sizechart-btn:hover { text-decoration: underline; }
}
.cart-size {
    display: inline-block; margin-right: 7px;
    background: rgba(249,115,22,0.13); color: #fb923c;
    font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
    padding: 1px 6px; border-radius: 5px; vertical-align: 1px;
}
.cart-color {
    display: inline-flex; align-items: center; gap: 4px; margin-right: 7px;
    background: rgba(255,255,255,0.07); color: #cbd5e1;
    font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
    padding: 1px 6px 1px 4px; border-radius: 5px; vertical-align: 1px;
}
.cart-color-dot {
    width: 9px; height: 9px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35); flex-shrink: 0;
}

/* Size chart overlay - sits on top of the product modal */
.sizechart-modal { z-index: 1001; }
.sizechart-inner {
    position: relative;
    background: #0f172a; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; width: 100%; max-width: 420px;
    max-height: 90vh; overflow-y: auto; padding: 28px;
}
.sizechart-inner h2 {
    font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 6px;
    display: flex; align-items: center; gap: 9px;
}
.sizechart-inner .sc-sub { color: #94a3b8; font-size: 13px; line-height: 1.5; margin: 0 0 18px; }
.sc-table { width: 100%; border-collapse: collapse; }
.sc-table th {
    text-align: left; font-size: 11px; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.6px;
    padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sc-table td {
    padding: 11px 10px; font-size: 15px; color: #e2e8f0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sc-table td:first-child { font-weight: 700; color: #fff; }

/* --- Modal image gallery --- */
.mm-main { position: absolute; inset: 0; }
.mm-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mm-main .merch-ph { font-size: clamp(24px, 5vw, 44px); }
.mm-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,0.5); color: #fff; border: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; cursor: pointer; z-index: 2;
    backdrop-filter: blur(4px);
}
@media (hover: hover) {
    .mm-arrow:hover { background: rgba(0,0,0,0.75); }
}
.mm-prev { left: 10px; } .mm-next { right: 10px; }
.mm-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: none; gap: 6px; z-index: 2;
}
.mm-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.mm-dots span.active { background: #f97316; }
.mm-thumbs {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    display: flex; gap: 6px; padding: 8px; overflow-x: auto;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
}
.mm-thumb {
    flex: 0 0 auto; width: 46px; height: 46px; padding: 0;
    border: 2px solid transparent; border-radius: 6px; overflow: hidden;
    background: #1e293b; cursor: pointer;
}
.mm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-thumb.active { border-color: #f97316; }

@media (max-width: 640px) {
    /* Whole modal scrolls as one (image scrolls up with the details) instead of a
       cramped inner scroll region; the price + Add stay reachable as a sticky footer. */
    .merch-modal-inner { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .merch-modal-img { aspect-ratio: 1 / 1; }
    .merch-modal-body { padding: 20px; overflow: visible; }
    .merch-modal-foot {
        position: sticky; bottom: 0; z-index: 3;
        margin: 22px -20px -20px; padding: 14px 20px;
        background: #0f172a; border-top: 1px solid rgba(255,255,255,0.1);
    }
    /* Mobile: arrows + dots + swipe instead of the thumbnail strip */
    .mm-thumbs { display: none; }
    .mm-arrow { display: flex; }
    .mm-dots { display: flex; }
}

/* Floating cart button */
.cart-fab {
    position: fixed; bottom: 22px; right: 22px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #f97316; color: #fff; border: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    cursor: pointer; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    z-index: 998;
}
@media (hover: hover) {
    .cart-fab:hover { background: #ea580c; }
}
.cart-fab .cart-count {
    position: absolute; top: -4px; right: -4px;
    background: #fff; color: #f97316;
    font-size: 12px; font-weight: 800;
    min-width: 22px; height: 22px; border-radius: 11px;
    padding: 0 6px;
    display: none; align-items: center; justify-content: center;
}
/* Fly-to-cart animation: a full-size product ghost shrinks into the cart, then the FAB bumps */
.fly-ghost {
    position: fixed; z-index: 1200;
    border-radius: 12px; transform-origin: center center;
    background-color: #1e293b; background-size: cover; background-position: center;
    color: #f97316; font-size: 40px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: none; opacity: 0.95;
    transition: transform 0.8s cubic-bezier(0.4,0,0.2,1), opacity 0.8s ease;
}
@keyframes cartBump {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.cart-fab.cart-bump { animation: cartBump 0.4s ease; }

/* Cart drawer */
.cart-drawer {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: stretch; justify-content: flex-end;
    /* Closed: invisible + non-interactive; visibility delays so the slide-out finishes first */
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.cart-drawer.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s;
}
.cart-drawer-inner {
    width: 100%; max-width: 420px; background: #0f172a;
    display: flex; flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.08);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cart-drawer.open .cart-drawer-inner { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
    .cart-drawer, .cart-drawer-inner { transition: none; }
}

/* Styled clear-cart confirm (replaces the native browser confirm) */
.cart-confirm {
    position: fixed; inset: 0; z-index: 1300;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.cart-confirm.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.2s ease; }
.cart-confirm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.cart-confirm-box {
    position: relative; z-index: 1; width: 90%; max-width: 380px;
    background: #0f172a; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px; padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: translateY(8px); transition: transform 0.2s ease;
}
.cart-confirm.open .cart-confirm-box { transform: translateY(0); }
.cart-confirm-box h3 { color: #fff; font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.cart-confirm-box p { color: #94a3b8; font-size: 14px; line-height: 1.5; margin: 0 0 20px; }
.cart-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.cart-confirm-actions button {
    padding: 9px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer;
    border: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px;
}
.cc-cancel { background: rgba(255,255,255,0.06); color: #cbd5e1; border-color: rgba(255,255,255,0.12); }
@media (hover: hover) {
    .cc-cancel:hover { background: rgba(255,255,255,0.1); color: #fff; }
}
.cc-confirm { background: #dc2626; color: #fff; }
@media (hover: hover) {
    .cc-confirm:hover { background: #b91c1c; }
}
/* Order success popup */
.os-check {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(34,197,94,0.18); color: #22c55e;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin: 0 auto;
}
.os-done {
    background: #f97316; color: #fff; border: 0;
    padding: 11px 28px; border-radius: 9px;
    font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
    margin-top: 4px;
}
@media (hover: hover) {
    .os-done:hover { background: #ea580c; }
}
.os-done:focus-visible { outline: 2px solid #fdba74; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .cart-confirm, .cart-confirm-box { transition: none; }
}
.cart-drawer-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cart-drawer-head h2 { font-size: 20px; font-weight: 800; color: #fff; margin: 0; }
.cart-drawer-head button {
    background: none; border: 0; color: #94a3b8;
    font-size: 22px; cursor: pointer; padding: 4px 8px;
}
@media (hover: hover) {
    .cart-drawer-head button:hover { color: #fff; }
}
.cart-head-actions { display: flex; align-items: center; gap: 4px; }
.cart-drawer-head .cart-clear {
    font-size: 12px; font-weight: 600; color: #f87171;
    display: inline-flex; align-items: center; gap: 5px;
}
@media (hover: hover) {
    .cart-drawer-head .cart-clear:hover { color: #fca5a5; }
}
.cart-drawer-head .cart-clear i { font-size: 13px; }
/* Items + checkout form scroll together; the foot (total + button) stays pinned. */
.cart-drawer-scroll { flex: 1; overflow-y: auto; }
.cart-drawer-body { padding: 18px 22px; }
.cart-empty { color: #64748b; text-align: center; padding: 40px 0; }

.cart-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-line {
    display: grid; grid-template-columns: 48px 1fr auto auto auto;
    gap: 12px; align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-line-remove {
    background: none; border: 0; color: #64748b; cursor: pointer;
    font-size: 13px; padding: 4px; line-height: 1;
}
@media (hover: hover) {
    .cart-line-remove:hover { color: #f87171; }
}
.cart-thumb {
    width: 48px; height: 48px; border-radius: 8px;
    background: linear-gradient(135deg, #1f2937, #111827);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-thumb-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #475569; font-size: 18px;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line-name { color: #fff; font-weight: 600; font-size: 14px; }
.cart-line-meta { color: #94a3b8; font-size: 12px; }
.cart-line-qty { display: flex; align-items: center; gap: 8px; }
.cart-line-qty button {
    width: 26px; height: 26px; border-radius: 6px;
    background: rgba(255,255,255,0.06); color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer; font-weight: 700; font-size: 14px;
}
@media (hover: hover) {
    .cart-line-qty button:hover { background: rgba(249,115,22,0.2); border-color: #f97316; }
}
.cart-line-qty button:disabled {
    opacity: 0.35; cursor: not-allowed;
    background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12);
}
.cart-line-qty span { min-width: 18px; text-align: center; color: #fff; font-weight: 600; }
.cart-cap {
    display: inline-block; margin-left: 6px;
    color: #fbbf24; font-size: 11px; font-weight: 600;
}
.cart-line-total { color: #f97316; font-weight: 700; font-size: 14px; }

.cart-drawer-foot {
    padding: 18px 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.cart-total-row {
    display: flex; justify-content: space-between; align-items: center;
    color: #fff; font-weight: 700; font-size: 16px;
    margin-bottom: 12px;
}
.cart-total-row .cart-total { color: #f97316; font-size: 20px; }
.cart-checkout {
    width: 100%; padding: 12px; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.cart-foot-note {
    color: #64748b; font-size: 12px; line-height: 1.4;
    margin: 10px 0 0; text-align: center;
}
.checkout-form { padding: 0 22px 16px; }
.checkout-form .co-label {
    display: block; font-size: 12px; font-weight: 600;
    color: #94a3b8; margin: 12px 0 5px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.checkout-form .co-label .req { color: #f87171; }
.checkout-form input[type=text],
.checkout-form input[type=email],
.checkout-form input[type=tel],
.checkout-form textarea {
    width: 100%; padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff; border-radius: 7px;
    font-size: 14px; font-family: inherit;
}
.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none; border-color: #f97316;
}
.checkout-form textarea { resize: vertical; min-height: 56px; }
.co-radio-group {
    display: flex; flex-direction: column; gap: 6px;
}
.co-radio {
    display: flex; align-items: center; gap: 8px;
    color: #cbd5e1; font-size: 13px;
    padding: 8px 10px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
}
.co-radio:has(input:checked) {
    border-color: rgba(249,115,22,0.45);
    background: rgba(249,115,22,0.06);
}
.co-radio input { accent-color: #f97316; }
.cf-honey { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; width: 0; }
.cf-msg { margin-top: 10px; font-size: 13px; text-align: center; }
.cf-msg.ok  { color: #4ade80; }
.cf-msg.err { color: #f87171; }

