/* ==========================================================================
   TokoKopi.shop Roastery - Production Marketplace Stylesheet
   Theme: Forest Emerald Palette (#1b4332, #40916c)
   Ad-Safe Compliant Specialty Coffee & Artisan Brewing Gear
   ========================================================================== */

:root {
  /* TokoKopi.shop Official Brand Palette */
  --primary: #1b4332;       /* Deep Navy Blue */
  --primary-hover: #143326; /* Blue 700 */
  --primary-dark: #172554;  /* Blue 950 */
  --accent: #40916c;        /* Vibrant Royal Blue */
  --accent-light: #93c5fd;  /* Blue 300 */
  --accent-soft: #ecfdf5;   /* Blue 50 */
  
  /* Coffee Artisan Accents */
  --roast-dark: #2d1810;
  --roast-amber: #b45309;
  --roast-gold: #f59e0b;
  --roast-light: #fef3c7;

  /* Neutral Surface & Typography */
  --bg-page: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border-light: #e2e8f0;
  --border-dark: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 15px -2px rgba(59, 130, 246, 0.4);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #172554 0%, #1b4332 50%, #40916c 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-align: center;
}

.announcement-bar strong {
  color: #fef08a;
}

/* Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1.5rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 2.75rem;
  width: auto;
}

.header-search {
  flex: 0 1 380px;
  min-width: 260px;
  position: relative;
  display: block;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.5rem;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background-color: #f8fafc;
  font-size: 0.875rem;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.search-icon-wrapper {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 0.875rem;
  }
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  background-color: var(--surface-muted);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.cart-btn:hover {
  color: var(--primary);
  border-color: var(--accent-light);
}

.cart-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cart-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  border: 2px solid var(--surface);
}

/* Mandatory Promo CTA Button */
.promo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 2px 4px rgba(27, 67, 50, 0.25);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.promo-cta-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.promo-cta-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.promo-cta-btn svg {
  width: 1.125rem;
  height: 1.125rem;
  color: #fef08a;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background-color: #dbeafe;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-title-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 600px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-badge-item svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--primary);
}

.hero-visual {
  position: relative;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

/* Promo Voucher Section */
.promo-section {
  padding: 3.5rem 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.voucher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.voucher-card {
  position: relative;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  border: 2px dashed #93c5fd;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.voucher-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.voucher-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.voucher-discount {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.voucher-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background-color: #dbeafe;
  color: var(--primary);
}

.voucher-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.375rem;
}

.voucher-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.voucher-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

.voucher-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  color: var(--primary);
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
}

.copy-code-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  background-color: var(--primary);
  color: #ffffff;
  transition: background-color var(--transition-fast);
}

.copy-code-btn:hover {
  background-color: var(--primary-hover);
}

/* Category Filter Bar */
.catalog-section {
  padding: 4rem 0;
  background-color: var(--bg-page);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--accent-light);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(27, 67, 50, 0.2);
}

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

/* Product Card */
.product-card {
  background-color: var(--surface);
  border-radius: 1.125rem;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

/* Interactive Multi-Photo Product Gallery */
.gallery-container {
  padding: 1rem;
  background-color: var(--surface-muted);
  border-bottom: 1px solid var(--border-light);
}

.gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.6);
}

.gallery-main-img,
.main-product-image,
.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: opacity 0.2s ease-in-out, transform 0.25s ease-in-out;
}

.gallery-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #dbeafe;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  z-index: 2;
}

/* Thumbnail Strip */
.thumbnail-strip,
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gallery-thumb,
.thumbnail-btn {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.25rem;
  opacity: 0.7;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.gallery-thumb:hover,
.thumbnail-btn:hover {
  opacity: 1;
  border-color: var(--accent);
}

.gallery-thumb.active,
.thumbnail-btn.active {
  opacity: 1;
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.gallery-thumb img,
.thumbnail-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.25rem;
}

/* Product Info */
.product-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.375rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

.product-notes {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

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

.price-original {
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-decoration: line-through;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.price-current {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}

.btn-cart {
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  background-color: var(--primary);
  color: #ffffff;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-cart:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 2px 4px rgba(27, 67, 50, 0.2);
}

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

/* Barista Guide Section */
.guide-section {
  padding: 4rem 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border-light);
}

.guide-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.guide-table th {
  background-color: #f1f5f9;
  color: var(--text-main);
  padding: 1rem 1.25rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-dark);
}

.guide-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

.guide-table tr:last-child td {
  border-bottom: none;
}

.guide-table tr:hover td {
  background-color: #f8fafc;
}

/* Trust Badges & Footer */
.main-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

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

.footer-links a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #74c69d;
}

.payment-badges-grid,
.courier-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.trust-badge-pill {
  padding: 0.25rem 0.625rem;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.375rem;
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  background-color: #0f172a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent);
  animation: slideInRight 0.2s ease-out forwards;
}

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

/* Responsive Mobile Viewport & Navigation (Zero Horizontal Overflow) */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.625rem 0;
    gap: 0.5rem 0.75rem;
  }

  .header-search {
    order: 3;
    flex: 1 0 100%;
    min-width: 0;
    width: 100%;
  }

  .search-input {
    height: 38px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .header-inner {
    height: auto;
    padding: 0.5rem 0;
    gap: 0.5rem;
  }

  .brand-logo-img {
    height: 2rem;
    max-width: 140px;
  }

  .header-actions {
    gap: 0.375rem;
  }

  .cart-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .promo-cta-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.8125rem;
    gap: 0.25rem;
  }

  .hero-vip-btn {
    width: 100%;
    text-align: center;
  }

  .vip-reward-box {
    padding: 1.5rem 1.125rem;
    max-width: calc(100vw - 24px);
    max-height: 90dvh;
    overflow-y: auto;
    border-radius: 14px;
  }

  .vip-modal-title {
    font-size: 1.0625rem;
  }

  .vip-modal-desc {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
  }

  .vip-claim-btn {
    font-size: 0.8125rem;
    padding: 0.75rem 1rem;
    line-height: 1.35;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .brand-logo-img {
    height: 1.75rem;
    max-width: 120px;
  }

  .cart-btn {
    width: 2rem;
    height: 2rem;
  }

  .promo-cta-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Cart Drawer, Checkout Modal & Tracking Modal Styles
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 1000;
  box-shadow: -4px 0 25px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #0f172a;
}
.drawer-title-wrap h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}
.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}
.drawer-close-btn:hover {
  color: #0f172a;
}

.shipping-progress-box {
  background: #ecfdf5;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #dbeafe;
}
.shipping-progress-text {
  font-size: 0.8125rem;
  color: #1b4332;
  margin-bottom: 0.375rem;
}
.shipping-progress-bar {
  height: 6px;
  background: #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
}
.shipping-progress-fill {
  height: 100%;
  background: #16a34a;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-item-card {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-details {
  flex: 1;
}
.cart-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.cart-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1b4332;
}
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.qty-num {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.cart-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.75rem;
  margin-left: auto;
}
.cart-remove-btn:hover {
  color: #ef4444;
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.cart-voucher-box {
  margin-bottom: 1rem;
}
.voucher-input-group {
  display: flex;
  gap: 0.5rem;
}
.voucher-input-group input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 600;
}
.voucher-input-group button {
  padding: 0.5rem 1rem;
  background: #1b4332;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}
.voucher-applied-tag {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #16a34a;
  font-weight: 600;
}

.cart-summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #475569;
}
.summary-row {
  display: flex;
  justify-content: space-between;
}
.discount-row {
  color: #16a34a;
  font-weight: 600;
}
.total-row {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #cbd5e1;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.total-amount {
  color: #1b4332;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.btn-primary-checkout {
  width: 100%;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #1b4332 0%, #40916c 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
  transition: all 0.2s;
}
.btn-primary-checkout:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.35);
}
.btn-secondary-continue {
  width: 100%;
  padding: 0.625rem 1rem;
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}
.btn-secondary-continue:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title-wrap h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.25rem 0 0;
}
.modal-badge-step {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1b4332;
  background: #dbeafe;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  display: inline-block;
}
.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}
.modal-body {
  padding: 1.5rem;
}
.form-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1b4332;
  margin-bottom: 0.75rem;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.form-group {
  margin-bottom: 0.875rem;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #0f172a;
  box-sizing: border-box;
}
.courier-selector-grid, .payment-method-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.courier-option, .payment-method-card {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.courier-option input, .payment-method-card input {
  margin-right: 0.75rem;
}
.courier-info, .method-content {
  flex: 1;
}
.courier-info strong, .method-content strong {
  display: block;
  font-size: 0.875rem;
  color: #0f172a;
}
.courier-info small, .method-content small {
  color: #64748b;
  font-size: 0.75rem;
}
.courier-price {
  font-weight: 700;
  color: #16a34a;
  font-size: 0.875rem;
}
.courier-option:hover, .payment-method-card:hover {
  border-color: #1b4332;
  background: #f8fafc;
}
.courier-option.selected, .payment-method-card.selected {
  border-color: #1b4332;
  background: #ecfdf5;
}
.checkout-final-summary {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin: 1.25rem 0;
}
.total-highlight {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1b4332;
}
.security-guarantee-note {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.5rem;
}
.btn-submit-order {
  width: 100%;
  padding: 0.875rem;
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit-order:hover {
  background: #15803d;
}

/* Order Success Frame */
.order-success-box {
  text-align: center;
  padding: 1rem 0;
}
.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #dcfce7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.order-id-label {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 1rem;
}
.payment-instruction-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1rem 0;
}
.pay-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1b4332;
  margin: 0.5rem 0 1rem;
}
.qris-mock-frame {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1rem;
  display: inline-block;
  margin: 0 auto;
}
.qris-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.qris-footer {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* High-Contrast Buttons & Official Badges */
.btn-header-shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1b4332 0%, #40916c 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.35);
  transition: all 0.2s ease;
}
.btn-header-shop:hover {
  background: #143326;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.45);
}

.payment-badges-grid, .courier-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.logo-badge-card {
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  height: 32px;
  transition: all 0.2s ease;
}
.logo-badge-card:hover {
  border-color: #40916c;
  transform: translateY(-1px);
}
.logo-badge-card img {
  max-height: 20px;
  width: auto;
  object-fit: contain;
}

/* Floating Live Chat Widget Styles */
.livechat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: inherit;
}
.livechat-toggle-btn {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(27, 67, 50, 0.45);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: livechatPulse 2.5s infinite;
}
@keyframes livechatPulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(45, 106, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0); }
}
.livechat-toggle-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(27, 67, 50, 0.55);
}
.livechat-badge-online {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #16a34a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #ffffff;
}
.livechat-window {
  display: none;
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 350px;
  max-width: calc(100vw - 32px);
  height: 460px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  flex-direction: column;
  overflow: hidden;
  animation: livechatFadeIn 0.25s ease-out;
}
@keyframes livechatFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.livechat-window.active {
  display: flex;
}
.livechat-header {
  background: linear-gradient(135deg, #1b4332 0%, #40916c 100%);
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.livechat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.livechat-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.livechat-title {
  font-weight: 700;
  font-size: 14px;
}
.livechat-status {
  font-size: 11px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}
.livechat-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.livechat-close-btn:hover {
  opacity: 1;
}
.livechat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 12px;
  word-wrap: break-word;
}
.chat-bubble.bot-msg {
  background: #ffffff;
  color: #1e293b;
  align-self: flex-start;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border-bottom-left-radius: 2px;
}
.chat-bubble.user-msg {
  background: #2d6a4f;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.livechat-chips {
  padding: 8px 12px;
  background: #f1f5f9;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 1px solid #e2e8f0;
}
.chat-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #1b4332;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-chip:hover {
  background: #1b4332;
  color: #ffffff;
  border-color: #1b4332;
}
.livechat-input-area {
  display: flex;
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  gap: 8px;
}
.livechat-input-area input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
}
.livechat-input-area input:focus {
  border-color: #2d6a4f;
}
.livechat-input-area button {
  background: #2d6a4f;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.livechat-input-area button:hover {
  background: #143326;
}

/* Mobile Viewport Optimization for Live Chat & Touch Targets */
@media (max-width: 480px) {
  .livechat-container {
    bottom: 16px;
    right: 16px;
  }
  .livechat-toggle-btn {
    width: 54px;
    height: 54px;
    box-shadow: 0 6px 16px rgba(27, 67, 50, 0.4);
    animation: livechatPulse 2.5s infinite;
  }
  .livechat-window {
    position: fixed;
    bottom: 76px;
    left: 12px;
    right: 12px;
    width: calc(100vw - 24px);
    max-width: 100%;
    height: calc(100dvh - 120px);
    max-height: 480px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
  }
  .product-grid {
    gap: 1.25rem;
  }
  .voucher-grid,
  .vouchers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================================
   MEMBER REWARD & PROMO MODAL
   ========================================================================== */

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.announcement-claim-btn {
  background: #fbbf24;
  color: #1e3a8a;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.announcement-claim-btn:hover {
  background: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Hero VIP Banner */
.hero-vip-banner {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-vip-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
}

.vip-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.vip-banner-pill {
  display: inline-block;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.vip-banner-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.vip-banner-sub {
  font-size: 0.8125rem;
  color: #cbd5e1;
  margin-top: 0.2rem;
}

.vip-banner-sub strong {
  color: #fef08a;
}

.hero-vip-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  border: none;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.hero-vip-btn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

/* VIP Reward Modal */
.vip-reward-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.vip-reward-modal.active {
  opacity: 1;
  visibility: visible;
}

.vip-reward-backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}

.vip-reward-box {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(251, 191, 36, 0.15);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vip-reward-modal.active .vip-reward-box {
  transform: scale(1);
}

.vip-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.vip-modal-close:hover {
  color: #ffffff;
}

.vip-modal-badge {
  display: inline-block;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.5);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.vip-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.vip-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.vip-modal-desc {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.vip-modal-desc strong {
  color: #fbbf24;
}

.vip-modal-code-box {
  background: rgba(27, 67, 50, 0.3);
  border: 1px dashed rgba(251, 191, 36, 0.5);
  border-radius: 8px;
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.vip-code-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.08em;
}

.vip-claim-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  border: none;
  font-size: 0.9375rem;
  font-weight: 800;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.vip-claim-btn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.vip-modal-subtext {
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 0.75rem;
}

/* ==========================================================================
   5-STAR VERIFIED CUSTOMER REVIEWS (SOCIAL PROOF & CONVERSION ENGINE)
   ========================================================================== */
.reviews-section {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.reviews-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.reviews-score-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.reviews-score-num {
  font-size: 3.25rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.reviews-stars-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews-stars {
  color: #f59e0b;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.reviews-score-sub {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
}

.reviews-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reviews-stat-item {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  border-color: #93c5fd;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b4332 0%, #40916c 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-user-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #0f172a;
}

.review-user-location {
  font-size: 0.75rem;
  color: #64748b;
}

.review-verified-pill {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.review-product-tag {
  font-size: 0.75rem;
  color: #2d6a4f;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
  border: 1px solid #dbeafe;
}

.review-text {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: normal;
}

.review-date {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: right;
}

/* FOMO & High-Conversion Modal Effects (GPU-Accelerated & Low-End Safe) */
@keyframes fomoBorderPulse {
  0%, 100% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 24px rgba(245, 158, 11, 0.35), inset 0 0 24px rgba(245, 158, 11, 0.08);
    border-color: rgba(251, 191, 36, 0.65);
  }
  50% {
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.7), 0 0 38px rgba(239, 68, 68, 0.45), inset 0 0 28px rgba(245, 158, 11, 0.14);
    border-color: rgba(251, 146, 60, 0.95);
  }
}

@keyframes ctaShimmerSweep {
  0% { transform: translateX(-140%) skewX(-20deg); }
  45%, 100% { transform: translateX(240%) skewX(-20deg); }
}

@keyframes ctaPulseScale {
  0%, 100% {
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
  }
  50% {
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.72);
  }
}

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

.vip-reward-box.fomo-active {
  background: radial-gradient(circle at 50% 12%, rgba(245, 158, 11, 0.18), transparent 55%), linear-gradient(180deg, #0b1120 0%, #172554 100%);
  animation: fomoBorderPulse 2.4s ease-in-out infinite;
  overflow: hidden;
}

.vip-fomo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #dc2626 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(254, 215, 170, 0.6) !important;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.55);
  font-weight: 800;
}

.vip-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fde047;
  display: inline-block;
  animation: liveDotPulse 1s ease-in-out infinite;
}

.vip-fomo-title {
  background: linear-gradient(90deg, #fef08a 0%, #fbbf24 35%, #fb7185 70%, #fef08a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(251, 191, 36, 0.45));
  font-weight: 900 !important;
}

.vip-fomo-live-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #86efac;
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.9rem;
}

.vip-fomo-timer {
  color: #fca5a5;
  font-weight: 800;
}

.vip-claim-btn.fomo-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f97316 100%) !important;
  color: #0f172a !important;
  animation: ctaPulseScale 1.8s ease-in-out infinite;
}

.vip-claim-btn.fomo-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: ctaShimmerSweep 2.4s ease-in-out infinite;
}

/* Legacy Android (< Chrome 84) Flex Gap Fallback */
@media (max-width: 768px) {
  .hero-content > div > a,
  .hero-trust > span,
  .header-actions > *,
  .announcement-inner > * {
    margin: 4px 6px 4px 0;
  }
  .hero-section {
    padding-top: 1.5rem;
  }
}
