/* ==========================================================================
   Advanced Aminos — brand design system
   Deep matte black ground, frosted white surfaces, four neon accents used in
   even rotation. Bubbly geometry, restrained glass, controlled glow.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --black:  #050505;
  --white:  #F7F9FC;
  --yellow: #FFD400;
  --orange: #FF6A00;
  --blue:   #008CFF;
  --pink:   #FF2F92;

  /* Accent variants that stay legible as TEXT on light surfaces.
     The neon values above are for dark grounds and for fills only. */
  --yellow-ink: #8A6A00;
  --orange-ink: #C24E00;
  --blue-ink:   #0068C0;
  --pink-ink:   #C4166B;

  /* Ground + elevation */
  --bg:        #050505;
  --bg-raised: #0C0D10;
  --bg-sunken: #000000;
  --surface:        rgba(247, 249, 252, 0.05);
  --surface-strong: rgba(247, 249, 252, 0.09);
  --hairline:       rgba(247, 249, 252, 0.12);
  --hairline-soft:  rgba(247, 249, 252, 0.07);

  /* Frosted light panels (content-dense areas) */
  --panel:      #FFFFFF;
  --panel-tint: #F3F6FB;
  --panel-line: #E4E9F2;

  /* Text */
  --ink:        #F7F9FC;
  --ink-muted:  #A7B0BE;
  --ink-faint:  #6E7889;
  --ink-dark:       #14161A;
  --ink-dark-muted: #59616F;

  /* Status */
  --ok:    #12B76A;
  --warn:  #FF6A00;
  --danger:#E5484D;
  --gray:  #8A93A3;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, .68, 0, 1);
  --fast: .16s;
  --mid:  .28s;

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;

  /* Default card accent; overridden per-card */
  --accent: var(--blue);
  --accent-ink: var(--blue-ink);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
img, picture, svg, video { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

body {
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  /* Nothing may push the page sideways on mobile. */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Accessibility ──────────────────────────────────────────────────────── */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 200;
  background: var(--yellow); color: #000; font-weight: 700;
  padding: 12px 20px; border-radius: var(--r-pill);
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -.022em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.08rem; letter-spacing: -.01em; }
p  { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-muted);
}
.lede { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: var(--ink-muted); line-height: 1.65; }
.muted { color: var(--ink-muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* The logo wordmark: wide-tracked geometric caps, as in the AA mark. */
.wordmark {
  font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  font-size: .9rem; white-space: nowrap;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 108px); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-top: 14px; }
.stack   { display: grid; gap: 16px; }
.stack-lg{ display: grid; gap: 28px; }
.row     { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-end { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.spread  { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid    { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid-3  { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2  { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.center  { text-align: center; }
.center .section-head { margin-inline: auto; }

/* ── Amino-chain motif ──────────────────────────────────────────────────────
   The recurring brand device: glossy neon spheres joined by glowing bonds.
   Used as dividers, accents, loaders and background decoration. */
.chain { display: inline-flex; align-items: center; gap: 0; }
.chain .node {
  width: var(--node, 12px); height: var(--node, 12px); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff9 0 12%, var(--c) 46%, color-mix(in srgb, var(--c) 62%, #000) 100%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent),
              inset 0 -1px 3px rgba(0,0,0,.35);
  flex: none;
}
.chain .bond {
  height: 2px; width: var(--bond, 26px);
  background: linear-gradient(90deg, var(--from), var(--to));
  box-shadow: 0 0 8px color-mix(in srgb, var(--from) 45%, transparent);
  flex: none;
}
.chain .node:nth-child(1) { --c: var(--yellow); }
.chain .node:nth-child(3) { --c: var(--orange); }
.chain .node:nth-child(5) { --c: var(--blue); }
.chain .node:nth-child(7) { --c: var(--pink); }
.chain .bond:nth-child(2) { --from: var(--yellow); --to: var(--orange); }
.chain .bond:nth-child(4) { --from: var(--orange); --to: var(--blue); }
.chain .bond:nth-child(6) { --from: var(--blue); --to: var(--pink); }

/* Section divider built from the chain */
.divider { display: flex; align-items: center; gap: 18px; padding-block: 8px; }
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

/* Chain loader — the same motif, animated */
.chain-loader { --node: 10px; --bond: 18px; }
.chain-loader .node { animation: nodePulse 1.15s var(--ease) infinite; }
.chain-loader .node:nth-child(3) { animation-delay: .12s; }
.chain-loader .node:nth-child(5) { animation-delay: .24s; }
.chain-loader .node:nth-child(7) { animation-delay: .36s; }
@keyframes nodePulse {
  0%, 100% { transform: scale(.72); opacity: .45; }
  45%      { transform: scale(1.12); opacity: 1; }
}

/* Ambient background spheres. Purely decorative, never over text. */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(48px); opacity: .3;
  background: radial-gradient(circle at 35% 30%, var(--c), transparent 68%);
}
.section > .wrap, .section > .orbs + .wrap { position: relative; z-index: 1; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--surface-strong);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 26px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .97rem; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--fast) var(--ease), box-shadow var(--mid) var(--ease),
              background-color var(--fast) var(--ease), filter var(--fast) var(--ease);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-bg: var(--yellow); --btn-fg: #120E00;
  box-shadow: 0 6px 22px rgba(255, 212, 0, .26);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 30px rgba(255, 212, 0, .38); filter: brightness(1.05); }

.btn-blue  { --btn-bg: var(--blue);   --btn-fg: #fff; box-shadow: 0 6px 22px rgba(0,140,255,.3); }
.btn-pink  { --btn-bg: var(--pink);   --btn-fg: #fff; box-shadow: 0 6px 22px rgba(255,47,146,.3); }
.btn-orange{ --btn-bg: var(--orange); --btn-fg: #fff; box-shadow: 0 6px 22px rgba(255,106,0,.3); }
.btn-blue:hover:not(:disabled)   { box-shadow: 0 10px 30px rgba(0,140,255,.42); }
.btn-pink:hover:not(:disabled)   { box-shadow: 0 10px 30px rgba(255,47,146,.42); }
.btn-orange:hover:not(:disabled) { box-shadow: 0 10px 30px rgba(255,106,0,.42); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--hairline);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover:not(:disabled) { --btn-bg: var(--surface-strong); border-color: rgba(247,249,252,.28); }

.btn-danger { --btn-bg: rgba(229,72,77,.14); --btn-fg: #FF8A8D; border-color: rgba(229,72,77,.35); }
.btn-danger:hover:not(:disabled) { --btn-bg: var(--danger); --btn-fg: #fff; }

.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .87rem; }
.btn-lg { min-height: 56px; padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* On light panels, ghost buttons need dark ink. */
.panel .btn-ghost { --btn-fg: var(--ink-dark); border-color: var(--panel-line); }
.panel .btn-ghost:hover:not(:disabled) { --btn-bg: var(--panel-tint); }

/* ── Surfaces ───────────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 30px);
  transition: transform var(--mid) var(--ease), border-color var(--mid) var(--ease),
              box-shadow var(--mid) var(--ease), background-color var(--mid) var(--ease);
}
.card-glow:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 16px 44px -14px color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--surface-strong);
}

/* Frosted light panel for dense, read-heavy content */
.panel {
  background: var(--panel);
  color: var(--ink-dark);
  border-radius: var(--r-lg);
  border: 1px solid var(--panel-line);
  padding: clamp(20px, 2.6vw, 30px);
}
.panel h1, .panel h2, .panel h3, .panel h4 { color: var(--ink-dark); }
.panel .muted { color: var(--ink-dark-muted); }

/* Restrained glass — used only on the nav and small overlays, never on
   anything carrying long-form text. */
.glass {
  background: rgba(5, 5, 5, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--hairline-soft);
}
@supports not (backdrop-filter: blur(1px)) { .glass { background: rgba(5,5,5,.96); } }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 60; }
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.nav-logo svg { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 9px 15px; border-radius: var(--r-pill); text-decoration: none;
  font-weight: 500; font-size: .94rem; color: var(--ink-muted);
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); background: var(--surface-strong); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px;
  display: grid; place-items: center; padding: 0 5px;
  background: var(--pink); color: #fff; font-size: .7rem; font-weight: 800;
  border-radius: var(--r-pill); border: 2px solid var(--bg);
}
.cart-count[hidden] { display: none; }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(5,5,5,.98); backdrop-filter: blur(20px);
    padding: 14px var(--gutter) 24px;
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 13px 15px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(52px, 9vw, 104px) clamp(48px, 7vw, 84px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 60px); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.06fr .94fr; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(96deg, var(--yellow), var(--orange) 42%, var(--pink) 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cta { margin-top: 32px; }
.hero-micro { margin-top: 20px; font-size: .88rem; color: var(--ink-faint); }
.hero-art { display: grid; place-items: center; }

/* ── Trust strip ────────────────────────────────────────────────────────── */
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-icon {
  flex: none; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--accent);
}
.trust-item h3 { font-size: 1.05rem; margin-bottom: 5px; }

/* ── Product cards ──────────────────────────────────────────────────────── */
.product-card {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden; text-decoration: none; color: inherit;
}
.product-media {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 66%),
    var(--bg-raised);
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-media img { transition: transform var(--mid) var(--ease); }

/* Branded placeholder when the owner has not uploaded an image yet */
.product-placeholder { display: grid; place-items: center; gap: 12px; padding: 20px; }
.product-placeholder .mono {
  font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: .06em;
  color: var(--accent); text-shadow: 0 0 26px color-mix(in srgb, var(--accent) 55%, transparent);
}

.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-name { font-size: 1.3rem; font-weight: 700; }
.product-desc { color: var(--ink-muted); font-size: .93rem; line-height: 1.55; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.price { font-size: 1.22rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.price small { font-size: .72rem; font-weight: 600; color: var(--ink-faint); display: block; letter-spacing: .04em; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: .73rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.badge-featured { background: var(--yellow); color: #120E00; }
.badge-accent   { background: color-mix(in srgb, var(--accent) 20%, transparent);
                  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.product-media .badge { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* Stock indicator — always paired with text, never colour alone */
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; }
.stock::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor;
                 box-shadow: 0 0 8px currentColor; flex: none; }
.stock-in_stock     { color: var(--ok); }
.stock-low_stock    { color: var(--orange); }
.stock-out_of_stock { color: var(--danger); }
.stock-unavailable, .stock-inactive { color: var(--gray); }

/* ── Status pills (orders) ──────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill-pink   { background: rgba(255,47,146,.16); color: #FF6FB0; }
.pill-orange { background: rgba(255,106,0,.16);  color: #FF9248; }
.pill-blue   { background: rgba(0,140,255,.16);  color: #4FB0FF; }
.pill-green  { background: rgba(18,183,106,.16); color: #3BD68C; }
.pill-red    { background: rgba(229,72,77,.16);  color: #FF8A8D; }
.pill-gray   { background: rgba(138,147,163,.16);color: #AAB2C0; }
/* On light panels the same pills need darker ink */
.panel .pill-pink   { background: #FFE6F2; color: var(--pink-ink); }
.panel .pill-orange { background: #FFEDE0; color: var(--orange-ink); }
.panel .pill-blue   { background: #E1F0FF; color: var(--blue-ink); }
.panel .pill-green  { background: #DFF6EA; color: #0A7A46; }
.panel .pill-red    { background: #FDE7E8; color: #A81E22; }
.panel .pill-gray   { background: #ECEFF4; color: #4B5563; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 7px; }
.field > label, .label { font-size: .86rem; font-weight: 600; color: var(--ink-muted); }
.panel .field > label, .panel .label { color: var(--ink-dark-muted); }

.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(247,249,252,.24); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,140,255,.2); background: var(--surface-strong);
}
.select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23A7B0BE' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 17px center;
}
.select option { background: #0C0D10; color: var(--ink); }

/* Light-panel variants */
.panel .input, .panel .select, .panel .textarea {
  background: #fff; color: var(--ink-dark); border-color: var(--panel-line);
}
.panel .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2359616F' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 17px center;
}
.panel .select option { background: #fff; color: var(--ink-dark); }
.panel .input::placeholder, .panel .textarea::placeholder { color: #98A2B0; }

.field-error { color: #FF9A9C; font-size: .84rem; font-weight: 500; }
.panel .field-error { color: #A81E22; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger); box-shadow: 0 0 0 4px rgba(229,72,77,.16);
}
.hint { font-size: .82rem; color: var(--ink-faint); }
.panel .hint { color: #7A8494; }

.checkbox { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.checkbox input { width: 21px; height: 21px; margin-top: 2px; accent-color: var(--blue); flex: none; cursor: pointer; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--hairline); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.15rem; font-weight: 700; color: var(--ink-muted); }
.qty button:hover:not(:disabled) { background: var(--surface-strong); color: var(--ink); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty input { width: 52px; height: 44px; text-align: center; border: 0; background: none; font-weight: 700;
             font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.panel .qty { border-color: var(--panel-line); }
.panel .qty button { color: var(--ink-dark-muted); }
.panel .qty button:hover:not(:disabled) { background: var(--panel-tint); color: var(--ink-dark); }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.step { position: relative; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 800; margin-bottom: 18px;
  background: radial-gradient(circle at 34% 28%, #ffffff55 0 14%, var(--accent) 48%, color-mix(in srgb, var(--accent) 58%, #000) 100%);
  color: #fff; box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ── Accordion (FAQ) ────────────────────────────────────────────────────── */
.acc { border: 1px solid var(--hairline-soft); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.acc + .acc { margin-top: 10px; }
.acc summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background-color var(--fast) var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--surface-strong); }
.acc summary::after {
  content: ''; width: 11px; height: 11px; flex: none;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--fast) var(--ease);
}
.acc[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.acc .acc-body { padding: 0 22px 20px; color: var(--ink-muted); line-height: 1.7; }

/* ── Tables → cards on mobile ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th, table.data td { padding: 13px 14px; text-align: left; }
table.data th {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-dark-muted); border-bottom: 2px solid var(--panel-line); white-space: nowrap;
}
table.data td { border-bottom: 1px solid var(--panel-line); vertical-align: middle; }
table.data tbody tr:hover { background: var(--panel-tint); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { display: none; }
  table.data tr {
    border: 1px solid var(--panel-line); border-radius: var(--r-md);
    padding: 14px 16px; margin-bottom: 12px; background: #fff;
  }
  table.data td { border: 0; padding: 7px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  table.data td::before {
    content: attr(data-label); font-weight: 700; font-size: .74rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-dark-muted); text-align: left; flex: none;
  }
  table.data td:has(> .row-actions) { justify-content: flex-end; }
}

/* ── States ─────────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: clamp(36px, 7vw, 72px) 20px; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--ink-muted); max-width: 46ch; margin: 0 auto 22px; }

.skeleton {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-strong) 50%, var(--surface) 70%);
  background-size: 220% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r-md);
}
@keyframes shimmer { to { background-position: -220% 0; } }

.alert { border-radius: var(--r-md); padding: 15px 18px; font-size: .92rem; line-height: 1.6; border: 1px solid; }
.alert-error { background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.36); color: #FFB3B5; }
.alert-ok    { background: rgba(18,183,106,.12); border-color: rgba(18,183,106,.36); color: #6FE3AC; }
.alert-warn  { background: rgba(255,106,0,.12); border-color: rgba(255,106,0,.36); color: #FFB27A; }
.alert-info  { background: rgba(0,140,255,.12); border-color: rgba(0,140,255,.36); color: #8CCBFF; }
.panel .alert-error { background: #FDE7E8; border-color: #F5B5B7; color: #8E1A1E; }
.panel .alert-ok    { background: #DFF6EA; border-color: #A9E3C6; color: #08653A; }
.panel .alert-warn  { background: #FFEDE0; border-color: #FFC79A; color: #8A3800; }
.panel .alert-info  { background: #E1F0FF; border-color: #A8D4FF; color: #00518F; }

/* Toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 10px;
          max-width: min(380px, calc(100vw - 32px)); }
.toast {
  background: #101216; border: 1px solid var(--hairline); border-left: 4px solid var(--accent);
  border-radius: var(--r-md); padding: 14px 18px; font-size: .92rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); animation: toastIn .26s var(--ease);
}
.toast-ok    { --accent: var(--ok); }
.toast-error { --accent: var(--danger); }
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } }

/* ── Floating contact (mobile) ──────────────────────────────────────────── */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 55;
  display: none; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: var(--r-pill);
  background: var(--pink); color: #fff; font-weight: 700; font-size: .92rem;
  text-decoration: none; box-shadow: 0 10px 30px rgba(255,47,146,.42);
}
@media (max-width: 900px) { .fab { display: inline-flex; } }
/* Never let the FAB sit over a sticky action bar or the bottom of a form. */
body:has(.sticky-bar) .fab { bottom: calc(16px + var(--sticky-h, 74px)); }

.sticky-bar {
  position: sticky; bottom: 0; z-index: 50;
  background: rgba(5,5,5,.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--hairline); padding: 13px var(--gutter);
  padding-bottom: max(13px, env(safe-area-inset-bottom));
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hairline-soft); padding-block: clamp(40px, 6vw, 64px) 32px; background: var(--bg-sunken); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer h4 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer a { color: var(--ink-muted); text-decoration: none; font-size: .93rem; display: block; padding: 5px 0; }
.footer a:hover { color: var(--ink); }
.footer-legal { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--hairline-soft); }
.footer-legal p { font-size: .8rem; color: var(--ink-faint); line-height: 1.7; max-width: 78ch; }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.hidden, [hidden] { display: none !important; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex-1 { flex: 1; }
.nowrap { white-space: nowrap; }
.accent-yellow { --accent: var(--yellow); --accent-ink: var(--yellow-ink); }
.accent-orange { --accent: var(--orange); --accent-ink: var(--orange-ink); }
.accent-blue   { --accent: var(--blue);   --accent-ink: var(--blue-ink); }
.accent-pink   { --accent: var(--pink);   --accent-ink: var(--pink-ink); }
