/* ========== CSS Reset & Base ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 24%, #0f172a 100%);
}

/* Utility */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid rgba(96,165,250,.6); outline-offset: 2px; }

/* ========== Theme Variables ========== */
:root {
  --header-bg: #0b1220;
  --header-text: #e5e7eb;

  --sidebar-bg: #0e1628;
  --sidebar-text: #cbd5e1;
  --sidebar-hover: #19243b;
  --divider: #203051;

  --content-bg: #f7fafc;

  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-shadow: 0 6px 20px rgba(2, 6, 23, 0.12);

  --primary: #22d3ee;   /* cyan accent */
  --primary-ink: #0f172a;
  --accent: #60a5fa;    /* soft indigo */
  --text: #e2e8f0;
  --muted: #94a3b8;

  --radius: 14px;

  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --paypal: #2563eb;  /* blue */
  --crypto: #fbbf24;  /* yellow */
  --cashapp: #84cc16; /* lime */
}

/* ========== Topbar ========== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--header-bg) 0%, #091122 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  color: var(--header-text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* top nav */
.topnav { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--header-text); text-decoration: none;
  padding: 8px 12px; border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition: all .2s ease;
}
.nav-btn .icon { display: inline-block; }
.nav-btn:hover { background: rgba(255,255,255,0.07); }
.nav-btn.active {
  border-color: rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
}

/* cart badge + ping */
.cart-badge,
#cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: white;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(11,18,32,.8);
}
.nav-btn.ping {
  animation: nps-ping .8s linear 1;
  box-shadow: 0 0 0 0 rgba(34,211,238, .6);
}
@keyframes nps-ping {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,211,238,.6); }
  60% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(34,211,238,0); }
  100% { transform: scale(1); box-shadow: none; }
}

/* ========== Layout ========== */
.sidebar {
  position: fixed; top: 56px; left: 0; bottom: 0; z-index: 40;
  width: 260px; padding: 16px;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
}
.sidenav { display: flex; flex-direction: column; gap: 6px; }

.side-link {
  display: block;
  padding: 12px 14px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .08s ease;
  font-weight: 500;
}
.side-link:hover { background: var(--sidebar-hover); border-color: rgba(255,255,255,0.06); transform: translateY(-1px); }

.divider {
  border: none; height: 1px; margin: 8px 4px;
  background: linear-gradient(90deg, transparent, var(--divider), transparent);
}

.content {
  margin-left: 260px;
  padding: 28px 26px 54px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 16%, #0b1220 100%);
  min-height: calc(100vh - 56px);
}

/* helper for standalone payment pages to center content */
.content.solo { margin-left: 0; }

/* ========== Hero ========== */
.hero {
  border: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(1200px 360px at 20% -20%, rgba(34, 211, 238, .15), transparent 45%),
              radial-gradient(1000px 340px at 95% -40%, rgba(96, 165, 250, .18), transparent 50%),
              rgba(16, 24, 40, 0.55);
  padding: 26px; border-radius: 18px; margin-bottom: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 30px 60px rgba(2,6,23,0.25);
}
.hero-inner h1 {
  margin: 0 0 6px; color: #f1f5f9; font-size: 1.6rem; letter-spacing: .2px;
}
.hero-inner p { margin: 0; color: var(--muted); }

/* ========== Sections & Cards ========== */
.product-section { margin: 22px 0 28px; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.section-header h2 { margin: 0; color: #e2e8f0; font-size: 1.1rem; }
.see-all { color: var(--primary); text-decoration: none; font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* 4 per row */
.product-row {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 6px 28px rgba(2,6,23,0.30);
  backdrop-filter: blur(4px);
  transition: transform .14s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.12); box-shadow: 0 14px 40px rgba(2,6,23,0.35); }

.thumb {
  width: 100%; aspect-ratio: 4/3;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.thumb-link { text-decoration: none; color: inherit; }

.product-title {
  margin: 8px 2px 2px; color: #f8fafc; font-size: 0.96rem; font-weight: 600; letter-spacing: .2px;
}
.price { color: var(--muted); margin: 0 2px 6px; }
.rating { color: #cbd5e1; font-size: .9rem; margin: 0 2px 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(34,211,238,0.15), rgba(34,211,238,0.07));
  color: #dbeafe;
  font-weight: 600; letter-spacing: .2px;
  cursor: pointer;
}
.btn[disabled],
.btn.disabled { cursor: not-allowed; opacity: .65; filter: grayscale(0.2); }

.btn-view { text-decoration: none; }
.btn-row { display:flex; gap:8px; flex-wrap: wrap; margin-top: 6px; }
.btn-wide { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, rgba(96,165,250,.35), rgba(34,211,238,.2));
  color: #0f172a;
  border-color: rgba(255,255,255,0.14);
}

/* Inline link button used by checkout sign-in CTA */
.btn-link {
  color: #93c5fd;
  text-decoration: underline;
  font-weight: 700;
}
.btn-link:hover { text-decoration: none; }

/* CTA helper on checkout when not logged in */
#signin-cta {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.5;
  text-align: center;
}

/* overlay */
.overlay {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(2,6,23,0.55);
  backdrop-filter: blur(2px);
}

/* ========== Product page layout ========== */
.product-detail {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow: 0 20px 50px rgba(2,6,23,0.3);
  margin-bottom: 26px;
}
.pd-img img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.pd-title { margin: 2px 0 6px; font-size: 1.4rem; color: #f8fafc; }
.pd-price { color: #93c5fd; font-weight: 700; margin: 4px 0 10px; }
.pd-rating { color: #cbd5e1; display: flex; gap: 8px; align-items: baseline; margin-bottom: 10px; }
.pd-reviews { color: #94a3b8; }
.pd-desc { color: #cbd5e1; line-height: 1.6; margin: 8px 0 14px; }

/* ========== Settings/Currency Tiles ========== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 16px;
}
@media (max-width: 700px) {
  .settings-grid { grid-template-columns: 1fr; }
}

/* Share styling for tile buttons & currency buttons */
.tile-btn,
.currency-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(34,211,238,0.18), rgba(34,211,238,0.08));
  color: #e2e8f0; font-weight: 700; text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.tile-btn:hover,
.currency-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }
.tile-btn.active,
.currency-btn.active { outline: 2px solid rgba(96,165,250,.5); }

/* ========== FAQ ========== */
.faq { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  padding: 10px 14px;
}
.faq-item > summary {
  cursor: pointer; list-style: none; color:#e2e8f0; font-weight: 600;
}
.faq-item[open] > summary { color: #93c5fd; }
.faq-a { color: #cbd5e1; padding: 8px 2px 2px; line-height: 1.6; }

/* Simple muted note */
.muted-note { color: var(--muted); margin-top: 12px; }

/* About brand */
.about-brand { margin-top: 12px; color:#cbd5e1; font-weight:700; }

/* ========== Age Gate ========== */
#agegate {
  position: fixed; inset: 0; z-index: 999;
  background:
    radial-gradient(1000px 340px at 95% -40%, rgba(96,165,250,.18), transparent 50%),
    radial-gradient(1200px 360px at 20% -20%, rgba(34,211,238,.15), transparent 45%),
    rgba(2,6,23,0.96);
  display: grid; place-items: center;
}
#agegate .box {
  max-width: 560px; width: calc(100% - 40px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 30px 60px rgba(2,6,23,0.5);
}
#agegate h2 { margin: 0 0 8px; color: #f8fafc; }
#agegate p { margin: 0 0 18px; color: #cbd5e1; }
#agegate .btnrow { display:flex; gap:12px; justify-content: center; }
#agegate .btnrow .tile-btn { min-width: 210px; }

/* ========== CHECKOUT LAYOUT ========== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}
.cart-list { display: grid; gap: 10px; }
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.cart-item .thumb { aspect-ratio: 1/1; }
.cart-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}
.cart-item .title { margin: 4px 0 6px; font-weight: 700; color: #f8fafc; }
.cart-item .meta { color: var(--muted); font-size:.9rem; line-height:1.4; }
.cart-item .qty {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cart-item .qty label { color:#cbd5e1; font-size:.8rem; font-weight:600; }
.cart-item .qty input {
  width: 64px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
}
.cart-item .price { font-weight: 700; color: #c7d2fe; font-size:.95rem; display:flex; align-items:flex-start; }

/* summary card */
.summary-card {
  align-self: start;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
}
.summary-card h3 { margin: 0 0 10px; }
.summary-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 6px 0;
}
.summary-row.total { font-size: 1.05rem; font-weight:600; color:#fff; }
#row-discreet { display: flex; } /* stays flex so it matches summary-row visuals */

/* discreet-opt already styled inline but base layout stays here */
.discreet-opt {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
}

/* ========== PURCHASE PAGE ========== */
.purchase-grid { display: grid; }
.purchase-actions { display: grid; gap: 10px; max-width: 680px; }
.pay-btn.paypal { background: linear-gradient(180deg, rgba(37,99,235,.25), rgba(37,99,235,.1)); }
.pay-btn.crypto  { background: linear-gradient(180deg, rgba(251,191,36,.25), rgba(251,191,36,.1)); }
.pay-btn.cashapp { background: linear-gradient(180deg, rgba(132,204,22,.25), rgba(132,204,22,.1)); }
.pay-btn.etransfer { background: linear-gradient(180deg, rgba(96,165,250,.25), rgba(96,165,250,.1)); }
.pay-btn .pay-logo { font-size: 1.1rem; margin-right: 8px; }
.pay-btn[disabled] { filter: grayscale(1); opacity: .7; }

/* ========== SHIPPING FORM ========== */
.shipping-form { max-width: 760px; display: grid; gap: 12px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid .form-row { display: grid; }
.form-row { display: grid; }
.form-row label { color: #cbd5e1; margin-bottom: 4px; font-weight: 600; }
.form-row input {
  padding: 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
}
.shipping-form .btn-row { display: flex; gap: 10px; }

/* ======== NEW: Payment instruction page helpers ======== */
.pay-instructions { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.back-link { display:inline-flex; align-items:center; gap:8px; color:#93c5fd; text-decoration:none; font-weight:700; }
.addr-box { border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:12px; background:rgba(255,255,255,.04); word-break:break-all; color:#e2e8f0; }
.qr { max-width:220px; width:100%; height:auto; border-radius:12px; border:1px solid rgba(255,255,255,.08); }
.embed { position:relative; padding-top:56.25%; border-radius:12px; overflow:hidden; border:1px solid rgba(255,255,255,.08); }
.embed iframe { position:absolute; inset:0; width:100%; height:100%; }

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .product-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nav-btn span { display: none; }
  .nav-btn { padding: 8px; }
  .product-row { grid-template-columns: 1fr; }
  .logo { font-size: 1rem; }
  .form-grid { grid-template-columns: 1fr; }

  /* tighter padding on tiny screens */
  .product-card { padding: 8px; }

  .cart-item {
    grid-template-columns: 100px 1fr;
  }
  .cart-item .price {
    grid-column: 2 / span 1;
    justify-content: flex-end;
  }
  /* === Mobile-first responsiveness pack (drop-in) === */

/* 1) Fluid media & box sizing */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
body { overflow-x: hidden; }

/* 2) Content width & spacing */
.content { max-width: 1200px; margin: 0 auto; padding: 16px; }
.hero .hero-inner h1 { font-size: clamp(20px, 4vw, 32px); }

/* 3) Sidebar becomes a horizontal, swipeable strip on mobile */
@media (max-width: 1023px) {
  .sidebar { 
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
  }
  .sidenav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .sidenav .side-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* 4) Product grids auto-wrap nicely */
.product-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
@media (max-width: 480px) {
  .product-row { grid-template-columns: 1fr; }
}

/* 5) Product cards & thumbs */
.product-card { display: flex; flex-direction: column; gap: 8px; }
.product-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 6) Checkout/cart layout */
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
}
@media (max-width: 600px) {
  .cart-item { grid-template-columns: 56px 1fr; }
  .cart-item .price { justify-self: end; grid-column: 2 / -1; }
}
.qty input[type="number"] { width: 100%; }

/* 7) Purchase/pay pages */
.purchase-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .purchase-grid { grid-template-columns: 1fr; } }

.paybox, .addr-box {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.gt-amount { font-size: clamp(20px, 5vw, 36px); font-weight: 700; }

/* QR + address box (crypto page) */
.qr { width: 180px; height: auto; }
@media (max-width: 480px) { .qr { width: 120px; } }
#btc-address { overflow-wrap: anywhere; }

/* 8) Buttons are easy to tap on phones */
.btn, .tile-btn { min-height: 44px; }
@media (max-width: 600px) {
  .btn, .tile-btn { width: 100%; }
  .btn-row { display: grid; gap: 8px; }
}

/* 9) Embeds keep 16:9 ratio and fill width */
.embed { position: relative; width: 100%; }
.embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* 10) Forms don’t overflow */
input, select, textarea { width: 100%; max-width: 100%; }

/* 11) Keep header visible and avoid overlap */
.topbar { position: sticky; top: 0; z-index: 40; background: inherit; }

}
/* === Mobile Sidebar Fix (forces single column + skinny nav strip) === */
@media (max-width: 900px) {
  /* Kill any desktop column math */
  .sidebar {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    float: none !important;
    position: static !important;
    border-right: 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
    margin: 0 0 8px 0;
    padding: 0;
  }
  .content {
    width: 100% !important;
    margin: 0 !important;           /* remove any margin-left from desktop */
    padding-left: 0 !important;
  }

  /* If your desktop layout used a grid or 2-column container, collapse it */
  .layout, .page-grid, .site-grid, .container, body {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  /* Sidebar links become a short, horizontal scroller */
  .sidenav {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 10px;
  }
  .sidenav .side-link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1;
  }
}

/* ===== Sitewide scale =====
   Change --site-scale to 0.67 (≈50% more zoomed-out) or 0.50 (half-size).
*/
:root { --site-scale: 0.67; }

/* Chrome / Edge / Safari prefer this */
@supports (zoom: 1) {
  html { zoom: var(--site-scale); }
}

/* Firefox fallback */
@supports not (zoom: 1) {
  html, body { height: 100%; }
  body {
    transform: scale(var(--site-scale));
    transform-origin: top left;
    /* expand the canvas so scrollbars still work normally */
    width: calc(100% / var(--site-scale));
    min-height: calc(100vh / var(--site-scale));
    overflow-x: hidden;
  }
}
