/* ==========================================================================
   WARUNG MADURA 3000 - GEN Z ULTRA CONVENIENCE STORE
   Design System & Styling Rules
   Aesthetic: Cyber-Brutalist, Neon Retro, High Contrast & Tactile Micro-UI
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --bg-dark: #0b0d10;
  --bg-surface: #13171f;
  --bg-surface-elevated: #1a202c;
  --bg-glass: rgba(19, 23, 31, 0.75);
  
  --madura-red: #ff2a4b;
  --madura-red-glow: rgba(255, 42, 75, 0.4);
  --gold-yellow: #ffe600;
  --gold-glow: rgba(255, 230, 0, 0.35);
  --cyber-cyan: #00f0ff;
  --neon-green: #00ff88;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #0b0d10;

  --border-color: #2d3748;
  --border-bright: #4a5568;
  --border-neon: var(--madura-red);

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Brutalist Aesthetics */
  --shadow-brutal: 4px 4px 0px #000000;
  --shadow-brutal-red: 4px 4px 0px var(--madura-red);
  --shadow-brutal-yellow: 4px 4px 0px var(--gold-yellow);
  --shadow-glow-red: 0 0 20px var(--madura-red-glow);

  /* Transitions & Animation */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
}

/* Lenis Smooth Scroll Integration */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 42, 75, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 230, 0, 0.05) 0%, transparent 40%);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus Accessibility */
:focus-visible {
  outline: 3px solid var(--gold-yellow);
  outline-offset: 3px;
}

/* Text Enhancements */
.text-highlight {
  color: var(--gold-yellow);
  text-shadow: 0 0 12px var(--gold-glow);
}

.text-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-main);
}

.text-green {
  color: var(--neon-green) !important;
}

.text-muted {
  color: var(--text-muted);
}

/* --- Component Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease-bounce);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--madura-red);
  color: #ffffff;
  box-shadow: var(--shadow-brutal);
  border: 2px solid #000000;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000, 0 0 15px var(--madura-red-glow);
  background-color: #ff4765;
}

.btn-secondary {
  background-color: var(--gold-yellow);
  color: var(--text-dark);
  border: 2px solid #000000;
  box-shadow: var(--shadow-brutal);
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000, 0 0 15px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-bright);
}

.btn-outline:hover {
  border-color: var(--madura-red);
  color: var(--madura-red);
  background-color: rgba(255, 42, 75, 0.05);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.w-full {
  width: 100%;
}

/* --- Badges & Tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-red { background: rgba(255, 42, 75, 0.15); color: var(--madura-red); border-color: var(--madura-red); }
.tag-yellow { background: rgba(255, 230, 0, 0.15); color: var(--gold-yellow); border-color: var(--gold-yellow); }
.tag-green { background: rgba(0, 255, 136, 0.15); color: var(--neon-green); border-color: var(--neon-green); }
.tag-sm { font-size: 0.7rem; padding: 0.2rem 0.5rem; }

/* --- Top Ticker Marquee --- */
.top-marquee {
  background-color: var(--madura-red);
  color: #ffffff;
  overflow: hidden;
  padding: 0.4rem 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 2px solid #000;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 2rem;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  background: var(--madura-red);
  color: #fff;
  font-weight: 900;
  font-family: var(--font-heading);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid #000;
  box-shadow: var(--shadow-brutal);
  font-size: 1.1rem;
}

.logo-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  color: #ffffff;
  line-height: 1;
}

.logo-subtitle {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--gold-yellow);
  letter-spacing: 0.1em;
}

/* Live Uptime Pill */
.live-status-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--neon-green);
}

.status-dot.pulsing {
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse-dot 1.8s infinite;
}

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

.status-clock {
  color: var(--cyber-cyan);
  border-left: 1px solid var(--border-color);
  padding-left: 0.6rem;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--gold-yellow);
  color: var(--gold-yellow);
}

.cart-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 2px solid var(--madura-red);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all 0.2s ease;
}

.cart-trigger-btn:hover {
  background: var(--madura-red);
  box-shadow: var(--shadow-glow-red);
}

.cart-count {
  background: var(--gold-yellow);
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 900;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.genz-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Stats Counter Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 1.5rem;
}

.stat-card {
  background: var(--bg-surface);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.stat-value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gold-yellow);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Hero Visual Case Display */
.glass-display-case {
  background: var(--bg-surface);
  border: 3px solid #000000;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brutal-red);
  overflow: hidden;
  position: relative;
}

.case-header {
  background: #181d28;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #000;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.case-dots {
  display: flex;
  gap: 6px;
}

.case-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-bright);
}

.case-title {
  color: var(--gold-yellow);
  font-weight: 700;
}

.badge-live {
  background: var(--neon-green);
  color: #000;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.case-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.shelf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.shelf-item {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s var(--ease-bounce);
}

.shelf-item:hover {
  border-color: var(--gold-yellow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brutal-yellow);
}

.shelf-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.shelf-emoji {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.shelf-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.shelf-price {
  color: var(--madura-red);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
}

.case-footer {
  background: #11141c;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

/* --- Bento Grid Section --- */
.bento-section {
  padding: 4rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--madura-red);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-top: 0.25rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}

.bento-wide {
  grid-column: span 2;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--madura-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.badge-purple { background: #8b5cf6; }
.badge-green { background: #10b981; }

.bento-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Pertamini Widget */
.pertamini-widget {
  background: var(--bg-dark);
  border: 2px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fuel-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.fuel-type-btn {
  padding: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.fuel-type-btn.active {
  background: var(--gold-yellow);
  color: var(--text-dark);
  border-color: #000;
  box-shadow: 2px 2px 0 #000;
}

.slider-control label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.slider-control input[type="range"] {
  width: 100%;
  accent-color: var(--madura-red);
  height: 8px;
  cursor: pointer;
}

.pertamini-meter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.meter-box {
  background: #000000;
  border: 2px solid #222;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.meter-label {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.meter-digital {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* Combo Card */
.combo-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.combo-list li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.combo-list i {
  color: var(--neon-green);
}

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

.price-box {
  display: flex;
  flex-direction: column;
}

.old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.new-price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold-yellow);
}

/* Change Calc Card */
.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.6rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.calc-result-box {
  background: #0d1117;
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

/* --- Catalog Section --- */
.catalog-section {
  padding: 5rem 1.5rem;
}

.catalog-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: var(--madura-red);
  box-shadow: 0 0 12px var(--madura-red-glow);
}

.clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Filter Chips */
.filter-chips-wrapper {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  scrollbar-width: thin;
}

.chip {
  padding: 0.5rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--gold-yellow);
  color: var(--text-main);
}

.chip.active {
  background: var(--madura-red);
  color: #fff;
  border-color: #000;
  box-shadow: 2px 2px 0 #000;
}

/* Product Grid Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s var(--ease-smooth);
}

.product-card:hover {
  border-color: var(--madura-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brutal-red);
}

.card-top-tag {
  position: absolute;
  top: 10px;
  right: 10px;
}

.product-icon {
  font-size: 3rem;
  text-align: center;
  margin: 1rem 0;
}

.product-category-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--gold-yellow);
  text-transform: uppercase;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
}

.product-price {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--neon-green);
}

.add-cart-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-bright);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.add-cart-btn:hover {
  background: var(--madura-red);
  border-color: var(--madura-red);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* --- Interactive Chat Section --- */
.chat-section {
  padding: 4rem 1.5rem;
  background: rgba(0,0,0,0.4);
}

.chat-widget-card {
  max-width: 850px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 3px solid #000;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brutal-yellow);
  overflow: hidden;
}

.chat-header {
  background: #181d28;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #000;
}

.chat-header-actions {
  display: flex;
  gap: 0.5rem;
}

.avatar-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar-img {
  font-size: 2rem;
  background: var(--bg-dark);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-yellow);
}

.avatar-info h3 {
  font-size: 1.05rem;
}

.online-indicator {
  font-size: 0.75rem;
  color: var(--neon-green);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-messages {
  padding: 1.5rem;
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #0f1218;
}

.chat-bubble {
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.chat-bubble.bot {
  align-self: flex-start;
}

.chat-bubble.user {
  align-self: flex-end;
}

.bubble-content {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-bubble.bot .bubble-content {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-bright);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}

.chat-bubble.user .bubble-content {
  background: var(--madura-red);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-family: var(--font-mono);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.5rem;
  background: #141822;
  font-size: 0.8rem;
  color: var(--gold-yellow);
  font-family: var(--font-mono);
  border-top: 1px dashed var(--border-color);
}

.typing-indicator.hidden {
  display: none;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-yellow);
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots i:nth-child(1) { animation-delay: -0.32s; }
.typing-dots i:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.quick-prompts {
  padding: 0.75rem 1.5rem;
  background: #131720;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
}

.prompt-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.prompt-btn {
  padding: 0.35rem 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--gold-yellow);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.prompt-btn:hover {
  border-color: var(--gold-yellow);
  background: rgba(255, 230, 0, 0.1);
}

.chat-input-row {
  display: flex;
  padding: 1rem 1.5rem;
  background: #181d28;
  gap: 0.75rem;
  border-top: 2px solid #000;
}

.chat-input-row input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
}

/* --- Cart Drawer --- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
}

.drawer-overlay.hidden {
  display: none;
}

.cart-drawer {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 3px solid #000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #181d28;
}

.close-drawer-btn {
  font-size: 1.8rem;
  color: var(--text-muted);
}

.close-drawer-btn:hover {
  color: var(--madura-red);
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.cart-item-info h4 {
  font-size: 0.95rem;
}

.cart-item-price {
  font-family: var(--font-mono);
  color: var(--neon-green);
  font-size: 0.85rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-bright);
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
}

.qty-btn:hover {
  background: var(--madura-red);
}

.qty-text {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.9rem;
}

.drawer-footer {
  padding: 1.5rem;
  border-top: 2px solid #000;
  background: #141822;
}

.promo-code-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.promo-code-row input {
  flex-grow: 1;
  padding: 0.5rem 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.discount-badge {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  font-size: 0.75rem;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  text-align: center;
  font-weight: 700;
}

.discount-badge.hidden {
  display: none;
}

.cart-summary-rows {
  margin-bottom: 1.25rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.summary-total {
  font-size: 1.15rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #181d28;
  border: 2px solid var(--madura-red);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brutal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  animation: slide-in 0.3s var(--ease-bounce);
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Footer --- */
.site-footer {
  background: #080a0d;
  border-top: 3px solid #000;
  padding: 4rem 1.5rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 1rem 0;
  font-size: 0.9rem;
}

.footer-tags {
  display: flex;
  gap: 0.5rem;
}

.footer-links h4, .footer-info h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-yellow);
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: span 1;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .calc-inputs {
    grid-template-columns: 1fr;
  }
  .search-box {
    width: 100%;
  }
  .cart-drawer {
    max-width: 100%;
  }
}
