/* ===========================================================
   Zix Store — "Legendary Voyage" Pirate Theme v2
   A trading post for a legendary crew: wax seals, star charts,
   lantern light and old rope. Built as a coherent world, not
   a skin — every ornament ties back to captain / ship / treasure.
   =========================================================== */

:root {
  --abyss:        #030711;
  --navy:         #060E1F;
  --navy-2:       #0C1B34;
  --navy-3:       #142B4E;
  --navy-line:    rgba(212,175,97,0.14);

  --parchment:      #F1E4C4;
  --parchment-dark: #E1CD9C;
  --parchment-line: #C9AF77;
  --ink:            #2A1D10;

  --gold:        #FFC94A;
  --gold-bright: #FFE066;
  --gold-dim:    #A6803A;
  --gold-glow:   rgba(255,224,102,0.75);

  --crimson:      #FF3B30;
  --crimson-dark: #9E1810;
  --crimson-glow: rgba(255,59,48,0.6);

  --emerald:        #2FE0A8;
  --emerald-bright: #6BFFDA;
  --emerald-glow:   rgba(107,255,218,0.65);

  --cyan:           #33E5FF;
  --cyan-glow:      rgba(51,229,255,0.7);

  --violet:         #B87CFF;
  --violet-glow:    rgba(184,124,255,0.6);

  --text-light: #F1E9D6;
  --text-muted: #93A6C2;
  --text-dim:   #5C7093;

  --font-display: 'Lalezar', 'Cairo', sans-serif;
  --font-body: 'Cairo', sans-serif;
  --font-mono: 'Courier New', monospace;

  --shadow-deep: 0 24px 60px rgba(0,0,0,0.55);
  --ease-out: cubic-bezier(0.16,1,0.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* =========================================================
   PAGE TRANSITIONS — tech wipe overlay + blurred fade-in
   ========================================================= */
body.page-enter {
  opacity: 0;
  filter: blur(6px);
  transform: scale(1.01);
}
body.page-enter-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

#transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: var(--abyss);
  transform: scaleX(0);
  transform-origin: right;
  overflow: hidden;
}
body.page-leaving #transition-overlay {
  opacity: 1;
  transform: scaleX(1);
  transition: transform 0.42s cubic-bezier(0.76,0,0.24,1), opacity 0.05s;
}
.transition-scan {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(51,229,255,0.25) 48%, rgba(255,224,102,0.25) 52%, transparent 100%);
  opacity: 0;
}
body.page-leaving .transition-scan {
  opacity: 1;
  animation: transition-shimmer 0.5s ease-out;
}
@keyframes transition-shimmer {
  0%   { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}
.transition-grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(var(--cyan) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyan) 1px, transparent 1px);
  background-size: 36px 36px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 1000px 550px at 50% -5%, rgba(255,224,102,0.16), transparent 60%),
    radial-gradient(ellipse 800px 550px at 95% 10%, rgba(107,255,218,0.13), transparent 55%),
    radial-gradient(ellipse 700px 500px at 2% 55%, rgba(51,229,255,0.11), transparent 55%),
    radial-gradient(ellipse 650px 450px at 60% 90%, rgba(184,124,255,0.09), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy) 40%, var(--abyss) 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  animation: bg-breathe 12s ease-in-out infinite;
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}
@keyframes bg-breathe {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.08) saturate(1.15); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
  background-image:
    linear-gradient(var(--cyan) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyan) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: grid-drift 18s linear infinite;
  mask-image: radial-gradient(ellipse 1000px 800px at 50% 0%, #000 0%, transparent 78%);
}
@keyframes grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 44px 44px, 44px 44px; }
}

#particle-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 3px 3px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

::selection { background: var(--gold); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------- Ambient sparkle field (used in hero + auth) ---------------- */
.sparkle-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.sparkle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0;
  box-shadow: 0 0 6px 1px rgba(243,206,126,0.8);
  animation: drift-up 7s ease-in infinite;
}
@keyframes drift-up {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  12%  { opacity: 0.9; }
  85%  { opacity: 0.25; }
  100% { opacity: 0; transform: translateY(-140px) scale(1.1); }
}

/* ---------------- Keyframes library ---------------- */
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-9px) rotate(1.5deg); }
}
@keyframes sail-path {
  0%   { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes flicker {
  0%, 19%, 21%, 23%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 55% { opacity: 0.72; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1.15); }
}
@keyframes rope-pulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.6; }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; filter: drop-shadow(0 0 6px var(--gold-glow)); }
  50%      { opacity: 1; filter: drop-shadow(0 0 16px var(--gold-glow)); }
}
@keyframes scan-line {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
@keyframes border-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes ping-dot {
  0%   { transform: scale(1); opacity: 0.9; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,18,34,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navy-line);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(6,13,25,0.94);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); animation: brand-glow 4s ease-in-out infinite; }
@keyframes brand-glow {
  0%, 100% { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
  50%      { filter: drop-shadow(0 2px 10px rgba(255,224,102,0.5)); }
}
.seal-icon { width: 40px; height: 40px; display: block; }
.seal-icon .seal-ring { animation: spin-slow 30s linear infinite; transform-origin: 50px 50px; }

.brand-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.5px;
}
.brand-text em {
  font-style: normal;
  color: var(--gold-bright);
}
.brand-text.small { font-size: 1.3rem; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-cta, .nav-cta::before {
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
}
.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px 9px 15px;
  background: linear-gradient(150deg, var(--cyan) 0%, #4fa8ff 45%, var(--violet) 100%);
  color: #04101f !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -3px 5px rgba(0,0,0,0.28),
    0 0 0 1px rgba(51,229,255,0.5),
    0 6px 16px rgba(51,229,255,0.28);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), filter 0.2s;
}
.nav-cta svg { width: 14px; height: 14px; flex-shrink: 0; }
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0) 55%);
  pointer-events: none;
  opacity: 0.85;
}
.nav-cta:hover {
  transform: perspective(360px) rotateX(-10deg) translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -3px 5px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,224,102,0.6),
    0 10px 22px rgba(51,229,255,0.4);
}
.nav-cta:active {
  transform: perspective(360px) rotateX(6deg) translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 2px rgba(0,0,0,0.3),
    0 0 0 1px rgba(51,229,255,0.5),
    0 2px 6px rgba(51,229,255,0.25);
}
.nav-cta::after { display: none !important; }
.nav-user {
  font-size: 0.85rem;
  color: var(--gold-bright);
  font-weight: 700;
}
.nav-admin-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold-bright) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  background: rgba(166,128,58,0.1);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.nav-admin-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-admin-link:hover {
  background: rgba(255,201,74,0.16);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}
.nav-admin-link::after { display: none !important; }
@media (max-width: 640px) {
  .nav-admin-link span { display: none; }
  .nav-admin-link { padding: 8px; }
}
.main-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  right: 0; left: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}
.main-nav a:hover { color: var(--gold-bright); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-rope {
  height: 2px;
  position: relative;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--cyan) 50%, var(--gold) 80%, transparent);
  background-size: 200% 100%;
  animation: border-flow 6s linear infinite;
  opacity: 0.7;
}

/* ---------------- Layout shell ---------------- */
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 0;
  position: relative;
  z-index: 1;
  min-height: 60vh;
}

/* ---------------- Flash messages ---------------- */
.flash-stack { max-width: 1180px; margin: 20px auto 0; padding: 0 24px; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 5; }
.flash {
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.flash-success { background: rgba(47,143,122,0.18); border-color: var(--emerald); color: #BEEDE0; }
.flash-error { background: rgba(184,41,30,0.18); border-color: var(--crimson); color: #F3B8B2; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  text-align: center;
  padding: 76px 20px 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero-compass {
  position: absolute;
  top: 50%; left: 50%;
  width: min(720px, 150vw);
  height: min(720px, 150vw);
  transform: translate(-50%,-50%);
  color: var(--gold);
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
}
.hero-compass svg { width: 100%; height: 100%; animation: spin-slow 160s linear infinite; }

.anchor-centerpiece {
  position: relative;
  width: min(52vw, 220px);
  margin: 10px auto 6px;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.55));
  perspective: 700px;
}
.anchor-centerpiece svg { width: 100%; height: auto; overflow: visible; display: block; }

.anchor-rig {
  transform-style: preserve-3d;
  animation: anchor-fall 1.3s cubic-bezier(.22,.61,.36,1) both;
  will-change: transform;
}
@keyframes anchor-fall {
  0%   { transform: translateY(-100px) rotateX(38deg) scale(0.8); opacity: 0; }
  40%  { transform: translateY(-36px) rotateX(20deg) scale(0.9); opacity: 1; }
  66%  { transform: translateY(6px) rotateX(-7deg) scale(1.03); opacity: 1; }
  83%  { transform: translateY(-5px) rotateX(3deg) scale(0.985); opacity: 1; }
  100% { transform: translateY(0) rotateX(0deg) scale(1); opacity: 1; }
}

.anchor-impact {
  position: absolute;
  left: 50%; bottom: 6%;
  width: 58%; height: 12%;
  transform: translateX(-50%) scale(0.3);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--cyan-glow) 0%, rgba(51,229,255,0) 72%);
  opacity: 0;
  pointer-events: none;
  animation: anchor-splash 1.3s ease-out both;
}
@keyframes anchor-splash {
  0%, 60% { opacity: 0; transform: translateX(-50%) scale(0.3); }
  68%     { opacity: 0.7; transform: translateX(-50%) scale(1.2); }
  100%    { opacity: 0; transform: translateX(-50%) scale(1.7); }
}

.anchor-swing { animation: anchor-sway 5s ease-in-out 1.3s infinite; transform-origin: 110px 110px; }
@keyframes anchor-sway {
  0%, 100% { transform: rotate(-9deg); }
  50%      { transform: rotate(9deg); }
}

@media (prefers-reduced-motion: reduce) {
  .anchor-rig { animation: none; }
  .anchor-impact { animation: none; opacity: 0; }
  .anchor-swing { animation: none; }
}
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  z-index: 0;
  pointer-events: none;
}
.hero-waves svg { width: 100%; height: 100%; }
@media (max-width: 640px) {
  .anchor-centerpiece { width: 62vw; margin: 6px auto 0; }
}

.radar-sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: min(780px, 165vw);
  height: min(780px, 165vw);
  transform: translate(-50%,-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}
.radar-sweep svg { width: 100%; height: 100%; }
.sweep-arm {
  transform-origin: 200px 200px;
  animation: sweep-rotate 9s linear infinite;
}
@keyframes sweep-rotate { to { transform: rotate(360deg); } }

.data-lines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.data-line {
  position: absolute;
  top: -20%;
  width: 2px;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--cyan-glow) 40%, var(--gold-glow) 60%, transparent);
  animation: data-fall linear infinite;
  opacity: 0.7;
  box-shadow: 0 0 8px var(--cyan-glow);
}
@keyframes data-fall {
  0%   { transform: translateY(-10%); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(900%); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; }

.hero-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px; height: 130px;
  margin-bottom: 22px;
  position: relative;
  animation: float-y 6s ease-in-out infinite;
}
.hero-emblem svg { width: 100%; height: 100%; filter: drop-shadow(0 0 22px var(--gold-glow)); }
.hero-emblem .emblem-ring-outer { animation: spin-slow 40s linear infinite; transform-origin: 60px 60px; }
.hero-emblem .emblem-ring-inner { animation: spin-slow 14s linear infinite reverse; transform-origin: 60px 60px; }
.hero-emblem .emblem-ring-scan { animation: spin-slow 3.5s linear infinite; transform-origin: 60px 60px; }
.hero-emblem .emblem-core { animation: glow-pulse 3.2s ease-in-out infinite; }

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 8px 22px 8px 17px;
  background: rgba(12,27,52,0.75);
  border: 1px solid var(--emerald-bright);
  color: var(--emerald-bright);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  animation: tag-glow 2.6s ease-in-out infinite;
}
@keyframes tag-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(107,255,218,0.2), inset 0 0 0 1px rgba(107,255,218,0.1); }
  50%      { box-shadow: 0 0 30px rgba(107,255,218,0.45), inset 0 0 0 1px rgba(107,255,218,0.2); }
}
.status-tag .status-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-glow);
}
.status-tag .status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--emerald-bright);
  animation: ping-dot 2s ease-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.1rem);
  margin: 0 0 16px;
  color: var(--text-light);
  letter-spacing: 0.5px;
  animation: title-glow 3s ease-in-out infinite;
}
@keyframes title-glow {
  0%, 100% { text-shadow: 0 4px 30px rgba(255,224,102,0.35), 0 0 50px rgba(51,229,255,0.15); }
  50%      { text-shadow: 0 4px 40px rgba(255,224,102,0.6), 0 0 70px rgba(51,229,255,0.3); }
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--gold-bright), var(--cyan), var(--violet), var(--gold-bright));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: border-flow 5s linear infinite;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 30px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 0 auto 34px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(255,216,121,0.35);
}
.hero-stat span {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gold-dim);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.scroll-cue:hover { color: var(--gold-bright); }
.scroll-cue svg { width: 16px; height: 20px; animation: bob 2.6s ease-in-out infinite; }

/* ---------------- Wave divider ---------------- */
.wave-divider { display: block; width: 100%; height: 56px; margin-top: -1px; }
.wave-divider--flip { transform: scaleY(-1); }

/* ---------------- Category bar ---------------- */
.category-bar-wrap { position: relative; padding: 6px 0 44px; }
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
}
.category-chip {
  padding: 10px 24px;
  background: rgba(12,27,52,0.6);
  border: 1px solid var(--navy-line);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: all 0.25s var(--ease-out);
  clip-path: none;
}
.category-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 24px rgba(51,229,255,0.35);
}
.category-chip.active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-bright);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(255,216,121,0.3);
}

/* =========================================================
   PRODUCT GRID — wanted posters
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  padding-bottom: 90px;
}

.poster-card {
  display: block;
  transition: transform 0.35s var(--ease-out);
}
.poster-card:hover { transform: translateY(-8px) scale(1.015); z-index: 3; position: relative; }

.poster-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--parchment);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,224,102,0.12);
  animation: card-idle-glow 4s ease-in-out infinite;
  transition: box-shadow 0.35s, border-color 0.35s;
}
@keyframes card-idle-glow {
  0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,224,102,0.1), 0 0 0 rgba(51,229,255,0); }
  50%      { box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,224,102,0.16), 0 0 16px rgba(51,229,255,0.12); }
}
.poster-card:hover .poster-frame {
  animation: none;
  border-color: var(--gold-bright);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.6),
    0 0 0 2px var(--gold-bright),
    0 0 40px rgba(255,224,102,0.4),
    0 0 60px rgba(51,229,255,0.2);
}
.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(0.1) contrast(1.04) saturate(0.96);
  transition: filter 0.3s, transform 0.5s var(--ease-out);
}
.poster-card:hover .poster-frame img { filter: sepia(0) contrast(1.08); transform: scale(1.06); }

.poster-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.poster-card:hover .poster-frame::after { transform: translateX(120%); }

.poster-frame .scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.poster-card:hover .poster-frame .scan-line {
  opacity: 0.8;
  animation: scan-line 1.6s linear infinite;
}

.poster-corner {
  position: absolute;
  width: 16px; height: 16px;
  border-top: 2px solid var(--gold-bright);
  border-right: 2px solid var(--gold-bright);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.poster-card:hover .poster-corner { opacity: 0.9; }
.poster-corner.tl { top: 8px; left: 8px; transform: rotate(-90deg); }
.poster-corner.tr { top: 8px; right: 8px; transform: rotate(0deg); }
.poster-corner.bl { bottom: 8px; left: 8px; transform: rotate(180deg); }
.poster-corner.br { bottom: 8px; right: 8px; transform: rotate(90deg); }

.poster-info { padding: 16px 4px 0; }
.poster-info h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-footer { display: flex; align-items: center; justify-content: space-between; }

.poster-rating { margin: 0 0 8px; font-size: 0.8rem; letter-spacing: 2px; }
.poster-rating .star { color: rgba(255,224,102,0.22); }
.poster-rating .star.filled { color: var(--gold-bright); text-shadow: 0 0 8px rgba(255,224,102,0.45); }
.detail-rating { font-size: 1.05rem; margin: 4px 0 14px; display: flex; align-items: center; gap: 8px; }
.detail-rating .rating-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0; font-weight: 700; }

.price-seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, var(--gold-dim));
  color: #241605;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 3px rgba(0,0,0,0.25),
    0 4px 10px rgba(0,0,0,0.35);
  border: 1px solid var(--parchment-line);
}
.poster-card.is-sold .poster-frame img { filter: grayscale(0.55) brightness(0.6); }
.poster-card.is-sold .poster-info h3 { color: var(--text-muted); }

/* Single unified status chip — one badge, one place, on the image itself.
   Used on the grid card AND the product detail image, so there is never
   more than one "available/sold" indicator per product. */
.product-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: rgba(6,14,28,0.86);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 4px 14px rgba(0,0,0,0.4);
}
.product-chip .chip-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.product-chip .chip-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
}
.product-chip.is-available { color: var(--emerald-bright); }
.product-chip.is-available .chip-dot { background: var(--emerald-bright); box-shadow: 0 0 8px var(--emerald-glow); }
.product-chip.is-available .chip-dot::after { animation: ping-dot 2s ease-out infinite; }
.product-chip.is-sold { color: #D9B48C; }
.product-chip.is-sold .chip-dot { background: #B98A57; box-shadow: 0 0 6px rgba(185,138,87,0.4); }

.gallery-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  background: rgba(6,14,28,0.86);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 12px rgba(0,0,0,0.35);
}
.gallery-count svg { width: 12px; height: 12px; flex-shrink: 0; }

.empty-state {
  text-align: center;
  padding: 30px 20px 70px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.empty-chest { width: 150px; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 14px 20px rgba(0,0,0,0.4)); }
.empty-state p { max-width: 380px; margin: 0 auto; }

/* ---------------- Product Detail ---------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 28px 0 24px;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.92rem;
}
.back-link:hover { text-decoration: underline; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 90px;
}
@media (max-width: 760px) {
  .detail-layout { grid-template-columns: 1fr; }
}

.detail-image {
  aspect-ratio: 1/1;
  background: var(--parchment);
  border: 3px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.42);
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.1) contrast(1.03); }

.detail-info h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.1rem;
  margin: 10px 0 16px;
  color: var(--text-light);
}
.detail-desc { color: var(--text-muted); margin-bottom: 24px; }
.detail-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, var(--gold-dim));
  border: 1px solid var(--parchment-line);
  color: #241605;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 10px 26px;
  border-radius: 10px;
  margin-bottom: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    0 10px 24px rgba(0,0,0,0.3);
}
.cta-hint { color: var(--text-muted); margin-bottom: 12px; font-weight: 700; }

/* ---------------- Contact pills ---------------- */
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-pill svg { width: 18px; height: 18px; }
.contact-pill:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.35); }
.contact-pill.whatsapp { background: #1E7A57; color: #fff; }
.contact-pill.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); color: #fff; }
.contact-pill.telegram { background: #229ED9; color: #fff; }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--navy-line);
  background:
    linear-gradient(180deg, var(--navy-2), var(--abyss));
  padding: 52px 24px 22px;
  overflow: hidden;
}
.footer-map {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; margin-top: 10px; }
.footer-label {
  display: block;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
}
.admin-link {
  display: inline-flex;
  color: var(--text-dim);
  opacity: 0.55;
  transition: opacity 0.2s, color 0.2s;
}
.admin-link svg { width: 18px; height: 18px; }
.admin-link:hover { opacity: 1; color: var(--gold-bright); }

/* =========================================================
   AUTH — Captain's Quarters
   ========================================================= */
.auth-page {
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow: hidden;
  isolation: isolate;
}
.auth-stars { position: absolute; inset: -10%; z-index: -2; pointer-events: none; }
.auth-star {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px 2px currentColor;
  animation: twinkle 3s ease-in-out infinite;
}
.auth-star:nth-child(3n)   { background: var(--cyan); }
.auth-star:nth-child(3n+1) { background: var(--violet); }

.auth-wheel {
  position: absolute;
  top: 50%; left: 50%;
  width: 680px; height: 680px;
  transform: translate(-50%,-50%);
  color: var(--cyan);
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}
.auth-wheel svg { width: 100%; height: 100%; animation: spin-slow 22s linear infinite; }

.auth-card {
  position: relative;
  background: linear-gradient(180deg, rgba(12,27,52,0.85), rgba(6,14,31,0.92));
  border: 1px solid var(--cyan);
  border-radius: 20px;
  padding: 44px 36px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(51,229,255,0.15);
  animation: auth-card-glow 3.5s ease-in-out infinite;
}
@keyframes auth-card-glow {
  0%, 100% { box-shadow: var(--shadow-deep), 0 0 30px rgba(51,229,255,0.15), inset 0 0 0 1px rgba(255,224,102,0.08); }
  50%      { box-shadow: var(--shadow-deep), 0 0 55px rgba(51,229,255,0.35), inset 0 0 0 1px rgba(255,224,102,0.18); }
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,224,102,0.22);
  border-radius: 14px;
  pointer-events: none;
}
.auth-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(120deg, var(--cyan), var(--gold-bright), var(--violet), var(--cyan));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-flow 5s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

.auth-radar {
  position: absolute;
  top: -60px; left: 50%;
  width: 220px; height: 220px;
  margin-left: -110px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(51,229,255,0.28), transparent 30%);
  animation: radar-spin 4s linear infinite;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}
@keyframes radar-spin {
  to { transform: rotate(360deg); }
}

.auth-emblem {
  width: 62px; height: 62px;
  margin: -78px auto 14px;
  animation: float-y 5s ease-in-out infinite;
  filter: drop-shadow(0 0 16px var(--cyan-glow));
}
.auth-emblem svg { width: 100%; height: 100%; }

.auth-switch { margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.auth-switch a { color: var(--cyan); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

.lantern { width: 54px; height: 68px; margin: -78px auto 10px; display: block; filter: drop-shadow(0 0 16px rgba(243,206,126,0.55)); }
.lantern-glow { animation: flicker 5s ease-in-out infinite; }

.auth-card h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  margin: 0 0 6px;
  color: var(--text-light);
}
.auth-sub { color: var(--text-muted); margin-bottom: 26px; font-size: 0.9rem; }

.auth-form { display: flex; flex-direction: column; gap: 16px; text-align: right; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; }
.auth-form span { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }
.auth-form input {
  background: rgba(3,7,17,0.8);
  border: 1px solid var(--navy-line);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.auth-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(51,229,255,0.18), 0 0 16px rgba(51,229,255,0.25);
  outline: none;
}
.captcha-label span { color: var(--gold-bright); }
.totp-hint { color: var(--emerald-bright); font-size: 0.85rem; font-weight: 700; }

.btn-primary {
  position: relative;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #06101f;
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  text-align: center;
  box-shadow: 0 8px 24px rgba(51,229,255,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 14px 34px rgba(51,229,255,0.45); }
.btn-primary.full { width: 100%; border: none; }

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--navy-line);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-outline.danger { border-color: var(--crimson); color: #F3B8B2; }

.qr-image {
  width: 200px; height: 200px;
  margin: 0 auto 16px;
  border-radius: 8px;
  border: 3px solid var(--gold);
  background: #fff;
  padding: 8px;
}
.manual-secret { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.manual-secret code {
  background: var(--abyss);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--gold-bright);
  letter-spacing: 1px;
}
.auth-emblem { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--gold-bright); }

/* ---------------- Admin dashboard ---------------- */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 32px;
}
.admin-topbar h1 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-light);
  font-size: 2rem;
  margin: 0;
}
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-actions form { display: inline; }

.admin-table-wrap { overflow-x: auto; padding-bottom: 60px; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--navy-2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--navy-line);
}
.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.admin-table th {
  color: var(--gold-bright);
  font-weight: 700;
  background: rgba(212,175,97,0.06);
}
.admin-thumb {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gold);
}
.row-actions { display: flex; gap: 8px; }
.row-actions form { display: inline; }

.btn-mini {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--emerald);
  color: var(--emerald-bright);
  background: transparent;
}
.btn-mini.danger { border-color: var(--crimson); color: #F3B8B2; }
.btn-mini:hover { opacity: 0.8; }

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.status-badge.ok { background: rgba(47,143,122,0.2); color: var(--emerald-bright); }
.status-badge.off { background: rgba(184,41,30,0.2); color: #F3B8B2; }

.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.admin-product-card {
  background: var(--navy-2);
  border: 1px solid var(--navy-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.admin-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.admin-product-thumb { position: relative; aspect-ratio: 1/1; }
.admin-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-product-thumb .status-badge { position: absolute; top: 10px; left: 10px; }
.admin-product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.admin-product-body h3 { font-size: 1.05rem; color: var(--text-light); margin: 2px 0 4px; }
.admin-product-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-bright);
  font-weight: 400;
  margin-bottom: 8px;
}
.admin-product-body .row-actions { margin-top: auto; }

/* ---------------- Product form ---------------- */
.form-shell { max-width: 640px; margin: 0 auto; padding-bottom: 80px; }
.form-shell h1 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-light);
  font-size: 1.9rem;
  margin: 32px 0 28px;
}
.product-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--navy-2);
  border: 1px solid var(--navy-line);
  border-radius: 14px;
  padding: 32px;
}
.product-form label { display: flex; flex-direction: column; gap: 6px; }
.product-form span { font-size: 0.88rem; color: var(--text-muted); font-weight: 700; }
.product-form input, .product-form textarea, .product-form select {
  background: var(--abyss);
  border: 1px solid var(--navy-line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
}
.product-form input:focus, .product-form textarea:focus, .product-form select:focus { border-color: var(--gold-bright); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { flex-direction: row !important; align-items: center; gap: 10px !important; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }

.price-input-wrap { position: relative; display: flex; align-items: center; }
.price-input-wrap .currency-prefix {
  position: absolute; right: 14px; color: var(--gold-bright); font-weight: 800; pointer-events: none;
}
.price-input-wrap input { padding-right: 30px !important; width: 100%; }

.image-upload-box {
  position: relative;
  border: 1.5px dashed var(--navy-line);
  border-radius: 10px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--abyss);
  overflow: hidden;
  transition: border-color 0.2s;
}
.image-upload-box:hover { border-color: var(--gold-bright); }
.image-upload-preview { max-width: 100%; max-height: 220px; object-fit: contain; }
.image-upload-hint { color: var(--text-muted); font-size: 0.9rem; padding: 20px; text-align: center; }
.image-upload-box input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.detail-image { position: relative; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--navy-line); padding: 0; cursor: pointer; background: none;
  transition: border-color 0.2s, transform 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold-bright); transform: translateY(-2px); }

.gallery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery-row .image-upload-box { min-height: 120px; }
.small-check { margin-top: 8px; font-size: 0.82rem; color: var(--text-muted); }

/* ---------------- Responsive ---------------- */
@media (max-width: 640px) {
  .header-inner { padding: 12px 16px; }
  .main-nav { gap: 16px; font-size: 0.9rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 56px 16px 48px; }
  .mascot { width: 88px; height: 88px; }
  .lantern { margin-top: -70px; }
}
