/* ============================================
   DROPLAB 潮实验室 - Global Stylesheet
   Brand: #9EFF00 neon green on #0A0A0A deep charcoal
   Fonts: Montserrat Black (display) / Noto Sans SC (body)
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --neon: #9EFF00;
  --neon-soft: rgba(158, 255, 0, 0.1);
  --neon-mid: rgba(158, 255, 0, 0.25);
  --neon-strong: rgba(158, 255, 0, 0.5);
  --neon-solid: rgba(158, 255, 0, 0.8);
  --bg: #0A0A0A;
  --bg-card: #1A1A1A;
  --bg-input: #0A0A0A;
  --border: #262626;
  --text: #FFFFFF;
  --text-dim: #888888;
  --text-faint: #444444;
  --text-dark: #0A0A0A;
  --radius-card: 0px;
  --radius-btn: 6px;
  --radius-pill: 100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Typography Helpers ---- */
.display { font-family: 'Montserrat', sans-serif; font-weight: 900; }
.kicker {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--neon);
  text-transform: uppercase;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--neon);
  color: var(--text-dark);
  border-radius: var(--radius-btn);
}
.btn-primary:hover {
  box-shadow: 0 0 30px var(--neon-mid);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius-btn);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
}
.btn-pill {
  border-radius: var(--radius-pill);
}

/* ---- Nav Bar (shared) ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(158, 255, 0, 0.08);
}
.navbar .nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--neon);
  letter-spacing: 1px;
}
.navbar .nav-menu {
  display: flex;
  gap: 32px;
}
.navbar .nav-menu a {
  font-size: 14px;
  color: var(--text);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.navbar .nav-menu a:hover { opacity: 1; color: var(--neon); }
.navbar .nav-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.navbar .nav-cta {
  padding: 0 24px;
  height: 40px;
  font-size: 14px;
}

/* ---- DROP Widget (shared floating component) ---- */
.drop-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 900;
  max-width: 460px;
}
.drop-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--text-dark);
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(158, 255, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}
.drop-avatar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon);
  border: 2px solid var(--bg);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.drop-bubble {
  background: var(--bg-card);
  border: 1px solid rgba(158, 255, 0, 0.15);
  border-radius: 16px 16px 4px 16px;
  padding: 16px 20px;
  display: none;
  flex-direction: column;
  gap: 8px;
  animation: bubble-in 0.3s ease;
}
.drop-bubble.show { display: flex; }
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.drop-bubble .bubble-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 12px;
  color: var(--neon);
  letter-spacing: 1px;
}
.drop-bubble .bubble-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* ============================================
   LANDING PAGE
   ============================================ */

/* Scroll snap container */
.landing {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}
.landing section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ---- Screen 1: Tech Hero ---- */
.screen-hero {
  width: 100%;
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, #0d1a0a 0%, #0a0a0a 50%, #000000 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(158, 255, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 255, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(158, 255, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(0, 200, 255, 0.05) 0%, transparent 40%);
}

/* Animated particles */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--neon);
  pointer-events: none;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Energy stream lines */
.energy-stream {
  position: absolute;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--neon), transparent);
  opacity: 0.15;
  animation: stream-flow 3s ease-in-out infinite;
}
@keyframes stream-flow {
  0%, 100% { opacity: 0.05; transform: scaleY(0.8); }
  50% { opacity: 0.2; transform: scaleY(1.2); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Giant DROP eyes in hero background — static helmet + moving eyes layer */
.hero-drop-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-eyes-wrap {
  position: relative;
  width: 110vw;
  min-width: 110vw;
}
.hero-eyes-static {
  width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
}
.hero-eyes-moving {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-user-drag: none;
  will-change: transform, filter;
  /* Breathing glow: brightness pulses */
  animation: eyes-breathe 3s ease-in-out infinite;
}
@keyframes eyes-breathe {
  0%, 100% {
    filter:
      drop-shadow(0 0 8px rgba(158, 255, 0, 0.6))
      drop-shadow(0 0 20px rgba(158, 255, 0, 0.3))
      brightness(0.85);
  }
  50% {
    filter:
      drop-shadow(0 0 20px rgba(158, 255, 0, 0.95))
      drop-shadow(0 0 45px rgba(158, 255, 0, 0.55))
      drop-shadow(0 0 80px rgba(158, 255, 0, 0.2))
      brightness(1.35);
  }
}
.hero-drop-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 38%, rgba(10,10,10,0.55) 70%, rgba(10,10,10,0.92) 100%),
    linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, transparent 30%, transparent 70%, rgba(10,10,10,0.75) 100%);
  pointer-events: none;
  z-index: 2;
}
/* old eyes-pulse removed — replaced by eyes-breathe */

@media (max-width: 1200px) {
  .hero-eyes-wrap { width: 130vw; min-width: 130vw; }
}
@media (max-width: 768px) {
  .hero-eyes-wrap { width: 160vw; min-width: 160vw; }
  .hero-drop-vignette {
    background:
      radial-gradient(ellipse at center, transparent 0%, transparent 25%, rgba(10,10,10,0.7) 60%, rgba(10,10,10,0.95) 100%),
      linear-gradient(to bottom, rgba(10,10,10,0.65) 0%, transparent 25%, transparent 75%, rgba(10,10,10,0.85) 100%);
  }
}
.hero-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 120px;
  color: var(--neon);
  letter-spacing: 4px;
  text-shadow: 0 0 80px rgba(158, 255, 0, 0.15);
  animation: logo-glow 4s ease-in-out infinite;
}
@keyframes logo-glow {
  0%, 100% { text-shadow: 0 0 60px rgba(158, 255, 0, 0.15); }
  50% { text-shadow: 0 0 100px rgba(158, 255, 0, 0.25); }
}
.hero-tagline {
  font-size: 18px;
  color: var(--text-dim);
  letter-spacing: 6px;
  text-transform: uppercase;
}
.hero-value {
  font-size: 16px;
  color: var(--text-faint);
  max-width: 500px;
  line-height: 1.7;
  letter-spacing: 1px;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  cursor: pointer;
  text-decoration: none;
  transition: gap 0.3s ease;
}
.scroll-indicator:hover { gap: 12px; }
.scroll-indicator span {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 3px;
  transition: color 0.3s ease;
}
.scroll-indicator:hover span { color: var(--neon); }
.scroll-indicator .scroll-arrow {
  color: var(--text-faint);
  transition: color 0.3s ease, transform 0.3s ease;
  animation: arrow-bounce 2s ease-in-out infinite;
}
.scroll-indicator:hover .scroll-arrow {
  color: var(--neon);
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-indicator .scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--neon), transparent);
  animation: scroll-line-pulse 2s ease-in-out infinite;
}
@keyframes scroll-line-pulse {
  0% { opacity: 0.3; height: 16px; }
  50% { opacity: 1; height: 32px; }
  100% { opacity: 0.3; height: 16px; }
}

/* ---- Screen 2: Designer CTA ---- */
.screen-designer {
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background: radial-gradient(ellipse at center, #0a1207 0%, #000000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 80px;
  text-align: center;
}
.screen-designer > *:not(.mesh-gradient) {
  position: relative;
  z-index: 1;
}
.screen-designer .s2-kicker {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--neon);
  letter-spacing: 8px;
}
.screen-designer .s2-accent {
  width: 48px;
  height: 2px;
  background: var(--neon);
}
.screen-designer .s2-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  color: var(--text);
  text-shadow:
    0 0 80px rgba(158, 255, 0, 0.1),
    0 0 40px rgba(158, 255, 0, 0.25),
    0 0 20px rgba(158, 255, 0, 0.5),
    0 0 10px rgba(158, 255, 0, 0.8);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 80px rgba(158, 255, 0, 0.1),
      0 0 40px rgba(158, 255, 0, 0.2),
      0 0 20px rgba(158, 255, 0, 0.4),
      0 0 10px rgba(158, 255, 0, 0.7);
  }
  50% {
    text-shadow:
      0 0 100px rgba(158, 255, 0, 0.15),
      0 0 50px rgba(158, 255, 0, 0.3),
      0 0 30px rgba(158, 255, 0, 0.6),
      0 0 15px rgba(158, 255, 0, 0.9);
  }
}
.screen-designer .s2-subtitle {
  font-size: 20px;
  color: var(--text-dim);
  letter-spacing: 2px;
}
.screen-designer .s2-cta {
  width: 180px;
  height: 56px;
  font-size: 16px;
}
.screen-designer .s2-meta {
  font-size: 14px;
  color: var(--text-faint);
}

/* ---- Screen 3: AI Generation ---- */
.screen-aigen {
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 80px;
}
.screen-aigen > *:not(.grid-bg-animated) {
  position: relative;
  z-index: 1;
}
.screen-aigen .s3-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}
.screen-aigen .s3-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.screen-aigen .s3-desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
}
.screen-aigen .s3-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s3-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.s3-feature-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  flex-shrink: 0;
}
.s3-feature-item span {
  font-size: 14px;
  color: var(--text);
}
.screen-aigen .s3-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 560px;
}
.tshirt-preview {
  width: 360px;
  height: 440px;
  background: var(--bg-card);
  border-radius: 60px 60px 12px 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.tshirt-preview::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--neon), #00cc6a);
  border-radius: 50%;
  opacity: 0.9;
  box-shadow: 0 0 60px var(--neon-mid);
}
.tshirt-preview::after {
  content: 'AI';
  position: absolute;
  top: 120px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: var(--text-dark);
  z-index: 2;
}

/* ---- Mini Gallery (Screen 3 right side) ---- */
.mini-gallery {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mini-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mg-kicker {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 12px;
  color: var(--neon);
  letter-spacing: 4px;
}
.mg-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
}
.mg-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: mg-pulse 1.5s ease-in-out infinite;
}
@keyframes mg-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.mini-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mg-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}
.mg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(158,255,0,0.15);
}
.mg-canvas {
  display: block;
  width: 100%;
  height: 160px;
}
.mg-card-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mg-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.5px;
}
.mg-card-author {
  font-size: 10px;
  color: var(--text-dim);
}
.mg-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(158,255,0,0.15);
  color: var(--neon);
  border: 1px solid rgba(158,255,0,0.3);
  backdrop-filter: blur(4px);
}
.mg-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--neon);
  text-decoration: none;
  border: 1px solid rgba(158,255,0,0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
}
.mg-view-all:hover {
  background: rgba(158,255,0,0.08);
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(158,255,0,0.15);
}
.mg-view-all svg {
  transition: transform 0.3s ease;
}
.mg-view-all:hover svg {
  transform: translateX(4px);
}

/* ---- Screen 4: DROP Character ---- */
.screen-drop {
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(135deg, #050a05 0%, #000000 100%);
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 80px;
}
.screen-drop .s4-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 560px;
}
.drop-big-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 80px;
  color: var(--text-dark);
  box-shadow: 0 0 80px rgba(158, 255, 0, 0.2);
  animation: drop-float 4s ease-in-out infinite;
  position: relative;
}
@keyframes drop-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.drop-big-avatar::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  top: 60px;
  left: 55px;
  border-radius: 50%;
  background: var(--text-dark);
}
.drop-big-avatar::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  top: 60px;
  right: 55px;
  border-radius: 50%;
  background: var(--text-dark);
}
.drop-speech-demo {
  background: var(--bg-card);
  border: 1px solid rgba(158, 255, 0, 0.15);
  border-radius: 16px 16px 4px 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}
.drop-speech-demo .title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 12px;
  color: var(--neon);
  letter-spacing: 1px;
}
.drop-speech-demo .text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}
.screen-drop .s4-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}
.screen-drop .s4-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
}
.screen-drop .s4-desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
}
.s4-tags {
  display: flex;
  gap: 12px;
}
.s4-tag {
  padding: 0 20px;
  height: 36px;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  color: var(--neon);
  font-size: 12px;
  border-radius: 0;
}

/* ---- Screen 5: Final CTA + Footer ---- */
.screen-final {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: radial-gradient(ellipse at center, #0a1207 0%, #000000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 80px;
  text-align: center;
}
.screen-final .s5-title {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  color: var(--text);
}
.screen-final .s5-subtitle {
  font-size: 20px;
  color: var(--text-dim);
}
.screen-final .s5-cta {
  width: 200px;
  height: 60px;
  font-size: 18px;
}
.screen-final .s5-price-hint {
  font-size: 14px;
  color: var(--text-faint);
}
.site-footer {
  width: 100%;
  height: auto;
  background: #000000;
  padding: 40px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer .footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--neon);
}
.site-footer .footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}
.site-footer .footer-links {
  display: flex;
  gap: 16px;
}
.site-footer .footer-links a {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer .footer-links a:hover {
  color: var(--neon);
}

/* ============================================
   DESIGN TOOL PAGE
   ============================================ */
.design-page {
  padding-top: 72px;
  min-height: 100vh;
  background: var(--bg);
}
.tool-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  border-bottom: 1px solid var(--border);
}
.tool-nav .nav-right {
  display: flex;
  gap: 16px;
}
.workspace {
  display: flex;
  min-height: calc(100vh - 136px);
}

/* Preview Panel */
.preview-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px;
  gap: 24px;
  border-right: 1px solid var(--border);
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.preview-toolbar .view-label {
  font-size: 14px;
  color: var(--text-dim);
}
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.zoom-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.zoom-btn:hover { background: #2a2a2a; }
.zoom-text {
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}
.canvas-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 30% at 50% 85%, rgba(158,255,0,0.03) 0%, transparent 70%),
    linear-gradient(180deg, #0d0d0d 0%, #111 50%, #0a0a0a 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
/* Floor shadow under T-shirt */
.canvas-area::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.tshirt-canvas {
  width: 420px;
  height: 540px;
  position: relative;
  cursor: grab;
  transition: transform 0.3s ease;
}
.tshirt-body {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #fff;
  clip-path: polygon(
    20% 0%, 35% 8%, 65% 8%, 80% 0%,
    100% 12%, 95% 30%, 90% 100%,
    10% 100%, 5% 30%, 0% 12%
  );
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
/* Dark fabric mode — auto-adjust shadows for dark colors */
.tshirt-body.dark-fabric::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 12%),
    linear-gradient(90deg, rgba(0,0,0,0.3) 0%, transparent 8%, transparent 92%, rgba(0,0,0,0.3) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.2) 0%, transparent 15%),
    radial-gradient(ellipse 50% 40% at 50% 42%, rgba(255,255,255,0.05) 0%, transparent 70%) !important;
}
.tshirt-body.dark-fabric::before {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px) !important;
}
/* Color flash animation on change */
.tshirt-body.color-changing::after {
  background:
    linear-gradient(180deg, rgba(158,255,0,0.15) 0%, transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,0.12) 0%, transparent 8%, transparent 92%, rgba(0,0,0,0.12) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.1) 0%, transparent 15%),
    radial-gradient(ellipse 50% 40% at 50% 42%, rgba(255,255,255,0.08) 0%, transparent 70%) !important;
}
/* Fabric texture overlay */
.tshirt-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.015) 0px, rgba(0,0,0,0.015) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.015) 0px, rgba(0,0,0,0.015) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
}
/* Fabric shadows and highlights for 3D depth */
.tshirt-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Shoulder highlights */
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 12%),
    /* Side shadows */
    linear-gradient(90deg, rgba(0,0,0,0.12) 0%, transparent 8%, transparent 92%, rgba(0,0,0,0.12) 100%),
    /* Bottom shadow */
    linear-gradient(0deg, rgba(0,0,0,0.1) 0%, transparent 15%),
    /* Center subtle highlight (where print goes) */
    radial-gradient(ellipse 50% 40% at 50% 42%, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}
/* Collar/neckline detail */
.tshirt-canvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 8%;
  border-bottom: 3px solid rgba(0,0,0,0.15);
  border-radius: 0 0 50% 50%;
  z-index: 3;
  pointer-events: none;
}
/* Sleeve seam shadows */
.tshirt-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 18%, rgba(0,0,0,0.06) 19%, transparent 22%),
    linear-gradient(245deg, transparent 18%, rgba(0,0,0,0.06) 19%, transparent 22%);
  pointer-events: none;
  z-index: 3;
  clip-path: polygon(
    20% 0%, 35% 8%, 65% 8%, 80% 0%,
    100% 12%, 95% 30%, 90% 100%,
    10% 100%, 5% 30%, 0% 12%
  );
}
/* -------------------------------------------------------
   DESIGN LAYER — draggable image on T-shirt
   ------------------------------------------------------- */
.design-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.design-img {
  position: absolute;
  display: none;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
  pointer-events: auto;
  image-rendering: auto;
  object-fit: contain;
}
.design-img:hover {
  border-color: var(--neon-mid);
  box-shadow: 0 0 12px rgba(158,255,0,0.25);
}

/* Resize handle — bottom-right corner */
.img-resize-handle {
  display: none;
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--neon);
  border: 2px solid var(--bg);
  border-radius: 3px;
  cursor: nwse-resize;
  z-index: 7;
  pointer-events: auto;
  transition: transform 0.15s;
}
.img-resize-handle:hover {
  transform: scale(1.3);
}

/* Delete button */
.img-delete-btn {
  display: none;
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgba(255,50,50,0.85);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  z-index: 8;
  pointer-events: auto;
  transition: background 0.2s, transform 0.15s;
}
.img-delete-btn:hover {
  background: #ff2222;
  transform: scale(1.15);
}

/* Layer indicator badge in toolbar */
.layer-indicator {
  display: inline-block;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(158,255,0,0.12);
  color: var(--neon);
  margin-left: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Text overlay on T-shirt canvas */
.text-overlay {
  position: absolute;
  display: none;
  white-space: nowrap;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.5);
  pointer-events: auto;
  user-select: none;
  z-index: 6;
  line-height: 1.1;
  text-align: center;
  transition: none;
}
.text-overlay:hover {
  text-shadow: 0 0 18px rgba(158,255,0,0.5), 0 0 6px rgba(0,0,0,0.7);
}

/* Pattern overlay on T-shirt canvas */
.pattern-overlay {
  position: absolute;
  display: none;
  pointer-events: auto;
  user-select: none;
  z-index: 4;
  opacity: 0.85;
  transition: opacity 0.2s;
  overflow: hidden;
}
.pattern-overlay:hover {
  opacity: 1;
}
.pattern-overlay svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Tool Panel */
.tool-panel {
  width: 480px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  gap: 28px;
  background: var(--bg-card);
}
.tool-tabs {
  display: flex;
  height: 44px;
  background: var(--bg-input);
}
.tool-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.tool-tab.active {
  background: var(--neon);
  color: var(--text-dark);
}
.tab-content { display: none; flex-direction: column; gap: 20px; }
.tab-content.active { display: flex; }

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.text-input, .textarea-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.textarea-input {
  height: 100px;
  resize: none;
  line-height: 1.5;
}
.text-input:focus, .textarea-input:focus {
  border-color: var(--neon);
}
.text-input::placeholder, .textarea-input::placeholder {
  color: var(--text-faint);
}

/* Text Tool Controls */
.text-tool-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.text-tool-row .text-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
}
.text-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.font-select {
  flex: 2;
  min-width: 100px;
  height: 32px;
  padding: 0 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  outline: none;
  border-radius: 4px;
  cursor: pointer;
}
.font-select:focus { border-color: var(--neon); }
.font-size-input {
  width: 56px;
  height: 32px;
  padding: 0 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  text-align: center;
  outline: none;
  border-radius: 4px;
}
.font-size-input:focus { border-color: var(--neon); }
.text-color-picker {
  width: 32px;
  height: 32px;
  padding: 2px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.text-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.text-color-picker::-webkit-color-swatch { border: none; border-radius: 2px; }

/* Pattern Grid */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pattern-card {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
  background: var(--bg-input);
}
.pattern-card:hover {
  border-color: rgba(158,255,0,0.5);
  transform: translateY(-2px);
}
.pattern-card.active {
  border: 2px solid var(--neon);
  box-shadow: 0 0 12px rgba(158,255,0,0.25);
}
.pattern-visual {
  aspect-ratio: 1;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pattern-visual svg {
  width: 100%;
  height: 100%;
}
.pattern-name {
  font-size: 10px;
  text-align: center;
  padding: 4px 6px 6px;
  color: var(--text-dim);
}

/* Field label hint */
.field-label .label-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-faint);
  margin-left: 6px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.style-preset {
  aspect-ratio: 1.4;
  background: #2a2a2a;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.style-preset:hover { transform: translateY(-3px); border-color: rgba(158,255,0,0.4); }
.style-preset.active {
  border: 2px solid var(--neon);
  box-shadow: 0 0 16px rgba(158,255,0,0.2);
}
.style-preset span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* Prompt suggestion chips */
.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.prompt-chip {
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(158, 255, 0, 0.06);
  border: 1px solid rgba(158, 255, 0, 0.15);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.prompt-chip:hover {
  color: var(--neon);
  background: rgba(158, 255, 0, 0.15);
  border-color: var(--neon);
  transform: translateY(-1px);
}
.prompt-chip:active {
  transform: scale(0.96);
}

.color-row {
  display: flex;
  gap: 12px;
}
.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.color-swatch.active {
  border-color: var(--neon);
  box-shadow: 0 0 12px var(--neon-mid);
}

.upload-area {
  width: 100%;
  height: 120px;
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  color: var(--text-dim);
}
.upload-area:hover { border-color: var(--neon); color: var(--neon); }
.upload-area .upload-icon {
  font-size: 32px;
  font-weight: 900;
  color: inherit;
}
.upload-area .upload-text {
  font-size: 13px;
}

.generate-btn {
  width: 100%;
  height: 56px;
  font-size: 16px;
}

/* ---- Garment Settings (Tab 3) ---- */
.garment-selectors {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.select-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.select-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.select-label .label-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-faint);
}
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option-chip {
  padding: 8px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.option-chip:hover {
  border-color: rgba(158, 255, 0, 0.3);
  color: var(--text);
}
.option-chip.active {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--text-dark);
}
.option-chip .chip-detail {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
}
.size-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.size-btn {
  height: 40px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.size-btn:hover { border-color: rgba(158, 255, 0, 0.3); color: var(--text); }
.size-btn.active {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--text-dark);
}
.size-btn .size-detail {
  font-size: 9px;
  font-weight: 400;
  opacity: 0.6;
}
.weight-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.weight-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
.weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--neon);
  cursor: pointer;
  box-shadow: 0 0 8px var(--neon-mid);
}
.weight-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--neon);
  cursor: pointer;
  border: none;
}
.weight-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-faint);
}
.weight-current {
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
  font-family: 'Montserrat', sans-serif;
}

/* Design tool DROP bar */
.tool-drop-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px 80px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.tool-drop-bar .drop-avatar { width: 56px; height: 56px; font-size: 22px; }
.tool-drop-bar .drop-bubble { display: flex; max-width: 560px; }

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page {
  padding-top: 72px;
  min-height: 100vh;
  background: var(--bg);
}
.checkout-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  border-bottom: 1px solid var(--border);
}
.checkout-content {
  display: flex;
  min-height: calc(100vh - 136px);
}
.order-summary {
  width: 50%;
  padding: 80px;
  background: var(--bg-card);
}
.order-summary h2 {
  font-size: 32px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  margin-bottom: 32px;
}
.preview-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-input);
  margin-bottom: 32px;
}
.preview-card .thumb {
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.preview-card .thumb-inner {
  width: 80px;
  height: 80px;
  background: var(--neon);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--text-dark);
}
.preview-card .item-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preview-card .item-info .item-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.preview-card .item-info .item-detail {
  font-size: 14px;
  color: var(--text-dim);
}
.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.price-row .price-label {
  font-size: 14px;
  color: var(--text-dim);
}
.price-row .price-value {
  font-size: 24px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
}
.price-row.total .price-label {
  font-weight: 700;
  color: var(--neon);
}
.price-row.total .price-value {
  font-size: 36px;
  color: var(--neon);
}

.checkout-form {
  width: 50%;
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.checkout-form h2 {
  font-size: 32px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--neon);
}
.form-field textarea {
  height: 80px;
  resize: none;
}
.payment-options {
  display: flex;
  gap: 12px;
}
.payment-option {
  flex: 1;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.payment-option.active {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 12px var(--neon-soft);
}
.submit-btn {
  width: 100%;
  height: 56px;
  font-size: 16px;
  margin-top: 16px;
}
.checkout-drop-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px 80px;
  border-top: 1px solid var(--border);
}
.checkout-drop-bar .drop-bubble { display: flex; max-width: 600px; }

/* ============================================
   GALLERY PAGE
   ============================================ */
.gallery-page {
  padding-top: 72px;
  min-height: 100vh;
  background: var(--bg);
}
.gallery-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  border-bottom: 1px solid var(--border);
}
.gallery-header {
  padding: 60px 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-header h1 {
  font-size: 48px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
}
.filter-bar {
  padding: 0 80px;
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}
.filter-chip {
  padding: 0 20px;
  height: 36px;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip.active {
  background: var(--neon);
  color: var(--text-dark);
}
.gallery-grid {
  padding: 0 80px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.gallery-card {
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(158, 255, 0, 0.08);
}
.gallery-card .card-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.gallery-card .card-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.15);
}
.gallery-card .card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-card .card-title {
  font-size: 16px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
}
.gallery-card .card-author {
  font-size: 12px;
  color: var(--text-dim);
}
.gallery-card .card-price {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: var(--neon);
}
.gallery-footer {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--border);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .navbar { padding: 0 40px; }
  .screen-aigen, .screen-drop { flex-direction: column; padding: 40px; gap: 40px; }
  .workspace { flex-direction: column; }
  .tool-panel { width: 100%; border-top: 1px solid var(--border); }
  .checkout-content { flex-direction: column; }
  .order-summary, .checkout-form { width: 100%; padding: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-menu { display: none; }
  .hero-logo { font-size: 64px; }
  .gallery-grid { grid-template-columns: 1fr; padding: 0 20px 40px; }
  .filter-bar, .gallery-header { padding-left: 20px; padding-right: 20px; }
  .mini-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mg-canvas { height: 120px; }
  .mg-card-title { font-size: 10px; }
  .mg-card-author { font-size: 9px; }
}

/* ---- Scroll animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered fade for children */
.fade-up.visible .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   ENHANCED TECH ANIMATIONS
   ============================================ */

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), #00ffaa, var(--neon));
  z-index: 9999;
  width: 0%;
  box-shadow: 0 0 10px var(--neon-mid);
  transition: width 0.1s linear;
}

/* ---- Canvas Particle Network ---- */
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ---- Cursor Glow Follower ---- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158,255,0,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  mix-blend-mode: screen;
}
.cursor-glow.active { opacity: 1; }

/* ---- Glitch Text Effect ---- */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0.8;
}
.glitch::before {
  color: var(--neon);
  animation: glitch-anim-1 0.8s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.glitch::after {
  color: #00ddff;
  animation: glitch-anim-2 0.6s infinite linear alternate-reverse;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}
@keyframes glitch-anim-1 {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(2px, -1px); }
  60%  { transform: translate(-1px, 2px); }
  80%  { transform: translate(1px, -2px); }
  100% { transform: translate(0, 0); }
}
@keyframes glitch-anim-2 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(2px, 1px); }
  50%  { transform: translate(-2px, -1px); }
  75%  { transform: translate(1px, 2px); }
  100% { transform: translate(0, 0); }
}

/* ---- Scan Line Overlay ---- */
.scan-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.scan-overlay::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.3;
  animation: scan-move 4s linear infinite;
}
@keyframes scan-move {
  0%   { top: -10%; }
  100% { top: 110%; }
}

/* ---- Holographic Shimmer ---- */
.holo-shimmer {
  position: relative;
  overflow: hidden;
}
.holo-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(158, 255, 0, 0.08) 45%,
    rgba(0, 221, 255, 0.06) 55%,
    transparent 70%
  );
  animation: holo-sweep 5s ease-in-out infinite;
}
@keyframes holo-sweep {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(50%); }
  100% { transform: translateX(-100%); }
}

/* ---- 3D Tilt Cards ---- */
.tilt-card {
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card .tilt-inner {
  transform: translateZ(30px);
}

/* ---- Animated Grid Background ---- */
.grid-bg-animated {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.grid-bg-animated::before {
  content: '';
  position: absolute;
  inset: -50px;
  background-image:
    linear-gradient(rgba(158, 255, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 255, 0, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-pan 20s linear infinite;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
@keyframes grid-pan {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* ---- Floating Wireframe Shapes ---- */
.wireframe-shape {
  position: absolute;
  border: 1px solid rgba(158, 255, 0, 0.1);
  pointer-events: none;
  z-index: 1;
}
.wireframe-circle { border-radius: 50%; }
.wireframe-rotate { animation: rotate-slow 30s linear infinite; }
@keyframes rotate-slow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.wireframe-float {
  animation: wireframe-float-anim 8s ease-in-out infinite;
}
@keyframes wireframe-float-anim {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(180deg); }
}

/* ---- Text Reveal / Decode ---- */
.decode-text {
  font-family: 'Montserrat', monospace;
  overflow: hidden;
}
.decode-text .char {
  display: inline-block;
  opacity: 0;
  animation: char-reveal 0.05s ease forwards;
}
@keyframes char-reveal {
  to { opacity: 1; }
}

/* ---- Section Transition Mask ---- */
.section-mask-enter {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-mask-enter.visible {
  clip-path: inset(0 0 0% 0);
}

/* ---- Pulsing Ring ---- */
.pulse-ring {
  position: absolute;
  border: 2px solid var(--neon);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring-expand 3s ease-out infinite;
}
@keyframes pulse-ring-expand {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---- Gradient Mesh Background ---- */
.mesh-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(at 20% 30%, rgba(158, 255, 0, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 20%, rgba(0, 200, 255, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(158, 255, 0, 0.06) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(100, 100, 255, 0.04) 0px, transparent 50%);
  animation: mesh-shift 15s ease-in-out infinite;
}
@keyframes mesh-shift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  33%      { transform: scale(1.05) rotate(1deg); }
  66%      { transform: scale(0.98) rotate(-1deg); }
}

/* ---- Glow Border Animation ---- */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--neon), transparent, var(--neon));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.glow-border:hover::before { opacity: 1; }

/* ---- Data Stream (vertical falling characters) ---- */
.data-stream {
  position: absolute;
  top: 0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--neon);
  opacity: 0;
  z-index: 1;
  writing-mode: vertical-rl;
  animation: data-fall 8s linear infinite;
  white-space: nowrap;
  text-shadow: 0 0 6px var(--neon-mid);
}
@keyframes data-fall {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 0.3; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* ---- Neon Button Pulse ---- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-primary:hover::after {
  transform: translateX(100%);
}

/* ---- Screen Fade Transition ---- */
.screen-hero, .screen-designer, .screen-aigen, .screen-drop, .screen-final {
  transition: opacity 0.5s ease;
}

/* ---- Responsive for new elements ---- */
@media (max-width: 768px) {
  .cursor-glow { display: none; }
  .wireframe-shape { display: none; }
}

/* ============================================
   VERSION TOGGLE & DUAL-MODE DESIGN TOOL
   ============================================ */

/* Version Toggle Bar */
.version-toggle-bar {
  padding: 0 80px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.version-toggle {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 0;
}
.version-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-dim);
  position: relative;
}
.version-btn:first-child { border-right: none; }
.version-btn .v-icon { font-size: 24px; line-height: 1; }
.version-btn .v-label {
  font-size: 16px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
}
.version-btn .v-desc {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 400;
}
.version-btn:hover {
  border-color: rgba(158, 255, 0, 0.3);
  color: var(--text);
}
.version-btn.active {
  background: rgba(158, 255, 0, 0.06);
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 20px rgba(158, 255, 0, 0.08);
}
.version-btn.active .v-desc { color: var(--text-dim); }
.version-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--neon);
}

/* Version Panel visibility */
.version-panel { display: none; }
.version-panel.active { display: flex; }

/* Template Grid (Basic version) */
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.template-card {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.template-card:hover { transform: translateY(-3px); }
.template-card.active .template-visual {
  border: 2px solid var(--neon);
  box-shadow: 0 0 20px rgba(158, 255, 0, 0.3);
}
.template-card.active .template-visual::after {
  content: '\2713';
  position: absolute;
  top: 6px;
  right: 8px;
  color: var(--neon);
  font-size: 14px;
  font-weight: 900;
  z-index: 2;
}
.template-card.active .template-label {
  color: var(--neon);
}
.template-visual {
  aspect-ratio: 1.4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.25s;
}
.template-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.25s, transform 0.3s;
}
.template-card:hover .template-visual img {
  opacity: 1;
  transform: scale(1.05);
}
.template-card:hover .template-visual {
  border-color: rgba(158, 255, 0, 0.4);
}
.template-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
  text-align: center;
  transition: color 0.2s;
}

/* Fixed material info (Basic) */
.fixed-material-info {
  background: rgba(158, 255, 0, 0.04);
  border: 1px solid rgba(158, 255, 0, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fixed-material-info .fm-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.fixed-material-info .fm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fixed-material-info .fm-tags span {
  padding: 4px 10px;
  background: rgba(158, 255, 0, 0.08);
  color: var(--neon);
  font-size: 11px;
  font-weight: 700;
}
.fixed-material-info .fm-note {
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.5;
}

.tool-breadcrumb {
  font-size: 14px;
  color: #888;
}

/* ============================================
   NAV ACTIVE STATE
   ============================================ */
.navbar .nav-menu a.active {
  color: var(--neon);
  opacity: 1;
}
.navbar .nav-menu a.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--neon);
  margin-top: 4px;
}

/* ============================================
   PAGE ENTRANCE & MICRO-ANIMATIONS
   ============================================ */
.page-enter {
  animation: page-fade-in 0.5s ease;
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-card:hover .card-thumb-inner {
  transform: scale(1.03);
  transition: transform 0.4s ease;
}

/* ============================================
   CHECKOUT SUCCESS ANIMATION
   ============================================ */
.order-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: overlay-in 0.3s ease;
}
@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.order-success-card {
  background: var(--bg-card);
  border: 1px solid var(--neon);
  padding: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: card-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes card-pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.order-success-card .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-dark);
  animation: success-pulse 1s ease infinite;
}
@keyframes success-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(158,255,0,0.4); }
  50% { box-shadow: 0 0 0 20px rgba(158,255,0,0); }
}
.order-success-card h2 {
  font-size: 28px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
}
.order-success-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Product thumb canvas */
.product-thumb-canvas {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* ============================================
   DESIGN GUIDE SIDEBAR NAV
   ============================================ */
.guide-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 72px);
}
.guide-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 32px 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}
.guide-sidebar .sidebar-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 3px;
  padding: 0 24px;
  margin-bottom: 16px;
}
.guide-sidebar .sidebar-link {
  display: block;
  padding: 10px 24px;
  font-size: 13px;
  color: var(--text-dim);
  transition: all 0.2s;
  border-left: 2px solid transparent;
  cursor: pointer;
}
.guide-sidebar .sidebar-link:hover {
  color: var(--text);
  background: rgba(158,255,0,0.04);
}
.guide-sidebar .sidebar-link.active {
  color: var(--neon);
  border-left-color: var(--neon);
  background: rgba(158,255,0,0.06);
}
.guide-content {
  flex: 1;
  overflow-y: auto;
}

/* ============================================
   AI GENERATE BUTTON & STATUS
   ============================================ */
.ai-gen-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.btn-ai-generate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-ai-generate:hover {
  background: var(--neon);
  color: var(--text-dark);
  box-shadow: 0 0 20px rgba(158,255,0,0.3);
}
.btn-ai-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ai-spark {
  font-size: 16px;
}
.ai-gen-status {
  font-size: 13px;
  color: var(--text-dim);
}
.ai-gen-status.status-loading {
  color: var(--neon);
  animation: status-blink 1.2s ease-in-out infinite;
}
.ai-gen-status.status-done {
  color: #4cff4c;
}
.ai-gen-status.status-error {
  color: #ff4444;
}

/* AI Generation Progress Bar */
.ai-gen-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}
.ai-gen-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.ai-gen-progress-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--neon), #00ff88, var(--neon));
  background-size: 200% 100%;
  border-radius: 2px;
  animation: progress-slide 1.5s ease-in-out infinite;
}
@keyframes progress-slide {
  0% { width: 20%; background-position: 0% 50%; }
  50% { width: 70%; background-position: 100% 50%; }
  100% { width: 20%; background-position: 0% 50%; }
}
.ai-gen-progress-text {
  font-size: 12px;
  color: var(--neon);
  transition: opacity 0.3s;
}

/* AI Error message + retry */
.ai-gen-error-msg {
  color: #ff4444;
  font-size: 13px;
}
.ai-retry-btn {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff6666;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 8px;
  transition: all 0.2s;
}
.ai-retry-btn:hover {
  background: rgba(255, 68, 68, 0.2);
  color: #ff8888;
}
.ai-gen-done-msg {
  color: #4cff4c;
  font-size: 13px;
}

/* Generation History Strip */
.gen-history-container {
  margin-bottom: 16px;
}
.gen-history-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 700;
}
.gen-history-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gen-history-thumb {
  width: 56px;
  height: 56px;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  background: var(--bg-card);
}
.gen-history-thumb:hover {
  border-color: var(--neon);
  box-shadow: 0 0 12px rgba(158, 255, 0, 0.2);
  transform: scale(1.05);
}
.gen-history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ai-gen-divider {
  display: flex;
  align-items: center;
  margin: 8px 0;
  color: var(--text-faint);
  font-size: 12px;
}
.ai-gen-divider::before,
.ai-gen-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ai-gen-divider span {
  padding: 0 12px;
}

/* ============================================
   DRAG TOOLTIP
   ============================================ */
.drag-tooltip {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--neon);
  color: var(--neon);
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.drag-tooltip.show {
  opacity: 1;
}
.drag-tip-icon {
  font-size: 18px;
}

/* Upload drag-over state */
.upload-area.drag-over {
  border-color: var(--neon) !important;
  background: rgba(158,255,0,0.06);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .version-toggle-bar { padding: 0 40px; }
  .version-toggle { max-width: 100%; }
  .version-btn { padding: 16px 16px; }
  .guide-sidebar { display: none; }
}
@media (max-width: 768px) {
  .version-toggle-bar { padding: 0 20px; }
  .version-btn .v-desc { display: none; }
  .template-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   DESIGN TOOL — CENTER BUTTON & DROP ASSISTANT
   ============================================ */

/* Center image button in zoom controls */
.zoom-btn.center-btn {
  font-size: 20px;
  color: var(--neon);
  border: 1px solid rgba(158, 255, 0, 0.3);
  background: rgba(158, 255, 0, 0.05);
  width: 34px;
  height: 34px;
}
.zoom-btn.center-btn:hover {
  background: var(--neon);
  color: var(--text-dark);
  box-shadow: 0 0 12px rgba(158,255,0,0.3);
}

/* ============================================
   MY DESIGNS PANEL
   ============================================ */

.my-designs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.2s ease;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.my-designs-panel {
  background: var(--bg-card);
  border: 1px solid rgba(158, 255, 0, 0.15);
  border-radius: 12px;
  width: 90%;
  max-width: 720px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: panel-slide-up 0.3s ease;
}
@keyframes panel-slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.my-designs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.my-designs-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--neon);
  letter-spacing: 1px;
}
.my-designs-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.my-designs-close:hover { color: var(--neon); }
.my-designs-list {
  padding: 16px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.my-designs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 16px;
}
.design-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.design-card:hover {
  border-color: var(--neon);
  box-shadow: 0 4px 24px rgba(158, 255, 0, 0.12);
  transform: translateY(-3px);
}
.design-card-thumb {
  width: 100%;
  aspect-ratio: 1.2;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.design-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.design-card:hover .design-card-thumb img {
  transform: scale(1.05);
}
.design-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg));
  color: var(--text-faint);
  font-size: 32px;
}
/* Hover overlay with quick actions */
.design-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}
.design-card:hover .design-card-overlay { opacity: 1; }
.design-card-action {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.design-card-action.edit {
  background: var(--neon);
  color: #000;
}
.design-card-action.edit:hover {
  background: var(--neon-bright);
  transform: scale(1.05);
}
.design-card-action.publish {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.design-card-action.publish:hover {
  background: rgba(255, 255, 255, 0.25);
}
.design-card-info {
  padding: 12px 14px;
}
.design-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.design-card-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.design-card-meta .style-tag {
  background: rgba(158, 255, 0, 0.1);
  color: var(--neon);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.design-card-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  color: #ff4466;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}
.design-card:hover .design-card-delete { opacity: 1; }
.design-card-delete:hover { background: rgba(255, 68, 102, 0.3); }
.my-designs-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-dim);
}
.my-designs-loading .spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   DROP DESKTOP PET — pure SVG/CSS animated head
   ============================================ */

.drop-pet {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
  transition: right 0.8s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.drop-pet > * { pointer-events: auto; }

/* The PNG head container */
.drop-pet-head {
  position: relative;
  width: 120px;
  height: 120px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  animation: pet-idle-float 5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(158, 255, 0, 0.2));
  transition: filter 0.3s ease;
}
.drop-pet-head:hover {
  filter: drop-shadow(0 0 32px rgba(158, 255, 0, 0.4));
}
.drop-pet-head.dragging {
  cursor: grabbing;
  animation: none;
  filter: drop-shadow(0 0 40px rgba(158, 255, 0, 0.6));
}
.drop-pet-head.spinning {
  animation: pet-spin 0.6s ease-in-out;
}
.drop-pet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* DROPLAB text on forehead */
.drop-pet-label {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 8px;
  color: #9EFF00;
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(158,255,0,0.9), 0 0 8px rgba(158,255,0,0.5);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

/* Idle floating animation — desktop pet feel */
@keyframes pet-idle-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  25%      { transform: translateY(-8px) rotate(1deg); }
  50%      { transform: translateY(-4px) rotate(-0.5deg); }
  75%      { transform: translateY(-10px) rotate(1.5deg); }
}

/* Spin animation on double-click */
@keyframes pet-spin {
  0%   { transform: rotateY(0deg) scale(1); }
  50%  { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(360deg) scale(1); }
}

/* Speech bubble — kept from before, adjusted position */
.assistant-bubble {
  background: var(--bg-card);
  border: 1px solid var(--neon);
  border-radius: 16px 16px 4px 16px;
  padding: 14px 18px;
  max-width: 260px;
  box-shadow: 0 0 24px rgba(158, 255, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.assistant-bubble:not(.show) {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.assistant-bubble .bubble-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--neon);
  letter-spacing: 1px;
  font-family: 'Montserrat', sans-serif;
}
.assistant-bubble .bubble-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* When bubble is hidden, head repositions */
.drop-pet.bubble-hidden .drop-pet-head {
  animation: pet-idle-float 5s ease-in-out infinite, pet-nudge 0.4s ease;
}
@keyframes pet-nudge {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 1200px) {
  .drop-pet { right: 20px; bottom: 20px; gap: 10px; }
  .drop-pet-head { width: 90px; height: 90px; }
  .drop-pet-label { font-size: 6px; }
  .assistant-bubble { max-width: 220px; padding: 12px 14px; }
}
@media (max-width: 768px) {
  .drop-pet-head { width: 70px; height: 70px; }
  .drop-pet-label { font-size: 5px; top: 28%; }
  .assistant-bubble { display: none; }
}

/* ============================================
   MOBILE RESPONSIVE — Full Adaptation
   ============================================ */

/* Mobile hamburger menu button */
.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1001;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--neon);
  transition: all 0.3s;
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  top: 72px;
  right: -100%;
  width: 260px;
  height: calc(100vh - 72px);
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(158, 255, 0, 0.1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  font-size: 16px;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: rgba(158, 255, 0, 0.1);
  color: var(--neon);
}
.mobile-menu .mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.mobile-menu .mobile-menu-user {
  padding: 16px;
  background: var(--bg-card);
  border-radius: 8px;
  margin-bottom: 8px;
}
.mobile-menu .mobile-menu-user .mmu-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--neon);
}
.mobile-menu .mobile-menu-user .mmu-email {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 0 16px; height: 56px; }
  .navbar .nav-logo { font-size: 16px; }
  .navbar .nav-menu { display: none; }
  .navbar .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  /* Tool nav */
  .tool-nav { padding: 0 16px; height: 52px; }
  .tool-nav .tool-breadcrumb { font-size: 13px; }
  .tool-nav .nav-right { gap: 8px; }
  .tool-nav .nav-right .btn { height: 34px; font-size: 12px; }
  .tool-nav .nav-right .btn[style*="width:100px"] { width: 70px !important; }
  .tool-nav .nav-right .btn[style*="width:80px"] { width: 56px !important; }
  .tool-nav .nav-right .btn[style*="width:120px"] { width: 76px !important; }

  /* Version toggle */
  .version-toggle-bar { padding: 0 16px; }
  .version-toggle { padding: 10px 0; }
  .version-btn { padding: 10px 8px; }
  .version-btn .v-icon { font-size: 16px; }
  .version-btn .v-label { font-size: 12px; }
  .version-btn .v-desc { display: none; }

  /* Workspace */
  .workspace { flex-direction: column; min-height: auto; }
  .version-panel.active { flex-direction: column; }

  /* Preview panel */
  .preview-panel { padding: 16px; border-right: none; border-bottom: 1px solid var(--border); }
  .canvas-area { min-height: 300px; padding: 8px; }
  .tshirt-canvas { max-width: 100%; }

  /* Tool panel */
  .tool-panel { width: 100%; padding: 16px; }
  .tool-panel .generate-btn { width: 100%; }

  /* Template & style grids */
  .template-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .style-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pattern-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .text-controls { flex-wrap: wrap; gap: 6px; }
  .font-select { flex: 1; min-width: 80px; }

  /* Colors */
  .color-row { flex-wrap: wrap; gap: 8px; }

  /* Options */
  .option-row { flex-wrap: wrap; gap: 6px; }
  .option-chip { font-size: 11px; padding: 6px 10px; }
  .size-grid { flex-wrap: wrap; gap: 6px; }

  /* Textarea */
  .textarea-input { font-size: 14px; }

  /* AI gen row */
  .ai-gen-row { flex-direction: column; gap: 8px; align-items: stretch; }
  .ai-gen-row .btn-ai-generate { width: 100%; }

  /* Upload area */
  .upload-area { padding: 20px; }

  /* Fixed material info */
  .fixed-material-info { padding: 12px; }
  .fm-tags { flex-wrap: wrap; gap: 6px; }

  /* Drag tooltip */
  .drag-tooltip { font-size: 11px; padding: 6px 12px; bottom: 80px; }

  /* My designs panel */
  .my-designs-panel { width: 95%; max-height: 85vh; border-radius: 8px; }
  .my-designs-list { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
  .design-card-name { font-size: 12px; }

  /* Landing page */
  .hero-logo { font-size: 48px !important; letter-spacing: 2px; }
  .hero-tagline { font-size: 13px !important; letter-spacing: 3px; }
  .landing section { padding: 40px 20px; }
  .screen-designer, .screen-aigen, .screen-drop { padding: 40px 20px; }
  .screen-final { padding: 40px 20px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; padding: 0 16px 40px; }
  .filter-bar { padding: 0 16px; flex-wrap: wrap; gap: 8px; }
  .gallery-header { padding: 60px 16px 20px; }
  .gallery-header h1 { font-size: 32px; }

  /* Checkout */
  .checkout-content { flex-direction: column; }
  .order-summary, .checkout-form { width: 100%; padding: 20px; }
  .checkout-header { padding: 60px 16px 20px; }
  .checkout-header h1 { font-size: 28px; }
  .form-row { flex-direction: column; gap: 0; }
  .form-group { width: 100%; }

  /* Login */
  .login-wrapper { padding: 60px 16px 40px; }
  .login-card { width: 100%; padding: 28px 20px; border-radius: 8px; }
  .login-header h1 { font-size: 28px; }
  .login-tabs { gap: 0; }
  .login-tab { font-size: 14px; padding: 10px; }

  /* Design points */
  .guide-sidebar { display: none; }
  .guide-content { margin-left: 0; padding: 60px 16px 40px; }
  .guide-section { padding: 20px 0; }
  .guide-section h2 { font-size: 20px; }

  /* DROP pet */
  .drop-pet { right: 12px; bottom: 12px; }

  /* Price cards */
  .price-cards { flex-direction: column; gap: 16px; }
  .price-card { width: 100%; }
}

@media (max-width: 480px) {
  .hero-logo { font-size: 36px !important; }
  .hero-tagline { font-size: 11px !important; letter-spacing: 2px; }
  .template-grid { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: 1fr; }
  .my-designs-list { grid-template-columns: 1fr; }
  .login-card { padding: 20px 16px; }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
  .template-card:hover, .style-preset:hover, .design-card:hover, .pattern-card:hover {
    transform: none;
  }
  .zoom-btn { width: 40px; height: 40px; }
  .option-chip { padding: 8px 14px; }
  .color-swatch { width: 36px; height: 36px; }
}

/* ============================================
   TOAST NOTIFICATION SYSTEM
   ============================================ */
.toast-container {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 380px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: auto;
  animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--neon);
}
.toast.toast-success::before { background: var(--neon); }
.toast.toast-error::before { background: #ff4455; }
.toast.toast-error { border-color: rgba(255,68,85,0.3); }
.toast.toast-info::before { background: #00bcd4; }
.toast.toast-info { border-color: rgba(0,188,212,0.3); }
.toast-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
}
.toast-success .toast-icon { color: var(--neon); }
.toast-error .toast-icon { color: #ff4455; }
.toast-info .toast-icon { color: #00bcd4; }
.toast.fade-out {
  animation: toast-out 0.3s ease forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(60px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(60px) scale(0.95); }
}

/* ============================================
   GLOBAL LOADING OVERLAY
   ============================================ */
.global-loading {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.global-loading.active {
  opacity: 1;
  pointer-events: auto;
}
.loading-spinner {
  width: 56px;
  height: 56px;
  position: relative;
}
.loading-spinner::before,
.loading-spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}
.loading-spinner::before {
  border-top-color: var(--neon);
  border-right-color: var(--neon);
  animation: spin 0.8s linear infinite;
}
.loading-spinner::after {
  border-bottom-color: rgba(158,255,0,0.3);
  border-left-color: rgba(158,255,0,0.3);
  animation: spin 1.2s linear infinite reverse;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-text {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4) infinite;
}
@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   ENHANCED INPUT & BUTTON INTERACTIONS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--neon) !important;
  box-shadow: 0 0 0 3px rgba(158, 255, 0, 0.12) !important;
  outline: none;
}
input::placeholder, textarea::placeholder {
  color: var(--text-faint);
}

/* Button press effect */
.btn {
  position: relative;
  overflow: hidden;
}
.btn:active {
  transform: scale(0.97);
}

/* Card hover lift */
.design-card, .stat-card, .gallery-card, .template-card, .style-preset {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Link underline animation */
.nav-menu a {
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon);
  transition: width 0.3s ease;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Smooth page transition */
.page-enter {
  animation: page-fade-in 0.5s ease;
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   LAYOUT CENTERING — Wide Screen Optimization
   Constrains content to max 1440px and centers it.
   Full-width bars keep backgrounds spanning edge-to-edge
   while their inner content is centered via dynamic padding.
   ============================================ */

/* Content containers: constrain + center */
.workspace,
.screen-aigen,
.screen-drop,
.screen-designer,
.screen-final,
.site-footer,
.gallery-header,
.filter-bar,
.gallery-grid,
.checkout-content,
.guide-layout {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* Full-width bars: keep background/border edge-to-edge,
   center inner content with dynamic padding on wide screens */
@media (min-width: 1441px) {
  .navbar,
  .tool-nav,
  .version-toggle-bar,
  .gallery-nav,
  .checkout-nav {
    padding-left: calc((100vw - 1440px) / 2);
    padding-right: calc((100vw - 1440px) / 2);
  }
  .tool-drop-bar {
    padding-left: calc((100vw - 1440px) / 2);
    padding-right: calc((100vw - 1440px) / 2);
  }
}
