/* =========================================================
   Nexsino — Production animated marketplace theme
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #05060f;
  --bg2: #0b0f1e;
  --card: rgba(15, 20, 40, 0.72);
  --card-solid: #12172b;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e8eefc;
  --muted: #94a3b8;
  --primary: #4f7cff;
  --primary-2: #8b5cf6;
  --accent: #22d3ee;
  --success: #34d399;
  --danger: #f87171;
  --radius: 1.35rem;
  --shadow: 0 25px 50px -12px rgba(0,0,0,.55);
  --font: 'Outfit', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Outfit', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nx-body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ---------- Animated cosmic background ---------- */
.nx-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(79,124,255,.28), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(139,92,246,.22), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(34,211,238,.12), transparent 50%),
    linear-gradient(180deg, #05060f 0%, #0a0e1c 50%, #05060f 100%);
}
.nx-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}
.nx-bg-photo {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=2000&q=60') center/cover no-repeat;
  opacity: .12;
  filter: saturate(1.2) contrast(1.1);
  animation: bgPulse 18s ease-in-out infinite alternate;
}
.nx-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 14s ease-in-out infinite;
}
.nx-orb-1 { width: 340px; height: 340px; background: #4f7cff; top: 8%; left: -80px; }
.nx-orb-2 { width: 280px; height: 280px; background: #8b5cf6; top: 45%; right: -60px; animation-delay: -4s; }
.nx-orb-3 { width: 220px; height: 220px; background: #22d3ee; bottom: 5%; left: 30%; animation-delay: -8s; opacity: .22; }

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}
@keyframes bgPulse {
  from { transform: scale(1); opacity: .1; }
  to { transform: scale(1.08); opacity: .16; }
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-40px) scale(1.08); }
}

/* ---------- Layout ---------- */
.nx-wrap { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }
.nx-wrap-sm { width: min(900px, calc(100% - 2rem)); margin: 0 auto; }

/* ---------- Nav ---------- */
.nx-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(5,6,15,.72);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background .3s;
}
.nx-nav.scrolled { box-shadow: 0 10px 40px rgba(0,0,0,.35); background: rgba(5,6,15,.9); }
.nx-nav-inner {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nx-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}
.nx-logo-mark {
  width: 40px; height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid; place-items: center;
  box-shadow: 0 0 24px rgba(79,124,255,.45);
  animation: logoPulse 3s ease-in-out infinite;
  overflow: hidden;
  flex-shrink: 0;
}
/* Admin SEO / icon upload used as site logo */
.nx-logo-mark--img {
  background: #fff;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
}
.nx-logo-mark--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 13px;
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 18px rgba(79,124,255,.4); }
  50% { box-shadow: 0 0 32px rgba(139,92,246,.65); }
}
.nx-nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nx-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.nx-nav-links a:hover, .nx-nav-links a.active { color: #fff; }
.nx-nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform .25s;
  border-radius: 2px;
}
.nx-nav-links a:hover::after, .nx-nav-links a.active::after { transform: scaleX(1); }
.nx-nav-actions { display: flex; gap: .6rem; align-items: center; }
.nx-tg-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff !important;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(42, 171, 238, .35);
  transition: transform .2s, box-shadow .25s, filter .2s;
}
.nx-tg-btn i { font-size: 1.15rem; line-height: 1; }
.nx-tg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(42, 171, 238, .5);
  filter: brightness(1.05);
  color: #fff !important;
}
.nx-tg-btn:hover::after { display: none; }
@media (max-width: 480px) {
  .nx-tg-btn span { display: none; }
  .nx-tg-btn { padding: .55rem .7rem; }
}
.nx-cart-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  transition: .25s;
}
.nx-cart-btn:hover { border-color: var(--primary); background: rgba(79,124,255,.12); }
.nx-cart-count {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  min-width: 1.4rem; height: 1.4rem;
  border-radius: 999px;
  display: inline-grid; place-items: center;
  font-size: .72rem; font-weight: 700;
}

/* ---------- Buttons ---------- */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .25s, background .2s, border-color .2s;
  font-family: inherit;
}
.nx-btn:hover { transform: translateY(-2px); }
.nx-btn:active { transform: translateY(0); }
.nx-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(79,124,255,.35);
}
.nx-btn-primary:hover { box-shadow: 0 14px 36px rgba(139,92,246,.45); }
.nx-btn-white {
  background: #fff; color: #0b0f1e;
  box-shadow: 0 10px 30px rgba(255,255,255,.15);
}
.nx-btn-ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: #fff;
}
.nx-btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.nx-btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 10px 28px rgba(16,185,129,.3);
}
.nx-btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.nx-btn-block { width: 100%; }

/* ---------- Hero ---------- */
.nx-hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}
.nx-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.5rem;
  align-items: center;
}
.nx-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(79,124,255,.12);
  border: 1px solid rgba(79,124,255,.35);
  color: #a5b8ff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  animation: fadeUp .7s ease both;
}
.nx-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 1rem 0 1.1rem;
  animation: fadeUp .8s .1s ease both;
}
.nx-hero h1 .grad {
  background: linear-gradient(120deg, #fff 10%, #8b9fff 40%, #22d3ee 70%, #c084fc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.nx-hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 1.6rem;
  animation: fadeUp .8s .18s ease both;
}
.nx-hero-cta {
  display: flex; flex-wrap: wrap; gap: .75rem;
  animation: fadeUp .8s .26s ease both;
}
.nx-hero-stats {
  display: flex; gap: 1.5rem; margin-top: 2rem;
  animation: fadeUp .8s .34s ease both;
}
.nx-stat strong { display: block; font-size: 1.35rem; font-family: var(--display); }
.nx-stat span { color: var(--muted); font-size: .8rem; }

.nx-hero-panel {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  animation: fadeUp .9s .2s ease both;
  min-height: 340px;
}
.nx-hero-panel-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(5,6,15,.2), rgba(5,6,15,.85)),
    url('https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1000&q=70') center/cover;
  animation: kenburns 20s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.nx-hero-panel-content {
  position: relative;
  padding: 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
}
.nx-deal-list { display: grid; gap: .65rem; margin-top: .8rem; }
.nx-deal-item {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem .9rem;
  border-radius: 1rem;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s;
}
.nx-deal-item:hover { transform: translateX(4px); border-color: rgba(79,124,255,.4); }
.nx-deal-item .price { color: var(--success); font-weight: 700; }

/* ---------- Fixed square logo frames (any source size fits) ---------- */
.nx-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  position: relative;
  z-index: 2;
}
.nx-logo-frame img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 16%;
  box-sizing: border-box !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  filter: none !important;
}
.nx-logo-frame--sm { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 12px; }
.nx-logo-frame--sm img { padding: 14%; }
.nx-logo-frame--md { width: 88px; height: 88px; min-width: 88px; min-height: 88px; border-radius: 22px; }
.nx-logo-frame--md img { padding: 16%; }
.nx-logo-frame--lg { width: 120px; height: 120px; min-width: 120px; min-height: 120px; border-radius: 26px; }
.nx-logo-frame--lg img { padding: 16%; }
.nx-logo-frame--xl { width: 168px; height: 168px; min-width: 168px; min-height: 168px; border-radius: 32px; }
.nx-logo-frame--xl img { padding: 18%; }
.nx-product-card:hover .nx-logo-frame--md {
  transform: scale(1.06);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.nx-logo-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.nx-logo-center .nx-logo-frame { pointer-events: auto; }

/* ---------- Sections ---------- */
.nx-section { padding: 3.5rem 0; }
.nx-section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.nx-section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
  letter-spacing: -.02em;
}
.nx-section-head p { color: var(--muted); margin: .35rem 0 0; }
.nx-link {
  color: #9db4ff; text-decoration: none; font-weight: 600; font-size: .92rem;
}
.nx-link:hover { color: #fff; }

/* ---------- Category cards (same 16:10 cover frame as products) ---------- */
.nx-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.nx-cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.nx-cat-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 50px -15px rgba(0,0,0,.6), 0 0 40px var(--glow, rgba(79,124,255,.25));
}
.nx-cat-card img,
.nx-cat-card .nx-cat-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  transition: transform .6s;
}
.nx-cat-card:hover img,
.nx-cat-card:hover .nx-cat-cover { transform: scale(1.08); }
.nx-cat-card .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(5,6,15,.92) 100%);
}
.nx-cat-card .body {
  position: relative; z-index: 1;
  height: 100%;
  min-height: 0;
  padding: 1.15rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.nx-cat-card .icon {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, #4f7cff) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #4f7cff) 50%, transparent);
  margin-bottom: .6rem;
  color: #fff;
}
.nx-cat-card h3 { margin: 0; font-size: 1.05rem; font-family: var(--display); }
.nx-cat-card p { margin: .25rem 0 0; color: #cbd5e1; font-size: .82rem; }

/* ---------- Product cards ---------- */
.nx-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.nx-product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.nx-product-card:hover {
  transform: translateY(-10px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 28px 50px -18px rgba(0,0,0,.65), 0 0 36px var(--glow);
}

/*
 * ONE cover size everywhere: landscape 16:10 (matches 800×500 uploads).
 * Logo cards and photo cards use the exact same frame — no portrait mix.
 */
.nx-product-media,
.nx-detail-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden;
  background: #0a0e1a;
  display: block;
  box-sizing: border-box;
}
.nx-product-media.nx-is-logo,
.nx-product-media.nx-has-photo,
.nx-detail-media.nx-is-logo,
.nx-detail-media.nx-has-photo {
  aspect-ratio: 16 / 10 !important;
  width: 100%;
  min-height: 0 !important;
  max-height: none !important;
}
.nx-product-logo,
.nx-brand-logo {
  /* legacy classes — prefer .nx-logo-frame */
  width: 88px;
  height: 88px;
  object-fit: contain;
  object-position: center;
}
.nx-brand-chip {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}
.nx-product-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.nx-product-card:hover .nx-product-img { transform: scale(1.1); }

/* Custom uploaded product photos — always fill 16:10 frame edge-to-edge */
.nx-product-photo,
.nx-detail-photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.nx-product-media.nx-has-photo .nx-product-photo {
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.nx-product-card:hover .nx-product-media.nx-has-photo .nx-product-photo {
  transform: scale(1.06);
}
.nx-detail-media.nx-has-photo .shade,
.nx-detail-media.nx-is-logo .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,6,15,.75));
  z-index: 1;
  pointer-events: none;
}
.nx-product-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(5,6,15,.75) 100%),
    linear-gradient(45deg, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%);
}
.nx-product-icon-badge {
  position: absolute; left: 12px; bottom: 12px;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 1.15rem;
  z-index: 2;
}
.nx-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .04em;
  background: linear-gradient(135deg, var(--accent), var(--primary-2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.nx-product-shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: none;
  pointer-events: none;
}
.nx-product-card:hover .nx-product-shine {
  animation: shine 1s ease;
}
@keyframes shine {
  to { transform: translateX(120%); }
}
.nx-product-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.nx-product-cat {
  font-size: .72rem; color: #93a8ff; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem;
}
.nx-product-title {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--display);
  letter-spacing: -.01em;
  line-height: 1.25;
}
.nx-product-desc {
  margin: .4rem 0 0;
  color: var(--muted);
  font-size: .84rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.nx-product-meta {
  display: flex; justify-content: space-between; align-items: end;
  margin-top: .9rem; gap: .5rem;
}
.nx-price {
  font-size: 1.45rem; font-weight: 700; font-family: var(--display);
  background: linear-gradient(90deg, #fff, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nx-delivery {
  display: block; font-size: .72rem; color: var(--success); font-weight: 600; margin-top: .15rem;
}
.nx-delivery-wait { color: #fbbf24 !important; }
.nx-email-hint {
  margin-top: .55rem;
  font-size: .75rem;
  font-weight: 600;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nx-email-field label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.nx-email-field .hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .35rem;
}
.nx-sold { font-size: .75rem; color: var(--muted); }
.nx-product-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .9rem;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Cards / glass ---------- */
.nx-glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.nx-input, .nx-textarea, .nx-select {
  width: 100%;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 1rem;
  padding: .85rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.nx-input:focus, .nx-textarea:focus {
  border-color: rgba(79,124,255,.7);
  box-shadow: 0 0 0 3px rgba(79,124,255,.15);
}

/* ---------- Toast ---------- */
.nx-toast-wrap {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 9999;
  display: flex; flex-direction: column; gap: .5rem;
}
.nx-toast {
  min-width: 240px; max-width: 340px;
  padding: .9rem 1rem;
  border-radius: 1rem;
  background: rgba(15,23,42,.95);
  border: 1px solid rgba(79,124,255,.4);
  color: #fff;
  box-shadow: var(--shadow);
  animation: toastIn .35s ease;
  display: flex; align-items: center; gap: .65rem;
  font-size: .9rem;
}
.nx-toast.ok { border-color: rgba(52,211,153,.5); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.nx-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
}
.nx-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
}
.nx-footer h4 { margin: 0 0 .8rem; font-family: var(--display); }
.nx-footer a { color: var(--muted); text-decoration: none; display: block; margin: .35rem 0; font-size: .9rem; }
.nx-footer a:hover { color: #fff; }
.nx-footer p { color: var(--muted); font-size: .9rem; max-width: 28rem; }
.nx-footer-bottom {
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: #64748b; font-size: .78rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

/* ---------- Products page layout ---------- */
.nx-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}
.nx-sidebar { position: sticky; top: 90px; align-self: start; }
.nx-side-link {
  display: block;
  padding: .65rem .9rem;
  border-radius: .9rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  margin-bottom: .25rem;
  transition: .2s;
}
.nx-side-link:hover { background: rgba(255,255,255,.04); color: #fff; }
.nx-side-link.active {
  background: linear-gradient(135deg, rgba(79,124,255,.25), rgba(139,92,246,.2));
  color: #fff;
  border: 1px solid rgba(79,124,255,.35);
}

/* ---------- Product detail ---------- */
.nx-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.75rem;
  padding: 2rem 0 3rem;
}
.nx-detail-media {
  border-radius: 1.6rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  /* aspect-ratio 16:10 set with .nx-product-media above — never square */
}
.nx-detail-float {
  position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 3;
  display: flex; gap: .6rem; align-items: center;
}
.nx-detail-float .big-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.5); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 1.3rem; color: #fff;
}
/* Logo on detail uses same landscape frame as cover photos */
.nx-detail-media.nx-is-logo {
  display: block;
}
.nx-detail-media.nx-is-logo .nx-logo-frame--xl,
.nx-detail-media.nx-is-logo .nx-logo-center {
  z-index: 2;
}
.nx-detail-media.nx-is-logo .nx-logo-frame--xl {
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.nx-detail-media.nx-is-logo .shade {
  background: radial-gradient(circle at center, transparent 20%, rgba(5,6,15,.55) 100%);
}

/* ---------- Cart lines ---------- */
.nx-cart-line {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem;
  border-radius: 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: .7rem;
  transition: border-color .2s, transform .2s;
}
.nx-cart-line:hover { border-color: rgba(79,124,255,.35); transform: translateX(3px); }
.nx-cart-line .nx-logo-frame { flex-shrink: 0; }
.nx-cat-card .nx-cat-logos {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  z-index: 1;
  padding: 1rem;
  flex-wrap: wrap;
}
.nx-cat-card .nx-cat-logos .nx-logo-frame {
  transition: transform .35s;
}
.nx-cat-card:hover .nx-cat-logos .nx-logo-frame { transform: translateY(-4px) scale(1.05); }

/* ---------- Checkout extras ---------- */
.method-card input:checked + label {
  border-color: rgb(79 124 255) !important;
  background: rgba(79,124,255,.15) !important;
  box-shadow: 0 0 0 1px rgb(79 124 255), 0 0 28px rgba(79,124,255,.25);
}
.binance-card input:checked + label {
  border-color: rgb(245 158 11) !important;
  background: rgba(245,158,11,.12) !important;
  box-shadow: 0 0 0 1px rgb(245 158 11), 0 0 28px rgba(245,158,11,.2);
}
.step-dot {
  width: 28px; height: 28px; border-radius: 999px;
  display: inline-grid; place-items: center;
  font-size: .75rem; font-weight: 700;
  background: #1e293b; color: #94a3b8;
}
.step-dot.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.step-dot.done { background: #059669; color: #fff; }

/* ---------- Marquee strip ---------- */
.nx-marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  padding: .7rem 0;
  margin: 1rem 0 0;
}
.nx-marquee-track {
  display: flex; gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: .85rem; color: var(--muted); font-weight: 500;
}
.nx-marquee-track span { white-space: nowrap; }
.nx-marquee-track i { color: var(--accent); margin-right: .4rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nx-hero-grid, .nx-detail-grid, .nx-shop-layout, .nx-footer-grid { grid-template-columns: 1fr; }
  .nx-cat-grid, .nx-product-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-nav-links { display: none; }
  .nx-sidebar { position: static; }
}
@media (max-width: 640px) {
  .nx-cat-grid, .nx-product-grid { grid-template-columns: 1fr; }
  .nx-hero { padding-top: 2.5rem; }
  .nx-hero-stats { flex-wrap: wrap; }
}
