/* =====================================================================
   GrazeX — core design system  ·  "Golden hour"
   Every page floats over a full-screen veld scene (.page-bg) as layers of
   smoked glass. Feeds glows orange, Ranch glows green. Shared by every area;
   area files (feeds.css, ranch.css, ...) only add page-specific layout.
   Mobile-first. Heavy effects (blur on repeated cards, spotlight, tilt) are
   desktop-only; reduced motion and reduced transparency are respected.
   ===================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/inter-400-800-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/barlow-condensed-800-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("../fonts/barlow-condensed-800-italic-latin.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #060708;
  --bg-2: #0b0d0e;
  --panel: #101314;
  --panel-2: #161a1b;
  --panel-3: #1d2223;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f7f6f1;
  --muted: #b4bab5;
  --dim: #868e89;
  --orange: #ff7a00;
  --orange-2: #ffa31a;
  --orange-3: #ffd27a;
  --green: #86d51a;
  --green-2: #b5f04f;
  --green-deep: #3c7f19;
  --chrome: #d7d9d8;
  --danger: #ff5f52;
  --warning: #ffb020;
  --success: #86d51a;
  --info: #7cc0ff;

  /* division accent (gateway default = orange) */
  --accent: var(--orange);
  --accent-2: var(--orange-2);
  --accent-3: var(--orange-3);
  --accent-ink: #160b02;
  --accent-soft: rgba(255, 122, 0, .13);
  --accent-line: rgba(255, 122, 0, .42);
  --accent-glow: rgba(255, 122, 0, .32);
  --accent-rgb: 255, 122, 0;

  /* glass */
  --glass-fill: rgba(11, 13, 14, .56);
  --glass-fill-strong: rgba(9, 11, 12, .78);
  --glass-blur: blur(18px) saturate(1.4);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .02);
  --card-fill: rgba(11, 13, 14, .58);
  --card-blur: blur(16px) saturate(1.35);

  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Inter", "Arial Narrow", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .4);
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, .6);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  --nav-h: 64px;
  --container: 1240px;
}

body[data-division="ranch"] {
  --accent: var(--green);
  --accent-2: var(--green-2);
  --accent-3: #dcfca0;
  --accent-ink: #0b1405;
  --accent-soft: rgba(134, 213, 26, .13);
  --accent-line: rgba(134, 213, 26, .42);
  --accent-glow: rgba(134, 213, 26, .28);
  --accent-rgb: 134, 213, 26;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --nav-h: 72px; } }
/* Phones: repeated cards skip the live blur (smooth scrolling on any Android), the header and sheets keep it */
@media (max-width: 899px) { :root { --card-fill: rgba(12, 14, 15, .8); --card-blur: none; } }
@media (prefers-reduced-transparency: reduce) { :root { --glass-fill: rgba(11, 13, 14, .94); --card-fill: rgba(12, 14, 15, .95); --glass-blur: none; --card-blur: none; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.has-bg { background: transparent; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background:
    radial-gradient(circle at 12% 6%, rgba(134, 213, 26, .06), transparent 34%),
    radial-gradient(circle at 88% 22%, var(--accent-soft), transparent 32%);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.1; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07080a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .45)); border-radius: 10px; border: 2px solid #07080a; }

/* ---------- Accessibility ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Page background scene ---------- */
.page-bg { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: -3; overflow: hidden; pointer-events: none; background: #060708; }
/* core.js moves the picture (parallax) and fades it (dims as you scroll); the image itself only zooms in once */
.page-bg picture { position: absolute; inset: 0; will-change: transform, opacity; }
.page-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  transform: scale(1.1); transform-origin: 50% 30%;
  animation: bgIn 2.2s var(--ease-out) both; }
.page-bg[data-scene="home"] img { object-position: 58% 60%; }
.page-bg[data-scene="feeds"] img { object-position: 40% 58%; }
.page-bg[data-scene="ranch"] img { object-position: 35% 50%; filter: brightness(.8) saturate(1.1); }
.page-bg[data-scene="pages"] img { filter: brightness(.85); }
/* An uploaded photo is shown as it is (its focus point is set inline by head.php) */
.page-bg[data-photo] img { filter: none; }
.page-bg[data-scene="account"] img { object-position: 40% 70%; }
/* division colour grade + readability (lighter where the hero sits, deep where content lists) */
.page-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: soft-light;
  background: radial-gradient(90% 70% at 72% 18%, rgba(var(--accent-rgb), .35), transparent 62%); }
/* --bg-shade: the extra darkness chosen in Admin > Site content > Page backgrounds (0 to .8) */
.page-bg::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(rgba(6, 7, 8, var(--bg-shade, 0)), rgba(6, 7, 8, var(--bg-shade, 0))),
    linear-gradient(180deg, rgba(6, 7, 8, .5) 0%, rgba(6, 7, 8, 0) 17%, rgba(6, 7, 8, .04) 55%, rgba(6, 7, 8, .5) 80%, rgba(6, 7, 8, .85) 100%),
    radial-gradient(140% 100% at 50% 45%, transparent 52%, rgba(0, 0, 0, .5) 100%); }
/* Inner pages (forms, lists, checkout): the scene stays, a touch calmer */
body:not(.page-gateway):not(.page-store-home) .page-bg::after {
  background:
    linear-gradient(rgba(6, 7, 8, var(--bg-shade, 0)), rgba(6, 7, 8, var(--bg-shade, 0))),
    linear-gradient(180deg, rgba(6, 7, 8, .55) 0%, rgba(6, 7, 8, .2) 22%, rgba(6, 7, 8, .45) 60%, rgba(6, 7, 8, .82) 100%),
    radial-gradient(140% 100% at 50% 40%, transparent 45%, rgba(0, 0, 0, .5) 100%); }
@keyframes bgIn { from { opacity: 0; transform: scale(1.2); } }

/* ---------- Ambient effects ---------- */
.noise { position: fixed; inset: 0; opacity: .045; pointer-events: none; z-index: 999; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: -1; mix-blend-mode: screen;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%); opacity: .45;
  transform: translate(-50%, -50%); left: -600px; top: -600px; transition: opacity .3s; }
@media (hover: none) { .cursor-glow { display: none; } }
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 90; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)); box-shadow: 0 0 14px var(--accent-glow); pointer-events: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.container-narrow { max-width: 820px; }
.section { padding: 72px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.section-tight { padding: 40px 0; }
@media (min-width: 1024px) { .section-tight { padding: 56px 0; } }
.page-top { padding-top: calc(var(--nav-h) + 44px); }
.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: var(--grid-gap, 16px); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.divider { height: 1px; background: var(--line); border: 0; margin: 24px 0; }
/* The horizon: a chrome hairline with a glowing accent core (like the swoosh in the logos) */
.horizon { position: relative; height: 1px; margin: 0 auto; max-width: var(--container); border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22) 20%, var(--accent) 50%, rgba(255, 255, 255, .22) 80%, transparent); }
.horizon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40%; height: 18px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--accent-glow), transparent); filter: blur(4px); }

/* ---------- Typography ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-2); font-weight: 800; letter-spacing: .2em; font-size: 12px; text-transform: uppercase; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border: 1px solid var(--accent-line);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .2), rgba(var(--accent-rgb), .06)); border-radius: 999px; color: var(--accent-3);
  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 30px rgba(var(--accent-rgb), .15); }
.eyebrow .dot, .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(134, 213, 26, .7), 0 0 14px var(--green); flex: none;
  animation: livePulse 2.4s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(134, 213, 26, .6), 0 0 14px var(--green); } 70%, 100% { box-shadow: 0 0 0 9px rgba(134, 213, 26, 0), 0 0 14px var(--green); } }
.display-1, .display-2, .display-3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; letter-spacing: -.005em; line-height: .86; }
.display-1 { font-size: clamp(60px, 14vw, 168px); }
.display-2 { font-size: clamp(44px, 8.4vw, 104px); }
.display-3 { font-size: clamp(34px, 5vw, 58px); line-height: .92; }
.italic { font-style: italic; }
.text-stroke { color: transparent; -webkit-text-stroke: 1.5px rgba(247, 246, 241, .9); }
/* Metallic and fire words carry a slow travelling highlight */
.text-chrome, .text-fire, .text-grass, .text-accent-grad { -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 220% 100%; animation: sheen 9s linear infinite; }
.text-chrome { background-image: linear-gradient(100deg, #ffffff 0%, #d9dcda 18%, #8e9391 34%, #f4f5f4 48%, #b9bdbb 62%, #ffffff 76%, #d9dcda 100%); }
.text-fire { background-image: linear-gradient(100deg, #ffffff 0%, #ffe3bd 16%, var(--orange) 40%, #ffb54a 56%, #ffffff 68%, var(--orange) 86%, #ffffff 100%); }
.text-grass { background-image: linear-gradient(100deg, #ffffff 0%, #e6ffbd 16%, var(--green) 40%, #c8f56a 56%, #ffffff 68%, var(--green) 86%, #ffffff 100%); }
.text-accent-grad { background-image: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 30%, var(--accent-3) 48%, var(--accent) 66%, var(--accent-2) 100%); }
@keyframes sheen { to { background-position: -220% 0; } }
.text-accent { color: var(--accent); }
.lead { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.65; color: #c9cec9; max-width: 640px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.strong { font-weight: 800; }
.upper { text-transform: uppercase; letter-spacing: .12em; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.h3 { font-size: 22px; letter-spacing: -.01em; }
.h4 { font-size: 18px; }
.section-head { display: grid; gap: 18px; margin-bottom: 36px; }
.section-head h2 { margin-top: 10px; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr minmax(0, 480px); align-items: end; margin-bottom: 56px; } }
.prose { color: #dbe0dc; line-height: 1.75; max-width: 72ch; }
.prose h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 36px; margin: 1.4em 0 .5em; color: var(--text); }
.prose h3 { font-size: 21px; margin: 1.3em 0 .4em; color: var(--text); }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose em { color: var(--muted); }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: rgba(var(--accent-rgb), .07); border-radius: 0 12px 12px 0; }

/* ---------- Buttons ---------- */
.btn { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: var(--text); --btn-line: rgba(255, 255, 255, .18);
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 20px; border-radius: 14px; border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; font-size: 15px; letter-spacing: .02em; line-height: 1.1; text-align: center; white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .2s, border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; user-select: none; }
/* light sweep across the button on hover */
.btn::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 50%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg) translateX(-120%); transition: transform .7s var(--ease-out); }
.btn:hover::before { transform: skewX(-20deg) translateX(420%); }
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .32); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { --btn-bg: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 120%); --btn-fg: var(--accent-ink); --btn-line: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 14px 40px var(--accent-glow); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 18px 60px var(--accent-glow), 0 0 0 4px rgba(var(--accent-rgb), .14); border-color: transparent; }
.btn-orange { --btn-bg: linear-gradient(100deg, var(--orange) 0%, var(--orange-2) 60%, var(--orange-3) 120%); --btn-fg: #160b02; --btn-line: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 14px 40px rgba(255, 122, 0, .32); }
.btn-orange:hover { border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 18px 60px rgba(255, 122, 0, .42), 0 0 0 4px rgba(255, 122, 0, .14); }
.btn-green { --btn-bg: linear-gradient(100deg, var(--green) 0%, var(--green-2) 60%, #dcfca0 120%); --btn-fg: #0b1405; --btn-line: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 14px 40px rgba(134, 213, 26, .28); }
.btn-green:hover { border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 18px 60px rgba(134, 213, 26, .38), 0 0 0 4px rgba(134, 213, 26, .14); }
.btn-chrome { --btn-bg: linear-gradient(180deg, #ffffff 0%, #e2e5e3 42%, #a9aeab 100%); --btn-fg: #101211; --btn-line: transparent;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, .18), 0 14px 40px rgba(0, 0, 0, .35); }
.btn-chrome:hover { border-color: transparent; }
.btn-ghost { --btn-bg: transparent; --btn-line: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .07); }
.btn-danger { --btn-bg: rgba(255, 95, 82, .14); --btn-fg: #ffb3ad; --btn-line: rgba(255, 95, 82, .42); }
.btn-whatsapp { --btn-bg: linear-gradient(100deg, #0f7a3d, #18a957); --btn-fg: #fff; --btn-line: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 36px rgba(15, 122, 61, .35); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13px; border-radius: 11px; }
@media (max-width: 359px) { .btn-sm { white-space: normal; } } /* very narrow phones: wrap instead of overflowing the card */
.btn-lg { min-height: 58px; padding: 16px 28px; font-size: 16px; border-radius: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 12px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.link { color: var(--accent-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Icons (inline SVG sprite) ---------- */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > label, .label { font-size: 13px; font-weight: 700; color: #dbe0dc; letter-spacing: .02em; }
.label .opt { color: var(--dim); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 13px 15px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(4, 5, 6, .45); color: var(--text); font-size: 16px; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .25);
  transition: border-color .2s, box-shadow .2s, background .2s; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4bab5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.select option { background: var(--panel); }
.input::placeholder, .textarea::placeholder { color: #8b928d; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .26); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 30px rgba(var(--accent-rgb), .15); background: rgba(4, 5, 6, .6); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { color: #ff9a91; font-size: 13px; font-weight: 600; }
.hint { color: var(--dim); font-size: 13px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: #dbe0dc; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Selectable option cards (fulfilment / payment method) */
.option-cards { display: grid; gap: 10px; }
.option-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .035); cursor: pointer; transition: border-color .2s, background .2s, transform .2s, box-shadow .3s; }
.option-card:hover { border-color: rgba(255, 255, 255, .3); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card .oc-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; margin-top: 2px; transition: .2s; }
.option-card .oc-title { font-weight: 800; }
.option-card .oc-text { color: var(--muted); font-size: 14px; }
.option-card .oc-side { margin-left: auto; font-weight: 800; white-space: nowrap; }
.option-card:has(input:checked) { border-color: var(--accent); background: linear-gradient(120deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .04)); box-shadow: 0 0 0 1px var(--accent-line), 0 14px 40px rgba(var(--accent-rgb), .12); }
.option-card:has(input:checked) .oc-radio { border-color: var(--accent); box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 12px var(--accent); }
.option-card:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.option-card.is-disabled { opacity: .45; pointer-events: none; }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 13px; overflow: hidden; background: rgba(4, 5, 6, .45); }
.stepper button { width: 44px; height: 46px; border: 0; background: transparent; font-size: 20px; font-weight: 700; color: var(--text); transition: background .2s, color .2s; }
.stepper button:hover { background: rgba(var(--accent-rgb), .14); color: var(--accent-2); }
.stepper input { width: 54px; height: 46px; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 16px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-sm button { width: 36px; height: 38px; font-size: 17px; }
.stepper-sm input { width: 44px; height: 38px; font-size: 16px; }

/* ---------- Glass surfaces ---------- */
/* Cards: smoked glass over the scene, a light edge on top, and (desktop) a glow that follows the pointer (--mx/--my from core.js) */
.card { position: relative; border: 1px solid rgba(255, 255, 255, .11); border-radius: var(--radius-lg); overflow: hidden;
  background-color: var(--card-fill);
  background-image: radial-gradient(520px circle at var(--mx, -999px) var(--my, -999px), rgba(var(--accent-rgb), .12), transparent 45%), linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .012) 55%);
  -webkit-backdrop-filter: var(--card-blur); backdrop-filter: var(--card-blur); box-shadow: var(--glass-edge), 0 24px 60px rgba(0, 0, 0, .28); }
.card-pad { padding: 22px; }
@media (min-width: 720px) { .card-pad { padding: 30px; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 12, 13, .72); padding: 20px; box-shadow: var(--glass-edge); }
.glass { background: var(--glass-fill); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--glass-edge); }
.media-16x9 { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.media-16x9 img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, var(--accent-soft), transparent 62%), linear-gradient(160deg, #141815, #0a0c0b); }
.media-placeholder.mp-feeds { background: radial-gradient(circle at 50% 38%, rgba(255, 122, 0, .18), transparent 62%), linear-gradient(160deg, #1a130c, #0a0b0a); }
.media-placeholder.mp-ranch { background: radial-gradient(circle at 50% 38%, rgba(134, 213, 26, .16), transparent 62%), linear-gradient(160deg, #111a10, #0a0b0a); }
.media-placeholder .mp-logo { position: static; width: 72% !important; height: auto !important; max-width: 300px; object-fit: contain !important; padding: 0 !important;
  opacity: .34; filter: saturate(.8); transform: none !important; }
.media-placeholder .mp-label { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: rgba(255, 255, 255, .6); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.thumb .media-placeholder .mp-label, .cl-media .media-placeholder .mp-label, .gallery-thumbs .media-placeholder .mp-label { display: none; }
.thumb .media-placeholder .mp-logo, .cl-media .media-placeholder .mp-logo { width: 90% !important; opacity: .5; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-strong); background: rgba(8, 10, 11, .55); color: #dbe0dc; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.badge-accent { color: var(--accent-3); border-color: var(--accent-line); background: rgba(var(--accent-rgb), .16); }
.badge-success { color: #c8f56a; border-color: rgba(134, 213, 26, .45); background: rgba(134, 213, 26, .14); }
.badge-warning { color: #ffd27a; border-color: rgba(255, 176, 32, .45); background: rgba(255, 176, 32, .14); }
.badge-danger { color: #ffa59c; border-color: rgba(255, 95, 82, .45); background: rgba(255, 95, 82, .14); }
.badge-info { color: #b8ddff; border-color: rgba(124, 192, 255, .45); background: rgba(124, 192, 255, .14); }
.badge-solid { background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 6px 20px var(--accent-glow); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(10, 12, 13, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 700; color: #dbe0dc; white-space: nowrap; transition: .25s var(--ease); }
.chip:hover { border-color: var(--accent-line); color: var(--text); background: rgba(var(--accent-rgb), .12); }
.chip.is-active, .chip[aria-pressed="true"] { background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 26px var(--accent-glow); }
.chip .count { font-size: 12px; opacity: .7; }

/* ---------- Prices ---------- */
.price { font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.price-lg { font-size: 36px; }
.price-old { color: var(--dim); text-decoration: line-through; font-weight: 600; font-size: .7em; margin-left: 6px; }
.price-unit { color: var(--muted); font-size: 13px; font-weight: 600; }
.price-note { color: var(--dim); font-size: 12px; }

/* ---------- Site navigation ---------- */
.announce { position: relative; z-index: 60; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  font-size: 13px; font-weight: 800; text-align: center; padding: 8px var(--gutter); }
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.site-nav { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: calc(100% - 20px); max-width: 1280px;
  height: var(--nav-h); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; border-radius: 20px;
  background: rgba(8, 9, 10, .5); border-color: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 20px 50px rgba(0, 0, 0, .35); transition: top .35s var(--ease), background .35s, box-shadow .35s; }
/* a glowing line in the division colour along the bottom of the bar */
.site-nav::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .8; }
.is-scrolled .site-nav { background: rgba(7, 8, 9, .74); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 60px rgba(0, 0, 0, .5); }
body.has-announce .site-nav { top: calc(46px + env(safe-area-inset-top)); }
body.has-announce.is-scrolled .site-nav, .is-scrolled .site-nav { top: calc(10px + env(safe-area-inset-top)); }
@media (min-width: 1024px) { .site-nav { top: 18px; width: calc(100% - 36px); padding: 0 12px 0 22px; gap: 14px; border-radius: 22px; } body.has-announce .site-nav { top: 50px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 26px;
  letter-spacing: .01em; text-transform: uppercase; line-height: 1; transition: transform .3s var(--ease), filter .3s; }
.brand:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.12); }
.brand b { color: var(--orange); }
.brand-logo { display: block; height: 18px; width: auto; max-width: 52vw; object-fit: contain; object-position: left center; filter: drop-shadow(0 2px 12px rgba(255, 122, 0, .35)); }
@media (max-width: 379px) { .brand-logo { height: 15px; } }
@media (min-width: 400px) { .brand-logo { height: 20px; } }
@media (min-width: 640px) { .brand-logo { height: 26px; } }
@media (min-width: 1200px) { .brand-logo { height: 30px; } }
/* On phones the logo gets the room: search and account live in the menu */
@media (max-width: 639px) {
  .nav-actions .nav-secondary { display: none; }
  .site-nav { gap: 6px; padding: 0 6px 0 12px; }
  .site-nav .nav-icon-btn { width: 40px; height: 40px; }
  .nav-actions { gap: 2px; }
}

/* Feeds (orange) / Ranch (green) switch */
.div-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; flex: none;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); }
.ds { --ds: 255, 122, 0; --ds-ink: #160b02; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #d4d9d5; transition: background .3s, color .3s, box-shadow .3s; }
.ds-ranch { --ds: 134, 213, 26; --ds-ink: #0b1405; }
.ds-dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--ds)); box-shadow: 0 0 10px rgb(var(--ds)); transition: background .3s, box-shadow .3s; }
.ds:hover { background: rgba(var(--ds), .16); color: #fff; }
.ds[aria-current] { background: linear-gradient(100deg, rgb(var(--ds)), rgba(var(--ds), .78)); color: var(--ds-ink); box-shadow: 0 6px 22px rgba(var(--ds), .45), inset 0 1px 0 rgba(255, 255, 255, .4); }
.ds[aria-current] .ds-dot { background: var(--ds-ink); box-shadow: none; }
/* Phones: only the division you are in (on the home page the menu holds both) */
@media (max-width: 639px) {
  .div-switch { padding: 2px; }
  .div-switch:not(.has-current) { display: none; }
  .div-switch .ds:not([aria-current]) { display: none; }
  .ds { height: 28px; padding: 0 10px 0 8px; font-size: 10px; letter-spacing: .14em; gap: 6px; }
}
@media (max-width: 379px) { .ds { padding: 0 8px 0 7px; font-size: 9px; letter-spacing: .1em; } .ds-dot { width: 6px; height: 6px; } }
@media (max-width: 339px) { .div-switch { display: none !important; } }

.nav-links { display: none; gap: 2px; margin-left: auto; align-items: center; }
.nav-links a { position: relative; padding: 10px 13px; border-radius: 11px; color: #dbe0dc; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transition: color .2s, background .2s; }
.nav-links a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); box-shadow: 0 0 10px var(--accent-glow); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 4px; align-items: center; margin-left: auto; }
@media (min-width: 1024px) { .nav-links { display: flex; } .nav-actions { margin-left: 4px; } }
.nav-icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; border: 1px solid transparent; background: transparent; color: var(--text); transition: background .2s, color .2s, border-color .2s; }
.nav-icon-btn:hover { background: rgba(var(--accent-rgb), .14); border-color: var(--accent-line); color: var(--accent-3); }
.cart-count { position: absolute; top: 2px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  font-size: 11px; font-weight: 900; display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--ease); box-shadow: 0 0 12px var(--accent-glow); }
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.nav-toggle { display: inline-grid; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-cta { margin-left: 4px; }

/* Mobile menu sheet */
.menu-sheet { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(18px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: radial-gradient(120% 60% at 100% 0%, rgba(var(--accent-rgb), .18), transparent 60%), rgba(5, 6, 7, .86);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu-sheet.is-open { opacity: 1; visibility: visible; }
.menu-sheet nav { display: grid; align-content: center; gap: 2px; }
.menu-sheet nav a { font-family: var(--font-display); font-size: clamp(32px, 11vw, 46px); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1.05; padding: 6px 0; color: var(--text);
  transform: translateY(14px); opacity: 0; transition: color .2s, transform .5s var(--ease-out), opacity .5s; }
.menu-sheet.is-open nav a { transform: none; opacity: 1; }
.menu-sheet.is-open nav a:nth-child(2) { transition-delay: .04s; } .menu-sheet.is-open nav a:nth-child(3) { transition-delay: .08s; }
.menu-sheet.is-open nav a:nth-child(4) { transition-delay: .12s; } .menu-sheet.is-open nav a:nth-child(5) { transition-delay: .16s; } .menu-sheet.is-open nav a:nth-child(6) { transition-delay: .2s; }
.menu-sheet nav a:hover, .menu-sheet nav a[aria-current="page"] { color: var(--accent); }
.menu-sheet .sheet-head { display: flex; justify-content: space-between; align-items: center; }
.menu-sheet .sheet-foot { display: grid; gap: 10px; }
.sheet-divs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-div { --ds: 255, 122, 0; position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid rgba(var(--ds), .45);
  box-shadow: 0 12px 34px rgba(var(--ds), .18); isolation: isolate; }
.sd-ranch { --ds: 134, 213, 26; }
.sheet-div img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.sheet-div::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .78)); }
.sheet-div span { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 28px; line-height: .9; text-transform: uppercase; color: rgb(var(--ds)); text-shadow: 0 4px 20px rgba(0, 0, 0, .6); }
.sheet-div small { display: block; font-family: var(--font-body); font-style: normal; font-size: 10px; letter-spacing: .2em; color: #e6e9e7; }
.sheet-div[aria-current] { box-shadow: 0 0 0 2px rgb(var(--ds)), 0 12px 40px rgba(var(--ds), .35); }
.sheet-div:hover img { transform: scale(1.06); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 28px; margin-top: 40px;
  background: linear-gradient(180deg, rgba(6, 7, 8, .55), rgba(5, 6, 7, .92) 40%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, .8) 30%, rgba(255, 255, 255, .5) 50%, rgba(134, 213, 26, .8) 70%, transparent); }
.site-footer::after { content: "GRAZEX"; position: absolute; z-index: -1; left: 50%; bottom: -.18em; transform: translateX(-50%); font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(120px, 26vw, 380px); line-height: 1; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .06); white-space: nowrap; pointer-events: none; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: 15px; transition: color .2s, padding .3s var(--ease); }
.footer-grid ul a:hover { color: var(--text); padding-left: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--dim); font-size: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); letter-spacing: .06em; }
.footer-logos { display: flex; gap: 10px; margin-top: 18px; }
.footer-logos a { transition: transform .3s var(--ease), filter .3s; }
.footer-logos a:hover { transform: translateY(-3px); filter: drop-shadow(0 8px 20px rgba(255, 122, 0, .3)); }
.footer-logos img { width: 120px; mix-blend-mode: screen; }
.social { display: flex; gap: 8px; margin-top: 14px; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(6, 7, 8, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.marquee-track { display: flex; width: max-content; gap: 42px; padding: 16px 0; animation: marquee 32s linear infinite; }
.marquee-track span { font-size: 13px; font-weight: 900; letter-spacing: .22em; color: #c7cdc8; text-transform: uppercase; white-space: nowrap; }
.marquee-track i { color: var(--orange); font-style: normal; margin-left: 42px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; z-index: 200; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 10px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
@media (min-width: 720px) { .toast-stack { left: auto; right: 24px; transform: none; bottom: 24px; } body:has(.drawer.is-open) .toast-stack { right: 464px; } }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(14, 17, 18, .88);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line-strong);
  box-shadow: var(--glass-edge), var(--shadow-lg); font-size: 15px; font-weight: 600; animation: toastIn .45s var(--ease-out); }
.toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
.toast .t-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; font-weight: 900; }
.toast-success .t-icon { background: var(--green); color: #0d1408; box-shadow: 0 0 16px rgba(134, 213, 26, .5); }
.toast-error .t-icon { background: var(--danger); color: #1a0705; }
.toast-info .t-icon { background: var(--accent); color: var(--accent-ink); }
.toast .t-body { flex: 1; }
.toast .t-action { color: var(--accent-2); font-weight: 800; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Modal (uses <dialog>) & drawer ---------- */
dialog.modal { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: rgba(13, 16, 17, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--text); box-shadow: var(--glass-edge), var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px); }
/* A page (terms, privacy) in a dialog: the title and buttons stay put, the text scrolls */
dialog.modal-page { width: min(720px, calc(100% - 24px)); }
dialog.modal-page[open] { display: flex; flex-direction: column; overflow: hidden; }
dialog.modal-page .modal-body { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
dialog.modal[open] { animation: modalIn .4s var(--ease-out); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 19px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--line); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }

.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .55); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: .35s; }
.drawer { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: grid; grid-template-rows: auto 1fr auto;
  background: radial-gradient(90% 40% at 100% 0%, rgba(var(--accent-rgb), .12), transparent 70%), rgba(10, 12, 13, .9);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  border-left: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); transform: translateX(105%);
  /* Closed: hidden (out of the tab order and screen readers) once it has slid away */
  visibility: hidden; transition: transform .5s var(--ease-out), visibility 0s linear .5s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }
.drawer.is-open + .drawer-backdrop, .drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(0, 0, 0, .25); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 12px 16px; border: 0; background: none; color: var(--muted); font-weight: 800; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.tab-panel { padding-top: 22px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 12, 13, .6); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table th { color: var(--dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; background: rgba(255, 255, 255, .03); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.spec-table td:last-child { text-align: right; font-weight: 800; }

/* ---------- Timeline (order status) ---------- */
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 20px 34px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); }
.timeline li.is-done { color: var(--text); }
.timeline li.is-done::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.timeline li.is-done::before { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.timeline li.is-current::after { box-shadow: 0 0 0 6px var(--accent-soft); background: var(--accent); border-color: var(--accent); animation: pulse 2s infinite; }
.timeline .tl-title { font-weight: 800; }
.timeline .tl-time { font-size: 13px; color: var(--dim); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px transparent; } }

/* ---------- Steps (checkout progress) ---------- */
.steps { display: flex; gap: 8px; list-style: none; counter-reset: s; }
.steps li { flex: 1; display: grid; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.steps li.is-done, .steps li.is-current { color: var(--text); }
.steps li.is-done::before, .steps li.is-current::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent-glow); }

/* ---------- Skeleton / empty / alerts ---------- */
.skeleton { position: relative; overflow: hidden; background: rgba(255, 255, 255, .05); border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.empty-state { text-align: center; padding: 56px 20px; border: 1px dashed rgba(255, 255, 255, .22); border-radius: var(--radius-lg); color: var(--muted);
  background: rgba(8, 10, 11, .55); -webkit-backdrop-filter: var(--card-blur); backdrop-filter: var(--card-blur); }
.empty-state .es-icon { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow); }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(10, 12, 13, .7); font-size: 15px; }
.alert-info { border-color: rgba(124, 192, 255, .4); background: linear-gradient(120deg, rgba(124, 192, 255, .14), rgba(10, 12, 13, .7)); }
.alert-success { border-color: rgba(134, 213, 26, .4); background: linear-gradient(120deg, rgba(134, 213, 26, .14), rgba(10, 12, 13, .7)); }
.alert-warning { border-color: rgba(255, 176, 32, .45); background: linear-gradient(120deg, rgba(255, 176, 32, .14), rgba(10, 12, 13, .7)); }
.alert-danger { border-color: rgba(255, 95, 82, .45); background: linear-gradient(120deg, rgba(255, 95, 82, .15), rgba(10, 12, 13, .7)); }

/* ---------- Stat tiles ---------- */
.stat { position: relative; padding: 20px; border: 1px solid rgba(255, 255, 255, .11); border-radius: var(--radius); background: var(--card-fill);
  -webkit-backdrop-filter: var(--card-blur); backdrop-filter: var(--card-blur); box-shadow: var(--glass-edge); }
.stat .stat-value { font-family: var(--font-display); font-size: 48px; font-weight: 800; line-height: 1; color: var(--text); }
.stat .stat-label { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, #18a957, #0f7a3d); color: #fff; box-shadow: 0 14px 40px rgba(15, 122, 61, .5), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .3s var(--ease); }
.fab-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(24, 169, 87, .6); animation: ring 3s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } 70%, to { transform: scale(1.5); opacity: 0; } }
.fab-whatsapp:hover { transform: scale(1.08) rotate(-6deg); }
.fab-whatsapp svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.985); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Above the fold: visible from the first paint (never waits for JavaScript), only slides into place */
.hero-rise { animation: heroRise 1s var(--ease-out) backwards; animation-delay: var(--d, 0s); }
@keyframes heroRise { from { transform: translateY(22px); } }
.no-js .reveal { opacity: 1; transform: none; }
.fly-dot { position: fixed; z-index: 300; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); pointer-events: none;
  transition: transform .7s cubic-bezier(.5, -0.3, .7, 1.2), opacity .7s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-rise { animation: none; }
  .marquee-track { animation: none; }
  .page-bg img { animation: none; transform: scale(1.04); }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-100 { width: 100%; }
@media (max-width: 719px) { .hide-mobile { display: none !important; } }
@media (min-width: 720px) { .hide-desktop { display: none !important; } }
.icon-fill { fill: currentColor; stroke: none; }

/* Grid columns never grow wider than the screen because of wide content (tables, chip rows) */
.grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
