:root {
  --bg: #0a0c0f;
  --bg-2: #0e1115;
  --surface: #13171c;
  --surface-2: #1a1f26;
  --surface-3: #232932;
  --line: rgba(212, 255, 0, 0.14);
  --line-2: rgba(255, 255, 255, 0.08);
  --line-3: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(212, 255, 0, 0.4);
  --ink: #e8eaed;
  --ink-2: #a4a9b3;
  --muted: #5d636e;
  --muted-2: #3a3f47;
  --volt: #d4ff00;
  --volt-soft: #b6d600;
  --volt-deep: #8aa600;
  --volt-glow: rgba(212, 255, 0, 0.35);
  --cyan: #00f0ff;
  --magenta: #ff2bd6;
  --warning: #ff5f5f;
  --success: #6ee787;
  font-family: 'Space Grotesk', 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

html,
body {
  height: 100%;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.route-shop .app-shell,
body.route-shop .type-modal {
  display: none;
}

body.route-customizer .shop-home {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

.mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.app-shell {
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  background: var(--bg);
}

.shop-home {
  position: relative;
  height: 100dvh;
  overflow: auto;
  background: var(--bg);
  isolation: isolate;
}

.shop-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(212, 255, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 255, 0, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at center, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, #000, transparent 80%);
}

.shop-home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
  mix-blend-mode: overlay;
}

.shop-status-bar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px clamp(20px, 4vw, 40px);
  background: rgba(212, 255, 0, 0.06);
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--volt);
}

.shop-status-bar .pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shop-status-bar .pulse::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 10px var(--volt);
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 4vw, 40px);
  background: rgba(10, 12, 15, 0.78);
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.shop-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.shop-brand::before {
  content: "FI";
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--volt);
  color: var(--bg);
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

.shop-brand span {
  display: block;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.shop-brand strong {
  display: block;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.shop-nav a,
.shop-nav button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 2px;
  background: transparent;
  color: var(--ink-2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  border: 0;
  cursor: pointer;
}

.shop-nav a:hover,
.shop-nav button:hover {
  background: rgba(212, 255, 0, 0.08);
  color: var(--ink);
}

.shop-nav a.is-active {
  background: var(--volt);
  color: var(--bg);
  font-weight: 700;
}

.shop-nav .shop-signup-button,
.shop-nav .shop-logout-button {
  width: auto;
  min-height: 36px;
  margin-left: 8px;
  margin-top: 0;
  padding: 0 18px;
  border: 1px solid var(--volt);
  background: transparent;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
  line-height: 1;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.shop-nav .shop-signup-button:hover,
.shop-nav .shop-logout-button:hover {
  background: var(--volt);
  color: var(--bg);
  box-shadow: 0 0 24px var(--volt-glow);
}

.shop-nav .shop-logout-button {
  margin-left: 0;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ink-2);
}

.shop-nav [hidden] {
  display: none;
}

.shop-main {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.shop-page {
  display: none;
}

.shop-page.is-active {
  display: block;
}

/* HERO */
.shop-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  min-height: 64vh;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 56px);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(212, 255, 0, 0.14), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(0, 240, 255, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--surface) 100%);
  overflow: hidden;
}

.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 50%, transparent 100%);
}

.shop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 12, 15, 0.94) 0%, rgba(10, 12, 15, 0.72) 45%, rgba(10, 12, 15, 0.34) 100%),
    radial-gradient(ellipse at 76% 42%, rgba(212, 255, 0, 0.18), transparent 48%);
}

.shop-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.58;
  filter: saturate(1.14) contrast(1.08) brightness(0.9);
}

.shop-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.shop-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  background: rgba(212, 255, 0, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
}

.shop-hero .eyebrow::before {
  content: "[ SYS ]";
  color: var(--ink-2);
}

.shop-hero h1 {
  font-family: 'Archivo Black', 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.shop-hero h1 .glitch {
  position: relative;
  display: inline-block;
  color: #fff;
}

.shop-hero h1 .glitch::before,
.shop-hero h1 .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
}

.shop-hero h1 .glitch::before {
  color: var(--cyan);
  transform: translate(-3px, -2px);
  mix-blend-mode: screen;
  opacity: 0.7;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.shop-hero h1 .glitch::after {
  color: var(--magenta);
  transform: translate(3px, 2px);
  mix-blend-mode: screen;
  opacity: 0.7;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

.shop-hero h1 .volt {
  color: var(--volt);
}

.shop-hero-copy p:last-child {
  max-width: 540px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
}

.shop-hero-copy p:last-child em {
  font-style: normal;
  color: var(--volt);
  font-weight: 600;
}

.shop-hero-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-strong);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}

.shop-hero-panel span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
}

.shop-hero-panel strong {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.shop-hero-panel small {
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* TICKER */
.shop-ticker {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  border-block: 1px solid var(--line-2);
  background: linear-gradient(90deg, transparent, rgba(212, 255, 0, 0.03), transparent);
  overflow: hidden;
}

.shop-ticker-track {
  display: flex;
  gap: 60px;
  padding: 14px 0;
  white-space: nowrap;
  animation: scroll 32s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.shop-ticker-track span {
  display: flex;
  align-items: center;
  gap: 60px;
}

.shop-ticker-track span::after {
  content: "//";
  color: var(--volt);
  margin-left: 60px;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTIONS */
.shop-section {
  margin-top: 50px;
}

.shop-section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.shop-section-heading .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--volt);
  text-transform: uppercase;
  margin: 0;
}

.shop-section-heading h2 {
  margin: 8px 0 0;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}

.shop-section-heading > p {
  max-width: 420px;
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 0.94rem;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin: 0;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-2);
  transition: transform 0.3s, border-color 0.25s, box-shadow 0.3s;
  isolation: isolate;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 96% 100%, 0 100%);
  grid-column: span 4;
  min-height: 380px;
}

.product-card:has(.product-card-link):hover {
  transform: translateY(-4px);
  border-color: var(--volt);
  box-shadow: 0 30px 60px rgba(212, 255, 0, 0.18);
}

.product-card:not(:has(.product-card-link)) {
  background: rgba(19, 23, 28, 0.6);
}

.product-card:not(:has(.product-card-link)) .product-visual {
  filter: saturate(0.45) brightness(0.7);
}

.product-card-featured {
  grid-column: span 6;
}

.product-card-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 220px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(212, 255, 0, 0.06), transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(0, 240, 255, 0.06), transparent 50%);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: auto 12% 13% 12%;
  height: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(10px);
}

.product-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(1.1);
}

.product-visual::after {
  z-index: 2;
}

.product-id {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 8px;
  background: rgba(10, 12, 15, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--volt);
  text-transform: uppercase;
}

.product-visual-fightinfo-logo {
  gap: 7px;
  align-content: center;
  justify-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 255, 0, 0.16), transparent 38%),
    linear-gradient(160deg, #11161d, #07090c);
}

.product-visual-fightinfo-logo::after {
  inset: auto 20% 16% 20%;
}

.product-visual-fightinfo-logo strong {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  background: var(--volt);
  color: var(--bg);
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  box-shadow: 0 0 34px rgba(212, 255, 0, 0.36);
}

.product-visual-fightinfo-logo em {
  position: relative;
  z-index: 3;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.product-visual-fightinfo-logo small {
  position: relative;
  z-index: 3;
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* CSS-rendered product placeholders */
.product-visual-glove-standby span {
  width: 130px;
  height: 160px;
  border: 3px solid var(--volt);
  border-radius: 48% 46% 42% 42%;
  background: var(--surface);
  box-shadow: inset -18px -22px 0 rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 255, 0, 0.15);
}

.product-visual-glove-standby i {
  position: absolute;
  width: 78px;
  height: 62px;
  bottom: 48px;
  border: 3px solid var(--volt);
  border-radius: 16px;
  background: var(--surface-2);
}

.product-visual-headgear span {
  width: 120px;
  height: 120px;
  border: 16px solid var(--surface-3);
  border-bottom-color: transparent;
  border-radius: 48% 48% 42% 42%;
  background: var(--surface);
  box-shadow: inset 0 18px 30px rgba(0, 0, 0, 0.5);
}

.product-visual-headgear i,
.product-visual-headgear b {
  position: absolute;
  width: 42px;
  height: 76px;
  border-radius: 22px;
  background: var(--volt);
  box-shadow: 0 0 18px var(--volt-glow);
}

.product-visual-headgear i {
  left: calc(50% - 80px);
}

.product-visual-headgear b {
  right: calc(50% - 80px);
}

.product-visual-gi span {
  width: 150px;
  height: 170px;
  clip-path: polygon(18% 0, 43% 0, 50% 16%, 57% 0, 82% 0, 96% 58%, 76% 65%, 70% 100%, 30% 100%, 24% 65%, 4% 58%);
  background: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 0 0 8px var(--surface-3), inset 0 -38px 0 var(--volt);
}

.product-visual-gi i,
.product-visual-gi b {
  position: absolute;
  width: 10px;
  height: 150px;
  top: 38px;
  border-radius: 999px;
  background: var(--volt-deep);
}

.product-visual-gi i {
  transform: rotate(20deg);
}

.product-visual-gi b {
  transform: rotate(-20deg);
}

.product-visual-shin span,
.product-visual-shin i {
  width: 70px;
  height: 170px;
  border-radius: 36px 36px 24px 24px;
  background: linear-gradient(160deg, var(--volt), var(--volt-deep));
  box-shadow: inset 0 12px 22px rgba(255, 255, 255, 0.18), inset 0 -22px 0 rgba(0, 0, 0, 0.4);
}

.product-visual-shin span {
  transform: rotate(-9deg);
}

.product-visual-shin i {
  margin-left: -12px;
  transform: rotate(9deg);
}

.product-visual-shin b {
  position: absolute;
  width: 185px;
  height: 18px;
  bottom: 62px;
  border-radius: 999px;
  background: var(--bg);
}

.product-card-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 15, 0.96) 50%);
}

.product-card-body h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1;
  color: #fff;
}

.product-card-featured .product-card-body h3 {
  font-size: 1.9rem;
}

.product-card-body p {
  color: var(--ink-2);
  line-height: 1.5;
  font-size: 0.88rem;
}

.product-card-body strong {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card-body strong::after {
  content: "→";
  color: var(--volt);
  transition: transform 0.25s;
}

.product-card:hover .product-card-body strong::after {
  transform: translateX(6px);
}

.product-status {
  width: fit-content;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-status.is-live {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--bg);
}

/* CATEGORY PAGES */
.category-page {
  padding-bottom: 18px;
}

.category-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 32px;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 94% 100%, 0 100%);
}

.category-heading .eyebrow {
  margin-bottom: 10px;
}

.category-heading h2 {
  margin-top: 4px;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

.category-heading p:last-child {
  max-width: 680px;
  margin-top: 12px;
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 0.95rem;
}

.back-link {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--volt);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  order: 2;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: box-shadow 0.2s;
}

.back-link::before {
  content: "←";
}

.back-link:hover {
  box-shadow: 0 0 24px var(--volt-glow);
}

.category-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.product-card-list {
  min-height: 360px;
  grid-column: auto;
}

.product-card-list .product-visual {
  min-height: 180px;
}

.product-card-list .product-card-body h3 {
  font-size: 1.15rem;
}

.portfolio-count {
  align-self: end;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.portfolio-status {
  min-height: 20px;
  margin: 0 0 14px;
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.portfolio-status:empty {
  display: none;
}

.portfolio-status.is-warning {
  color: var(--warning);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-card {
  display: grid;
  grid-template-rows: 260px auto;
  min-height: 520px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  overflow: hidden;
}

.portfolio-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 34%, rgba(212, 255, 0, 0.08), transparent 42%),
    #0c1118;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.portfolio-glove-mini {
  position: relative;
  width: 170px;
  height: 210px;
}

.portfolio-glove-main {
  position: absolute;
  left: 34px;
  top: 12px;
  width: 118px;
  height: 138px;
  display: grid;
  place-items: center;
  border: 4px solid var(--portfolio-trim);
  border-bottom-width: 8px;
  border-radius: 48% 44% 36% 34%;
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.65), transparent 18%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 48%),
    var(--portfolio-main);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.portfolio-glove-main b {
  max-width: 76px;
  overflow: hidden;
  color: var(--portfolio-palm);
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-glove-thumb {
  position: absolute;
  right: 0;
  top: 76px;
  width: 54px;
  height: 86px;
  border: 4px solid var(--portfolio-trim);
  border-radius: 52% 42% 46% 52%;
  background: var(--portfolio-thumb);
  transform: rotate(14deg);
}

.portfolio-glove-cuff {
  position: absolute;
  left: 26px;
  bottom: 12px;
  width: 120px;
  height: 56px;
  border: 5px solid var(--portfolio-trim);
  border-radius: 16px 16px 20px 20px;
  background:
    linear-gradient(90deg, transparent 0 9%, var(--portfolio-stitch) 9% 11%, transparent 11% 89%, var(--portfolio-stitch) 89% 91%, transparent 91%),
    var(--portfolio-cuff);
}

.portfolio-logo-thumb {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  background: var(--bg);
}

.portfolio-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.portfolio-kicker,
.portfolio-card-body small {
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.portfolio-card-body h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}

.portfolio-card-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
}

.portfolio-color-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.portfolio-color-chips span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 800;
}

.portfolio-color-chips i {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.portfolio-logo-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.5;
}

.portfolio-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 34px;
  border: 1px dashed var(--line-2);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.035);
}

.portfolio-empty strong {
  color: var(--ink);
  font-size: 1rem;
}

/* PROCESS */
.shop-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 50px;
}

.shop-process article {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s;
}

.shop-process article:hover {
  border-color: var(--volt);
  transform: translateY(-3px);
}

.shop-process article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.shop-process article:hover::before {
  transform: scaleX(1);
}

.shop-process span {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.shop-process strong {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: #fff;
}

.shop-process p {
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 0.92rem;
}

/* TELEMETRY (stats strip) */
.shop-telemetry {
  position: relative;
  z-index: 2;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(212, 255, 0, 0.04), transparent);
}

.shop-telemetry .cell {
  padding: 28px;
  border-right: 1px dashed var(--line);
}

.shop-telemetry .cell:last-child {
  border-right: 0;
}

.shop-telemetry .cell .lbl {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--volt);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.shop-telemetry .cell .val {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.2rem;
  color: #fff;
  line-height: 1;
}

.shop-telemetry .cell .val em {
  font-style: normal;
  color: var(--volt);
}

.shop-telemetry .cell .sub {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.78rem;
}

/* HOME FOOTER */
.shop-foot {
  position: relative;
  z-index: 2;
  margin-top: 60px;
  padding: 48px 0 24px;
  border-top: 1px solid var(--line-2);
}

.shop-foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-2);
}

.shop-foot-grid h5 {
  margin: 0 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--volt);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.shop-foot-grid p,
.shop-foot-grid li {
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.65;
  list-style: none;
  margin: 0;
}

.shop-foot-grid ul {
  margin: 0;
  padding: 0;
}

.shop-foot-grid li {
  margin-bottom: 8px;
}

.shop-foot-grid a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.shop-foot-grid a:hover {
  color: var(--volt);
}

.shop-foot-bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* CUSTOMIZER STAGE */
.stage-panel {
  min-width: 0;
  min-height: 0;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  padding: 18px 24px;
  gap: 12px;
  background: var(--bg);
  position: relative;
}

.stage-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(212, 255, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 255, 0, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at center, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, #000, transparent 80%);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.topbar > div:first-child h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 6px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.primary-button,
.ghost-button,
.shop-link-button,
.glove-type-select,
.glove-type-detail-button,
.segmented button {
  border: 0;
  cursor: pointer;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  font-size: 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.icon-button:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.icon-button.active {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--bg);
}

.primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  background: var(--volt);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: transform 0.15s, box-shadow 0.25s;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--volt-glow);
}

.shop-link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--line-3);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.shop-link-button:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.primary-button:disabled {
  background: var(--surface-3);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.scene-mount {
  position: relative;
  z-index: 2;
  min-height: 330px;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-2);
  user-select: none;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 96% 100%, 0 100%);
}

.scene-mount canvas,
.configurator-frame {
  display: block;
  width: 100%;
  height: 100%;
}

.configurator-frame {
  min-height: inherit;
  border: 0;
  background: var(--surface);
}

.scene-mount.is-measurement-grid-locked .configurator-frame {
  pointer-events: none;
}

/* Measurement grid */
.measurement-grid-overlay {
  --grid-size: 24px;
  --grid-major-size: 120px;
  --grid-origin-x: 50%;
  --grid-origin-y: 50%;
  --glove-top: 20%;
  --glove-height: 60%;
  --ruler-x: 60%;
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  pointer-events: none;
  touch-action: none;
  overflow: hidden;
  color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(212, 255, 0, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 255, 0, 0.34) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 240, 255, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.34) 1px, transparent 1px);
  background-position:
    var(--grid-origin-x) var(--grid-origin-y),
    var(--grid-origin-x) var(--grid-origin-y),
    var(--grid-origin-x) var(--grid-origin-y),
    var(--grid-origin-x) var(--grid-origin-y);
  background-size:
    var(--grid-major-size) var(--grid-major-size),
    var(--grid-major-size) var(--grid-major-size),
    var(--grid-size) var(--grid-size),
    var(--grid-size) var(--grid-size);
}

.measurement-grid-overlay.is-visible {
  display: block;
  cursor: not-allowed;
  pointer-events: auto;
}

.measurement-grid-ruler {
  position: absolute;
  left: var(--ruler-x);
  top: var(--glove-top);
  height: var(--glove-height);
  width: 38px;
  border-left: 2px solid var(--volt);
}

.measurement-grid-ruler strong {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  min-width: 82px;
  padding: 4px 8px;
  background: rgba(10, 12, 15, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
}

.measurement-grid-ruler-cap {
  position: absolute;
  left: -8px;
  width: 16px;
  height: 2px;
  background: var(--volt);
}

.measurement-grid-ruler-cap.top { top: 0; }
.measurement-grid-ruler-cap.bottom { bottom: 0; }

.measurement-grid-readout {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  background: rgba(10, 12, 15, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
}

.measurement-grid-readout strong {
  color: var(--volt);
  font-size: 0.78rem;
  font-weight: 700;
}

.measurement-grid-readout span {
  color: var(--ink-2);
  font-size: 0.7rem;
}

.measurement-grid-lock-notice {
  position: absolute;
  left: 50%;
  top: 18px;
  max-width: min(420px, calc(100% - 32px));
  transform: translate(-50%, -8px);
  padding: 10px 16px;
  background: rgba(212, 255, 0, 0.92);
  border: 1px solid var(--volt);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  opacity: 0;
  text-align: center;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.measurement-grid-lock-notice.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* STAGE COLOR CONTROLS */
.stage-color-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(26, 31, 38, 0.96), rgba(14, 17, 21, 0.96));
}

.stage-color-panel.is-collapsed {
  gap: 0;
  padding-block: 8px;
}

.stage-color-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stage-color-heading h2 {
  margin: 0;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stage-color-toggle {
  min-height: 28px;
  border: 1px solid var(--line-2);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.stage-color-toggle:hover {
  border-color: var(--volt);
  background: var(--volt);
  color: var(--bg);
}

.stage-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.stage-color-grid[hidden] {
  display: none;
}

.stage-color-grid .color-row {
  min-width: 0;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--line-2);
  background: rgba(10, 12, 15, 0.48);
}

.stage-color-grid .color-row > span {
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.stage-color-grid .color-row > div {
  gap: 4px;
}

.stage-color-grid .color-palette {
  grid-template-columns: repeat(12, minmax(14px, 1fr));
  gap: 3px;
}

.stage-color-grid .color-swatch-button {
  height: 18px;
  border-width: 1px;
}

.stage-color-grid .color-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.66rem;
  line-height: 1.1;
}

/* CONTROL PANEL */
.control-panel {
  min-height: 0;
  height: 100dvh;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg-2);
  border-left: 1px solid var(--line-2);
  scrollbar-color: var(--surface-3) var(--bg-2);
  scrollbar-width: thin;
}

.control-panel::-webkit-scrollbar {
  width: 8px;
}

.control-panel::-webkit-scrollbar-track {
  background: var(--bg-2);
}

.control-panel::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 0;
}

.panel-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--volt);
  color: var(--bg);
  font-family: 'Archivo Black', sans-serif;
  font-size: 1rem;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  flex: 0 0 auto;
}

.panel-heading h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
}

.panel-heading p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.5;
}

.control-group {
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}

.control-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.control-group h3::before {
  content: ">";
  color: var(--volt);
  font-weight: 700;
}

/* GLOVE TYPE GRID */
.glove-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.glove-type-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}

.glove-type-card:hover {
  border-color: var(--volt-soft);
}

.glove-type-card.is-selected {
  border-color: var(--volt);
  background: rgba(212, 255, 0, 0.06);
  box-shadow: inset 0 0 0 1px var(--volt);
}

.glove-type-select {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border: 0;
}

.glove-type-title {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.glove-type-title em {
  flex: 0 0 auto;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-style: normal;
  text-transform: uppercase;
}

.glove-type-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.glove-type-select small {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.4;
}

.glove-type-detail-button {
  min-height: 32px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.glove-type-detail-button:hover {
  border-color: var(--volt);
  color: var(--volt);
}

/* MEASUREMENT */
.measurement-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.measurement-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.measurement-settings label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.measurement-settings label > span {
  grid-column: 1 / -1;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.measurement-settings input,
.measurement-settings select {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.measurement-settings input:focus,
.measurement-settings select:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.15);
}

.measurement-settings em {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.measurement-note {
  padding: 9px 10px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
}

/* COLOR ROWS */
.color-row,
.text-row,
.range-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 10px 0;
  font-size: 0.84rem;
  color: var(--ink-2);
  font-weight: 600;
}

.color-row > div {
  display: grid;
  gap: 7px;
}

.palette-row {
  align-items: start;
}

.palette-control {
  min-width: 0;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.color-swatch-button {
  min-width: 0;
  height: 32px;
  border: 2px solid var(--line-2);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.color-swatch-button:hover {
  transform: translateY(-1px);
  border-color: var(--volt-soft);
}

.color-swatch-button.is-selected {
  border-color: var(--volt);
  box-shadow: 0 0 0 2px var(--volt-glow), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.color-current {
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.text-row input {
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line-2);
  padding: 0 10px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.text-row input:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.15);
}

.upload-drop {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px;
  border: 1px dashed var(--line-3);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-drop:hover {
  border-color: var(--volt);
  background: rgba(212, 255, 0, 0.04);
}

.upload-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-title {
  color: #fff;
  font-weight: 700;
}

.upload-meta {
  color: var(--ink-2);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* LOGO UPLOAD CARDS */
.logo-upload-grid {
  display: grid;
  gap: 10px;
}

.logo-upload-card {
  border: 1px solid var(--line-2);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s;
}

.logo-upload-card.is-active {
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.1);
}

.logo-upload-card.is-overridden .logo-card-header {
  background: var(--surface-2);
}

.logo-upload-card.is-overridden .logo-card-summary {
  color: var(--ink);
}

.logo-upload-card.is-overridden .logo-upload-body input,
.logo-upload-card.is-overridden .logo-upload-body button,
.logo-upload-card.is-overridden .logo-upload-body select,
.logo-upload-card.is-overridden .logo-upload-body textarea {
  cursor: not-allowed;
}

.logo-upload-card.is-overridden .logo-upload-body > :not(.logo-unified-lock-overlay) {
  opacity: 0.34;
}

.logo-area-color-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}

.logo-area-color-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.logo-area-color-heading strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.logo-area-color-heading small {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: right;
}

.logo-area-color-note {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
}

.logo-area-palette {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.unified-artwork-card {
  border-color: var(--line-strong);
}

.logo-card-header {
  width: 100%;
  min-height: 58px;
  padding: 14px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  transition: background 0.2s;
}

.logo-card-header:hover {
  background: var(--surface-2);
}

.logo-card-header strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.logo-card-summary {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}

.logo-toggle-label {
  min-width: 52px;
  min-height: 28px;
  padding: 0 10px;
  background: var(--bg);
  color: var(--volt);
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.logo-upload-body {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--bg-2);
}

.logo-upload-body[hidden] {
  display: none;
}

.logo-mode-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.logo-mode-panel[hidden] {
  display: none;
}

.logo-unified-lock-overlay {
  position: absolute;
  inset: 12px;
  z-index: 5;
  min-height: 112px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 12, 15, 0.9);
  backdrop-filter: blur(2px);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  pointer-events: auto;
}

.logo-unified-lock-overlay[hidden] {
  display: none;
}

.logo-unified-lock-overlay strong {
  max-width: 240px;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.logo-upload-target {
  min-width: 0;
  min-height: 126px;
  padding: 14px;
  border: 1px dashed var(--line-3);
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.logo-upload-target:focus-within {
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.15);
}

.unified-artwork-target {
  grid-template-columns: minmax(0, 1fr) 88px;
}

.logo-upload-heading {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.compact-heading {
  grid-column: 1 / -1;
}

.logo-upload-title-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.logo-upload-title-row .compact-heading {
  grid-column: auto;
}

.logo-inline-transform {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 236px;
}

.logo-inline-group {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.28);
}

.logo-inline-label {
  padding-inline: 3px;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-inline-transform button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.logo-inline-transform button:hover:not(:disabled) {
  border-color: var(--volt);
  color: var(--volt);
}

.logo-inline-transform button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line-2);
  background: var(--surface);
}

.logo-upload-heading strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.logo-upload-heading small {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
}

.logo-upload-preview {
  width: 72px;
  height: 58px;
  border: 1px solid var(--line-2);
  background-color: var(--bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: var(--volt);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform-origin: center;
}

.unified-artwork-preview {
  width: 88px;
  height: 62px;
}

.unified-artwork-color-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.unified-artwork-color-grid {
  display: grid;
  gap: 8px;
}

.logo-upload-preview.has-text-badge {
  border-color: currentColor;
}

.logo-upload-preview.has-text-outline {
  -webkit-text-stroke: 0.6px var(--bg);
}

.logo-file-row {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.logo-file-row > span {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-file-input {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  padding: 5px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.logo-file-input::file-selector-button {
  min-height: 28px;
  margin-right: 10px;
  border: 0;
  padding: 0 14px;
  background: var(--volt);
  color: var(--bg);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.logo-remove-button {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.logo-remove-button:not(:disabled):hover {
  border-color: var(--warning);
  color: var(--warning);
  background: rgba(255, 95, 95, 0.06);
}

.logo-remove-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--surface);
}

.logo-text-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.logo-text-row {
  display: grid;
  gap: 6px;
}

.logo-text-row > span {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-text-row input[type="text"],
.logo-text-row input[type="number"],
.logo-text-row select {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line-2);
  padding: 0 10px;
  color: var(--ink);
  background: var(--bg);
  font: inherit;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.logo-text-row input[type="text"]:focus,
.logo-text-row input[type="number"]:focus,
.logo-text-row select:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.15);
}

.logo-text-row input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--line-2);
  background: var(--bg);
}

.logo-text-row input:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--surface);
}

.logo-box-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.logo-box-title {
  display: grid;
  gap: 3px;
}

.logo-box-title strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.logo-box-title small {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 500;
}

.logo-box-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.logo-box-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wrist-label-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.wrist-label-title {
  display: grid;
  gap: 3px;
}

.wrist-label-title strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.wrist-label-title small {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
}

.wrist-label-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wrist-label-border-control {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.wrist-label-palette {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.wrist-label-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.wrist-label-option:hover {
  border-color: var(--volt-soft);
}

.wrist-label-option:has(input:checked) {
  border-color: var(--volt);
  background: rgba(212, 255, 0, 0.06);
  box-shadow: inset 0 0 0 1px var(--volt);
}

.wrist-label-option input {
  margin: 2px 0 0;
  accent-color: var(--volt);
}

.wrist-label-option strong,
.wrist-label-option small {
  display: block;
}

.wrist-label-option strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.wrist-label-option small {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
}

.option-check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--ink);
}

.option-check-row input {
  margin: 3px 0 0;
  accent-color: var(--volt);
}

.option-check-row strong,
.option-check-row small {
  display: block;
}

.option-check-row strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.option-check-row small {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.compact-option-check-row {
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}

.compact-option-check-row input {
  margin: 0;
}

.compact-option-check-row strong {
  font-size: 0.8rem;
}

.logo-adjust-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.logo-text-compact-transform {
  display: grid;
  padding: 8px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}

.logo-text-compact-transform .logo-inline-transform {
  justify-content: flex-start;
  max-width: none;
}

.logo-adjust-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.logo-adjust-row > span {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-stepper {
  display: grid;
  grid-template-columns: 38px minmax(58px, 1fr) 38px;
  gap: 6px;
  align-items: center;
}

.logo-stepper button,
.logo-nudge-pad button {
  min-height: 36px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.logo-stepper button:hover:not(:disabled),
.logo-nudge-pad button:hover:not(:disabled) {
  border-color: var(--volt);
  color: var(--volt);
}

.logo-stepper button:disabled,
.logo-nudge-pad button:disabled {
  cursor: not-allowed;
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line-2);
}

.logo-stepper output {
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.logo-nudge-pad {
  display: grid;
  grid-template-columns: repeat(3, 38px);
  grid-template-rows: repeat(3, 36px);
  gap: 6px;
  justify-content: start;
}

.nudge-up { grid-column: 2; grid-row: 1; }
.nudge-left { grid-column: 1; grid-row: 2; }
.nudge-reset { grid-column: 2; grid-row: 2; }
.nudge-right { grid-column: 3; grid-row: 2; }
.nudge-down { grid-column: 2; grid-row: 3; }

.logo-upload-card .upload-meta {
  grid-column: 1 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-upload-card .compact {
  align-self: auto;
  margin-top: 0;
  padding: 0 10px;
  font-size: 0.78rem;
}

.logo-preview {
  height: 86px;
  margin-top: 10px;
  border: 1px solid var(--line-2);
  background-color: var(--bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.35rem;
}

.compact {
  min-height: 36px;
  margin-top: 10px;
  font-size: 0.84rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}

.segmented button {
  min-height: 36px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button.active {
  background: var(--volt);
  color: var(--bg);
}

.range-row input {
  width: 100%;
  accent-color: var(--volt);
}

/* ORDER CARD */
.order-card {
  border: 1px solid var(--line-2);
  padding: 16px;
  background: var(--surface);
  display: grid;
  gap: 14px;
}

.quantity-row {
  display: grid;
  gap: 8px;
}

.quantity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quantity-row span {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quantity-heading strong {
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
}

.quantity-heading strong.is-empty {
  color: var(--warning);
}

.ounce-quantity-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ounce-quantity-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ounce-quantity-field span {
  text-align: center;
  color: var(--ink-2) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

.quantity-row input,
.admin-product-selector select,
.admin-price-grid input,
.admin-tier-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-2);
  padding: 0 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quantity-row input:focus,
.admin-product-selector select:focus,
.admin-price-grid input:focus,
.admin-tier-row input:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.15);
}

.quantity-row input,
.admin-product-selector select,
.admin-price-grid input,
.admin-tier-row input {
  height: 38px;
}

.price-summary {
  display: grid;
  gap: 9px;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}

.price-line,
.price-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.price-line span,
.price-total span {
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-line strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.price-total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.price-total strong {
  color: var(--volt);
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
}

.price-extra-note {
  padding: 10px 12px;
  background: rgba(255, 95, 95, 0.06);
  border: 1px solid rgba(255, 95, 95, 0.3);
  color: var(--warning);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.member-shipping-toggle,
.signup-shipping-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.member-shipping-toggle > label,
.signup-shipping-toggle > label,
.member-profile-form .member-shipping-toggle > label,
.signup-form .signup-shipping-toggle > label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.member-profile-form .member-shipping-toggle > label {
  min-width: 168px;
}

.region-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #fff;
  overflow: hidden;
}

.region-icon-kr::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e73644 0 50%, #2454a6 50% 100%);
  transform: translate(-50%, -50%) rotate(34deg);
}

.region-icon-kr::after {
  content: "";
  position: absolute;
  inset: 4px;
  background:
    linear-gradient(#111 0 0) left top / 7px 2px no-repeat,
    linear-gradient(#111 0 0) left 5px top / 7px 2px no-repeat,
    linear-gradient(#111 0 0) right top / 7px 2px no-repeat,
    linear-gradient(#111 0 0) right 5px top / 7px 2px no-repeat,
    linear-gradient(#111 0 0) left bottom / 7px 2px no-repeat,
    linear-gradient(#111 0 0) right bottom / 7px 2px no-repeat,
    linear-gradient(#111 0 0) right 5px bottom / 7px 2px no-repeat;
}

.region-icon-global {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0, 240, 255, 0.16) 43% 100%),
    linear-gradient(90deg, transparent 0 45%, #00f0ff 46% 54%, transparent 55%),
    linear-gradient(0deg, transparent 0 45%, #00f0ff 46% 54%, transparent 55%),
    #102134;
}

.region-icon-global::before,
.region-icon-global::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #00f0ff;
  border-left-width: 0;
  border-right-width: 0;
  border-radius: 50%;
}

.region-icon-global::after {
  inset: 3px 8px;
  border: 1px solid #00f0ff;
  border-top-width: 0;
  border-bottom-width: 0;
}

.member-shipping-toggle > span,
.signup-shipping-toggle > span,
.member-profile-form .member-shipping-toggle > span,
.signup-form .signup-shipping-toggle > span {
  width: 100%;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-shipping-toggle input,
.signup-shipping-toggle input {
  accent-color: var(--volt);
}

.member-profile-form [hidden],
.signup-form [hidden] {
  display: none !important;
}

.member-profile-form input[readonly],
.signup-form input[readonly] {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.04);
}

.customs-warning {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 205, 65, 0.36);
  background: rgba(255, 205, 65, 0.08);
  color: #ffd76d;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
}

.production-file-notice {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.04);
}

.production-file-notice strong {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.production-file-notice p {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
}

.production-file-notice a,
.site-footer a {
  color: var(--volt);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-notice {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}

.checkout-notice > strong {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-notice label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
}

.checkout-notice input {
  margin: 2px 0 0;
  accent-color: var(--volt);
}

.order-submit-status {
  min-height: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.order-submit-status.is-success {
  color: var(--success);
}

.order-submit-status.is-warning {
  color: var(--warning);
}

.order-submit-status:empty,
.order-submit-status[hidden] {
  display: none;
}

/* ADMIN PANEL */
.admin-panel {
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.admin-page .admin-panel {
  max-width: 980px;
}

.admin-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  color: var(--volt);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-panel summary small {
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.admin-panel-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.admin-panel-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}

.admin-product-selector {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}

.admin-product-selector label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-product-selector span {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-product-selector p {
  color: var(--ink) !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem !important;
  font-weight: 700;
}

.admin-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-price-grid label,
.admin-tier-row label {
  display: grid;
  gap: 6px;
}

.admin-price-grid span,
.admin-tier-row span {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-tier-header strong {
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-tier-header button,
.admin-tier-row button,
.admin-order-header button {
  min-height: 34px;
  border: 1px solid var(--line-2);
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.admin-tier-header button:hover:not(:disabled),
.admin-tier-row button:hover:not(:disabled),
.admin-order-header button:hover:not(:disabled) {
  border-color: var(--volt);
  color: var(--volt);
}

.admin-tier-row button:disabled,
.admin-order-header button:disabled {
  cursor: not-allowed;
  color: var(--muted);
}

.admin-tier-list {
  display: grid;
  gap: 8px;
}

.admin-tier-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: end;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-order-section {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.admin-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-order-header span {
  display: grid;
  gap: 2px;
}

.admin-order-header strong {
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-order-header small {
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 600;
}

.admin-order-list {
  display: grid;
  gap: 8px;
}

.admin-order-empty,
.admin-order-card {
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}

.admin-order-empty {
  padding: 12px;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-order-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 12px;
  cursor: pointer;
}

.admin-order-card summary span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-order-card summary strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-card summary small {
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
}

.admin-order-card summary em {
  padding: 4px 10px;
  background: var(--volt);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-order-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.admin-order-details div,
.admin-order-block {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}

.admin-order-details span,
.admin-order-block span {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-order-details strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-details small,
.admin-order-block p,
.admin-order-block li {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
}

.admin-order-block {
  margin: 0 12px 10px;
}

.admin-order-block ul {
  margin: 0;
  padding-left: 18px;
}

/* ADMIN PAGE - SIMPLE MODERN DASHBOARD */
.shop-page.admin-page {
  --admin-bg: #f5f7fb;
  --admin-card: #ffffff;
  --admin-card-soft: #f8fafc;
  --admin-line: #dbe3ef;
  --admin-line-strong: #b8c5d6;
  --admin-ink: #172033;
  --admin-muted: #667085;
  --admin-accent: #2563eb;
  --admin-accent-dark: #1d4ed8;
  --admin-danger: #dc2626;
  margin: 0 auto;
  padding: 18px;
  background: var(--admin-bg);
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: 20px;
  color: var(--admin-ink);
}

.admin-page .category-heading {
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  clip-path: none;
}

.admin-page .category-heading .eyebrow {
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 9px;
  background: #eef4ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: var(--admin-accent);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.admin-page .category-heading h2 {
  color: var(--admin-ink);
  font-family: inherit;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.admin-page .category-heading p:last-child {
  max-width: 720px;
  margin-top: 10px;
  color: var(--admin-muted);
  font-size: 0.95rem;
}

.admin-page .back-link {
  min-height: 40px;
  padding: 0 14px;
  background: var(--admin-card-soft);
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  color: var(--admin-ink);
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
  clip-path: none;
}

.admin-page .back-link::before {
  content: "<";
}

.admin-page .back-link:hover {
  border-color: var(--admin-line-strong);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.admin-page .admin-login-card,
.admin-page .admin-session-bar {
  max-width: 720px;
  margin: 0 auto 18px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.admin-page .admin-login-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
}

.admin-page .admin-login-card[hidden],
.admin-page .admin-session-bar[hidden],
.admin-page .admin-panel[hidden] {
  display: none;
}

.admin-page .admin-login-card > div {
  display: grid;
  gap: 8px;
}

.admin-page .admin-login-card > div > span {
  width: fit-content;
  padding: 4px 9px;
  background: #eef4ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: var(--admin-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-page .admin-login-card h3 {
  margin: 0;
  color: var(--admin-ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.admin-page .admin-login-card p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.admin-page .admin-login-form {
  display: grid;
  gap: 12px;
}

.admin-page .admin-login-form label {
  display: grid;
  gap: 6px;
}

.admin-page .admin-login-form span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-page .admin-login-form input {
  height: 44px;
  width: 100%;
  border: 1px solid var(--admin-line-strong);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--admin-card);
  color: var(--admin-ink);
  font-weight: 700;
}

.admin-page .admin-login-form input:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.admin-page .admin-login-form .primary-button {
  min-height: 44px;
  border-radius: 10px;
  clip-path: none;
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.admin-page .admin-login-status {
  min-height: 20px;
  color: var(--admin-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-page .admin-action-status {
  min-height: 0;
  color: var(--admin-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-page .admin-login-status:empty,
.admin-page .admin-action-status:empty {
  display: none;
}

.admin-page .admin-login-status.is-error,
.admin-page .admin-action-status.is-error {
  color: #dc2626;
}

.admin-page .admin-login-status.is-info,
.admin-page .admin-action-status.is-info {
  color: var(--admin-accent);
}

.admin-page .admin-session-bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
}

.admin-page .admin-session-bar span {
  color: var(--admin-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-page .admin-session-bar button {
  min-height: 36px;
  border: 1px solid var(--admin-line-strong);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--admin-card-soft);
  color: var(--admin-ink);
  cursor: pointer;
  font-weight: 700;
}

.admin-page .admin-session-bar button:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

.admin-page .admin-panel {
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.admin-page .admin-panel summary {
  min-height: 68px;
  padding: 0 22px;
  background: var(--admin-card);
  border-bottom: 1px solid var(--admin-line);
  color: var(--admin-ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.admin-page .admin-panel summary small {
  padding: 5px 10px;
  background: var(--admin-card-soft);
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  color: var(--admin-muted);
  font-size: 0.78rem;
}

.admin-page .admin-panel-body {
  gap: 16px;
  padding: 20px 22px 22px;
}

.admin-page .admin-panel-body > p {
  padding: 12px 14px;
  background: var(--admin-card-soft);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  color: var(--admin-muted);
  font-size: 0.86rem;
}

.admin-page .admin-product-selector,
.admin-page .admin-order-section,
.admin-page .admin-order-empty,
.admin-page .admin-order-card,
.admin-page .admin-order-details div,
.admin-page .admin-order-block {
  background: var(--admin-card-soft);
  border: 1px solid var(--admin-line);
  border-radius: 14px;
}

.admin-page .admin-product-selector {
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  padding: 16px;
}

.admin-page .admin-product-selector p {
  align-self: center;
  color: var(--admin-muted) !important;
  font-family: inherit;
  font-size: 0.86rem !important;
  font-weight: 600;
}

.admin-page .admin-product-selector span,
.admin-page .admin-price-grid span,
.admin-page .admin-tier-row span,
.admin-page .admin-order-details span,
.admin-page .admin-order-block span {
  color: var(--admin-muted);
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.admin-page .admin-product-selector select,
.admin-page .admin-price-grid input,
.admin-page .admin-tier-row input {
  height: 44px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line-strong);
  border-radius: 10px;
  color: var(--admin-ink);
  font-weight: 700;
}

.admin-page .admin-product-selector select:focus,
.admin-page .admin-price-grid input:focus,
.admin-page .admin-tier-row input:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.admin-page .admin-price-grid {
  gap: 12px;
}

.admin-page .admin-price-grid label,
.admin-page .admin-tier-row {
  padding: 14px;
  background: var(--admin-card-soft);
  border: 1px solid var(--admin-line);
  border-radius: 14px;
}

.admin-page .admin-tier-header {
  padding-top: 6px;
}

.admin-page .admin-tier-header strong,
.admin-page .admin-order-header strong,
.admin-page .admin-order-card summary strong,
.admin-page .admin-order-details strong {
  color: var(--admin-ink);
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.admin-page .admin-tier-header button,
.admin-page .admin-tier-row button,
.admin-page .admin-order-header button {
  min-height: 38px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line-strong);
  border-radius: 10px;
  color: var(--admin-ink);
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

.admin-page .admin-tier-header button:hover:not(:disabled),
.admin-page .admin-tier-row button:hover:not(:disabled),
.admin-page .admin-order-header button:hover:not(:disabled) {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

.admin-page .admin-tier-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 72px;
}

.admin-page .admin-actions {
  justify-self: end;
  width: min(420px, 100%);
}

.admin-page .admin-actions .primary-button,
.admin-page .admin-actions .ghost-button {
  min-height: 44px;
  margin-top: 0;
  border-radius: 10px;
  clip-path: none;
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.admin-page .admin-actions .primary-button {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  color: #fff;
}

.admin-page .admin-actions .primary-button:hover:not(:disabled) {
  background: var(--admin-accent-dark);
  border-color: var(--admin-accent-dark);
  color: #fff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.admin-page .admin-actions .ghost-button {
  background: var(--admin-card);
  border-color: var(--admin-line-strong);
  color: var(--admin-ink);
}

.admin-page .admin-actions .ghost-button:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

.admin-page .admin-order-section {
  padding: 16px;
  border-top: 1px solid var(--admin-line);
}

.admin-page .admin-order-header small,
.admin-page .admin-order-card summary small,
.admin-page .admin-order-details small,
.admin-page .admin-order-block p,
.admin-page .admin-order-block li,
.admin-page .admin-order-empty {
  color: var(--admin-muted);
  font-family: inherit;
}

.admin-page .admin-order-card {
  background: var(--admin-card);
}

.admin-page .admin-order-card summary {
  min-height: 58px;
  padding: 14px;
}

.admin-page .admin-order-card summary em {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  color: #0369a1;
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.admin-page .admin-order-details {
  gap: 10px;
  padding: 0 14px 14px;
}

.admin-page .admin-order-details div,
.admin-page .admin-order-block {
  background: #ffffff;
}

.admin-page .admin-order-block {
  margin: 0 14px 14px;
}

.admin-page .site-version-line {
  padding: 13px 14px;
  background: var(--admin-card-soft);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  color: var(--admin-muted);
}

.admin-page .site-version-line span,
.admin-page .site-version-line strong {
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

.admin-page .site-version-line strong {
  color: var(--admin-accent);
}

body.route-admin {
  background: #eef2f7;
}

body.route-admin .shop-home {
  background: #eef2f7;
}

body.route-admin .shop-home::before,
body.route-admin .shop-home::after,
body.route-admin .shop-status-bar {
  display: none;
}

body.route-admin .shop-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dbe3ef;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.route-admin .shop-brand {
  color: #172033;
}

body.route-admin .shop-brand::before {
  content: "FI";
  background: #172033;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 10px;
  clip-path: none;
}

body.route-admin .shop-brand span {
  color: #667085;
  font-family: inherit;
  letter-spacing: 0.08em;
}

body.route-admin .shop-brand strong {
  color: #172033;
}

body.route-admin .shop-nav {
  background: #f8fafc;
  border-color: #dbe3ef;
  border-radius: 14px;
}

body.route-admin .shop-nav a,
body.route-admin .shop-nav button {
  border-radius: 10px;
  color: #475467;
  font-family: inherit;
}

body.route-admin .shop-nav a:hover,
body.route-admin .shop-nav button:hover {
  background: #eaf1ff;
  color: #2563eb;
}

body.route-admin .shop-nav a.is-active {
  background: #2563eb;
  color: #ffffff;
}

body.route-admin .shop-nav .shop-signup-button,
body.route-admin .shop-nav .shop-logout-button {
  border-color: #dbe3ef;
  background: #ffffff;
  color: #172033;
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 10px;
  clip-path: none;
}

body.route-admin .shop-nav .shop-signup-button:hover,
body.route-admin .shop-nav .shop-logout-button:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: none;
}

.member-page .category-heading {
  margin-bottom: 24px;
}

.member-profile-card {
  width: min(1120px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(212, 255, 0, 0.08), transparent 42%),
    var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.member-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.member-profile-form label {
  display: grid;
  gap: 7px;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-profile-form input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-2);
  padding: 0 14px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.member-profile-form input:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.14);
}

.member-profile-note,
.member-profile-status,
.member-profile-actions,
.member-profile-wide,
.member-shipping-toggle {
  grid-column: 1 / -1;
}

.member-profile-note {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.86rem;
}

.member-profile-status {
  min-height: 20px;
  margin: 0;
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.member-profile-status.is-success {
  color: var(--success);
}

.member-profile-status.is-error {
  color: var(--warning);
}

.member-profile-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.member-profile-actions .primary-button {
  width: auto;
  min-width: 132px;
  padding: 0 24px;
}

.wide {
  width: 100%;
}

.ghost-button {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.ghost-button:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.member-save-panel {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.member-save-panel .ghost-button {
  margin-top: 0;
}

.member-save-meta {
  margin: 0;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.member-save-meta[hidden] {
  display: none;
}

.member-save-status {
  min-height: 0;
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.member-save-status.is-success {
  color: var(--success);
}

.member-save-status.is-warning {
  color: var(--warning);
}

.member-save-status:empty {
  display: none;
}

/* SITE FOOTER (inside customizer) */
.site-footer {
  display: grid;
  gap: 14px;
  padding: 24px 0 4px;
  border-top: 1px dashed var(--line);
  margin-top: 12px;
}

.site-footer section {
  display: grid;
  gap: 6px;
}

.site-footer strong {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer p {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.55;
}

.site-version-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
}

.site-version-line span,
.site-version-line strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-version-line strong {
  color: var(--volt);
  text-align: right;
}

/* MODALS */
.modal-open {
  overflow: hidden;
}

.type-modal[hidden] {
  display: none;
}

.type-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.type-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 15, 0.78);
  backdrop-filter: blur(6px);
  border: 0;
}

.type-modal-panel {
  position: relative;
  width: min(820px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1fr);
  gap: 18px;
  overflow: auto;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 60px var(--volt-glow);
  clip-path: polygon(0 0, 100% 0, 100% 96%, 96% 100%, 0 100%);
}

.type-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--volt);
  background: transparent;
  color: var(--volt);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.type-modal-close:hover {
  background: var(--volt);
  color: var(--bg);
}

.type-modal-media {
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}

.type-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-modal-placeholder {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--ink-2);
  text-align: center;
}

.type-modal-placeholder strong {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.type-modal-placeholder span {
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
}

.type-modal-content {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 42px 10px 0;
}

.type-modal-kicker {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.type-modal-content h3 {
  margin: 0;
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.type-modal-content p,
.type-modal-content li {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.65;
}

.type-modal-content p {
  margin: 0;
}

.type-modal-content ul {
  margin: 0;
  padding-left: 18px;
}

.signup-modal[hidden] {
  display: none;
}

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.signup-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.signup-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.7), 0 0 60px var(--volt-glow);
  clip-path: polygon(0 0, 100% 0, 100% 96%, 96% 100%, 0 100%);
}

.signup-modal-heading {
  display: grid;
  gap: 8px;
  padding-right: 42px;
  margin-bottom: 18px;
}

.signup-modal-heading h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
}

.signup-modal-heading p:last-child {
  color: var(--ink-2);
  line-height: 1.55;
}

.signup-form {
  display: grid;
  gap: 12px;
}

.signup-form label {
  display: grid;
  gap: 6px;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signup-form input:not([type="checkbox"]) {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-2);
  padding: 0 14px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.15);
}

.signup-terms {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}

.signup-terms span {
  color: var(--ink-2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.signup-terms input {
  accent-color: var(--volt);
}

.signup-status {
  min-height: 20px;
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.signup-status.is-success {
  color: var(--success);
}

.signup-status.is-error {
  color: var(--warning);
}

@media (max-width: 980px) {
  .shop-header,
  .shop-section-heading,
  .category-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-section-heading {
    display: flex;
    gap: 14px;
  }

  .shop-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .back-link {
    order: 0;
  }

  .shop-hero,
  .shop-process,
  .shop-foot-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .shop-hero {
    min-height: auto;
    padding: 32px 24px;
  }

  .product-grid,
  .category-product-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card,
  .product-card-featured {
    grid-column: span 1;
  }

  .shop-telemetry {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-telemetry .cell:nth-child(2) {
    border-right: 0;
  }

  html,
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .stage-panel {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .control-panel {
    min-height: auto;
    height: auto;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }

  .stage-color-heading {
    align-items: center;
    flex-direction: row;
  }

  .stage-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .type-modal-panel {
    grid-template-columns: 1fr;
  }

  .type-modal-content {
    padding: 0;
  }

  .admin-page .category-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page .back-link {
    order: 0;
  }

  .admin-page .admin-product-selector,
  .admin-page .admin-login-card,
  .admin-page .admin-price-grid,
  .admin-page .admin-tier-row,
  .admin-page .admin-actions,
  .admin-page .admin-order-details {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-actions {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .shop-main {
    width: min(100% - 24px, 1320px);
    padding-top: 18px;
  }

  .shop-status-bar {
    font-size: 0.62rem;
    padding: 8px 14px;
  }

  .shop-status-bar > span:last-child {
    display: none;
  }

  .shop-header {
    padding: 14px 14px;
  }

  .shop-page.admin-page {
    padding: 12px;
    border-radius: 16px;
  }

  .member-profile-card {
    padding: 16px;
  }

  .member-profile-form {
    grid-template-columns: 1fr;
  }

  .member-profile-actions .primary-button {
    width: 100%;
  }

  .admin-page .category-heading,
  .admin-page .admin-panel-body {
    padding: 16px;
  }

  .shop-hero {
    padding: 24px 18px;
  }

  .product-grid,
  .category-product-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .product-card-featured {
    grid-column: auto;
  }

  .stage-panel,
  .control-panel {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .scene-mount {
    min-height: 360px;
  }

  .stage-color-grid,
  .glove-type-grid {
    grid-template-columns: 1fr;
  }

  .logo-upload-title-row {
    grid-template-columns: 1fr;
  }

  .logo-inline-transform {
    justify-content: flex-start;
    max-width: none;
  }

  .type-modal {
    padding: 12px;
  }

  .type-modal-panel {
    max-height: calc(100dvh - 24px);
    padding: 14px;
  }

  .type-modal-media {
    min-height: 220px;
  }

  .color-row,
  .text-row,
  .range-row,
  .admin-price-grid,
  .admin-tier-row,
  .admin-actions,
  .measurement-settings,
  .ounce-quantity-grid,
  .admin-order-details,
  .logo-upload-card,
  .logo-upload-target,
  .unified-artwork-target,
  .logo-text-panel,
  .logo-box-options,
  .logo-box-grid,
  .wrist-label-options {
    grid-template-columns: 1fr;
  }
}
