/* ============================================================================
   DogeGoo — Premium Anime Proxy-Shopping Storefront
   THEME SKIN  ·  v1.0
   ----------------------------------------------------------------------------
   RATIONALE
   • Palette — A calm off-white/lavender base keeps a money-handling commerce
     surface trustworthy and legible, while a single iridescent accent
     (violet → blue → pink) carries all the "anime" energy. Restraint is the
     point: the gradient appears on CTAs, focus, and hero moments, never as a
     wash behind text. Trust colors (verified blue, QC green) read instantly.
   • Type — Space Grotesk (bold, geometric, a little squared) gives a modern
     otaku-tech display voice; Plus Jakarta Sans keeps body copy clean and
     highly readable; a mono (Space Mono) flavors QC codes, SKUs and tags.
   • Motif — "Goo", a stylized Shiba, plus sparkle/star accents and subtle
     holographic edges. Used sparingly as accent, never plastered.
   • Tokens-first — everything below is a :root custom property so the whole
     look can be re-skinned or extracted onto the live Vue DOM as an overlay.
   ========================================================================== */

/* ===== DESIGN TOKENS ===================================================== */
:root {
  /* --- Brand core ------------------------------------------------------- */
  --c-violet:        #6D4AFF;
  --c-violet-600:    #5B38F0;
  --c-violet-700:    #4A28D6;
  --c-blue:          #3B82F6;
  --c-pink:          #FF5FB3;
  --c-pink-600:      #F23E9C;
  --c-cyan:          #38D6E0;

  /* Iridescent accent — the one place anime energy lives */
  --grad-accent: linear-gradient(100deg, #6D4AFF 0%, #5B7BFF 38%, #C063FF 68%, #FF5FB3 100%);
  --grad-accent-soft: linear-gradient(100deg, #ECE7FF 0%, #E7EEFF 45%, #FBE6FF 100%);
  --grad-holo: linear-gradient(115deg, #B7A6FF 0%, #9CC0FF 30%, #8DEBE8 52%, #FFC0E8 78%, #FFD7A8 100%);
  --grad-hero: radial-gradient(120% 120% at 85% 8%, #F0EAFF 0%, #F7F6FB 46%, #F7F6FB 100%);

  /* --- Neutrals / surfaces --------------------------------------------- */
  --c-bg:            #F7F6FB;   /* page */
  --c-bg-lavender:   #F0ECFB;   /* tinted sections */
  --c-surface:       #FFFFFF;   /* cards */
  --c-surface-2:     #FBFAFE;   /* nested */
  --c-surface-ink:   #1A1530;   /* dark blocks (footer/hero card) */
  --c-line:          #E7E3F2;   /* hairline */
  --c-line-strong:   #D8D2EC;

  /* --- Text ------------------------------------------------------------- */
  --c-ink:           #1A1530;   /* primary */
  --c-ink-2:         #4A4364;   /* secondary */
  --c-ink-3:         #7E7795;   /* tertiary / captions */
  --c-ink-on-accent: #FFFFFF;
  --c-ink-inverse:   #F4F1FF;

  /* --- Semantic --------------------------------------------------------- */
  --c-verified:      #2E8BFF;   /* verified shops */
  --c-verified-bg:   #E6F1FF;
  --c-qc:            #12B886;   /* QC / success */
  --c-qc-bg:         #E1F7EF;
  --c-warn:          #F59E0B;
  --c-warn-bg:       #FDF1DA;
  --c-danger:        #F2476B;
  --c-danger-bg:     #FCE6EB;
  --c-star:          #FFB020;   /* ratings */

  /* --- Typography ------------------------------------------------------- */
  --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-display: clamp(2.6rem, 1.4rem + 4.4vw, 4.5rem);
  --fs-h1:      clamp(2rem, 1.3rem + 2.4vw, 3rem);
  --fs-h2:      clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem);
  --fs-h4:      1.125rem;
  --fs-lg:      1.0625rem;
  --fs-base:    0.9375rem;   /* 15px */
  --fs-sm:      0.8125rem;   /* 13px */
  --fs-xs:      0.6875rem;   /* 11px */

  --lh-tight: 1.06;
  --lh-snug:  1.28;
  --lh-body:  1.6;

  --fw-reg: 400; --fw-med: 500; --fw-semi: 600; --fw-bold: 700;
  --tracking-tight: -0.02em;
  --tracking-label: 0.14em;

  /* --- Spacing (4px base) ---------------------------------------------- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px;
  --s-11: 80px; --s-12: 96px; --s-13: 128px;

  /* --- Radii ------------------------------------------------------------ */
  --r-xs: 8px; --r-sm: 10px; --r-md: 14px; --r-lg: 18px;
  --r-xl: 24px; --r-2xl: 32px; --r-pill: 999px;

  /* --- Shadows ---------------------------------------------------------- */
  --sh-xs: 0 1px 2px rgba(26,21,48,.06);
  --sh-sm: 0 2px 8px rgba(26,21,48,.06);
  --sh-md: 0 10px 28px rgba(26,21,48,.09);
  --sh-lg: 0 22px 54px rgba(26,21,48,.13);
  --sh-glow: 0 10px 30px rgba(109,74,255,.30);
  --sh-glow-pink: 0 10px 30px rgba(242,62,156,.26);
  --ring: 0 0 0 3px rgba(109,74,255,.35);

  /* --- Motion ----------------------------------------------------------- */
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.65,.05,.36,1);
  --dur-1: 130ms; --dur-2: 220ms; --dur-3: 380ms;

  /* --- Z-index ---------------------------------------------------------- */
  --z-base: 0; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200;
  --z-drawer: 300; --z-modal: 400; --z-toast: 500; --z-fab: 350;

  /* --- Layout ----------------------------------------------------------- */
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ===== RESET / BASE ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: var(--tracking-tight); color: var(--c-ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
::selection { background: rgba(109,74,255,.18); }

/* ===== UTILITIES ======================================================== */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-sm { padding-block: clamp(36px, 5vw, 64px); }
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.grid { display: grid; gap: var(--s-5); }
.muted { color: var(--c-ink-2); }
.dim { color: var(--c-ink-3); }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-violet);
  font-weight: 700;
}
.eyebrow.on-dark { color: #C9B8FF; }

/* Section heading block */
.head { max-width: 640px; }
.head .eyebrow { display: inline-block; margin-bottom: var(--s-3); }
.head h2 { font-size: var(--fs-h2); }
.head p { margin-top: var(--s-3); color: var(--c-ink-2); font-size: var(--fs-lg); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-7); }

/* ===== BUTTONS ========================================================== */
.btn {
  --btn-bg: var(--c-surface);
  --btn-fg: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 46px; padding-inline: var(--s-6);
  font-family: var(--font-body); font-weight: var(--fw-semi); font-size: var(--fs-base);
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease), filter var(--dur-2) var(--ease);
  white-space: nowrap; user-select: none;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--grad-accent); color: #fff; box-shadow: var(--sh-glow); background-size: 140% 140%; }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(109,74,255,.40); transform: translateY(-1px); background-position: 100% 0; }
.btn-primary:focus-visible { box-shadow: var(--sh-glow), var(--ring); }

.btn-secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line-strong); box-shadow: var(--sh-xs); }
.btn-secondary:hover { border-color: var(--c-violet); color: var(--c-violet-700); transform: translateY(-1px); box-shadow: var(--sh-sm); }

.btn-ghost { background: transparent; color: var(--c-ink-2); }
.btn-ghost:hover { background: rgba(109,74,255,.08); color: var(--c-violet-700); }

.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #db2f55; transform: translateY(-1px); box-shadow: var(--sh-glow-pink); }

.btn-sm { height: 38px; padding-inline: var(--s-4); font-size: var(--fs-sm); }
.btn-lg { height: 54px; padding-inline: var(--s-8); font-size: var(--fs-lg); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; filter: grayscale(.2); }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-secondary.is-loading::after { border-color: rgba(109,74,255,.3); border-top-color: var(--c-violet); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CHIPS / TAGS / BADGES =========================================== */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding-inline: 14px;
  border-radius: var(--r-pill);
  background: var(--c-surface); border: 1px solid var(--c-line-strong);
  font-size: var(--fs-sm); font-weight: var(--fw-med); color: var(--c-ink-2);
  transition: all var(--dur-1) var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--c-violet); color: var(--c-violet-700); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--c-ink); color: #fff; border-color: var(--c-ink);
}
.chip-accent[aria-pressed="true"], .chip-accent.is-active {
  background: var(--grad-accent); border-color: transparent; color: #fff;
}

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-xs);
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--c-bg-lavender); color: var(--c-violet-700);
}
.tag-source { background: #FFF0E6; color: #C9621B; }       /* Taobao/Weidian/1688 source */
.tag-sale   { background: var(--c-danger-bg); color: var(--c-danger); }
.tag-new    { background: var(--c-bg-lavender); color: var(--c-violet-700); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
  white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge-qc       { background: var(--c-qc-bg); color: #0c8b66; }
.badge-verified { background: var(--c-verified-bg); color: var(--c-verified); }
.badge-warn     { background: var(--c-warn-bg); color: #b97608; }

/* ===== RATING =========================================================== */
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.stars { --pct: 100%; position: relative; display: inline-block; font-size: 14px; line-height: 1; letter-spacing: 2px; font-family: Arial; }
.stars::before { content: "★★★★★"; color: var(--c-line-strong); }
.stars::after {
  content: "★★★★★"; color: var(--c-star); position: absolute; inset: 0;
  width: var(--pct); overflow: hidden; white-space: nowrap;
}
.rating b { font-weight: 700; color: var(--c-ink); }
.rating .count { color: var(--c-ink-3); }

/* ===== CARDS ============================================================ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
.card-pad { padding: var(--s-6); }

/* Product card */
.product {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-line-strong); }
.product:focus-within { box-shadow: var(--sh-md); }
.product-media { position: relative; aspect-ratio: 1/1; background: var(--c-bg-lavender); overflow: hidden; }
.product-media .ph { width: 100%; height: 100%; }
.product:hover .product-media .ph { transform: scale(1.05); }
.product-media .ph { transition: transform var(--dur-3) var(--ease); }
.product-media .overlay-tl { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.product-media .overlay-tr { position: absolute; top: 10px; right: 10px; }
.product-media .overlay-bl { position: absolute; bottom: 10px; left: 10px; }
.fav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.86); backdrop-filter: blur(6px);
  display: grid; place-items: center; box-shadow: var(--sh-xs);
  color: var(--c-ink-2); transition: all var(--dur-1) var(--ease);
}
.fav-btn:hover { color: var(--c-pink-600); transform: scale(1.08); }
.fav-btn.is-on { color: var(--c-pink-600); }
.fav-btn svg { width: 18px; height: 18px; }

.product-body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.product-shop { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--c-ink-3); }
.product-title { font-weight: var(--fw-semi); font-size: var(--fs-base); line-height: 1.35; color: var(--c-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .now { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--c-ink); }
.price .was { font-size: var(--fs-sm); color: var(--c-ink-3); text-decoration: line-through; }
.price .cur { font-size: var(--fs-xs); color: var(--c-ink-3); }

/* Shop card */
.shop-card {
  display: flex; align-items: center; gap: var(--s-4);
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-4);
  transition: all var(--dur-2) var(--ease);
}
.shop-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--c-line-strong); }
.shop-avatar { width: 56px; height: 56px; border-radius: var(--r-md); flex: none; overflow: hidden; background: var(--grad-accent-soft); }
.shop-card .info { flex: 1; min-width: 0; }
.shop-card .name { font-weight: var(--fw-bold); font-family: var(--font-display); display: flex; align-items: center; gap: 6px; }

/* ===== PLACEHOLDER IMAGE SLOTS ========================================== */
.ph {
  position: relative; display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(109,74,255,.08), rgba(255,95,179,.08)),
    var(--c-bg-lavender);
  color: var(--c-violet);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em;
  text-transform: uppercase; color: rgba(109,74,255,.5);
  position: absolute; bottom: 8px; left: 0; right: 0; text-align: center;
}
.ph svg { width: 30%; max-width: 64px; opacity: .35; }
.ph-mono { background: repeating-linear-gradient(45deg, #F0ECFB 0 10px, #F4F1FC 10px 20px); }

/* ===== SEARCH BAR ======================================================= */
.searchbar {
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--c-surface); border: 1.5px solid var(--c-line-strong);
  border-radius: var(--r-pill); padding: 5px 6px 5px var(--s-4);
  box-shadow: var(--sh-xs); transition: all var(--dur-2) var(--ease);
}
.searchbar:focus-within { border-color: var(--c-violet); box-shadow: var(--ring); }
.searchbar svg.lead { width: 18px; height: 18px; color: var(--c-ink-3); flex: none; }
.searchbar input { flex: 1; border: 0; outline: none; background: none; font-size: var(--fs-base); min-width: 0; }
.searchbar input::placeholder { color: var(--c-ink-3); }
.searchbar .img-search {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--c-violet); background: var(--c-bg-lavender); transition: all var(--dur-1) var(--ease); flex: none;
}
.searchbar .img-search:hover { background: var(--c-violet); color: #fff; }

/* ===== FORM INPUTS ====================================================== */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--c-ink-2); }
.field .hint { font-size: var(--fs-xs); color: var(--c-ink-3); }
.input, .select, .textarea {
  height: 46px; padding-inline: var(--s-4);
  background: var(--c-surface); border: 1.5px solid var(--c-line-strong);
  border-radius: var(--r-md); font-size: var(--fs-base); color: var(--c-ink);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  width: 100%;
}
.textarea { height: auto; padding: var(--s-3) var(--s-4); resize: vertical; min-height: 96px; line-height: var(--lh-body); }
.input::placeholder, .textarea::placeholder { color: var(--c-ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-line-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-violet); box-shadow: var(--ring); }
.input[aria-invalid="true"], .field.is-error .input { border-color: var(--c-danger); }
.field.is-error .hint { color: var(--c-danger); }
.input:disabled { background: var(--c-bg-lavender); color: var(--c-ink-3); cursor: not-allowed; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237E7795' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-pill); overflow: hidden; height: 46px; }
.stepper button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--c-ink-2); font-size: 18px; transition: background var(--dur-1) var(--ease); }
.stepper button:hover { background: var(--c-bg-lavender); color: var(--c-violet); }
.stepper input { width: 44px; text-align: center; border: 0; outline: none; font-weight: 700; font-family: var(--font-mono); }

/* Variant swatches */
.swatches { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.swatch {
  min-width: 48px; height: 40px; padding-inline: 12px; border-radius: var(--r-sm);
  border: 1.5px solid var(--c-line-strong); background: var(--c-surface);
  font-size: var(--fs-sm); font-weight: var(--fw-med); color: var(--c-ink-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all var(--dur-1) var(--ease);
}
.swatch:hover { border-color: var(--c-violet); }
.swatch[aria-pressed="true"] { border-color: var(--c-violet); background: var(--c-bg-lavender); color: var(--c-violet-700); box-shadow: inset 0 0 0 1px var(--c-violet); }
.swatch:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

/* ===== ACCORDION ======================================================== */
.acc { border-top: 1px solid var(--c-line); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) 0; font-weight: var(--fw-semi); font-size: var(--fs-lg);
  cursor: pointer; list-style: none; color: var(--c-ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { width: 22px; height: 22px; transition: transform var(--dur-2) var(--ease); color: var(--c-ink-3); flex: none; }
.acc[open] summary .ico { transform: rotate(45deg); color: var(--c-violet); }
.acc .acc-body { padding-bottom: var(--s-5); color: var(--c-ink-2); line-height: var(--lh-body); }

/* ===== BREADCRUMBS / PAGINATION ======================================== */
.crumbs { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--c-ink-3); flex-wrap: wrap; }
.crumbs a:hover { color: var(--c-violet); }
.crumbs .sep { color: var(--c-line-strong); }
.crumbs [aria-current] { color: var(--c-ink); font-weight: var(--fw-semi); }

.pager { display: flex; align-items: center; gap: 6px; justify-content: center; }
.pager a, .pager span {
  min-width: 40px; height: 40px; padding-inline: 10px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--fw-semi); font-size: var(--fs-sm); color: var(--c-ink-2);
  border: 1px solid transparent; transition: all var(--dur-1) var(--ease);
}
.pager a:hover { background: var(--c-surface); border-color: var(--c-line-strong); color: var(--c-violet); }
.pager [aria-current="page"] { background: var(--c-ink); color: #fff; }
.pager .gap { color: var(--c-ink-3); }

/* ===== TOAST ============================================================ */
.toast-wrap { position: fixed; right: var(--s-6); bottom: var(--s-6); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--s-3); }
.toast {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--c-surface-ink); color: #fff;
  border-radius: var(--r-md); padding: var(--s-3) var(--s-4); box-shadow: var(--sh-lg);
  min-width: 280px; max-width: 380px; font-size: var(--fs-sm);
  animation: toastIn var(--dur-3) var(--ease);
}
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } }
.toast .ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.toast-success .ico { background: rgba(18,184,134,.2); color: #4fe0ad; }
.toast-info .ico { background: rgba(109,74,255,.25); color: #b9a6ff; }
.toast strong { display: block; color: #fff; font-weight: 700; }
.toast span { color: rgba(255,255,255,.7); }

/* ===== MODAL / DRAWER =================================================== */
.scrim { position: fixed; inset: 0; background: rgba(26,21,48,.42); backdrop-filter: blur(3px); z-index: var(--z-modal); }
.modal {
  position: fixed; z-index: var(--z-modal); top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(520px, calc(100vw - 32px)); background: var(--c-surface);
  border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: var(--s-7);
}
.drawer {
  position: fixed; z-index: var(--z-drawer); top: 0; right: 0; height: 100%;
  width: min(420px, 92vw); background: var(--c-surface); box-shadow: var(--sh-lg);
  display: flex; flex-direction: column;
}

/* ===== LOGO ============================================================= */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--sh-xs); display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-mark img { width: 34px; height: 34px; }
.logo-mark.on-accent { background: var(--grad-accent); border-color: transparent; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--c-ink); }
.logo-word .gradient-text { font-weight: 700; }
.logo.on-dark .logo-word { color: #fff; }

/* ===== HEADER / NAV ===================================================== */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(247,246,251,.82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--c-line); }
.nav { display: flex; align-items: center; gap: var(--s-5); height: 72px; }
.nav .logo { flex: none; }
.nav .nav-search { flex: 1; max-width: 460px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-sm); font-weight: var(--fw-med); font-size: var(--fs-sm); color: var(--c-ink-2); transition: all var(--dur-1) var(--ease); white-space: nowrap; }
.nav-links a:hover { background: rgba(109,74,255,.08); color: var(--c-violet-700); }
.nav-links a[aria-current] { color: var(--c-ink); font-weight: var(--fw-semi); }
.nav-actions { display: flex; align-items: center; gap: var(--s-2); }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--c-ink-2); position: relative; transition: all var(--dur-1) var(--ease); }
.icon-btn:hover { background: rgba(109,74,255,.08); color: var(--c-violet-700); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; min-width: 17px; height: 17px; padding-inline: 4px; border-radius: var(--r-pill); background: var(--c-pink-600); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--c-bg); }
.nav-toggle { display: none; }

/* sub-bar of categories */
.cat-bar { border-top: 1px solid var(--c-line); }
.cat-bar .inner { display: flex; align-items: center; gap: var(--s-5); height: 50px; overflow-x: auto; scrollbar-width: none; }
.cat-bar .inner::-webkit-scrollbar { display: none; }
.cat-bar a { font-size: var(--fs-sm); font-weight: var(--fw-med); color: var(--c-ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: color var(--dur-1) var(--ease); }
.cat-bar a:hover { color: var(--c-violet); }
.cat-bar .deal { color: var(--c-pink-600); font-weight: 700; }

/* ===== FOOTER =========================================================== */
.site-footer { background: var(--c-surface-ink); color: var(--c-ink-inverse); padding-block: var(--s-11) var(--s-7); margin-top: var(--s-10); position: relative; overflow: hidden; }
.site-footer a { color: rgba(244,241,255,.66); font-size: var(--fs-sm); transition: color var(--dur-1) var(--ease); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s-8); }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-9); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-sm); color: rgba(244,241,255,.5); }

/* ===== AI CHAT FAB ===================================================== */
.ai-fab {
  position: fixed; right: var(--s-6); bottom: var(--s-6); z-index: var(--z-fab);
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 12px;
  border-radius: var(--r-pill); background: var(--c-surface-ink); color: #fff;
  box-shadow: var(--sh-lg); transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.ai-fab:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 24px 60px rgba(26,21,48,.28); }
.ai-fab .av { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-accent); display: grid; place-items: center; flex: none; }
.ai-fab .label { font-weight: var(--fw-semi); font-size: var(--fs-sm); }
.ai-fab .pulse { width: 8px; height: 8px; border-radius: 50%; background: #4fe0ad; box-shadow: 0 0 0 0 rgba(79,224,173,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(79,224,173,0); } 100% { box-shadow: 0 0 0 0 rgba(79,224,173,0); } }

/* ===== TRUST STRIP ===================================================== */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.trust-item { display: flex; align-items: flex-start; gap: var(--s-3); }
.trust-item .ti-ico { width: 46px; height: 46px; border-radius: var(--r-md); flex: none; display: grid; place-items: center; background: var(--grad-accent-soft); color: var(--c-violet-700); }
.trust-item .ti-ico svg { width: 24px; height: 24px; }
.trust-item h4 { font-family: var(--font-body); font-size: var(--fs-base); font-weight: var(--fw-bold); }
.trust-item p { font-size: var(--fs-sm); color: var(--c-ink-3); line-height: 1.45; margin-top: 2px; }

/* ===== STEP EXPLAINER =================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); counter-reset: step; }
.step { position: relative; padding: var(--s-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.step .num { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700; color: var(--c-violet); }
.step h4 { font-family: var(--font-body); margin-top: var(--s-3); }
.step p { color: var(--c-ink-3); font-size: var(--fs-sm); margin-top: 6px; line-height: 1.5; }
.step .step-ico { width: 40px; height: 40px; color: var(--c-violet); margin-bottom: var(--s-3); }

/* ===== MISC ============================================================= */
.divider { height: 1px; background: var(--c-line); border: 0; }
.pill-note { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--c-bg-lavender); color: var(--c-violet-700); font-size: var(--fs-sm); font-weight: var(--fw-med); }
.sparkle { color: var(--c-pink); }

/* Holographic edge accent for hero/special cards */
.holo-edge { position: relative; }
.holo-edge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--grad-holo); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ===== RESPONSIVE ====================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-col.brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav .nav-search { display: none; }
  .nav-toggle { display: grid; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .trust-strip, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toast-wrap { left: var(--s-4); right: var(--s-4); }
  .ai-fab .label { display: none; }
  .ai-fab { padding: 8px; }
}

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