/* =============================================
   UNIK AI Tee Customizer - HyperThread Design System
   "Hyper-Digital Streetwear" 
   ============================================= */

/* -- Google Fonts -- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* =============================================
   1. DESIGN TOKENS — LIGHT MODE (default)
   ============================================= */
:root {
  /* Foundation — Light */
  --background: #ffffff;
  --surface: #f8f8f8;
  --surface-dim: #f0f0f0;
  --surface-bright: #ffffff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f4f4f4;
  --surface-container: #eeeeee;
  --surface-container-high: #e6e6e6;
  --surface-container-highest: #dcdcdc;
  --surface-variant: #e0e0e0;

  /* Primary - Neon Lime (adjusted for light bg visibility) */
  --primary: #3a4a00;
  --primary-container: #8aad00;
  --primary-dim: #76960a;
  --on-primary: #ffffff;
  --on-primary-container: #ffffff;
  --on-primary-fixed: #ffffff;

  /* Secondary - Electric Cyan */
  --secondary: #007a82;
  --secondary-container: #a0eef5;
  --secondary-dim: #006970;
  --on-secondary: #ffffff;

  /* Tertiary - Hot Pink */
  --tertiary: #d6003d;
  --tertiary-container: #ffe0e6;
  --tertiary-dim: #b5002f;

  /* Surface Text — Light */
  --on-background: #111111;
  --on-surface: #111111;
  --on-surface-variant: #5c5c5c;

  /* Outline */
  --outline: #b0b0b0;
  --outline-variant: #d4d4d4;

  /* Error */
  --error: #c0392b;
  --error-container: #ffe5e0;

  /* Override Accent Colors */
  --accent-lime: #6fa800;
  --accent-cyan: #0097a7;
  --accent-pink: #d6003d;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Roundness */
  --radius-sm: 0.125rem;
  --radius-default: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Nav Background */
  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-bg-scrolled: rgba(244, 244, 244, 0.9);

  /* Mobile menu bg */
  --mobile-menu-bg: rgba(255, 255, 255, 0.97);

  /* Shadow */
  --shadow-card: 0 2px 16px -4px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 20px 60px -12px rgba(0,0,0,0.12);

  /* Hero grid overlay */
  --grid-line-color: rgba(0, 0, 0, 0.04);

  /* Hero gradient bg */
  --hero-glow-lime: rgba(111, 168, 0, 0.06);
  --hero-glow-cyan: rgba(0, 151, 167, 0.04);

  /* Selection */
  --selection-bg: rgba(111, 168, 0, 0.2);
  --selection-color: #3a4a00;

  /* CTA glow */
  --cta-glow: rgba(111, 168, 0, 0.06);

  /* Upload border gradient */
  --upload-border-from: rgba(0, 0, 0, 0.08);
  --upload-border-to: rgba(0, 0, 0, 0.03);

  /* Toast shadow */
  --toast-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.12);

  /* Skeleton shimmer */
  --skeleton-from: var(--surface-container);
  --skeleton-mid: var(--surface-container-high);

  /* Scrollbar */
  --scrollbar-track: #f0f0f0;
  --scrollbar-thumb: #c0c0c0;
  --scrollbar-thumb-hover: #a0a0a0;

  /* Btn primary glow */
  --btn-primary-glow: rgba(111, 168, 0, 0.2);

  /* Btn secondary hover */
  --btn-secondary-hover-bg: rgba(0, 151, 167, 0.08);
  --btn-secondary-hover-border: rgba(0, 151, 167, 0.3);

  /* Btn ghost hover */
  --btn-ghost-hover-bg: rgba(0, 0, 0, 0.04);

  /* Status colors */
  --status-success-bg: rgba(111, 168, 0, 0.1);
  --status-error-bg: rgba(192, 57, 43, 0.1);

  /* Design card overlay */
  --card-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);

  /* Nav link underline glow */
  --nav-link-glow: 0 0 8px rgba(0, 151, 167, 0.3);

  /* Theme toggle */
  --toggle-bg: var(--surface-container);
  --toggle-icon-color: var(--on-surface-variant);
}

/* =============================================
   1b. DESIGN TOKENS — DARK MODE
   ============================================= */
[data-theme="dark"] {
  /* Foundation — Dark */
  --background: #0e0e0e;
  --surface: #0e0e0e;
  --surface-dim: #0e0e0e;
  --surface-bright: #2c2c2c;
  --surface-container-lowest: #000000;
  --surface-container-low: #131313;
  --surface-container: #1a1919;
  --surface-container-high: #201f1f;
  --surface-container-highest: #262626;
  --surface-variant: #262626;

  /* Primary - Neon Lime */
  --primary: #f3ffca;
  --primary-container: #cafd00;
  --primary-dim: #beee00;
  --on-primary: #516700;
  --on-primary-container: #4a5e00;
  --on-primary-fixed: #3a4a00;

  /* Secondary - Electric Cyan */
  --secondary: #00eefc;
  --secondary-container: #006970;
  --secondary-dim: #00deec;
  --on-secondary: #005359;

  /* Tertiary - Hot Pink */
  --tertiary: #ff6e81;
  --tertiary-container: #ff0355;
  --tertiary-dim: #e7004c;

  /* Surface Text */
  --on-background: #ffffff;
  --on-surface: #ffffff;
  --on-surface-variant: #adaaaa;

  /* Outline */
  --outline: #767575;
  --outline-variant: #484847;

  /* Error */
  --error: #ff716c;
  --error-container: #9f0519;

  /* Override Accent Colors */
  --accent-lime: #CCFF00;
  --accent-cyan: #00F0FF;
  --accent-pink: #FF0055;

  /* Nav */
  --nav-bg: rgba(14, 14, 14, 0.6);
  --nav-bg-scrolled: rgba(26, 25, 25, 0.85);

  /* Mobile menu */
  --mobile-menu-bg: rgba(14, 14, 14, 0.95);

  /* Shadow */
  --shadow-card: 0 2px 16px -4px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 20px 60px -12px rgba(0,0,0,0.5);

  /* Hero Grid */
  --grid-line-color: rgba(72, 72, 71, 0.05);

  /* Hero radial gradients */
  --hero-glow-lime: rgba(204, 255, 0, 0.06);
  --hero-glow-cyan: rgba(0, 240, 255, 0.04);

  /* Selection */
  --selection-bg: rgba(204, 255, 0, 0.2);
  --selection-color: #CCFF00;

  /* CTA */
  --cta-glow: rgba(204, 255, 0, 0.05);

  /* Upload border */
  --upload-border-from: rgba(72, 72, 71, 0.15);
  --upload-border-to: rgba(72, 72, 71, 0.05);

  /* Toast */
  --toast-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.4);

  /* Scrollbar */
  --scrollbar-track: #000000;
  --scrollbar-thumb: #262626;
  --scrollbar-thumb-hover: #767575;

  /* Btn */
  --btn-primary-glow: rgba(204, 255, 0, 0.15);
  --btn-secondary-hover-bg: rgba(0, 238, 252, 0.08);
  --btn-secondary-hover-border: rgba(0, 238, 252, 0.3);
  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.05);

  /* Status */
  --status-success-bg: rgba(190, 238, 0, 0.1);
  --status-error-bg: rgba(255, 113, 108, 0.1);

  /* Card overlay */
  --card-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);

  /* Nav link underline glow */
  --nav-link-glow: 0 0 8px rgba(0, 240, 255, 0.4);

  /* Toggle */
  --toggle-bg: var(--surface-container-highest);
  --toggle-icon-color: var(--on-surface-variant);
}

/* =============================================
   2. RESET & BASE
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   3. TYPOGRAPHY SCALE
   ============================================= */
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.headline-md {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.title-md {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
}

.title-sm {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}

.body-md {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
}

.body-sm {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
}

.label-lg {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.label-md {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label-sm {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =============================================
   4. NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.nav.scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

[data-theme="dark"] .nav.scrolled {
  box-shadow: none;
}

.nav__brand {
  align-items: center;
  display: flex;
  gap: var(--space-md);
  min-width: 0;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-lime);
  cursor: pointer;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .nav__logo {
  text-shadow: 0 0 30px rgba(204, 255, 0, 0.3);
}

.nav__logo:hover {
  filter: brightness(1.15);
}

[data-theme="dark"] .nav__logo:hover {
  text-shadow: 0 0 50px rgba(204, 255, 0, 0.5);
  filter: none;
}

.nav__logo span {
  color: var(--accent-cyan);
}

.nav__slogan {
  color: var(--on-surface);
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(0.86rem, 1.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.nav__slogan::after {
  content: '';
  animation: sloganCaret 0.9s steps(1) infinite;
  border-right: 2px solid var(--accent-cyan);
  margin-left: 3px;
}

.nav__slogan {
  animation: sloganReveal 2.4s steps(22) both;
}

.nav__links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  letter-spacing: 0.04em;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-normal);
  box-shadow: var(--nav-link-glow);
}

.nav__link:hover {
  color: var(--on-surface);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.active {
  color: var(--accent-cyan);
}

.nav__link.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--on-surface);
  transition: all var(--transition-fast);
}

/* =============================================
   4b. THEME TOGGLE BUTTON
   ============================================= */
.theme-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--toggle-bg);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--toggle-icon-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface-container-high);
  border-color: var(--outline);
  transform: rotate(15deg) scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: all var(--transition-normal);
  position: absolute;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* =============================================
   5. BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-dim), var(--primary-container));
  color: var(--on-primary-fixed);
  border-radius: var(--radius-default);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-container), var(--accent-lime));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary:hover {
  box-shadow: 0 0 30px var(--btn-primary-glow);
  transform: translateY(-1px);
}

.btn--primary > * {
  position: relative;
  z-index: 1;
}

.btn--secondary {
  background: transparent;
  color: var(--secondary);
  border-radius: var(--radius-default);
  border: 1px solid var(--outline-variant);
}

.btn--secondary:hover {
  background: var(--btn-secondary-hover-bg);
  border-color: var(--btn-secondary-hover-border);
}

.btn--ghost {
  background: transparent;
  color: var(--on-surface-variant);
  border-radius: var(--radius-default);
}

.btn--ghost:hover {
  color: var(--on-surface);
  background: var(--btn-ghost-hover-bg);
}

.btn--pill {
  border-radius: var(--radius-full);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-default);
}

/* =============================================
   6. HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, var(--hero-glow-lime) 0%, transparent 70%);
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, var(--hero-glow-cyan) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--surface-container-highest);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s ease-out;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-lime);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__title .accent {
  background: linear-gradient(135deg, var(--accent-lime), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  color: var(--on-surface-variant);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--on-surface-variant);
  animation: float 3s ease-in-out infinite;
  z-index: 1;
}

.hero__scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: var(--on-surface-variant);
}

/* =============================================
   7. SECTION LAYOUT
   ============================================= */
.section {
  padding: var(--space-4xl) var(--space-2xl);
  position: relative;
}

.designer-section {
  min-height: 100vh;
  padding-top: calc(var(--space-3xl) + 54px);
}

.section__header {
  margin-bottom: var(--space-3xl);
}

.designer-section .section__header {
  margin-bottom: var(--space-xl);
}

.section__label {
  color: var(--accent-cyan);
  margin-bottom: var(--space-sm);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__subtitle {
  color: var(--on-surface-variant);
  max-width: 560px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* =============================================
   8. DESIGNER & UPLOAD ZONE
   ============================================= */
.creation-mode-toggle {
  display: flex;
  background: var(--surface-container-high);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: var(--space-md);
  gap: 4px;
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-btn:hover {
  color: var(--on-surface);
}

.mode-btn.active {
  background: var(--surface-container-highest);
  color: var(--on-surface);
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .mode-btn.active {
  background: var(--surface-container-lowest);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.designer-upload-zone {
  margin-bottom: var(--space-md);
  padding: var(--space-xl) var(--space-md);
}

.designer-upload-zone.has-file {
  padding: var(--space-md);
}

.designer-file-preview {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: var(--surface-container-highest);
}

.designer-file-preview img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.btn-remove-file {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-remove-file:hover {
  background: var(--error);
}

.btn-remove-file svg {
  width: 16px;
  height: 16px;
}
.upload-section {
  background: var(--surface-container-low);
}

.upload-zone {
  position: relative;
  padding: var(--space-4xl) var(--space-2xl);
  background: var(--surface-container);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--upload-border-from), var(--upload-border-to));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.upload-zone:hover {
  background: var(--surface-container-high);
}

.upload-zone.drag-over {
  background: var(--surface-container-high);
}

.upload-zone.drag-over::before {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
  animation: border-glow 1.5s ease-in-out infinite alternate;
}

.upload-zone.drag-over .upload-zone__icon {
  transform: scale(1.1);
  color: var(--accent-cyan);
}

.upload-zone__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  color: var(--on-surface-variant);
  transition: all var(--transition-normal);
}

.upload-zone__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.upload-zone__title {
  margin-bottom: var(--space-sm);
}

.upload-zone__subtitle {
  color: var(--on-surface-variant);
  margin-bottom: var(--space-lg);
}

.upload-zone__formats {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.format-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  background: var(--surface-container-highest);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: all var(--transition-fast);
}

.format-chip:hover {
  background: var(--accent-lime);
  color: var(--on-primary);
}

.upload-zone__input {
  display: none;
}

/* Upload progress */
.upload-progress {
  display: none;
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--surface-container-high);
  border-radius: var(--radius-default);
}

.upload-progress.active {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

.upload-progress__bar-container {
  width: 100%;
  height: 4px;
  background: var(--surface-container-highest);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.upload-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-lime), var(--accent-cyan));
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
  width: 0%;
}

.upload-progress__text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--on-surface-variant);
}

/* Uploaded files list */
.uploaded-files {
  margin-top: var(--space-xl);
}

.uploaded-files__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.file-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-container);
  border-radius: var(--radius-default);
  animation: fadeInUp 0.3s ease-out;
  transition: background var(--transition-fast);
}

.file-item:hover {
  background: var(--surface-container-high);
}

.file-item__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container-highest);
  border-radius: var(--radius-default);
  color: var(--accent-lime);
  flex-shrink: 0;
}

.file-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.file-item__info {
  flex: 1;
  min-width: 0;
}

.file-item__name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item__meta {
  font-size: 0.75rem;
  color: var(--on-surface-variant);
  display: flex;
  gap: var(--space-md);
}

.file-item__delete {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--on-surface-variant);
  cursor: pointer;
  border-radius: var(--radius-default);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.file-item__delete:hover {
  background: var(--error-container);
  color: var(--error);
}

.file-item__delete svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.file-item__status {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.file-item__status--success {
  background: var(--status-success-bg);
  color: var(--accent-lime);
}

.file-item__status--error {
  background: var(--status-error-bg);
  color: var(--error);
}

/* =============================================
   9. TRENDING DESIGNS SECTION
   ============================================= */
.trending-section {
  background: var(--surface);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.design-card {
  background: var(--surface-container);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-card);
}

.design-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.design-card:hover .design-card__overlay {
  opacity: 1;
}

.design-card__image {
  aspect-ratio: 1;
  background: var(--surface-container-high);
  overflow: hidden;
  position: relative;
}

.design-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.design-card:hover .design-card__image img {
  transform: scale(1.05);
}

.design-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--card-overlay);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.design-card__overlay-actions {
  display: flex;
  gap: var(--space-sm);
}

.design-card__body {
  padding: var(--space-md) var(--space-lg);
}

.design-card__title {
  margin-bottom: var(--space-xs);
}

.design-card__author {
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.design-card__author-name {
  color: var(--accent-cyan);
  font-weight: 500;
}

.design-card__tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--surface-container-highest);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  margin-top: var(--space-sm);
}

/* =============================================
   10. HOW IT WORKS
   ============================================= */
.how-section {
  background: var(--surface-container-low);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.how-step {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--surface-container);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.how-step:hover {
  background: var(--surface-container-high);
  transform: translateY(-2px);
}

.how-step__number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-lime), rgba(111, 168, 0, 0.2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-md);
}

[data-theme="dark"] .how-step__number {
  background: linear-gradient(135deg, var(--accent-lime), rgba(204, 255, 0, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
}

.how-step__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container-highest);
  border-radius: var(--radius-default);
  color: var(--accent-cyan);
}

.how-step__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.how-step__title {
  margin-bottom: var(--space-sm);
}

.how-step__description {
  color: var(--on-surface-variant);
}

/* =============================================
   11. CTA SECTION
   ============================================= */
.cta-section {
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, var(--cta-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  margin-bottom: var(--space-lg);
}

.cta__subtitle {
  color: var(--on-surface-variant);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

/* =============================================
   12. FOOTER
   ============================================= */
.footer {
  padding: var(--space-3xl) var(--space-2xl) var(--space-xl);
  background: var(--surface-container-lowest);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-lime);
  margin-bottom: var(--space-md);
}

.footer__description {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__links-group {
  display: flex;
  gap: var(--space-3xl);
}

.footer__links-section h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: var(--space-md);
}

.footer__links-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links-section li a {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  transition: color var(--transition-fast);
}

.footer__links-section li a:hover {
  color: var(--accent-cyan);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container);
  border-radius: var(--radius-default);
  color: var(--on-surface-variant);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--surface-container-high);
  color: var(--accent-cyan);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__bottom {
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  position: relative;
}

.footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline-variant), transparent);
  opacity: 0.3;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--on-surface);
}

/* =============================================
   13. NOTIFICATIONS / TOAST
   ============================================= */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-container-highest);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-default);
  animation: slideInRight 0.3s ease-out;
  min-width: 300px;
  max-width: 420px;
  box-shadow: var(--toast-shadow);
}

.toast--success {
  border-left: 3px solid var(--accent-lime);
}

.toast--error {
  border-left: 3px solid var(--error);
}

.toast--info {
  border-left: 3px solid var(--accent-cyan);
}

.toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.toast--success .toast__icon {
  color: var(--accent-lime);
}

.toast--error .toast__icon {
  color: var(--error);
}

.toast--info .toast__icon {
  color: var(--accent-cyan);
}

.toast__message {
  flex: 1;
  font-size: 0.875rem;
}

.toast__close {
  background: none;
  border: none;
  color: var(--on-surface-variant);
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
}

.toast__close:hover {
  color: var(--on-surface);
}

/* =============================================
   14. ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(111, 168, 0, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(111, 168, 0, 0); }
}

[data-theme="dark"] .hero__badge-dot {
  animation: pulse-dot-dark 2s ease-in-out infinite;
}

@keyframes pulse-dot-dark {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(204, 255, 0, 0); }
}

@keyframes border-glow {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes sloganReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes sloganCaret {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@keyframes printModeReveal {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   15. RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__slogan {
    font-size: 0.86rem;
  }

  .nav__hamburger {
    display: flex;
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__links-group {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .order-options {
    grid-template-columns: 1fr;
  }

  .print-mode-selector {
    grid-template-columns: 1fr;
  }

  .order-options .field-label,
  .order-options .cmd-select,
  .order-options .order-input {
    grid-row: auto;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .designer__mockup-container {
    height: 330px;
    min-height: 300px;
  }

  .hero {
    padding: var(--space-4xl) var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) var(--space-lg);
  }

  .designer-section {
    padding-top: calc(var(--space-2xl) + 56px);
  }

  .nav {
    padding: var(--space-md) var(--space-lg);
  }

  .trending-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .upload-zone {
    padding: var(--space-2xl) var(--space-lg);
  }
}

@media (max-width: 480px) {
  .nav__brand {
    gap: var(--space-sm);
  }

  .nav__logo {
    font-size: 1.42rem;
  }

  .nav__slogan {
    max-width: 126px;
  }

  .trending-grid {
    grid-template-columns: 1fr;
  }

  .footer__links-group {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .toast {
    min-width: 0;
    max-width: calc(100vw - 2rem);
    left: var(--space-md);
    right: var(--space-md);
  }
}

/* =============================================
   16. MOBILE MENU OVERLAY
   ============================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--accent-cyan);
}

.mobile-menu__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--on-surface);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   17. LOADING SKELETON
   ============================================= */
.skeleton {
  background: linear-gradient(90deg,
    var(--skeleton-from) 25%,
    var(--skeleton-mid) 50%,
    var(--skeleton-from) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-default);
}

/* =============================================
   18. SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* =============================================
   19. SELECTION
   ============================================= */
::selection {
  background: var(--selection-bg);
  color: var(--selection-color);
}

/* =============================================
   20. THEME TRANSITION (global)
   ============================================= */
*,
*::before,
*::after {
  transition-property: background-color, color, border-color, box-shadow, fill, stroke;
  transition-duration: 0s;
}

/* Only animate during theme switch */
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
  transition-duration: 0.35s !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* =============================================
/* =============================================
   21. PRODUCT DESIGNER (INDUSTRIAL VIBES)
   ============================================= */
.designer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  background: var(--surface-container);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: var(--space-md);
  margin-top: var(--space-lg);
  position: relative;
}

@media (min-width: 900px) {
  .designer-layout {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-xl);
  }
}

.designer__preview {
  display: flex;
  flex-direction: column;
  background: var(--surface-container-highest);
  border: 1px solid var(--border-color);
  position: relative;
  align-self: start;
}

.designer__preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-color);
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--on-surface-variant);
  background: var(--surface-container);
}

.status-indicator {
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.status-indicator::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.designer__mockup-container {
  flex: none;
  height: clamp(460px, 58vw, 680px);
  min-height: 400px;
  position: relative;
  overflow: hidden;
  padding: var(--space-lg);
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.96), rgba(228, 228, 224, 0.76) 48%, rgba(204, 204, 199, 0.68) 100%),
    linear-gradient(135deg, rgba(0, 240, 255, 0.05), transparent 42%),
    #dededb;
}

.product-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.12));
  transition: opacity 180ms ease, transform 220ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.designer__mockup-container.has-generated-preview {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.98), rgba(223, 223, 218, 0.72) 64%, rgba(196, 196, 190, 0.62) 100%),
    #dededb;
  height: clamp(820px, 92vw, 1180px);
  min-height: 760px;
}

.product-preview-image--generated {
  cursor: zoom-in;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.14));
  object-fit: contain;
  position: relative;
  z-index: 3;
}

.product-3d-hud {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  pointer-events: none;
}

.product-3d-hud span {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #5a8200;
  backdrop-filter: blur(12px);
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.designer__overlay-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
  pointer-events: none;
}

.designer__controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.control-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.control-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.control-step {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--accent-cyan);
  background: rgba(7, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 2px;
}

/* Garment Selector */
.garment-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-sm);
}

.garment-btn {
  background: var(--surface-container-high);
  border: 1px solid var(--border-color);
  color: var(--on-surface-variant);
  padding: var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.garment-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background var(--transition-fast);
}

.garment-btn:hover {
  background: var(--surface-container-highest);
  color: var(--on-surface);
}

.garment-btn.active {
  background: var(--surface-container-highest);
  color: var(--on-surface);
  border-color: var(--on-surface);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.garment-btn.active::before {
  background: var(--accent-cyan);
}

/* Print Mode */
.print-mode-panel {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-lg);
}

.print-mode-panel--animate {
  animation: printModeReveal 0.42s ease-out both;
}

.print-mode-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.print-mode-btn {
  background: var(--surface-container-high);
  border: 1px solid var(--border-color);
  color: var(--on-surface-variant);
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 92px;
  overflow: hidden;
  padding: var(--space-md);
  position: relative;
  text-align: left;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.print-mode-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(7, 240, 255, 0.14) 48%, transparent 70%);
  opacity: 0;
  transform: translateX(-60%);
  transition: opacity var(--transition-fast), transform 0.45s ease;
}

.print-mode-btn:hover {
  background: var(--surface-container-highest);
  border-color: var(--on-surface-variant);
  transform: translateY(-1px);
}

.print-mode-btn.active {
  background: var(--surface-container-highest);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(7, 240, 255, 0.16);
}

.print-mode-btn.active::before {
  opacity: 1;
  transform: translateX(60%);
}

.print-mode-btn__title {
  color: var(--on-surface);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  position: relative;
  text-transform: uppercase;
}

.print-mode-btn__desc {
  color: var(--on-surface-variant);
  font-size: 0.82rem;
  line-height: 1.35;
  position: relative;
}

.print-area-group {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.print-area-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.print-area-option {
  align-items: center;
  background: var(--surface-container-high);
  border: 1px solid var(--border-color);
  color: var(--on-surface-variant);
  cursor: pointer;
  display: flex;
  gap: var(--space-sm);
  min-height: 46px;
  padding: 0 var(--space-md);
  text-transform: uppercase;
}

.print-area-option:has(input:checked) {
  border-color: var(--accent-lime);
  color: var(--on-surface);
  box-shadow: 0 0 10px rgba(111, 168, 0, 0.14);
}

.print-area-option input {
  accent-color: var(--accent-lime);
}

/* Cmd Input */
.cmd-input {
  width: 100%;
  background: var(--surface-container-highest);
  border: 1px solid var(--border-color);
  color: var(--accent-lime);
  padding: var(--space-md);
  font-family: monospace;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--transition-fast);
}

.cmd-input:focus {
  outline: none;
  border-color: var(--accent-lime);
  box-shadow: 0 0 10px rgba(8, 255, 14, 0.1);
}

.cmd-input::placeholder {
  color: var(--on-surface-variant);
  opacity: 0.6;
}

.cmd-select,
.order-input {
  min-height: 48px;
  resize: none;
}

.field-label {
  color: var(--on-surface-variant);
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-block {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-lg);
}

.order-options,
.order-form-grid {
  display: grid;
  gap: var(--space-sm);
}

.order-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.order-options .field-label {
  grid-row: 1;
}

.order-options .cmd-select,
.order-options .order-input {
  grid-row: 2;
}

.custom-color-input {
  display: none;
  grid-column: 2;
  grid-row: 3;
  margin-top: var(--space-xs);
  min-height: 44px;
}

.custom-color-input.is-visible {
  display: block;
}

.btn--order {
  background: var(--accent-lime);
  color: #111111;
  margin-top: calc(var(--space-xl) * -0.5);
}

.order-result {
  background: var(--surface-container-highest);
  border: 1px solid var(--accent-lime);
  color: var(--on-surface);
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md);
}

.order-result strong {
  color: var(--accent-lime);
  font-family: monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-result span {
  color: var(--on-surface-variant);
  line-height: 1.5;
}

.order-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.cart-section {
  background:
    linear-gradient(180deg, var(--surface), var(--surface-container-low));
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: var(--space-xl);
  align-items: stretch;
}

.cart-panel,
.payment-panel {
  border: 1px solid var(--border-color);
  background: var(--surface-container);
  min-height: 360px;
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.cart-summary {
  display: grid;
  gap: var(--space-md);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-md);
}

.cart-item__eyebrow,
.cart-lines dt {
  color: var(--on-surface-variant);
  font-family: monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-item h3 {
  margin: 6px 0;
}

.cart-item strong,
.cart-lines__total dd {
  color: var(--accent-lime);
  font-family: monospace;
  font-size: 1.25rem;
}

.cart-lines {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
}

.cart-lines div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-sm);
}

.cart-lines dd {
  margin: 0;
  max-width: 65%;
  text-align: right;
  overflow-wrap: anywhere;
}

.payment-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-md);
}

.payment-orbit {
  position: absolute;
  inset: var(--space-xl);
  opacity: 0.75;
  pointer-events: none;
}

.payment-orbit span {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 50%;
  animation: orbitSpin 12s linear infinite;
}

.payment-orbit span:nth-child(2) {
  inset: 24%;
  border-color: rgba(204, 255, 0, 0.32);
  animation-duration: 8s;
  transform: rotateX(62deg);
}

.payment-orbit span:nth-child(3) {
  inset: 34%;
  border-color: rgba(255, 0, 85, 0.26);
  animation-duration: 6s;
  transform: rotateY(58deg);
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.generated-preview-image--floating {
  display: none;
}

/* Style Matrix */
.style-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: var(--space-sm);
}

.style-card-btn {
  background: var(--surface-container);
  border: 1px solid var(--border-color);
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.style-card-btn img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.style-preview {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  opacity: 0.74;
  transition: opacity var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.style-preview::before,
.style-preview::after {
  content: "";
  position: absolute;
  inset: 0;
}

.style-preview--hyperreal {
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.95), transparent 18%),
    radial-gradient(circle at 64% 74%, rgba(18,18,18,0.22), transparent 24%),
    linear-gradient(135deg, #f7f4ef, #b9b7b2 48%, #ffffff);
}

.style-preview--hyperreal::after {
  background: linear-gradient(90deg, transparent 18%, rgba(0,0,0,0.18) 21%, transparent 24%, rgba(255,255,255,0.7) 46%, transparent 58%);
  mix-blend-mode: multiply;
}

.style-preview--anime {
  background: linear-gradient(135deg, #ff477e, #ffc857 45%, #3ddcff);
}

.style-preview--anime::after {
  background: repeating-linear-gradient(130deg, rgba(255,255,255,0.85) 0 4px, transparent 4px 12px);
}

.style-preview--comic {
  background:
    radial-gradient(circle, rgba(255,255,255,0.9) 0 2px, transparent 3px) 0 0 / 12px 12px,
    linear-gradient(135deg, #f7d716, #e83f6f 55%, #2274a5);
}

.style-preview--tattoo {
  background:
    radial-gradient(circle at 50% 48%, transparent 0 24%, #111 25% 27%, transparent 28%),
    repeating-conic-gradient(from 45deg, #101010 0 8deg, #f2eee6 8deg 16deg);
}

.style-preview--street {
  background:
    linear-gradient(160deg, transparent 0 42%, rgba(255,255,255,0.82) 43% 49%, transparent 50%),
    linear-gradient(135deg, #101010, #4b5563 38%, #d7ff2f 39% 56%, #101010 57%);
}

.style-preview--minimal {
  background:
    linear-gradient(135deg, transparent 49%, #111 50% 52%, transparent 53%),
    linear-gradient(135deg, #f4f2ec, #d9d6ce);
}

.style-preview--gothic {
  background:
    radial-gradient(circle at 50% 25%, #8a0303, transparent 22%),
    linear-gradient(135deg, #070707, #171717 50%, #3f0d12);
}

.style-preview--gothic::after {
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 8px);
}

.style-preview--y2k {
  background:
    radial-gradient(circle at 26% 22%, #ffffff, transparent 12%),
    conic-gradient(from 180deg, #e8f7ff, #9aa8ff, #fff0fb, #5eead4, #e8f7ff);
}

.style-preview--graffiti {
  background:
    radial-gradient(circle at 25% 32%, #ff0054 0 12%, transparent 13%),
    radial-gradient(circle at 70% 62%, #00f5d4 0 14%, transparent 15%),
    linear-gradient(135deg, #111, #f15bb5 45%, #fee440);
}

.style-preview--graffiti::after {
  background: repeating-linear-gradient(-18deg, rgba(17,17,17,0.75) 0 4px, transparent 4px 16px);
}

.style-preview--techwear {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(0deg, rgba(255,255,255,0.16) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(135deg, #111827, #0f766e);
}

.style-preview--watercolor {
  background:
    radial-gradient(circle at 25% 28%, rgba(255,107,107,0.82), transparent 30%),
    radial-gradient(circle at 70% 40%, rgba(72,202,228,0.7), transparent 32%),
    radial-gradient(circle at 45% 72%, rgba(255,209,102,0.78), transparent 28%),
    #fbfbf4;
  filter: saturate(0.9);
}

.style-card-btn span {
  padding: var(--space-xs);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  text-align: center;
  background: var(--surface-container-high);
}

.style-card-btn:hover {
  border-color: var(--on-surface-variant);
}

.style-card-btn:hover img {
  opacity: 0.9;
}

.style-card-btn:hover .style-preview {
  opacity: 0.94;
}

.style-card-btn.active {
  border-color: var(--accent-lime);
  box-shadow: 0 0 10px rgba(8, 255, 14, 0.2);
}

.style-card-btn.active img {
  opacity: 1;
}

.style-card-btn.active .style-preview {
  opacity: 1;
}

.style-card-btn.active span {
  background: var(--accent-lime);
  color: var(--surface-container);
  font-weight: bold;
}

.style-helper {
  color: var(--on-surface-variant);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: var(--space-xs);
}

/* Industrial Action Button */
.btn--industrial {
  background: transparent;
  color: var(--accent-lime);
  border: 1px solid var(--accent-lime);
  border-radius: 0;
  text-transform: uppercase;
  font-family: monospace;
  letter-spacing: 0.1em;
  padding: var(--space-lg);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn--industrial:hover {
  background: var(--accent-lime);
  color: #111111;
  box-shadow: 0 0 15px rgba(8, 255, 14, 0.2);
}

.btn--industrial.processing {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(7, 240, 255, 0.05);
}

.btn-scanline {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--accent-lime);
  opacity: 0.5;
  animation: scanline 2s linear infinite;
}

@keyframes scanline {
  0% { left: -100%; top: 0; }
  100% { left: 100%; top: 0; }
}

/* AI Generated Preview Image Styles */
.generated-preview-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  z-index: 10;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  position: relative;
}

.generated-preview-image:hover {
  transform: scale(2.0);
  cursor: zoom-in;
  z-index: 20;
}

.preview-zoom-open {
  overflow: hidden;
}

.preview-zoom-modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  inset: 0;
  justify-content: center;
  padding: var(--space-lg);
  position: fixed;
  z-index: 999;
}

.preview-zoom-modal.is-open {
  display: flex;
}

.preview-zoom-modal img {
  max-height: 92vh;
  max-width: min(96vw, 1100px);
  object-fit: contain;
}

.preview-zoom-modal__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 2rem;
  height: 44px;
  justify-content: center;
  position: absolute;
  right: var(--space-lg);
  top: var(--space-lg);
  width: 44px;
}

@media (max-width: 768px) {
  .designer__mockup-container {
    height: 330px;
    min-height: 300px;
  }

  .designer__mockup-container.has-generated-preview {
    height: 78vh;
    min-height: 640px;
  }

  .print-area-options {
    grid-template-columns: 1fr;
  }
}
