/* Project Phil storefront */

:root {
  --bg: #080a0f;
  --bg-1: #0d1017;
  --bg-2: #12161f;
  --bg-3: #1a1f2a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);

  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.65);
  --text-3: rgba(255, 255, 255, 0.4);

  --accent: #3b8bff;
  --accent-hi: #6aa9ff;
  --accent-ink: #03101f;
  --accent-soft: rgba(59, 139, 255, 0.12);
  --accent-line: rgba(59, 139, 255, 0.38);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -16px rgba(0, 0, 0, 0.6), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 60px 120px -30px rgba(0, 0, 0, 0.75), 0 12px 32px -8px rgba(0, 0, 0, 0.6);

  --display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1600px;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden], .hidden { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: #2a303b var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex; flex-direction: column; min-height: 100vh;
}
body > main { flex: 1 0 auto; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-lg { --h: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 10px; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 24px -8px rgba(59, 139, 255, 0.6); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line-3); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 10, 15, 0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; flex: none; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 4px; justify-content: center; }
.nav-end { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.nav > a, .nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px; border: 0; background: transparent; cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--text);
  transition: color .2s, background-color .2s;
}
.nav > a:hover, .nav-btn:hover, .nav-btn[aria-expanded="true"] { color: var(--text); background: var(--bg-2); }
.nav > a[aria-current="page"] { color: var(--accent-hi); }
.nav-btn svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.menu-wrap { position: relative; }
.menu-pop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.menu-pop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; }
.menu-pop a:hover { background: var(--bg-3); }
.menu-pop b { display: block; font-size: 14.5px; font-weight: 600; }
.menu-pop span { display: block; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.menu-sep { height: 1px; background: var(--line); margin: 6px; }

/* Nav dropdowns — CSS hover, no JS needed */
.nav-pop {
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.nav-drop:hover .nav-pop {
  opacity: 1; pointer-events: all;
  transform: translateY(0);
}
.nav-chevron { transition: transform .2s var(--ease); font-size: 11px; }
.nav-drop:hover .nav-chevron { transform: rotate(180deg); }

.nav > a.cart-link, .nav-end > a.cart-link { position: relative; padding: 10px 12px; }
.cart-link svg { width: 19px; height: 19px; }
.cart-badge {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.nav > a.nav-cta { margin-left: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 10px 20px; }
.nav > a.nav-cta:hover { background: var(--accent-hi); color: var(--accent-ink); }
.nav-btn.nav-user { gap: 8px; margin-left: 8px; padding: 6px 12px 6px 8px; font-weight: 600; color: var(--text); white-space: nowrap; }
.menu-user { left: auto; right: 0; width: 200px; }
.menu-user a { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.menu-user a svg { width: 15px; height: 15px; flex: none; color: var(--text-2); }
.nav-user img { width: 28px; height: 28px; border-radius: 50%; }
.user-drop .nav-user, .nav-end > .nav-user { display: inline-flex; align-items: center; padding: 8px 12px; }
.nav-end > .nav-user { margin-left: 0; }
.nav-cart { position: relative; }
.nav-cart .cart-badge { position: static; margin-left: 2px; }
.user-drop .menu-user { top: 100%; left: auto; right: 0; width: auto; min-width: 160px; }
.user-drop .menu-user a { font-weight: 600; }

.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; place-items: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: 18px; }
.mobile-menu a:not(.btn) { display: block; padding: 11px 4px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a[aria-current="page"] { color: var(--text); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); overflow: hidden; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 84px); letter-spacing: -0.04em; line-height: 1; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 24px; max-width: 520px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin-top: 52px; }
.hero-stats div { padding: 0 28px; border-left: 1px solid var(--line-2); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 13.5px; color: var(--text-2); }

.stack { position: relative; aspect-ratio: 1 / 0.82; width: 100%; max-width: 640px; justify-self: end; }
.stack a {
  position: absolute; width: 62%; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--bg-1); box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease), border-color .3s;
}
.stack a:hover { border-color: var(--accent-line); z-index: 5; }
.stack .label {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 99px;
  background: rgba(8, 10, 15, 0.75); backdrop-filter: blur(8px); border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 600;
}

/* ---------- Product image ---------- */
.product-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.product-img-placeholder { aspect-ratio: 16 / 9; background: var(--bg-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-1); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 36px; }
.head h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; }
.head p { margin-top: 12px; max-width: 560px; color: var(--text-2); font-size: 17px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 99px;
  background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hi); }
.chip .n { font-family: var(--mono); font-size: 12px; opacity: .7; }
.chip svg { width: 12px; height: 12px; }

/* ---------- Product cards ---------- */
.store-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.pcard {
  position: relative; grid-column: span 4; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s;
}
.pcard:hover { border-color: var(--accent-line); background: var(--bg-2); transform: translateY(-3px); }
.pcard-link { position: absolute; inset: 0; z-index: 1; }
.pcard-media { position: relative; border-bottom: 1px solid var(--line); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.tag {
  padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: rgba(8, 10, 15, 0.75); backdrop-filter: blur(8px); border: 1px solid var(--line-2); color: var(--text);
}
.tag-accent { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.tag-product { background: #1a3a52; border-color: #1e5080; color: #7ec8f0; }
.tag-user    { background: #2a1a52; border-color: #4a2a90; color: #b08af0; }
.tag-order   { background: #3a1a1a; border-color: #802020; color: #f08a8a; }
.tag-release { background: #1a3a1a; border-color: #206020; color: #8af08a; }
.tag-category { background: #3a2e10; border-color: #7a5e20; color: #f0c870; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.pcard-cat { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.pcard h3 { margin-top: 8px; font-size: 20px; }
.pcard p { margin-top: 8px; color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.pcard-foot form { position: relative; z-index: 2; }
.cart-item form { flex: none; }
.cart-add {
  position: relative; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); color: var(--text);
  transition: background-color .2s, border-color .2s, color .2s;
}
.cart-add:hover { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.cart-add[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hi); }
.cart-add svg { width: 17px; height: 17px; }
.empty { padding: 48px 0; text-align: center; color: var(--text-2); }

/* ---------- Inner pages ---------- */
.eyebrow { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-hi); }
.page-head { position: relative; padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 120% at 85% 0%, rgba(59, 139, 255, 0.18), transparent 70%);
}
.page-head .wrap { position: relative; }
.page-head h1 { margin-top: 10px; font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.04em; }
.page-head p { margin-top: 16px; max-width: 600px; color: var(--text-2); font-size: 18px; }
.page-head .btn { margin-top: 26px; }
.section > .wrap > .chips { margin-bottom: 28px; }

/* ---------- Products page ---------- */
.page-head .crumbs { margin-bottom: 18px; }
.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.shop-side { position: sticky; top: 96px; display: grid; gap: 20px; }
.side-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.side-card h4 { padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.side-list { display: grid; gap: 2px; padding: 8px; }
.side-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 15px; text-align: left; cursor: pointer; transition: color .2s, background-color .2s; }
.side-list button:hover { color: var(--text); background: var(--bg-2); }
.side-list button[aria-pressed="true"] { color: var(--accent-hi); background: var(--accent-soft); }
.side-list button svg { width: 16px; height: 16px; flex: none; }
.side-list .n { margin-left: auto; min-width: 28px; padding: 2px 6px; border-radius: 4px; background: var(--bg-3); font-family: var(--mono); font-size: 12px; text-align: center; }
.side-list button[aria-pressed="true"] .n { background: var(--accent); color: var(--accent-ink); }
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.shop-bar b { color: var(--text); }
.shop-bar select { height: 44px; padding: 0 14px; border-radius: 8px; background: var(--bg-1); border: 1px solid var(--line-2); font: inherit; font-size: 14.5px; color: var(--text); cursor: pointer; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scard { display: flex; flex-direction: column; overflow: hidden; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.scard:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.scard-media { position: relative; display: block; border-bottom: 1px solid var(--line); }
.scard-media .tag { position: absolute; top: 12px; right: 12px; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.scard-body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.scard h3 { font-size: 19px; }
.scard p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.scard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.scard-tags span { padding: 3px 8px; border-radius: 4px; background: var(--bg-3); color: var(--text-2); font-size: 12px; }
.scard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

.stat-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.stat-row div { padding: 0 clamp(24px, 4vw, 52px); border-left: 1px solid var(--line-2); text-align: center; }
.stat-row div:first-child { border-left: 0; }
.stat-row b { display: block; font-family: var(--display); font-size: clamp(38px, 5vw, 58px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; color: var(--text); }
.stat-row span { font-size: 14px; color: var(--text-2); }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.info { padding: 24px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.section-alt .info { background: var(--bg); }
.info > svg { height: 22px; color: var(--accent-hi); }
.info > i { font-size: 22px; color: var(--accent-hi); }
.info h3 { margin-top: 16px; font-size: 19px; }
.info p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* ---------- Section helpers ---------- */
.head-centered { justify-content: center; text-align: center; }
.section-cta { text-align: center; margin-top: 36px; }

/* ---------- Releases page ---------- */
.releases-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.releases-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.release-delete:hover { border-color: rgba(255, 90, 90, 0.45); color: #ff9c9c; }
.releases-sub { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.releases-empty { color: var(--text-2); margin-top: 32px; font-size: 15px; }
.release-list { display: grid; gap: 16px; }
.release-card { padding: 24px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.release-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.release-card-ver { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-ver { font-family: var(--mono); font-size: 18px; font-weight: 700; }
.release-card-title { font-size: 17px; margin-top: 6px; }
.release-card-meta { margin-top: 4px; font-size: 13.5px; color: var(--text-2); }
.release-notes { margin: 16px 0 0; padding: 16px 18px; background: var(--bg-2); border-radius: 8px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); overflow-wrap: break-word; }
.release-notes > * + * { margin-top: 10px; }
.release-notes h1, .release-notes h2, .release-notes h3, .release-notes h4 { color: var(--text); letter-spacing: -0.01em; }
.release-notes h1 { font-size: 20px; }
.release-notes h2 { font-size: 18px; }
.release-notes h3, .release-notes h4 { font-size: 16px; }
.release-notes ul, .release-notes ol { padding-left: 22px; }
.release-notes ul { list-style: disc; }
.release-notes ol { list-style: decimal; }
.release-notes a { color: var(--accent-hi); text-decoration: underline; }
.release-notes code { padding: 2px 6px; border-radius: 5px; background: var(--bg-3); font-family: var(--mono); font-size: 13px; color: var(--text); }
.release-notes hr { border: 0; border-top: 1px solid var(--line-2); }

/* ---------- Product page ---------- */
.product { padding: 28px 0 clamp(56px, 7vw, 96px); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font-size: 14px; color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs svg { height: 9px; }
.crumbs span { color: var(--text-2); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.product-media { border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.product-info h1 { margin-top: 10px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.035em; }
.product-info > p { margin-top: 16px; color: var(--text-2); font-size: 17.5px; }
.product-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 40px; }
.product-gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.product-desc { margin-top: 40px; padding: 28px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text-2); font-size: 16px; line-height: 1.65; }
.product-desc > * + * { margin-top: 12px; }
.product-desc h1, .product-desc h2, .product-desc h3, .product-desc h4 { color: var(--text); letter-spacing: -0.02em; }
.product-desc h1 { font-size: 28px; }
.product-desc h2 { font-size: 24px; }
.convertinfo, .convertsuccess, .convertwarning, .convertdanger { padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--text); }
.convertsuccess { border-color: rgba(60, 200, 120, 0.4); background: rgba(60, 200, 120, 0.12); }
.convertwarning { border-color: rgba(255, 190, 70, 0.4); background: rgba(255, 190, 70, 0.12); }
.convertdanger { border-color: rgba(255, 90, 90, 0.35); background: rgba(255, 90, 90, 0.1); }
.product-desc h3 { font-size: 20px; }
.product-desc h4 { font-size: 17px; }
.product-desc ul { padding-left: 22px; list-style: disc; }
.product-desc a { color: var(--accent-hi); text-decoration: underline; }
.product-desc code { padding: 2px 6px; border-radius: 5px; background: var(--bg-3); font-family: var(--mono); font-size: 14px; color: var(--text); }
.product-desc hr { border: 0; border-top: 1px solid var(--line-2); }
.price-was { margin-right: 6px; color: var(--text-3); font-size: .7em; font-weight: 500; text-decoration: line-through; }
.product-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.cart-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hi); box-shadow: none; }
.included { display: grid; gap: 12px; margin: 32px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15.5px; }
.included li { display: flex; align-items: center; gap: 12px; }
.included svg { width: 18px; height: 16px; flex: none; color: var(--accent-hi); }
.included i { color: var(--accent-hi); width: 18px; text-align: center; }

/* ---------- Cart ---------- */
.sum-row-discount { color: #4ade80; }
.cart-checkout { margin-top: 12px; }

.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cart-items { display: grid; gap: 12px; }
.cart-item { display: flex; align-items: center; gap: 18px; padding: 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cart-thumb { flex: none; width: 128px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { margin-top: 6px; font-size: 19px; transition: color .2s; }
.cart-item-info a:hover h3 { color: var(--accent-hi); }
.cart-remove {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); color: var(--text-2);
  transition: background-color .2s, border-color .2s, color .2s;
}
.cart-remove:hover { border-color: var(--line-3); color: var(--text); }
.cart-remove svg { width: 15px; height: 15px; }
.cart-clear { justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 6px 4px; background: transparent; border: 0; cursor: pointer; color: var(--text-2); font-size: 14px; transition: color .2s; }
.cart-clear:hover { color: var(--text); }
.cart-clear svg { width: 13px; height: 13px; }
.cart-summary { position: sticky; top: 96px; padding: 24px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cart-summary h2 { font-size: 20px; margin-bottom: 14px; }
.cart-summary .sum-row span:first-child { text-transform: capitalize; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; color: var(--text-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.sum-row.total { margin: 6px 0 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text); font-family: var(--display); font-size: 20px; font-weight: 700; }
.sum-note { margin-top: 12px; color: var(--text-2); font-size: 13.5px; text-align: center; }
.cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 0; }
.cart-empty > svg { height: 34px; color: var(--text-2); }
.cart-empty h2 { margin-top: 20px; font-size: 26px; }
.cart-empty p { margin: 8px 0 26px; color: var(--text-2); }
.cart-discount { display: flex; gap: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cart-discount input { flex: 1; min-width: 0; background: transparent; border: none; border-radius: 0; padding: 10px 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.cart-discount input:focus { outline: none; box-shadow: none; }
.cart-discount .btn { border-radius: 0; border: none; border-left: 1px solid var(--line); flex-shrink: 0; background: var(--accent); color: var(--accent-ink); margin: 0; align-self: stretch; }
.cart-discount-remove { margin-top: 8px; width: 100%; justify-content: center; }
.cart-summary .btn-ghost { margin-top: 12px; }
.cart-summary .sum-row span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }

.form-end { display: flex; justify-content: flex-end; }

/* ---------- Sign in ---------- */
.login-card { width: 100%; max-width: 420px; padding: 36px 32px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.login-card .brand-mark { display: block; margin: 0 auto; width: 44px; height: 44px; }
.login-card h1 { margin-top: 18px; font-size: 30px; letter-spacing: -0.03em; color: var(--text); }
.login-card p { margin: 10px 0 26px; font-size: 16px; color: var(--text-2); }
.login-page { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(40px, 8vh, 96px); }
.form { display: grid; gap: 14px; text-align: left; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.form input {
  height: 46px; padding: 0 14px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line-2);
  font: inherit; font-size: 15.5px; color: var(--text); transition: border-color .2s;
}
.form input:hover { border-color: var(--line-3); }
.form input:focus { outline: 0; border-color: var(--accent); }
.form .btn { margin-top: 6px; }
.form-error { margin-bottom: 16px; padding: 10px 14px; border-radius: 9px; background: rgba(255, 90, 90, 0.1); border: 1px solid rgba(255, 90, 90, 0.35); color: #ff9c9c; font-size: 14.5px; text-align: left; }
.form-or { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-2); font-size: 13px; }
.form-or::before, .form-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.form-alt { display: block; margin-top: 20px; color: var(--text-2); font-size: 14.5px; }
.form-alt a { color: var(--accent-hi); font-weight: 600; }
.qr-wrap { display: flex; justify-content: center; margin: 20px 0; }
.qr-wrap img, .qr-wrap svg { background: #fff; border-radius: 10px; padding: 10px; }
.qr-manual { margin-bottom: 20px; text-align: left; }
.qr-manual summary { cursor: pointer; font-size: 13px; color: var(--text-2); }
.qr-manual code { display: block; margin-top: 8px; word-break: break-all; font-size: 12px; padding: 8px 10px; background: var(--bg-2); border-radius: 6px; color: var(--text-2); }
.code-input { text-align: center; letter-spacing: 0.2em; font-size: 22px; font-weight: 600; }
.twofa-setup-page { padding: 40px 0; display: flex; align-items: flex-start; justify-content: center; }
.twofa-setup-card { display: flex; gap: 48px; align-items: flex-start; background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; padding: 40px; max-width: 780px; width: 100%; }
.twofa-setup-qr { flex-shrink: 0; width: 220px; }
.twofa-setup-form { flex: 1; }
.twofa-setup-form h1 { font-size: 22px; font-weight: 700; margin: 12px 0 8px; }
.twofa-setup-form p { color: var(--text-2); font-size: 14px; margin-bottom: 20px; }
@media (max-width: 600px) { .twofa-setup-card { flex-direction: column; padding: 24px 16px; } .twofa-setup-qr { width: 100%; } }

/* ---------- Announcement banner ---------- */
.site-banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 20px; font-size: 13.5px; font-weight: 500; position: relative; }
.site-banner span { text-align: center; }
.site-banner-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; opacity: .6; font-size: 14px; padding: 4px 6px; }
.site-banner-close:hover { opacity: 1; }
.site-banner-info { background: color-mix(in srgb, var(--accent) 15%, var(--bg-1)); color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.site-banner-info .site-banner-close { color: var(--text); }
.site-banner-success { background: color-mix(in srgb, #22c55e 15%, var(--bg-1)); color: #86efac; border-bottom: 1px solid color-mix(in srgb, #22c55e 30%, transparent); }
.site-banner-success .site-banner-close { color: #86efac; }
.site-banner-warning { background: color-mix(in srgb, #f59e0b 15%, var(--bg-1)); color: #fcd34d; border-bottom: 1px solid color-mix(in srgb, #f59e0b 30%, transparent); }
.site-banner-warning .site-banner-close { color: #fcd34d; }

/* ---------- Error page ---------- */
.error-page { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(80px, 14vh, 160px); padding-bottom: clamp(80px, 14vh, 160px); }
.banned-page.error-page h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.03em; }
.error-page h1 { margin-top: 10px; font-size: clamp(72px, 12vw, 140px); letter-spacing: -0.05em; line-height: 1; color: var(--accent); }
.error-page h2 { margin-top: 6px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; color: var(--text); }
.error-page p { margin: 8px 0 30px; max-width: 460px; color: var(--text-2); font-size: 17px; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); }
.footer-top { display: flex; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.footer-brand-col { flex: 1.8; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text-2); text-decoration: none; }
.footer-brand img { opacity: .85; }
.footer-tagline { font-size: 13.5px; color: var(--text-2); line-height: 1.5; max-width: 260px; }
.footer-col-head { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 10px; }
.footer-col-link { font-size: 14px; color: var(--text-2); padding: 4px 0; transition: color .15s; }
.footer-col-link:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast {
  display: none; position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: min(380px, calc(100vw - 40px));
  padding: 12px 16px; border: 1px solid transparent; border-radius: var(--r); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.toast-visible { transform: translateY(0); }
.toast > p { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.toast.text-black { color: #000; }
.toast.bg-green-300 { background: #86efac; border-color: #86efac; }
.toast.bg-red-300 { background: #fca5a5; border-color: #fca5a5; }
.toast.bg-yellow-300 { background: #fde047; border-color: #fde047; }
.toast.bg-purple-300 { background: #d8b4fe; border-color: #d8b4fe; }
.toast.bg-blue-300 { background: #93c5fd; border-color: #93c5fd; }

/* ---------- Reveal ---------- */
.reveal { animation: reveal .7s var(--ease) backwards; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } }

/* ── Homepage: hero ── */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to bottom, rgba(8,10,15,.65) 0%, rgba(8,10,15,.45) 50%, rgba(8,10,15,.9) 100%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 80% 0%, rgba(59,139,255,.22), transparent 70%);
}
.stack .s1 { top: 2%;   left: 0;    transform: rotate(-2.5deg);  z-index: 2; }
.stack .s2 { top: 6%;   right: 0;   transform: rotate(2deg);     z-index: 1; }
.stack .s3 { bottom: 2%; left: 8%;  transform: rotate(1.5deg);   z-index: 3; }
.stack .s4 { bottom: 0;  right: 2%; transform: rotate(-1.5deg);  z-index: 1; }
.stack a:hover { transform: rotate(0deg) scale(1.02) !important; z-index: 10 !important; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 99px;
  background: rgba(59,139,255,.1); border: 1px solid rgba(59,139,255,.3);
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent-hi);
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ── Homepage: featured product ── */
.feat { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.feat-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.feat-media {
  border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.feat-badge-overlay {
  position: absolute; top: 16px; left: 16px;
  display: flex; gap: 7px; z-index: 2;
}
.feat-info { display: flex; flex-direction: column; gap: 0; }
.feat-info .eyebrow { margin-bottom: 10px; }
.feat-info h2 { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.feat-info > p { color: var(--text-2); font-size: 17px; line-height: 1.65; margin-bottom: 24px; }
.feat-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.feat-price-num { font-family: var(--display); font-size: 38px; font-weight: 700; letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.feat-price-free { color: var(--accent-hi); }
.feat-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.feat-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ── Homepage: products heading row ── */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.head-row h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.head-row p  { margin-top: 10px; color: var(--text-2); font-size: 16px; max-width: 480px; }

/* ── Homepage: stat tiles ── */
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.stat-tile { position: relative; padding: 28px 24px 24px; background: var(--bg-1); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; transition: border-color .25s var(--ease), background .25s var(--ease); overflow: hidden; }
.stat-tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,139,255,.07), transparent 70%); pointer-events: none; }
.stat-tile:hover { background: var(--bg-2); border-color: var(--accent-hi); }
.stat-tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-hi); font-size: 17px; flex: none; }
.stat-tile-num { font-family: var(--display); font-size: clamp(32px, 3.5vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; position: relative; }
.stat-tile-label { font-size: 13.5px; color: var(--text-2); font-weight: 500; }

/* ── Homepage: featured category banner ── */
.feat-cat-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 48px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-xl); flex-wrap: wrap; position: relative; overflow: hidden; }
.feat-cat-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 100% 50%, rgba(59,139,255,.1), transparent 65%); pointer-events: none; }
.feat-cat-left { display: flex; flex-direction: column; gap: 8px; position: relative; }
.feat-cat-left .eyebrow { margin-bottom: 0; }
.feat-cat-left h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; }
.feat-cat-left p { color: var(--text-2); font-size: 15.5px; max-width: 480px; }
.feat-cat-btn { flex-shrink: 0; position: relative; }

@media (max-width: 960px) {
  .feat-grid { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-tile { padding: 20px 16px 18px; }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- Mobile bottom bar ---------- */
.mob-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(8, 10, 15, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  padding: 0 var(--gutter); height: 62px;
  justify-content: space-around; align-items: center;
}
.mob-bar a, .mob-bar button {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--text-2);
  font-size: 19px; cursor: pointer; border-radius: 10px;
  transition: color .2s, background-color .2s;
}
.mob-bar a:hover, .mob-bar button:hover { color: var(--text); background: var(--bg-2); }
.mob-bar .cart-link .cart-badge { top: 2px; right: 2px; }

/* ---------- Mobile overlay menu ---------- */
.mob-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg-1); overflow-y: auto;
  padding: 24px var(--gutter) 80px;
}
.mob-menu-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.mob-menu-head img { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.mob-menu-head > span { flex: 1; font-weight: 600; font-size: 17px; }
.mob-menu-head button {
  width: 38px; height: 38px; border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); font-size: 16px; cursor: pointer; border-radius: 9px;
  transition: color .2s, background-color .2s;
}
.mob-menu-head button:hover { color: var(--text); background: var(--bg-2); }
.mob-menu-links { display: grid; }
.mob-menu-links a:not(.btn) {
  display: block; padding: 13px 4px; color: var(--text); font-size: 16px; font-weight: 500;
  border-bottom: 1px solid var(--line); transition: color .2s;
}
.mob-menu-links a:not(.btn):hover { color: var(--accent-hi); }
.mob-menu-sub { padding-left: 20px !important; color: var(--text-2) !important; font-size: 14.5px !important; }
.mob-menu-links .btn { margin-top: 20px; }

@media (max-width: 960px) {
  .shop { grid-template-columns: 1fr; gap: 24px; }
  .shop-side { position: static; }
  .site-header:not(.staff-header) { display: none; }
  .mob-bar { display: flex; }
  body { padding-bottom: 62px; }
  .hero-grid, .product-grid, .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .stack { display: none; }
  .pcard { grid-column: span 6; }
  .footer-top { flex-wrap: wrap; gap: 28px; }
  .footer-brand-col { flex: 1 1 100%; }
  .footer-col { flex: 1 1 calc(50% - 14px); }
}
@media (max-width: 620px) {
  .shop-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .hero-stats div { padding: 0 20px; }
  .hero-stats div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-cta .btn { flex: 1; }
  .pcard { grid-column: 1 / -1; }
  .info-grid { grid-template-columns: 1fr; }
  .cart-item { gap: 12px; }
  .stat-row { gap: 24px 0; }
  .stat-row div { flex: 1 1 50%; border-left: none; border-top: 1px solid var(--line-2); padding: 20px 16px 0; }
  .stat-row div:first-child { border-top: 0; padding-top: 0; }
  .stat-row div:nth-child(2) { border-top: 0; padding-top: 0; }
  .login-card { padding: 28px 20px; border-radius: 12px; }
  .login-card h1 { font-size: 24px; }
  .cart-thumb { width: 76px; }
}
