:root {
  /* White & Pastel Kawaii Canvas */
  --bg-main: #f8fafc;
  --bg-surface: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;
  --border-subtle: #e2e8f0;
  --border-active: #ff4b82;
  --border-cyan: #0ea5e9;

  /* Cute Vibrant Accents */
  --accent-orange: #ff7a1a;
  --accent-orange-glow: rgba(255, 122, 26, 0.25);
  --accent-cyan: #0ea5e9;
  --accent-cyan-glow: rgba(14, 165, 233, 0.25);
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-pink: #ff4b82;
  --accent-pink-glow: rgba(255, 75, 130, 0.3);
  --accent-pink-soft: #fff0f5;

  /* High Contrast Typography - Crisp Midnight Slate (Easy to Read!) */
  --text-primary: #0f172a;   /* Slate 900 - Deep, bold, 100% contrast */
  --text-secondary: #334155; /* Slate 700 - Highly legible */
  --text-muted: #475569;     /* Slate 600 - Never washed out */
  --text-dim: #64748b;       /* Slate 500 */

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-main: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-racing: 'Outfit', 'Prompt', sans-serif;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 16px 36px -6px rgba(255, 75, 130, 0.16), 0 6px 14px -2px rgba(15, 23, 42, 0.05);
  --shadow-modal: 0 25px 60px -12px rgba(15, 23, 42, 0.25), 0 10px 24px -6px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 75, 130, 0.45) rgba(15, 23, 42, 0.08);
}

/* Modern Slim Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 75, 130, 0.4), rgba(255, 122, 26, 0.5));
  border-radius: 999px;
  border: 1px solid rgba(255, 75, 130, 0.2);
  transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4b82, #ff7a1a);
  box-shadow: 0 0 10px rgba(255, 75, 130, 0.5);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* ==================== ANIME BACKGROUND & FLOATING SAKURA FX ==================== */
.anime-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('/shop/assets/anime_night_bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -2;
  transition: background-image 0.6s ease-in-out, opacity 0.4s ease;
  transform: scale(1.0);
  filter: saturate(1.12) brightness(1.02);
}

.anime-bg-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 14, 26, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: -1;
  pointer-events: none;
  transition: background 0.4s ease;
}

/* Floating Sakura Petals & Sparkle Layer */
.sakura-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sakura-petal {
  position: absolute;
  top: -40px;
  background: linear-gradient(135deg, #ffc0cb 0%, #ff69b4 100%);
  border-radius: 12px 1px 12px 1px;
  opacity: 0.75;
  filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.35));
  pointer-events: none;
  animation: fallSakura linear infinite;
  transform-origin: center;
}

.sakura-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffeb3b;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffeb3b, 0 0 20px #ff80ab;
  pointer-events: none;
  animation: twinkleSparkle ease-in-out infinite alternate;
}

@keyframes fallSakura {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  90% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(106vh) translateX(140px) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

@keyframes twinkleSparkle {
  0% { transform: scale(0.35); opacity: 0.2; }
  100% { transform: scale(1.2); opacity: 0.95; }
}

/* ==================== NAVBAR ==================== */
.store-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.navbar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff1e56 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(255, 107, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: skewX(-6deg);
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
}

.brand-logo-icon:hover {
  transform: skewX(-6deg) scale(1.05);
  box-shadow: 0 0 28px rgba(255, 107, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand-logo-icon span {
  display: inline-block;
  transform: skewX(6deg);
  font-family: var(--font-racing);
  font-weight: 900;
  font-size: 19px;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  user-select: none;
}

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

.brand-name {
  font-family: var(--font-racing);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #ffffff;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-title-main {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand-owner-badge {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.brand-sub {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-sub .sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
}

.nav-user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
}

.user-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-orange);
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: var(--accent-green);
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-display-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.badge-verified {
  font-size: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  padding: 1px 6px;
}

.user-channel {
  font-size: 11px;
  color: var(--text-muted);
}

.timer-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: #fdba74;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* ==================== HERO SECTION ==================== */
.store-content {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 24px;
  flex: 1;
}

/* ==================== HERO CAROUSEL & HUD SHOWCASE ==================== */
.store-hero-carousel-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  margin-bottom: 28px;
  align-items: stretch;
}

@media (max-width: 1080px) {
  .store-hero-carousel-section {
    grid-template-columns: 1fr;
  }
}

.carousel-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #080d19;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.02);
  height: 320px;
  min-height: 320px;
  width: 100%;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  position: relative;
  opacity: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.carousel-slide.active {
  pointer-events: auto;
}


/* Individual Slide Radiant Themes */
.slide-rain {
  background: linear-gradient(135deg, rgba(26, 17, 6, 0.95) 0%, rgba(13, 20, 36, 0.9) 60%, rgba(30, 16, 4, 0.95) 100%);
  border-left: 4px solid #f59e0b;
}

.slide-cash {
  background: linear-gradient(135deg, rgba(4, 25, 44, 0.95) 0%, rgba(8, 16, 32, 0.9) 60%, rgba(6, 36, 56, 0.95) 100%);
  border-left: 4px solid #00f0ff;
}

.slide-gear {
  background: linear-gradient(135deg, rgba(28, 10, 48, 0.95) 0%, rgba(10, 14, 30, 0.9) 60%, rgba(40, 12, 60, 0.95) 100%);
  border-left: 4px solid #a855f7;
}

.slide-ambient-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

.glow-gold {
  background: #f59e0b;
  right: 5%;
  top: -20%;
}

.glow-cyan {
  background: #00f0ff;
  right: 5%;
  top: -20%;
}

.glow-purple {
  background: #c084fc;
  right: 5%;
  top: -20%;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.slide-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.slide-badge-pill {
  font-family: var(--font-racing);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.gold-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.cyan-badge {
  color: #38bdf8;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.purple-badge {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.slide-badge-tag {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
}

.slide-heading {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 8px;
}

.gradient-text-gold {
  background: linear-gradient(90deg, #fbbf24 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(90deg, #38bdf8 0%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(90deg, #c084fc 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 18px;
}

.slide-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  color: #ffffff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-slide-rain {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.4);
}
.btn-slide-rain:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.6);
}

.btn-slide-cash {
  background: linear-gradient(135deg, #0284c7, #00f0ff);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
  color: #04101e;
}
.btn-slide-cash:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.55);
}

.btn-slide-gear {
  background: linear-gradient(135deg, #9333ea, #6366f1);
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.4);
}
.btn-slide-gear:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(147, 51, 234, 0.6);
}

.cta-arrow {
  font-size: 15px;
  transition: transform 0.2s ease;
}
.btn-slide-cta:hover .cta-arrow {
  transform: translateX(4px);
}

.slide-quick-stat {
  display: flex;
  flex-direction: column;
}
.sq-lbl {
  font-size: 11px;
  color: #64748b;
}
.sq-val {
  font-size: 13px;
  font-weight: 700;
}
.gold-text { color: #fbbf24; }
.cyan-text { color: #38bdf8; }
.purple-text { color: #c084fc; }

/* ==================== HERO SLIDE FULL BANNER & PLACEHOLDER ==================== */
.carousel-slide.slide-full-banner {
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  overflow: hidden;
  height: 100%;
  min-height: 290px;
}

.full-banner-img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.full-banner-img:hover {
  transform: scale(1.01);
}

/* White Background Full Banner Placeholder */
.full-banner-placeholder {
  width: 100%;
  min-height: 290px;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 3px dashed #94a3b8;
  position: relative;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.35);
  text-align: center;
  transition: all 0.25s ease;
  user-select: none;
}

.full-banner-placeholder:hover {
  border-color: var(--accent-orange);
  box-shadow: inset 0 0 60px rgba(255, 107, 0, 0.06), 0 14px 38px rgba(0, 0, 0, 0.45);
}

.fbp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 820px;
  width: 100%;
}

.fbp-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fbp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.fbp-badge.fbp-badge-orange {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #ea580c;
}

.fbp-badge.fbp-badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #0284c7;
}

.fbp-badge.fbp-badge-purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #7e22ce;
}

.fbp-badge.fbp-badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #059669;
}

.fbp-badge.fbp-badge-rose {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #e11d48;
}

.fbp-badge.fbp-badge-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #d97706;
}

.fbp-badge.fbp-badge-sky {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #0284c7;
}

.fbp-badge.fbp-badge-violet {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #7c3aed;
}

.full-banner-placeholder.placeholder-theme-orange {
  border-color: #f97316;
  box-shadow: inset 0 0 50px rgba(249, 115, 22, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.full-banner-placeholder.placeholder-theme-cyan {
  border-color: #06b6d4;
  box-shadow: inset 0 0 50px rgba(6, 182, 212, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.full-banner-placeholder.placeholder-theme-purple {
  border-color: #a855f7;
  box-shadow: inset 0 0 50px rgba(168, 85, 247, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.full-banner-placeholder.placeholder-theme-emerald {
  border-color: #10b981;
  box-shadow: inset 0 0 50px rgba(16, 185, 129, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.full-banner-placeholder.placeholder-theme-rose {
  border-color: #f43f5e;
  box-shadow: inset 0 0 50px rgba(244, 63, 94, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.full-banner-placeholder.placeholder-theme-amber {
  border-color: #f59e0b;
  box-shadow: inset 0 0 50px rgba(245, 158, 11, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.full-banner-placeholder.placeholder-theme-sky {
  border-color: #0ea5e9;
  box-shadow: inset 0 0 50px rgba(14, 165, 233, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.full-banner-placeholder.placeholder-theme-violet {
  border-color: #8b5cf6;
  box-shadow: inset 0 0 50px rgba(139, 92, 246, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Single Slide Mode - Clean static presentation */
.carousel-container.single-slide-mode .carousel-arrow,
.carousel-container.single-slide-mode .carousel-indicators-bar {
  display: none !important;
}

.carousel-container.single-slide-mode .carousel-track {
  transform: none !important;
}

.fbp-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: #ea580c;
  font-family: var(--font-racing);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 9999px;
}

.fbp-pill.cyan-pill {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.4);
  color: #0284c7;
}

.fbp-pill.purple-pill {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.4);
  color: #7e22ce;
}

.fbp-size-title {
  font-family: var(--font-racing);
  font-size: 46px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.fbp-desc {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  line-height: 1.5;
}

.fbp-ratio-tag {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.fbp-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.fbp-hint-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 9999px;
  user-select: none;
}

.fbp-cta-btn {
  background: linear-gradient(135deg, #ff7a18 0%, #ff5200 100%);
  color: #fff;
  border: none;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fbp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 107, 0, 0.6);
}

.fbp-cta-btn.btn-cta-cash {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}

.fbp-cta-btn.btn-cta-cash:hover {
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.6);
}

.fbp-cta-btn.btn-cta-gear {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.4);
}

.fbp-cta-btn.btn-cta-gear:hover {
  box-shadow: 0 6px 22px rgba(147, 51, 234, 0.6);
}

.fbp-hint-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* Fallback Slide Graphic Elements */
.slide-graphic-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
}

.slide-graphic-badge {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.8) 70%);
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: floatBadge 4s ease-in-out infinite;
}

.slide-graphic-badge.badge-cash {
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, rgba(15, 23, 42, 0.8) 70%);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.slide-graphic-badge.badge-gear {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(15, 23, 42, 0.8) 70%);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.graphic-icon {
  font-size: 48px;
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.carousel-arrow:hover {
  opacity: 1;
  background: rgba(255, 107, 0, 0.3);
  border-color: #ff8c33;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.4);
}

.arrow-prev { left: 12px; }
.arrow-next { right: 12px; }

/* Carousel Indicators & Progress Track */
.carousel-indicators-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.indicator-dot {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width 0.3s ease, background 0.3s ease;
}

.indicator-dot.active {
  width: 36px;
  background: rgba(255, 255, 255, 0.35);
}

.indicator-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff8c33, #00f0ff);
  border-radius: 3px;
}

.indicator-dot.active .indicator-progress {
  width: 100%;
  transition: width 3.5s linear;
}

/* Floating HUD Stat Gauges */
.hero-stats-hud {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

@media (max-width: 1080px) {
  .hero-stats-hud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-stats-hud {
    grid-template-columns: 1fr;
  }
}

.stat-gauge-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(8, 13, 24, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-gauge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  transition: width 0.2s ease;
}

.gauge-rain::before { background: #f59e0b; }
.gauge-cash::before { background: #00f0ff; }
.gauge-catalog::before { background: #10b981; }

.stat-gauge-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stat-gauge-card:hover::before {
  width: 6px;
}

.gauge-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.gauge-icon {
  font-size: 14px;
}

.gauge-tag {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gauge-body {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.gauge-val {
  font-family: var(--font-racing);
  font-size: 22px;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1.1;
}

.cyan-val { color: #38bdf8; }
.green-val { color: #34d399; }

.gauge-unit {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.gauge-footer {
  font-size: 10px;
  color: #475569;
  margin-top: 2px;
}

/* ==================== CATALOG CONTROLS ==================== */
.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
}

.cat-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cat-tab:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cat-tab.active {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 107, 0, 0.05));
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.25);
}

.search-input-wrapper {
  position: relative;
  min-width: 320px;
  flex: 1;
  max-width: 440px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--text-muted);
}

.search-input-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 38px 10px 42px;
  font-family: var(--font-main);
  font-size: 13px;
  color: #fff;
  transition: all 0.2s ease;
}

.search-input-field:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.2);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

/* ==================== ZENY SPOTLIGHT CARD ==================== */
.zeny-spotlight-card {
  background: linear-gradient(135deg, rgba(25, 36, 61, 0.8) 0%, rgba(17, 26, 46, 0.95) 100%);
  border: 1px solid rgba(255, 107, 0, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 107, 0, 0.05);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 30px;
}

.zeny-card-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

/* Spotlight Header Flex with Product Image */
.spotlight-header-flex {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.spotlight-img-wrap {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 14px;
  border: 2px solid rgba(251, 191, 36, 0.6);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-img-wrap:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.45);
}

.spotlight-img-wrap.cash-img-wrap {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.spotlight-img-wrap.cash-img-wrap:hover {
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.45);
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spotlight-titles {
  flex: 1;
}

.spotlight-tag {
  font-family: var(--font-racing);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fdba74;
  margin-bottom: 8px;
}

.zeny-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.zeny-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.rate-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid var(--accent-orange);
  color: #fdba74;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
}

/* Rain Delivery Mode Selector (Manual vs Warehouse) */
.rain-mode-selector-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rain-mode-selector-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.rain-mode-selected-hint {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.uid-auto-delivery-badge-row {
  margin-top: 14px;
}

.uid-auto-delivery-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.uid-auto-delivery-badge-cyan .uid-auto-delivery-badge {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-color: rgba(56, 189, 248, 0.35);
}

.badge-icon-pulse {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  animation: pulseGlow 2s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}

.badge-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-main-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.2px;
}

.uid-auto-delivery-badge-cyan .badge-main-text {
  color: #e0f2fe;
}

.badge-sub-text {
  font-size: 11.5px;
  color: #94a3b8;
}

.rain-mode-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  text-align: left;
  user-select: none;
}

.rain-mode-btn:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.rain-mode-btn.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(234, 88, 12, 0.08) 100%);
  border-color: #f97316;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.rain-mode-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.rain-mode-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.rain-mode-name {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  display: block;
}

.rain-mode-stock-pill {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.rain-mode-stock-pill strong {
  color: #4ade80;
}

.rain-mode-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rain-mode-btn.active .rain-mode-indicator {
  background: #f97316;
  box-shadow: 0 0 8px #f97316;
}

.cash-mode-selector-wrap .rain-mode-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(2, 132, 199, 0.08) 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cash-mode-selector-wrap .rain-mode-btn.active .rain-mode-indicator {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.rain-mode-btn:disabled,
.rain-mode-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
  pointer-events: none;
}

@media (max-width: 520px) {
  .rain-mode-toggle-group {
    grid-template-columns: 1fr;
  }
}

.calc-box {
  background: rgba(6, 9, 17, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.calc-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.zeny-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  margin-bottom: 12px;
}

.zeny-field {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-racing);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  outline: none;
}

.zeny-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-orange);
}

/* Set Stepper Group */
.set-stepper-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 10px;
  gap: 8px;
  transition: all 0.2s ease;
}

.set-stepper-group:focus-within {
  border-color: var(--accent-orange);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.25);
}

.set-stepper-group.cyan-stepper:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stepper-btn:hover {
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.3) 0%, rgba(255, 107, 0, 0.15) 100%);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.stepper-btn:active {
  transform: scale(0.94);
  box-shadow: 0 0 6px rgba(255, 107, 0, 0.3);
}

.cyan-stepper .stepper-btn:hover {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.3) 0%, rgba(0, 240, 255, 0.15) 100%);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.cyan-stepper .stepper-btn:active {
  transform: scale(0.94);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

.set-qty-field {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-racing);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  outline: none;
}

.set-qty-unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-orange);
  padding-right: 12px;
}

.cyan-stepper .set-qty-unit {
  color: var(--accent-cyan);
}

/* Live Received Calculation Summary Box */
.set-calc-summary-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.set-calc-summary-box.cyan-summary {
  border-color: rgba(56, 189, 248, 0.25);
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.summary-lbl {
  color: #94a3b8;
  font-weight: 500;
}

.summary-val {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
}

.summary-val.highlight-gold {
  color: #fbbf24;
}

.summary-val.highlight-cyan {
  color: #38bdf8;
}

.summary-sub {
  font-size: 12px;
  color: #cbd5e1;
}

/* Preset active state */
.preset-btn.set-preset-btn.active {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.35) 0%, rgba(234, 88, 12, 0.2) 100%);
  border-color: #ff8c33;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.4), inset 0 0 10px rgba(255, 107, 0, 0.25);
  transform: translateY(-1px);
}

.cash-preset-btn.set-preset-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(2, 132, 199, 0.2) 100%);
  border-color: #38bdf8;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}

.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.preset-btn:hover {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.25);
  transform: translateY(-1px);
}

.preset-btn:active {
  transform: scale(0.95);
}

.disabled-preset,
.preset-btn.disabled-preset,
.cash-preset-btn.disabled-preset {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  color: #64748b !important;
  box-shadow: none !important;
  transform: none !important;
}

.zeny-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.zeny-total-group {
  display: flex;
  flex-direction: column;
}

.zeny-total-group .lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.zeny-price-val {
  font-family: var(--font-racing);
  font-size: 26px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: -0.5px;
}

.btn-buy-zeny {
  position: relative;
  background: linear-gradient(135deg, #ff7a18 0%, #ff5200 50%, #e04400 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-buy-zeny::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  transition: all 0.6s ease;
}

.btn-buy-zeny:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(255, 107, 0, 0.65), 0 0 15px rgba(255, 200, 100, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-buy-zeny:hover::after {
  left: 130%;
}

.btn-buy-zeny:active {
  transform: translateY(0) scale(0.97);
}

/* ==================== CASH SPOTLIGHT CARD ==================== */
.cash-spotlight-card {
  background: linear-gradient(135deg, rgba(14, 34, 56, 0.85) 0%, rgba(10, 22, 38, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 24px rgba(0, 240, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.cash-spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f0ff, #3b82f6);
}

.cash-card-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.spotlight-tag-cyan {
  font-family: var(--font-racing);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #38bdf8;
  margin-bottom: 8px;
}

.cash-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.cash-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.rate-highlight-pill-cyan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
}

.calc-box-cyan {
  border-color: rgba(0, 240, 255, 0.25) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.cash-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  margin-bottom: 12px;
}

.cash-input-group:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.cash-field {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-racing);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  outline: none;
}

.cash-unit {
  font-size: 14px;
  font-weight: 600;
  color: #38bdf8;
}

.cash-preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  font-family: var(--font-racing);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cash-preset-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}

.cash-preset-btn:active {
  transform: scale(0.95);
}

.cash-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.cash-total-group {
  display: flex;
  flex-direction: column;
}

.cash-total-group .lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.cash-price-val {
  font-family: var(--font-racing);
  font-size: 26px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: -0.5px;
}

.btn-buy-cash {
  position: relative;
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 50%, #0369a1 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-buy-cash::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  transition: all 0.6s ease;
}

.btn-buy-cash:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(6, 182, 212, 0.65), 0 0 15px rgba(56, 189, 248, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-buy-cash:hover::after {
  left: 130%;
}

.btn-buy-cash:active {
  transform: translateY(0) scale(0.97);
}

/* ==================== PRODUCT GRID ==================== */
.catalog-section {
  margin-top: 20px;
}

.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.catalog-heading {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.item-count-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Single Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 107, 0, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.15);
}

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

.badge-cat {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-cat.set { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-cat.engine { background: rgba(255, 107, 0, 0.15); color: #fdba74; border: 1px solid rgba(255, 107, 0, 0.3); }
.badge-cat.booster { background: rgba(0, 240, 255, 0.15); color: #67e8f9; border: 1px solid rgba(0, 240, 255, 0.3); }
.badge-cat.car { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-cat.cash { background: rgba(234, 179, 8, 0.15); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.3); }

.badge-level {
  font-size: 11px;
  font-family: var(--font-racing);
  font-weight: 700;
  color: var(--text-muted);
}

.badge-multi-img {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #38bdf8;
  cursor: pointer;
  transition: all 0.2s;
}
.badge-multi-img:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.btn-view-gallery {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #38bdf8;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.btn-view-gallery:hover {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.card-img-box.clickable {
  cursor: pointer;
}
.card-img-box.clickable:hover::after {
  content: '🔍 ดูรูปภาพ';
  position: absolute;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  pointer-events: none;
}

/* Card Image Box */
.card-img-box {
  width: 100%;
  height: 170px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}

.card-img-box img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

.product-card:hover .card-img-box img {
  transform: scale(1.08);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 6px;
  min-height: 40px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.card-price-wrap {
  display: flex;
  flex-direction: column;
}

.price-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.card-price-num {
  font-family: var(--font-racing);
  font-size: 18px;
  font-weight: 800;
  color: #ff8c33;
}

.card-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-inspect {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-inspect:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.btn-order-now {
  background: linear-gradient(135deg, #ff7a18 0%, #ff5200 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(255, 107, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-order-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(255, 107, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-order-now:active {
  transform: scale(0.96);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-state h4 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #fff;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==================== STATE VIEWS (Loading, Error, Success) ==================== */
.state-view {
  max-width: 640px;
  margin: 60px auto;
  padding: 40px 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
}

.spinner-ring {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 107, 0, 0.15);
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

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

.state-msg {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Error State */
.error-badge-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-heading {
  font-size: 22px;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 10px;
}

.error-detail {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.guide-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
}

.guide-box strong {
  color: #fdba74;
  display: block;
  margin-bottom: 4px;
}

/* Success State */
.success-ring {
  width: 72px;
  height: 72px;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.checkmark {
  font-size: 36px;
  color: var(--accent-green);
  font-weight: 900;
}

.success-heading {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.success-subheading {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.receipt-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}

.receipt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.receipt-no-label {
  font-size: 12px;
  color: var(--text-muted);
}

.receipt-no-val {
  font-family: var(--font-racing);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-orange);
}

.receipt-line {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 12px;
}

.receipt-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-item .label {
  font-size: 11px;
  color: var(--text-muted);
}

.detail-item strong, .detail-item span {
  font-size: 13px;
  color: #fff;
}

.price-highlight {
  font-family: var(--font-racing);
  color: #38bdf8 !important;
  font-size: 16px !important;
}

.next-step-box {
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.step-title {
  font-weight: 600;
  font-size: 13px;
  color: #fdba74;
  margin-bottom: 8px;
}

.step-list {
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.btn-primary-back {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary-back:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-orange);
}

/* ==================== CHECKOUT MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.checkout-modal-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 107, 0, 0.15);
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-kicker {
  font-family: var(--font-racing);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-orange);
  display: block;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.btn-close-modal:hover {
  color: #fff;
}

.checkout-summary-box {
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
}

.selected-product-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-thumb-wrap {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumb-wrap img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-text-wrap {
  flex: 1;
}

.summary-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.summary-item-cat {
  font-size: 11px;
  color: var(--text-muted);
}

.summary-price-col {
  text-align: right;
}

.summary-qty {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.summary-price {
  font-family: var(--font-racing);
  font-size: 18px;
  font-weight: 800;
  color: #ff8c33;
}

.modal-form-fields {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.star {
  color: #f87171;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 13px;
  color: #fff;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 12px var(--accent-orange-glow);
}

.field-hint {
  font-size: 11px;
  color: #fdba74;
}

.dm-payment-notice {
  margin: 0 24px 20px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notice-icon {
  font-size: 20px;
  line-height: 1;
}

.notice-text strong {
  font-size: 12px;
  color: #38bdf8;
  display: block;
  margin-bottom: 2px;
}

.notice-text p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
}

.btn-cancel {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-confirm-order {
  background: linear-gradient(135deg, var(--accent-orange), #ea580c);
  border: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-orange-glow);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-confirm-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.btn-confirm-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loader-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ==================== RAYCITY TOOLTIP MODAL ==================== */
.tooltip-card {
  width: 100%;
  max-width: 440px;
  background: #0b111e;
  border: 2px solid #334155;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #111a2e;
  border-bottom: 1px solid var(--border-subtle);
}

.rc-label {
  font-family: var(--font-racing);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-orange);
}

.tooltip-body {
  padding: 16px;
  font-size: 12px;
  color: #cbd5e1;
  max-height: 70vh;
  overflow-y: auto;
}

.rc-tt-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.rc-tt-type {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.rc-tt-meta {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.rc-tt-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #fdba74;
  margin: 10px 0 4px;
}

.rc-tt-opt {
  color: #38bdf8;
  margin-bottom: 2px;
  font-size: 11px;
}

.rc-tt-rare {
  color: #f472b6;
  margin-bottom: 2px;
  font-size: 11px;
}

.rc-tt-unique {
  color: #f59e0b;
  margin-bottom: 2px;
  font-size: 11px;
}

.rc-tt-set {
  color: #34d399;
  margin-bottom: 2px;
  font-size: 11px;
}

/* ==================== GALLERY MODAL & SLIDER ==================== */
.gallery-modal-card {
  width: 100%;
  max-width: 720px;
  background: #090f1d;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #0e172a;
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-kicker {
  font-family: var(--font-racing);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  display: block;
}

.gallery-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.gallery-slider-viewport {
  position: relative;
  background: #030712;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.slider-image-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#galleryActiveImg {
  max-width: 100%;
  max-height: 368px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.5);
}

.slider-arrow.prev {
  left: 14px;
}

.slider-arrow.next {
  right: 14px;
}

.slider-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-family: var(--font-racing);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 10;
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #090e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  justify-content: center;
  min-height: 60px;
}

.gallery-thumb-item {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 2px solid transparent;
  background: #030712;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-item:hover {
  opacity: 0.85;
}

.gallery-thumb-item.active {
  border-color: var(--accent-cyan);
  opacity: 1;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  transform: scale(1.05);
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0e172a;
  border-top: 1px solid var(--border-subtle);
  gap: 14px;
  flex-wrap: wrap;
}

.gallery-item-summary {
  display: flex;
  flex-direction: column;
}

.gallery-item-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.gallery-item-price {
  font-family: var(--font-racing);
  font-size: 18px;
  font-weight: 800;
  color: #38bdf8;
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-inspect-gallery {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-inspect-gallery:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-order-gallery {
  background: linear-gradient(135deg, var(--accent-orange), #ea580c);
  color: #fff;
  border: none;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-orange-glow);
  transition: all 0.2s ease;
}

.btn-order-gallery:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.5);
}

/* Footer */
.store-footer {
  text-align: center;
  padding: 24px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  margin-top: 40px;
}

.hidden {
  display: none !important;
}

/* ==================== NAVBAR CART BUTTON ==================== */
.cart-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.cart-nav-btn:hover {
  background: rgba(255, 107, 0, 0.25);
  border-color: var(--accent-orange);
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.4);
  transform: translateY(-1px);
}

.cart-nav-icon {
  font-size: 16px;
  line-height: 1;
}

.cart-badge-count {
  background: var(--accent-orange);
  color: #fff;
  font-family: var(--font-racing);
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.6);
}

/* ==================== SPOTLIGHT & CARD BUTTONS ==================== */
.spotlight-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-cart-spotlight {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.btn-add-cart-spotlight:hover {
  background: rgba(255, 107, 0, 0.22);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.35);
  transform: translateY(-2px);
}

.btn-add-cart-spotlight:active {
  transform: translateY(0) scale(0.97);
}

.btn-add-cart-cyan:hover {
  background: rgba(0, 240, 255, 0.22) !important;
  border-color: var(--accent-cyan) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35) !important;
}

.btn-card-cart {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-card-cart:hover {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.3);
  transform: translateY(-1px);
}

.btn-card-cart:active {
  transform: scale(0.96);
}

.badge-stock {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-stock.in {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.badge-stock.out {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.product-card.is-out-of-stock {
  opacity: 0.65;
}

.product-card.is-out-of-stock .card-img-box img {
  filter: grayscale(80%) opacity(0.5);
}

.btn-out-of-stock {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ==================== SLIDE-OVER CART DRAWER ==================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 120;
  display: flex;
  justify-content: flex-end;
  transition: opacity 0.3s ease;
}

.cart-drawer-card {
  width: 100%;
  max-width: 440px;
  max-height: 100dvh;
  height: 100%;
  background: #0b111e;
  border-left: 1px solid rgba(255, 107, 0, 0.4);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8), -2px 0 20px rgba(255, 107, 0, 0.15);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.25s ease-out;
  overflow: hidden;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #0e172a;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.cart-drawer-kicker {
  font-family: var(--font-racing);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-orange);
  display: block;
}

.cart-drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.cart-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.5;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: border-color 0.2s;
}

.cart-item-row:hover {
  border-color: rgba(255, 107, 0, 0.3);
}

.cart-item-thumb {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-thumb img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cart-item-price-unit {
  font-size: 11px;
  color: #ff8c33;
  font-family: var(--font-racing);
  font-weight: 700;
}

.cart-item-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px 6px;
}

.cart-qty-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s;
}

.cart-qty-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cart-qty-val {
  font-size: 12px;
  font-family: var(--font-racing);
  font-weight: 700;
  color: #fff;
  min-width: 20px;
  text-align: center;
}

.cart-btn-del-item {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.cart-btn-del-item:hover {
  opacity: 1;
}

.cart-drawer-footer {
  padding: 20px 24px;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
  background: #0e172a;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-total-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.cart-total-amount {
  font-family: var(--font-racing);
  font-size: 24px;
  font-weight: 900;
  color: #38bdf8;
}

.cart-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 21;
}

.btn-clear-cart {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  user-select: none;
  position: relative;
  z-index: 22;
  transition: all 0.15s;
}

.btn-clear-cart * {
  pointer-events: none !important;
}

.btn-clear-cart:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.btn-clear-cart:active {
  transform: scale(0.96) !important;
}

.btn-checkout-cart {
  flex: 1;
  background: linear-gradient(135deg, var(--accent-orange), #ea580c);
  border: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  user-select: none;
  position: relative;
  z-index: 22;
  box-shadow: 0 4px 16px var(--accent-orange-glow);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-checkout-cart * {
  pointer-events: none !important;
}

.btn-checkout-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 107, 0, 0.5);
}

.btn-checkout-cart:active {
  transform: scale(0.97) !important;
}

.btn-checkout-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  transform: none;
  pointer-events: none !important;
}

/* ==================== GALLERY ZOOM & PAN ==================== */
.gallery-zoom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #060a14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 8px;
}

.zoom-tools-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zoom-tools-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zoom-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.zoom-tool-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #00f0ff;
}

.zoom-level-badge {
  font-family: var(--font-racing);
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(0, 240, 255, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  min-width: 48px;
  text-align: center;
}

.zoom-hint-text {
  font-size: 11px;
  color: var(--text-dim);
}

.slider-image-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.slider-image-wrap.can-pan {
  cursor: grab;
}

.slider-image-wrap.is-panning {
  cursor: grabbing;
}

.btn-cart-gallery {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cart-gallery:hover {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--accent-orange);
  color: #fdba74;
}

/* ==================== RESPONSIVE (All OS: iOS, Android, macOS, Windows) ==================== */
@media (max-width: 900px) {
  .store-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
  .hero-stats {
    width: 100%;
    justify-content: space-between;
    margin-top: 14px;
  }
  .stat-box {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
  }
  .zeny-card-grid,
  .cash-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .storefront-container {
    padding: 12px 14px env(safe-area-inset-bottom, 20px) 14px;
  }
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .nav-user-bar {
    width: 100%;
    justify-content: space-between;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .category-tabs {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  .cat-tab {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 12px;
  }
  .search-input-wrapper {
    max-width: 100%;
    min-width: 0;
  }
  .zeny-spotlight-card,
  .cash-spotlight-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  .zeny-title, .cash-title {
    font-size: 18px;
  }
  .preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .preset-btn, .cash-preset-btn {
    flex: 1 1 calc(50% - 6px);
    min-height: 42px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
  }
  .zeny-action-bar, .cash-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .spotlight-btn-group {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .btn-buy-zeny, .btn-buy-cash, .btn-add-cart-spotlight {
    flex: 1;
    min-height: 46px;
    justify-content: center;
  }
  .cart-drawer {
    width: 100%;
    max-width: 100vw;
  }
  .modal-box {
    max-width: 95vw;
    padding: 18px 14px;
  }

  /* Prevent iOS zoom */
  input[type="text"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }

  .gallery-slider-viewport {
    height: 280px;
  }
  #galleryActiveImg {
    max-height: 250px;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    flex-direction: column;
    gap: 8px;
  }
  .preset-btn, .cash-preset-btn {
    flex: 1 1 100%;
  }
  .spotlight-btn-group {
    flex-direction: column;
  }
}

/* ==========================================================================
   🌸 WHITE KAWAII ANIME THEME & HIGH-CONTRAST TYPOGRAPHY SYSTEM
   ========================================================================== */

/* 1. NAVBAR & BRANDING */
.store-navbar {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
}

.brand-title-main {
  color: #0f172a !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}

.brand-sub {
  color: #475569 !important;
}

.brand-logo-icon {
  background: linear-gradient(135deg, #ff4b82 0%, #ff7a1a 100%) !important;
  box-shadow: 0 4px 16px rgba(255, 75, 130, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.user-pill {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.user-display-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.online-indicator {
  border-color: #ffffff !important;
}

.user-channel {
  color: #64748b !important;
}

.timer-pill {
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  color: #ea580c !important;
}

.timer-pill strong {
  color: #ea580c !important;
}

.cart-nav-btn {
  background: linear-gradient(135deg, #ff4b82 0%, #f43f5e 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(255, 75, 130, 0.35) !important;
  transition: all 0.2s ease !important;
}

.cart-nav-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 75, 130, 0.5) !important;
}

/* THEME SWITCHER WIDGET */
.theme-switcher-pill {
  position: relative;
  display: inline-flex;
}

.btn-theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: #0f172a;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  border-color: #ff4b82;
  box-shadow: 0 4px 14px rgba(255, 75, 130, 0.2);
  transform: translateY(-1px);
}

.theme-icon {
  font-size: 15px;
}

.theme-caret {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.2s;
}

.theme-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 10px;
  z-index: 250;
  animation: dropdownFade 0.2s ease;
}

.theme-menu-dropdown.hidden {
  display: none !important;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.theme-dropdown-header {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px 8px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-option:hover {
  background: #fff0f5;
}

.theme-option.active {
  background: #fff0f5;
  border: 1px solid #fbcfe8;
}

.to-icon {
  font-size: 20px;
}

.to-info {
  flex: 1;
}

.to-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.to-desc {
  font-size: 11px;
  color: #64748b;
}

.to-check {
  font-size: 14px;
  font-weight: 800;
  color: #ff4b82;
  opacity: 0;
}

.theme-option.active .to-check {
  opacity: 1;
}

.theme-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 6px 0;
}

.toggle-particles-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.toggle-particles-btn:hover {
  background: #fff0f5;
  color: #ff4b82;
  border-color: #fbcfe8;
}

/* 2. HERO CAROUSEL & HUD STATS */
.carousel-container {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--shadow-card) !important;
}

.slide-rain {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 50%, #fef3c7 100%) !important;
  border-left: 5px solid #f59e0b !important;
}

.slide-cash {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #e0f2fe 100%) !important;
  border-left: 5px solid #0ea5e9 !important;
}

.slide-gear {
  background: linear-gradient(135deg, #faf5ff 0%, #ffffff 50%, #f3e8ff 100%) !important;
  border-left: 5px solid #a855f7 !important;
}

.slide-heading {
  color: #0f172a !important;
}

.slide-desc {
  color: #334155 !important;
  font-weight: 500 !important;
}

.carousel-arrow {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.carousel-arrow:hover {
  background: #ff4b82 !important;
  color: #ffffff !important;
  border-color: #ff4b82 !important;
  box-shadow: 0 6px 18px rgba(255, 75, 130, 0.4) !important;
}

.carousel-indicators-bar {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

.indicator-dot {
  background: #cbd5e1 !important;
}

.indicator-dot.active {
  background: #94a3b8 !important;
}

.stat-gauge-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--shadow-card) !important;
}

.gauge-tag {
  color: #475569 !important;
  font-weight: 700 !important;
}

.gauge-val {
  color: #0f172a !important;
}

.gauge-val.gold-val { color: #d97706 !important; }
.gauge-val.cyan-val { color: #0284c7 !important; }
.gauge-val.green-val { color: #059669 !important; }

.gauge-unit {
  color: #64748b !important;
}

.gauge-footer {
  color: #64748b !important;
}

/* 3. CATEGORY TABS & SEARCH */
.cat-tab {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
}

.cat-tab:hover {
  background: #fff0f5 !important;
  color: #ff4b82 !important;
  border-color: #fbcfe8 !important;
  transform: translateY(-1px) !important;
}

.cat-tab.active {
  background: linear-gradient(135deg, #ff4b82 0%, #f43f5e 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(255, 75, 130, 0.35) !important;
}

.search-input-field {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

.search-input-field:focus {
  border-color: #ff4b82 !important;
  box-shadow: 0 0 0 3px rgba(255, 75, 130, 0.18) !important;
}

.search-icon {
  color: #64748b !important;
}

/* 4. ZENY & CASH SPOTLIGHT CARDS */
.zeny-spotlight-card,
.cash-spotlight-card {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1.5px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.07), 0 2px 8px -2px rgba(15, 23, 42, 0.04) !important;
  position: relative !important;
}

.zeny-spotlight-card:hover,
.cash-spotlight-card:hover {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

.zeny-title,
.cash-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.zeny-desc,
.cash-desc {
  color: #334155 !important;
  font-weight: 500 !important;
}

.spotlight-tag {
  color: #d97706 !important;
}

.spotlight-tag-cyan {
  color: #0284c7 !important;
}

.rate-highlight-pill {
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  color: #c2410c !important;
  font-weight: 700 !important;
}

.rate-highlight-pill-cyan {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
  font-weight: 700 !important;
}

.calc-box,
.calc-box-cyan {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

.calc-label {
  color: #475569 !important;
  font-weight: 600 !important;
}

.zeny-input-group,
.cash-input-group,
.set-stepper-group {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  border-radius: 14px !important;
}

.zeny-field,
.cash-field {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* Stepper Buttons (- and +) High-Contrast & Tactile */
.stepper-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 12px !important;
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

.stepper-btn:hover {
  background: #fff7ed !important;
  border-color: #ea580c !important;
  color: #ea580c !important;
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.3) !important;
  transform: translateY(-1px) scale(1.05) !important;
}

.stepper-btn:active {
  transform: scale(0.92) !important;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.2) !important;
}

.cyan-stepper .stepper-btn:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.3) !important;
  transform: translateY(-1px) scale(1.05) !important;
}

.cyan-stepper .stepper-btn:active {
  transform: scale(0.92) !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.2) !important;
}

.set-qty-field {
  color: #0f172a !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  text-align: center !important;
  background: transparent !important;
  border: none !important;
}

.set-qty-unit {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  padding-right: 8px !important;
}

/* Set Calculation Summary Box - Eye Comfort */
.set-calc-summary-box {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
}

.set-calc-summary-box.cyan-summary {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
}

.summary-lbl {
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.summary-val {
  color: #ea580c !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.set-calc-summary-box.cyan-summary .summary-val {
  color: #0284c7 !important;
}

.summary-sub {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.preset-btn,
.cash-preset-btn,
.set-preset-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

.preset-btn:hover,
.set-preset-btn:hover {
  background: #fff7ed !important;
  border-color: #ea580c !important;
  color: #ea580c !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2) !important;
}

.cash-preset-btn:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2) !important;
}

.zeny-price-val {
  color: #ea580c !important;
  font-weight: 900 !important;
}

.cash-price-val {
  color: #0284c7 !important;
  font-weight: 900 !important;
}

.btn-buy-zeny {
  background: linear-gradient(135deg, #ff7a1a 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35) !important;
}

.btn-buy-cash {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35) !important;
}

.btn-add-cart-spotlight {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}

.btn-add-cart-spotlight:hover {
  background: #fff0f5 !important;
  border-color: #ff4b82 !important;
  color: #ff4b82 !important;
  box-shadow: 0 4px 14px rgba(255, 75, 130, 0.25) !important;
}

/* 5. PRODUCT CATALOG & CARDS */
.catalog-heading {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.item-count-badge {
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  border: 1px solid #e2e8f0 !important;
}

.product-card {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1.5px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: var(--shadow-card) !important;
  border-radius: var(--radius-lg) !important;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(255, 75, 130, 0.45) !important;
  box-shadow: var(--shadow-card-hover) !important;
  transform: translateY(-4px) !important;
}

.card-img-box {
  background: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
}

.card-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.card-desc {
  color: #475569 !important;
  font-weight: 500 !important;
}

.card-price-num {
  color: #e11d48 !important;
  font-weight: 900 !important;
}

.price-lbl {
  color: #64748b !important;
  font-weight: 600 !important;
}

.btn-inspect {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

.btn-inspect:hover {
  background: #fff0f5 !important;
  border-color: #ff4b82 !important;
  color: #ff4b82 !important;
}

.btn-order-now {
  background: linear-gradient(135deg, #ff4b82 0%, #f43f5e 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(255, 75, 130, 0.3) !important;
}

.btn-order-now:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 75, 130, 0.5) !important;
}

.btn-card-cart {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

.btn-card-cart:hover {
  background: #fff0f5 !important;
  border-color: #ff4b82 !important;
  color: #ff4b82 !important;
}

/* 6. CART DRAWER & CHECKOUT */
.cart-drawer-card {
  background: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15) !important;
}

.cart-drawer-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.cart-drawer-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.cart-item-row {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
}

.cart-item-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.cart-item-price {
  color: #e11d48 !important;
  font-weight: 800 !important;
}

.cart-footer-bar {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

.cart-total-text {
  color: #0f172a !important;
}

.cart-total-num {
  color: #e11d48 !important;
  font-weight: 900 !important;
}

.btn-checkout-cart {
  background: linear-gradient(135deg, #ff4b82 0%, #f43f5e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 75, 130, 0.35) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

/* 7. MODALS, RECEIPT & STATE VIEWS */
.checkout-modal-card,
.modal-box,
.tooltip-card,
.gallery-modal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--shadow-modal) !important;
}

.modal-top,
.gallery-header,
.tooltip-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.modal-title,
.gallery-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.field-label {
  color: #334155 !important;
  font-weight: 600 !important;
}

.form-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 500 !important;
}

.form-input:focus {
  border-color: #ff4b82 !important;
  box-shadow: 0 0 0 3px rgba(255, 75, 130, 0.18) !important;
}

.checkout-summary-box {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.summary-item-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.modal-actions {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

.btn-cancel {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  font-weight: 600 !important;
}

.btn-cancel:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.state-view {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--shadow-card) !important;
}

.state-msg {
  color: #334155 !important;
  font-weight: 600 !important;
}

.receipt-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.receipt-no-val {
  color: #ea580c !important;
}

.detail-item strong,
.detail-item span {
  color: #0f172a !important;
  font-weight: 600 !important;
}

.next-step-box {
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
}

.step-title {
  color: #c2410c !important;
  font-weight: 700 !important;
}

.step-list {
  color: #334155 !important;
}

.guide-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.guide-box strong {
  color: #c2410c !important;
}

/* ==================== 🌙 NIGHT EYE-CARE & TWILIGHT THEME ==================== */
body[data-theme="night"],
body[data-theme="twilight"] {
  --bg-main: #0a0e1a;
  --bg-surface: rgba(15, 23, 42, 0.88);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  color: #f8fafc;
}

body[data-theme="night"] .anime-bg-overlay,
body[data-theme="twilight"] .anime-bg-overlay {
  background: rgba(10, 14, 26, 0.65) !important;
}

body[data-theme="night"] .store-navbar,
body[data-theme="twilight"] .store-navbar {
  background: rgba(15, 23, 42, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme="night"] .brand-name,
body[data-theme="night"] .brand-title-main,
body[data-theme="twilight"] .brand-name,
body[data-theme="twilight"] .brand-title-main {
  color: #ffffff !important;
}

body[data-theme="night"] .zeny-spotlight-card,
body[data-theme="night"] .cash-spotlight-card,
body[data-theme="night"] .product-card,
body[data-theme="twilight"] .zeny-spotlight-card,
body[data-theme="twilight"] .cash-spotlight-card,
body[data-theme="twilight"] .product-card {
  background: rgba(20, 28, 46, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

body[data-theme="night"] .zeny-spotlight-card:hover,
body[data-theme="night"] .cash-spotlight-card:hover,
body[data-theme="night"] .product-card:hover,
body[data-theme="twilight"] .zeny-spotlight-card:hover,
body[data-theme="twilight"] .cash-spotlight-card:hover,
body[data-theme="twilight"] .product-card:hover {
  background: rgba(26, 36, 60, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

body[data-theme="night"] .zeny-title,
body[data-theme="night"] .cash-title,
body[data-theme="night"] .card-title,
body[data-theme="night"] .catalog-heading,
body[data-theme="night"] .modal-title,
body[data-theme="night"] .cart-drawer-title,
body[data-theme="twilight"] .zeny-title,
body[data-theme="twilight"] .cash-title,
body[data-theme="twilight"] .card-title,
body[data-theme="twilight"] .catalog-heading,
body[data-theme="twilight"] .modal-title,
body[data-theme="twilight"] .cart-drawer-title {
  color: #f8fafc !important;
}

body[data-theme="night"] .zeny-desc,
body[data-theme="night"] .cash-desc,
body[data-theme="night"] .card-desc,
body[data-theme="twilight"] .zeny-desc,
body[data-theme="twilight"] .cash-desc,
body[data-theme="twilight"] .card-desc {
  color: #94a3b8 !important;
}

body[data-theme="night"] .calc-box,
body[data-theme="night"] .calc-box-cyan,
body[data-theme="twilight"] .calc-box,
body[data-theme="twilight"] .calc-box-cyan {
  background: rgba(11, 15, 25, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body[data-theme="night"] .calc-label,
body[data-theme="twilight"] .calc-label {
  color: #cbd5e1 !important;
}

body[data-theme="night"] .set-stepper-group,
body[data-theme="night"] .zeny-input-group,
body[data-theme="night"] .cash-input-group,
body[data-theme="twilight"] .set-stepper-group,
body[data-theme="twilight"] .zeny-input-group,
body[data-theme="twilight"] .cash-input-group {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
}

body[data-theme="night"] .stepper-btn,
body[data-theme="twilight"] .stepper-btn {
  background: #334155 !important;
  border: 1.5px solid #475569 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme="night"] .stepper-btn:hover,
body[data-theme="twilight"] .stepper-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
}

body[data-theme="night"] .cyan-stepper .stepper-btn:hover,
body[data-theme="twilight"] .cyan-stepper .stepper-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

body[data-theme="night"] .set-qty-field,
body[data-theme="night"] .zeny-field,
body[data-theme="night"] .cash-field,
body[data-theme="twilight"] .set-qty-field,
body[data-theme="twilight"] .zeny-field,
body[data-theme="twilight"] .cash-field {
  color: #ffffff !important;
}

body[data-theme="night"] .set-qty-unit,
body[data-theme="twilight"] .set-qty-unit {
  color: #94a3b8 !important;
}

body[data-theme="night"] .preset-btn,
body[data-theme="night"] .cash-preset-btn,
body[data-theme="night"] .set-preset-btn,
body[data-theme="twilight"] .preset-btn,
body[data-theme="twilight"] .cash-preset-btn,
body[data-theme="twilight"] .set-preset-btn {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}

body[data-theme="night"] .set-calc-summary-box,
body[data-theme="twilight"] .set-calc-summary-box {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body[data-theme="night"] .summary-lbl,
body[data-theme="twilight"] .summary-lbl {
  color: #94a3b8 !important;
}

body[data-theme="night"] .summary-sub,
body[data-theme="twilight"] .summary-sub {
  color: #94a3b8 !important;
}

body[data-theme="night"] .category-nav-card,
body[data-theme="twilight"] .category-nav-card {
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body[data-theme="night"] .cat-tab,
body[data-theme="twilight"] .cat-tab {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}

body[data-theme="night"] .cat-tab.active,
body[data-theme="twilight"] .cat-tab.active {
  background: linear-gradient(135deg, #ff4b82 0%, #f43f5e 100%) !important;
  color: #ffffff !important;
  border-color: #ff4b82 !important;
}

body[data-theme="night"] .search-input-field,
body[data-theme="twilight"] .search-input-field {
  background: #1e293b !important;
  border: 1.5px solid #334155 !important;
  color: #ffffff !important;
}

body[data-theme="night"] .btn-inspect,
body[data-theme="night"] .btn-card-cart,
body[data-theme="night"] .btn-add-cart-spotlight,
body[data-theme="twilight"] .btn-inspect,
body[data-theme="twilight"] .btn-card-cart,
body[data-theme="twilight"] .btn-add-cart-spotlight {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #e2e8f0 !important;
}

body[data-theme="night"] .cart-drawer-card,
body[data-theme="night"] .checkout-modal-card,
body[data-theme="twilight"] .cart-drawer-card,
body[data-theme="twilight"] .checkout-modal-card {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

body[data-theme="night"] .cart-drawer-header,
body[data-theme="night"] .modal-top,
body[data-theme="night"] .cart-footer-bar,
body[data-theme="night"] .modal-actions,
body[data-theme="twilight"] .cart-drawer-header,
body[data-theme="twilight"] .modal-top,
body[data-theme="twilight"] .cart-footer-bar,
body[data-theme="twilight"] .modal-actions {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body[data-theme="night"] .cart-item-row,
body[data-theme="twilight"] .cart-item-row {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
}

body[data-theme="night"] .cart-total-text,
body[data-theme="night"] .item-count-badge,
body[data-theme="twilight"] .cart-total-text,
body[data-theme="twilight"] .item-count-badge {
  color: #cbd5e1 !important;
  background: #1e293b !important;
}

body[data-theme="night"] .form-input,
body[data-theme="twilight"] .form-input {
  background: #1e293b !important;
  border: 1.5px solid #334155 !important;
  color: #ffffff !important;
}

body[data-theme="night"] .btn-cancel,
body[data-theme="twilight"] .btn-cancel {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #94a3b8 !important;
}

body[data-theme="night"] .theme-menu-dropdown,
body[data-theme="twilight"] .theme-menu-dropdown {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

body[data-theme="night"] .theme-dropdown-header,
body[data-theme="twilight"] .theme-dropdown-header {
  color: #94a3b8 !important;
}

body[data-theme="night"] .to-title,
body[data-theme="twilight"] .to-title {
  color: #f8fafc !important;
}

body[data-theme="night"] .to-desc,
body[data-theme="twilight"] .to-desc {
  color: #94a3b8 !important;
}

body[data-theme="night"] .theme-option:hover,
body[data-theme="twilight"] .theme-option:hover {
  background: #1e293b !important;
}

body[data-theme="night"] .theme-option.active,
body[data-theme="twilight"] .theme-option.active {
  background: rgba(255, 75, 130, 0.15) !important;
}

/* ==========================================================================
   MODERN E-COMMERCE UPGRADE: BREADCRUMBS, SIDEBAR & 1:1 SQUARE PRODUCT CARDS
   ========================================================================== */

/* 1. Breadcrumbs Navigation Bar */
.store-breadcrumbs-bar {
  margin: 0 0 16px 0;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.bc-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.bc-item {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.bc-item:hover {
  color: #ff7a1a;
  background: rgba(255, 122, 26, 0.08);
}
.bc-item.bc-active {
  color: #e2e8f0;
  font-weight: 600;
}
.bc-sep {
  color: #64748b;
  font-size: 13px;
  user-select: none;
}
.bc-current {
  color: #ff7a1a !important;
  font-weight: 700 !important;
}

/* 2. E-Commerce Two-Column Layout */
.store-ecom-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.store-sidebar-col {
  width: 270px;
  flex-shrink: 0;
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
}

.store-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 3. Category Sidebar Card */
.category-sidebar-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.sidebar-icon {
  font-size: 16px;
  color: #ff7a1a;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.2px;
}

.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  font-family: var(--font-main);
}

.sidebar-cat-btn .cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-cat-btn .cat-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-cat-btn .cat-name {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-cat-btn .cat-count-badge {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-racing);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sidebar-cat-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.sidebar-cat-btn.active {
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.2), rgba(255, 75, 130, 0.2)) !important;
  border: 1px solid rgba(255, 122, 26, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 122, 26, 0.18);
}

.sidebar-cat-btn.active .cat-name {
  font-weight: 700;
}

.sidebar-cat-btn.active .cat-count-badge {
  background: #ff7a1a;
  color: #ffffff;
  border-color: #ff7a1a;
  box-shadow: 0 2px 8px rgba(255, 122, 26, 0.4);
}

/* Sidebar Service / Trust Badges */
.sidebar-feature-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sfc-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sfc-icon {
  font-size: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sfc-info strong {
  font-size: 12.5px;
  color: #e2e8f0;
  display: block;
  margin-bottom: 2px;
}

.sfc-info p {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

/* 4. Modern 1:1 Square Product Cards */
.product-card-modern {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.product-card-modern:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 26, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 122, 26, 0.18);
  background: rgba(15, 23, 42, 0.95);
}

.card-poster-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  cursor: pointer;
}

.card-poster-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.product-card-modern:hover .card-poster-img {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 22px rgba(255, 122, 26, 0.35));
}

/* Floating Tag Badges inside poster */
.floating-badge-group {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  z-index: 5;
  pointer-events: none;
}

.tag-badge-floating {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tag-badge-hot {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.tag-badge-sale {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.tag-badge-new {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.tag-badge-rare {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.tag-badge-custom {
  background: rgba(15, 23, 42, 0.85);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.card-poster-bottom-bar {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.card-level-tag {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-racing);
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Card Body & Info Modern */
.card-info-modern {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 10px;
}

.card-meta-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.tag-pill-cat {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-pill-sku {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-racing);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-chip-custom {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.card-title-modern {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.card-desc-modern {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

/* Status & Price Row */
.card-status-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stock-pill-modern {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.stock-pill-modern.in {
  color: #4ade80;
}
.stock-pill-modern.out {
  color: #f87171;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.stock-dot.green {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.stock-dot.red {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.card-price-modern {
  font-family: var(--font-racing);
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 10px rgba(251, 191, 36, 0.2);
}

/* Actions Row */
.card-actions-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.btn-card-modern-cart {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}
.btn-card-modern-cart:hover {
  background: #334155;
  border-color: #475569;
  color: #ffffff;
}

.btn-card-modern-buy {
  background: linear-gradient(135deg, #ff7a1a, #ea580c);
  border: none;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(255, 122, 26, 0.3);
  font-family: var(--font-main);
}
.btn-card-modern-buy:hover {
  background: linear-gradient(135deg, #ff8c33, #f97316);
  box-shadow: 0 5px 16px rgba(255, 122, 26, 0.45);
  transform: translateY(-1px);
}

.btn-card-modern-out {
  grid-column: 1 / -1;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: not-allowed;
  text-align: center;
  font-family: var(--font-main);
}

/* 5. Responsive Grid & Layout Media Queries */
@media (max-width: 980px) {
  .store-ecom-layout {
    flex-direction: column;
    gap: 16px;
  }
  .store-sidebar-col {
    width: 100%;
    position: static;
  }
  .sidebar-category-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar-category-list::-webkit-scrollbar {
    display: none;
  }
  .sidebar-cat-btn {
    flex-shrink: 0;
    width: auto;
    padding: 8px 14px;
  }
  .sidebar-cat-btn .cat-count-badge {
    margin-left: 8px;
  }
  .sidebar-feature-card {
    display: none; /* Hide on mobile to keep top compact */
  }
}

@media (min-width: 981px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 18px !important;
  }
}

/* ==================== NAVBAR SEARCH BAR ==================== */
.nav-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 220px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
}

.nav-search-bar:focus-within {
  width: 280px;
  border-color: rgba(255, 122, 26, 0.65);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-search-icon {
  font-size: 13px;
  color: #94a3b8;
  pointer-events: none;
  flex-shrink: 0;
}

.nav-search-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 12.5px;
  color: #ffffff;
  width: 100%;
  font-family: var(--font-main);
}

.nav-search-input::placeholder {
  color: #64748b;
  font-size: 12px;
}

.nav-search-clear {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #cbd5e1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.nav-search-clear:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

/* Light Theme Adjustments for Navbar Search */
body[data-theme="town"] .nav-search-bar,
body[data-theme="clean"] .nav-search-bar {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}
body[data-theme="town"] .nav-search-bar:focus-within,
body[data-theme="clean"] .nav-search-bar:focus-within {
  background: #ffffff;
  border-color: #f97316;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.25);
}
body[data-theme="town"] .nav-search-input,
body[data-theme="clean"] .nav-search-input {
  color: #0f172a;
}
body[data-theme="town"] .nav-search-input::placeholder,
body[data-theme="clean"] .nav-search-input::placeholder {
  color: #94a3b8;
}
body[data-theme="town"] .nav-search-clear,
body[data-theme="clean"] .nav-search-clear {
  background: rgba(15, 23, 42, 0.08);
  color: #64748b;
}

/* Mobile Responsive Adjustments for Navbar Search */
@media (max-width: 768px) {
  .nav-search-bar {
    width: 140px;
    padding: 5px 10px;
  }
  .nav-search-bar:focus-within {
    width: 180px;
  }
}
@media (max-width: 520px) {
  .nav-search-bar {
    width: 110px;
  }
  .nav-search-bar:focus-within {
    width: 150px;
  }
}

/* ==================== NAVBAR SEARCH DROPDOWN SELECTION ==================== */
.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: 90vw;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 122, 26, 0.4);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 122, 26, 0.18);
  z-index: 1100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: sdFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sdFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
}

.sd-header-title {
  color: #fdba74;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sd-header-count {
  background: rgba(255, 122, 26, 0.15);
  color: #ff9838;
  border: 1px solid rgba(255, 122, 26, 0.3);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--font-racing);
}

.search-dropdown-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 122, 26, 0.4) transparent;
}

.search-dropdown-list::-webkit-scrollbar {
  width: 5px;
}
.search-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(255, 122, 26, 0.4);
  border-radius: 4px;
}

.search-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.search-drop-item:hover {
  background: rgba(255, 122, 26, 0.12);
  border-color: rgba(255, 122, 26, 0.4);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.search-drop-thumb-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
}

.search-drop-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.search-drop-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.search-drop-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.search-drop-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-drop-price {
  font-family: var(--font-racing);
  font-size: 14px;
  font-weight: 800;
  color: #fbbf24;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-drop-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.search-drop-cat {
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.search-drop-sku {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-racing);
}

.search-drop-stock {
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.search-drop-stock.in { color: #4ade80; }
.search-drop-stock.out { color: #f87171; }

.search-dropdown-footer {
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

.search-drop-empty {
  padding: 24px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.search-drop-empty-icon {
  font-size: 24px;
}

/* Light theme for dropdown */
body[data-theme="town"] .nav-search-dropdown,
body[data-theme="clean"] .nav-search-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15), 0 0 20px rgba(249, 115, 22, 0.12);
}
body[data-theme="town"] .search-dropdown-header,
body[data-theme="clean"] .search-dropdown-header {
  background: #f1f5f9;
  border-bottom-color: #e2e8f0;
  color: #64748b;
}
body[data-theme="town"] .search-drop-item,
body[data-theme="clean"] .search-drop-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}
body[data-theme="town"] .search-drop-item:hover,
body[data-theme="clean"] .search-drop-item:hover {
  background: #fff7ed;
  border-color: #fdba74;
}
body[data-theme="town"] .search-drop-name,
body[data-theme="clean"] .search-drop-name {
  color: #0f172a;
}
body[data-theme="town"] .search-drop-thumb-box,
body[data-theme="clean"] .search-drop-thumb-box {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
body[data-theme="town"] .search-dropdown-footer,
body[data-theme="clean"] .search-dropdown-footer {
  background: #f8fafc;
  border-top-color: #e2e8f0;
  color: #64748b;
}

/* Mobile dropdown adjust */
@media (max-width: 640px) {
  .nav-search-dropdown {
    width: 320px;
    right: -60px;
  }
}
@media (max-width: 440px) {
  .nav-search-dropdown {
    width: 290px;
    right: -80px;
  }
}

/* ==========================================================================
   💬 CUSTOM IN-APP DIALOG MODAL (CONFIRM & ALERT POPUPS)
   Replaces native browser "Say IP" (localhost:3000 says / IP says)
   ========================================================================== */

#customDialogModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 7, 15, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  transition: opacity 0.2s ease;
}

#customDialogModal.hidden {
  display: none !important;
}

.custom-dialog-card {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 107, 0, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px 24px 22px;
  text-align: center;
  overflow: hidden;
  animation: dialogPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}

@keyframes dialogPopIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.custom-dialog-header {
  margin-bottom: 16px;
}

.custom-dialog-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
  transition: all 0.2s ease;
}

.custom-dialog-icon {
  font-size: 32px;
  line-height: 1;
  display: inline-block;
  transform-origin: center;
}

/* Icon Wrap Variants */
.custom-dialog-icon-wrap.dialog-icon-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.3);
}
.custom-dialog-icon-wrap.dialog-icon-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}
.custom-dialog-icon-wrap.dialog-icon-info {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
}
.custom-dialog-icon-wrap.dialog-icon-warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
}

.custom-dialog-body {
  margin-bottom: 24px;
}

.custom-dialog-title {
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 10px 0;
  letter-spacing: -0.2px;
}

.custom-dialog-message {
  font-size: 14.5px;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
  white-space: pre-line;
  word-break: break-word;
  padding: 0 8px;
}

.custom-dialog-input-wrap {
  margin: 16px 0 6px;
  width: 100%;
}

.custom-dialog-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  color: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.custom-dialog-input:focus {
  border-color: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.25), 0 0 15px rgba(244, 63, 94, 0.3);
  background: rgba(15, 23, 42, 0.95);
}

.custom-dialog-input::placeholder {
  color: #64748b;
}

.custom-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.dialog-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.dialog-btn-cancel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94a3b8;
}

.dialog-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #f8fafc;
  transform: translateY(-1.5px);
}

.dialog-btn-cancel:active {
  transform: scale(0.98);
}

.dialog-btn-confirm {
  background: linear-gradient(135deg, #ff6b00, #ea580c);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35);
}

.dialog-btn-confirm:hover {
  background: linear-gradient(135deg, #ff7a1a, #f97316);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
  transform: translateY(-2px);
}

.dialog-btn-confirm:active {
  transform: scale(0.98);
}

/* Confirm Button Types */
.dialog-btn-confirm.dialog-type-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}
.dialog-btn-confirm.dialog-type-danger:hover {
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.5);
}

.dialog-btn-confirm.dialog-type-success {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}
.dialog-btn-confirm.dialog-type-success:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

.dialog-btn-confirm.dialog-type-info {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}
.dialog-btn-confirm.dialog-type-info:hover {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.45);
}

/* ==================== DAY / KAWAII THEME ADAPTATIONS ==================== */
body[data-theme="town"] .custom-dialog-card,
body[data-theme="clean"] .custom-dialog-card {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.15), 0 0 35px rgba(255, 107, 0, 0.08);
}

body[data-theme="town"] .custom-dialog-title,
body[data-theme="clean"] .custom-dialog-title {
  color: #0f172a;
}

body[data-theme="town"] .custom-dialog-message,
body[data-theme="clean"] .custom-dialog-message {
  color: #475569;
}

body[data-theme="town"] .dialog-btn-cancel,
body[data-theme="clean"] .dialog-btn-cancel {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

body[data-theme="town"] .dialog-btn-cancel:hover,
body[data-theme="clean"] .dialog-btn-cancel:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

/* ==================== DELIVERY METHOD TABS & UID STYLES ==================== */
.delivery-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.delivery-method-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.delivery-method-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.delivery-method-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 140, 51, 0.2), rgba(255, 106, 0, 0.28));
  border: 1px solid rgba(255, 140, 51, 0.65);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.25);
}

.uid-guide-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}

.uid-guide-header {
  margin-bottom: 8px;
}

.uid-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.uid-guide-content p {
  margin: 4px 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.uid-guide-content strong {
  color: #fbbf24;
}

.uid-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.uid-input {
  letter-spacing: 0.18em;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-racing), monospace;
}

.uid-status-badge {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.uid-status-badge.is-ok {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.uid-status-badge.is-err {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.uid-status-badge.is-loading {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

/* Light / Town Theme Adaptations for Delivery Tabs */
body[data-theme="town"] .delivery-method-tabs,
body[data-theme="clean"] .delivery-method-tabs {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

body[data-theme="town"] .delivery-method-tab,
body[data-theme="clean"] .delivery-method-tab {
  color: #475569;
}

body[data-theme="town"] .delivery-method-tab.is-active,
body[data-theme="clean"] .delivery-method-tab.is-active {
  background: #ffffff;
  border-color: #ff8c33;
  color: #ea580c;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.15);
}

body[data-theme="town"] .uid-guide-box,
body[data-theme="clean"] .uid-guide-box {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body[data-theme="town"] .uid-guide-content p,
body[data-theme="clean"] .uid-guide-content p {
  color: #334155;
}

body[data-theme="town"] .uid-guide-content strong,
body[data-theme="clean"] .uid-guide-content strong {
  color: #d97706;
}

/* ==========================================================================
   Web PromptPay QR Card (Image-Only & Scan Instructions)
   ========================================================================== */
.web-qr-display-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 20px 16px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.web-qr-display-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 36px rgba(14, 165, 233, 0.2);
}

/* ==========================================================================
   Project-Wide Comprehensive Responsive UI Polish
   (Supporting All Devices: Mobile 360px-480px, Tablet 768px, Desktop 1200px+)
   ========================================================================== */

/* Tablets & Small Laptops (<= 992px) */
@media (max-width: 992px) {
  .store-header-inner {
    padding: 10px 16px;
  }
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

/* Tablets Portrait & Large Phablets (<= 768px) */
@media (max-width: 768px) {
  .store-header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .header-actions {
    margin-left: auto;
  }
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
  }
  .modal-dialog {
    max-width: 92vw;
    margin: 16px auto;
  }
}

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .store-header-inner {
    padding: 8px 12px;
  }
  .brand-title {
    font-size: 16px;
  }
  .brand-sub {
    font-size: 11px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card {
    border-radius: 12px;
  }
  .product-thumb-wrap {
    height: 140px;
  }
  .product-title {
    font-size: 13px;
  }
  .product-price {
    font-size: 15px;
  }
  .modal-dialog {
    max-width: 96vw;
    padding: 16px 14px;
    border-radius: 16px;
  }
  .web-qr-display-card {
    padding: 14px 10px;
  }
}

/* Extra Small Phones (<= 400px e.g. iPhone SE, Fold Closed, Galaxy A) */
@media (max-width: 400px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .product-thumb-wrap {
    height: 180px;
  }
  .store-header-inner {
    gap: 8px;
  }
  .user-card-pill {
    padding: 4px 8px;
    font-size: 12px;
  }
  .cart-toggle-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .uid-quick-chips {
    gap: 4px;
  }
  .uid-chip-btn {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* ==========================================================================
   🔑 CUSTOMER AUTHENTICATION & LOGIN POPUP STYLES (ReadRealm & Cyberpunk Hybrid)
   ========================================================================== */

/* Navbar Login Button */
.auth-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(59, 130, 246, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #f8fafc;
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(8px);
}

.auth-nav-btn:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(59, 130, 246, 0.45));
  border-color: #c084fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.45);
}

.auth-nav-btn:active {
  transform: translateY(0);
}

.auth-nav-icon {
  font-size: 15px;
}

/* User Pill & Menu Dropdown */
.user-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 9999px;
  padding: 5px 14px 5px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.user-pill:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.user-menu-caret {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.user-pill:hover .user-menu-caret {
  color: #00f0ff;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #0b1120;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.15);
  padding: 8px;
  z-index: 1000;
  backdrop-filter: blur(16px);
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.udm-header {
  padding: 8px 10px;
}

.udm-user-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.udm-discord-id {
  font-size: 11px;
  color: #94a3b8;
  font-family: monospace;
  margin-top: 3px;
  word-break: break-all;
}

.udm-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.udm-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: inherit;
}

.udm-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.udm-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ==========================================================================
   🔑 AUTH POPUP MODAL (ReadRealm Inspired Card)
   ========================================================================== */
.auth-modal-card {
  width: 100%;
  max-width: 440px;
  background: #111827;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 58, 237, 0.2);
  padding: 24px;
  position: relative;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.auth-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #00f0ff, #ec4899);
}

.auth-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-badge-icon {
  font-size: 32px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 14px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-main-title {
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  line-height: 1.3;
}

.auth-sub-title {
  font-size: 12px;
  color: #94a3b8;
  margin: 3px 0 0 0;
}

/* Tabs */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #0f172a;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn:hover {
  color: #f1f5f9;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(79, 70, 229, 0.4));
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

/* Discord OAuth Button */
.auth-oauth-section {
  margin-bottom: 16px;
}

.auth-discord-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #5865f2;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.auth-discord-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.auth-discord-btn:active {
  transform: translateY(0);
}

.discord-svg-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #64748b;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 12px;
  font-weight: 500;
}

/* Forms & Inputs */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-guide-pill-btn {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.auth-guide-pill-btn:hover {
  background: rgba(0, 240, 255, 0.25);
  border-color: #00f0ff;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.auth-input {
  width: 100%;
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 13.5px;
  padding: 11px 14px;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: #8b5cf6;
  background: #0f172a;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrap .auth-input {
  padding-right: 42px;
}

.auth-pwd-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
  transition: color 0.15s ease;
}

.auth-pwd-toggle:hover {
  color: #f8fafc;
}

.auth-input-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Primary Button (ReadRealm Purple Style) */
.auth-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
  margin-top: 4px;
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.55);
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-footer-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 8px;
}

.auth-link-btn {
  background: transparent;
  border: none;
  color: #a855f7;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

.auth-link-btn:hover {
  color: #c084fc;
}

.auth-error-msg {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

/* ==========================================================================
   💡 DISCORD ID 2-STEP TUTORIAL MODAL STYLES
   ========================================================================== */
.guide-modal-card {
  width: 100%;
  max-width: 640px;
  background: #0f172a;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 240, 255, 0.18);
  padding: 24px;
  position: relative;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.guide-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-badge-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.guide-main-title {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.guide-modal-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 4px;
}

.guide-step-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.2s ease;
}

.guide-step-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.step-num {
  background: linear-gradient(135deg, #00f0ff, #38bdf8);
  color: #04121e;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.step-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.step-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.step-desc strong {
  color: #38bdf8;
}

.step-img-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #020617;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.step-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.step-img:hover {
  transform: scale(1.02);
}

.guide-modal-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-guide-confirm {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-guide-confirm:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== CUSTOMER LOYALTY & VIP STYLING ==================== */
.udm-vip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.udm-vip-badge {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.udm-points-badge {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.udm-badge-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
  line-height: 1.4;
}

/* Loyalty Checkout Card */
.loyalty-checkout-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  margin-bottom: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.loyalty-checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.loyalty-badge-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.loyalty-tier-badge {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}

.loyalty-checkout-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.loyalty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
}

.loyalty-discount-text {
  color: #34d399;
  font-weight: 700;
}

.loyalty-input-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.loyalty-points-label {
  font-size: 11.5px;
  color: #94a3b8;
}

.points-input-box {
  display: flex;
  gap: 8px;
}

.points-input {
  flex: 1;
  font-size: 14px;
  padding: 6px 10px;
  text-align: right;
  font-weight: 700;
  color: #34d399;
}

.btn-use-max-pts {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-use-max-pts:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

.loyalty-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #f8fafc;
}

.loyalty-net-price {
  font-size: 16px;
  font-weight: 800;
  color: #fb923c;
}

/* ==========================================================================
   📱✨ PREMIUM RESPONSIVE UI & MOBILE OVERHAUL (AESTHETICS & USABILITY)
   ========================================================================== */

@media (max-width: 1024px) {
  .store-container {
    padding: 0 16px;
  }
  .hero-slide {
    flex-direction: column;
    text-align: center;
  }
  .slide-action-row {
    justify-content: center;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  /* Navbar & Brand */
  .store-navbar {
    padding: 10px 12px;
  }
  .navbar-container {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .brand-group {
    justify-content: space-between;
    width: 100%;
  }
  .brand-name {
    font-size: 17px;
  }
  .brand-logo-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
  .brand-logo-icon span {
    font-size: 16px;
  }

  /* Nav Right Controls */
  .nav-user-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  .nav-search-bar {
    order: 3;
    width: 100%;
    margin-top: 4px;
  }
  .nav-search-input {
    width: 100% !important;
    font-size: 13px;
    padding: 9px 14px 9px 36px;
  }

  /* Catalog & Categories */
  .category-filter-bar {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .cat-btn {
    padding: 7px 14px;
    font-size: 12.5px;
  }

  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card {
    padding: 10px;
    border-radius: 14px;
  }
  .product-img-wrap {
    height: 120px;
  }
  .product-name {
    font-size: 13px;
    min-height: 36px;
  }
  .product-price-val {
    font-size: 15px;
  }
  .btn-add-cart, .btn-buy-now {
    padding: 7px 10px;
    font-size: 11.5px;
  }

  /* Modals: Mobile Friendly Bottom Sheet & Full View */
  .modal-overlay {
    padding: 8px !important;
    align-items: flex-end;
  }
  .modal-container, .customer-portal-modal, .checkout-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    border-radius: 20px 20px 10px 10px !important;
    padding: 16px !important;
    margin: 0 !important;
    overflow-y: auto;
  }
  .modal-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .modal-title {
    font-size: 16px;
  }

  /* Order History Modal (Card Flow on Mobile) */
  .orders-table-wrap {
    overflow-x: visible;
  }
  .order-history-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
  }

  /* Floating Cart Widget */
  .cart-floating-btn {
    bottom: 20px;
    right: 16px;
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(255, 75, 130, 0.5);
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-img-wrap {
    height: 140px;
  }
  .brand-titles .brand-sub {
    font-size: 10.5px;
  }
  .btn-theme-toggle .theme-label {
    display: none;
  }
  .user-badge-text {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ==========================================================================
   PWA Mobile Install & Premium Slip Drag-Drop / Preview Styles
   ========================================================================== */
.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.15);
}

.pwa-install-btn:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(59, 130, 246, 0.35));
  border-color: #00f0ff;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.web-slip-upload-card.drag-over {
  border-color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.12) !important;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.3) !important;
  transform: scale(1.015);
}

#webSlipThumbnailContainer img {
  transition: transform 0.2s ease;
}

#webSlipThumbnailContainer img:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   Product Follow / Bookmarks System (ระบบติดตามสินค้า)
   ========================================================================== */
.btn-card-follow {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-card-follow:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  transform: translateY(-1px);
}

.btn-card-follow.following {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.25));
  border-color: rgba(245, 158, 11, 0.6);
  color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.btn-card-follow .follow-star {
  font-size: 12px;
  line-height: 1;
}

.btn-spotlight-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-spotlight-follow:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  transform: translateY(-1px);
}

.btn-spotlight-follow.following {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
  border-color: rgba(245, 158, 11, 0.6);
  color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.btn-spotlight-follow-cyan.following {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(59, 130, 246, 0.25));
  border-color: rgba(0, 240, 255, 0.6);
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

/* Toast Notice for Following */
.follow-toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #f1f5f9;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.follow-toast-container.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}









