/* ==========================================================================
   SAINT DESTROY — ARCHIVE RACK 2026
   Style: Minimalist 2D / 3D Industrial Streetwear Showcase
   Background: #F8F8F8 | Text: #111111 | Spring Physics Animations
   ========================================================================== */

:root {
  --bg-color: #F8F8F8;
  --bg-card: #FFFFFF;
  --text-main: #111111;
  --text-muted: #737373;
  --text-dim: #A3A3A3;
  --border-light: rgba(17, 17, 17, 0.12);
  --border-strong: #111111;
  --steel-color: #1A1A1A;
  --steel-highlight: #ECECEC;
  --accent-rec: #EF4444;
  --accent-active: #10B981;
  
  --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Chakra Petch', monospace;
  
  /* Spring Easing for 2026 Trend */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Reset & Lock Scroll */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Perfect for screen recording video without accidental scrollbars */
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  user-select: none;
}

/* Background Industrial Grid Layer */
.bg-grid-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(17, 17, 17, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center center;
  z-index: 1;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.04) 100%);
  z-index: 2;
}

/* ==========================================================================
   HUD & TELEMETRY FRAME (TikTok & Video Capture Ready)
   ========================================================================== */
.hud-frame {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.3s ease;
}

body.rec-mode .hud-frame {
  opacity: 0.15;
}

body.rec-mode .hud-frame:hover {
  opacity: 1;
}

.hud-top, .hud-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  pointer-events: auto;
}

/* Top Left Brand */
.hud-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-monogram {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  background: var(--text-main);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 2px;
  letter-spacing: 0.1em;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-main);
}

.brand-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Top Right Controls */
.hud-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-active);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hud-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.hud-btn:hover {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
  transform: translateY(-1px);
}

.rec-mode-btn .rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-rec);
}

body.rec-mode .rec-mode-btn {
  background: var(--accent-rec);
  color: #FFFFFF;
  border-color: var(--accent-rec);
}

.reset-btn {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
}

.reset-btn:hover {
  background: #262626;
  border-color: #262626;
}

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 4px;
  border-radius: 2px;
}

/* Bottom Telemetry */
.hud-bottom {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.telemetry-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.telem-label {
  font-weight: 700;
  color: var(--text-main);
}

.status-indicator-text {
  font-weight: 600;
  letter-spacing: 0.08em;
}

.text-locked {
  color: #DC2626;
}

.text-unlocked {
  color: var(--accent-active);
}

/* ==========================================================================
   STAGE & 3D CLOTHES RAIL CONTAINER
   ========================================================================== */
.stage-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  perspective-origin: 50% 45%;
  z-index: 10;
}

.rack-viewport {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Realistic Metal Clothes Rail Structure */
.rack-structure {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform-style: preserve-3d;
}

/* Ambient Floor Shadow */
.rack-floor-shadow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.03) 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Floor Base & Metallic Legs */
.rack-base-pipes {
  position: absolute;
  bottom: 50px;
  left: 5%;
  right: 5%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.base-crossbar {
  flex: 1;
  height: 8px;
  background: linear-gradient(180deg, #333333 0%, #111111 60%, #000000 100%);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.crossbar-engraving {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.25);
  transform: translateY(-8px);
}

.base-foot {
  width: 60px;
  height: 12px;
  background: #111111;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.foot-pad {
  position: absolute;
  bottom: -4px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: #444444;
  border-radius: 2px;
}

/* Vertical Upright Steel Pillars */
.pillar {
  position: absolute;
  top: 90px;
  bottom: 60px;
  width: 14px;
  z-index: 3;
}

.pillar-left {
  left: 5%;
}

.pillar-right {
  right: 5%;
}

.pillar-tube {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #333333 0%, #666666 40%, #1A1A1A 100%);
  border-radius: 7px;
  box-shadow: inset 1px 0 2px rgba(255, 255, 255, 0.3), 2px 0 8px rgba(0, 0, 0, 0.15);
  position: relative;
}

.pillar-joint {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #111111;
  border-radius: 4px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #333333;
}

.pillar-joint.top-joint {
  top: -8px;
}

.pillar-ruler {
  position: absolute;
  left: 20px;
  top: 20%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
}

.pillar-tag {
  position: absolute;
  right: 20px;
  top: 30%;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

/* Top Horizontal Metal Rail (Telescopic expand) */
.telescopic-rail {
  position: absolute;
  top: 90px;
  left: 5%;
  right: 5%;
  height: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rail-tube {
  width: 100%;
  height: 12px;
  background: linear-gradient(180deg, #555555 0%, #222222 50%, #111111 100%);
  border-radius: 6px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rail-highlight {
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 1px;
}

.rail-stops {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 20px;
  background: #111111;
  border: 1px solid #444444;
  border-radius: 3px;
}

.rail-stops.stop-left { left: 4px; }
.rail-stops.stop-right { right: 4px; }

/* ==========================================================================
   1. CLOSED STATE: Central Master Hanger & Security Tag Trigger
   ========================================================================== */
.master-hanger-trigger {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.5s var(--ease-spring);
  outline: none;
}

body[data-state="expanded"] .master-hanger-trigger {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-30px) scale(0.8);
}

.hanger-graphic {
  position: relative;
  width: 180px;
  height: 72px;
  transition: transform 0.3s var(--ease-spring);
}

.master-hanger-trigger:hover .hanger-graphic {
  transform: rotateZ(-2deg) scale(1.04);
}

.hanger-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}

/* Security Tag Sealed Label */
.security-archive-tag {
  margin-top: -12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: tagFloat 3s infinite ease-in-out;
}

@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.tag-card {
  width: 190px;
  background: #111111;
  color: #FFFFFF;
  padding: 14px 16px;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
}

.tag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tag-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tag-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  background: #DC2626;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.1em;
}

.tag-code-line {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.tag-barcode {
  display: flex;
  gap: 3px;
  height: 18px;
  align-items: flex-end;
}

.tag-barcode span {
  background: #FFFFFF;
  flex: 1;
  height: 100%;
}
.tag-barcode span:nth-child(even) { height: 70%; }
.tag-barcode span:nth-child(3n) { flex: 2; }

/* Pulsing Unlock Call to Action Pill */
.trigger-cta-pill {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: var(--text-main);
  border: 1.5px solid var(--text-main);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s var(--ease-spring);
}

.pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(17, 17, 17, 0.3);
  animation: pulseRing 2s infinite ease-out;
  pointer-events: none;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}

.master-hanger-trigger:hover .trigger-cta-pill {
  background: #111111;
  color: #FFFFFF;
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cta-shortcut {
  font-size: 9px;
  color: var(--text-muted);
}

.master-hanger-trigger:hover .cta-shortcut {
  color: #A3A3A3;
}

/* ==========================================================================
   2. EXPANDED STATE: 4 T-Shirts on Moving Hangers (Spring Physics)
   ========================================================================== */
.hangers-carousel {
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: space-evenly;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body[data-state="expanded"] .hangers-carousel {
  opacity: 1;
  pointer-events: auto;
}

/* Individual Rack Item (Hanger + T-Shirt + Tech Card) */
.rack-item {
  position: relative;
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.8) translateY(-40px);
  opacity: 0;
  transition: 
    transform 0.75s var(--ease-spring),
    opacity 0.5s ease;
  transition-delay: calc(var(--item-order) * 75ms);
  transform-style: preserve-3d;
}

/* On Expand: Slide out into position */
body[data-state="expanded"] .rack-item {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Hanger Hook Top */
.hanger-unit {
  position: relative;
  width: 130px;
  height: 48px;
  z-index: 5;
  transition: transform 0.4s var(--ease-spring);
}

.hanger-hook {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 24px;
  border-top: 4px solid #111111;
  border-right: 4px solid #111111;
  border-radius: 0 12px 0 0;
  transform: translateX(-50%);
}

.hanger-shoulder {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: linear-gradient(180deg, #262626 0%, #111111 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border-radius: 2px;
}

/* T-Shirt Hanging Body (Sway physics) */
.tshirt-envelope {
  position: relative;
  width: 240px;
  height: 350px;
  margin-top: -10px;
  cursor: pointer;
  outline: none;
  transform-origin: 50% 0%;
  transition: 
    transform 0.45s var(--ease-spring),
    box-shadow 0.45s ease;
  transform-style: preserve-3d;
}

/* Soft ambient floor shadow under each tee */
.tshirt-hanger-shadow {
  position: absolute;
  bottom: -30px;
  left: 15%;
  right: 15%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* T-Shirt Image Wrapper */
.tshirt-media {
  position: relative;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tshirt-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease-smooth);
}

.fabric-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
}

.collar-tag {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.9);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ==========================================================================
   HOVER INTERACTIONS (3D Sway & Lift + Tech Card Reveal)
   ========================================================================== */
.tshirt-envelope:hover,
.tshirt-envelope:focus-visible {
  transform: translateY(-8px) scale(1.03) translateZ(40px);
  animation: teeSway 2.5s infinite ease-in-out;
}

@keyframes teeSway {
  0%, 100% { transform: translateY(-8px) scale(1.03) translateZ(40px) rotateZ(0deg); }
  25% { transform: translateY(-8px) scale(1.03) translateZ(40px) rotateZ(1.2deg); }
  75% { transform: translateY(-8px) scale(1.03) translateZ(40px) rotateZ(-1.2deg); }
}

.tshirt-envelope:hover .tshirt-media {
  border-color: #111111;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.tshirt-envelope:hover .tshirt-img {
  transform: scale(1.04);
}

.tshirt-envelope:hover .tshirt-hanger-shadow {
  transform: scale(1.15);
  opacity: 0.9;
}

/* Floating Technical Card Under T-Shirt */
.item-tech-card {
  position: absolute;
  bottom: -95px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  opacity: 0.95;
  transform: translateY(0);
  transition: all 0.3s var(--ease-spring);
  pointer-events: auto;
}

.tshirt-envelope:hover .item-tech-card {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  border-color: #000000;
  opacity: 1;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.item-tag-num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
}

.item-tag-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  background: #F3F4F6;
  padding: 2px 5px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.item-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 3px;
}

.item-specs-line {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 6px;
}

.item-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.inspect-action {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #111111;
}

/* ==========================================================================
   3. MINIMALIST 3D INSPECTION MODAL (Size / Order)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  padding: 36px;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s var(--ease-spring);
}

.modal-backdrop.is-open .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #F9FAFB;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #111111;
  color: #FFFFFF;
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

/* Left: 3D Product Card Flip */
.modal-visual-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
}

.product-flip-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/5;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-smooth);
}

.product-flip-card.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  background: #F4F4F5;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-face.face-back {
  transform: rotateY(180deg);
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.85);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
}

.flip-actions {
  margin-top: 16px;
}

.btn-flip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: #F4F4F5;
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-flip:hover {
  background: #111111;
  color: #FFFFFF;
}

/* Right: Technical Information & Order */
.modal-info-col {
  display: flex;
  flex-direction: column;
}

.modal-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.modal-archive-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.stock-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-active);
}

.modal-item-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.modal-price {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.vat-note {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.modal-spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.spec-row {
  display: flex;
  font-size: 12px;
  gap: 8px;
}

.spec-k {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
  width: 90px;
  flex-shrink: 0;
}

.spec-v {
  color: var(--text-main);
}

/* Size Options */
.size-selector-block {
  margin-bottom: 24px;
}

.size-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
}

.size-title {
  font-family: var(--font-mono);
  font-weight: 700;
}

.size-guide-hint {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.size-options {
  display: flex;
  gap: 8px;
}

.size-btn {
  flex: 1;
  height: 40px;
  background: #F4F4F5;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-btn:hover {
  border-color: #111111;
}

.size-btn.active {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
}

/* Order Actions */
.order-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
}

.btn-order-tg {
  background: #111111;
  color: #FFFFFF;
  border: 1px solid #111111;
}

.btn-order-tg:hover {
  background: #262626;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-quick-order {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}

.btn-quick-order:hover {
  background: #F4F4F5;
}

.order-guarantee {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   MOBILE & RESPONSIVE ADAPTATION (iPhone 0 Horizontal Scroll)
   ========================================================================== */
@media (max-width: 900px) {
  html, body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .hud-frame {
    padding: 16px;
  }

  .hud-bottom {
    display: none; /* Hide bottom telemetry on mobile for pure screen clarity */
  }

  .stage-container {
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .rack-viewport {
    height: auto;
    max-width: 100%;
  }

  .rack-structure {
    height: auto;
  }

  .pillar {
    display: none;
  }

  .rack-base-pipes {
    display: none;
  }

  .telescopic-rail {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 90%;
    margin: 0 auto;
  }

  .hangers-carousel {
    position: relative;
    top: 20px;
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 120px;
    padding-bottom: 40px;
  }

  .rack-item {
    width: 260px;
    transform: none !important;
    opacity: 1 !important;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-window {
    padding: 24px 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
}
