/* ==========================================================================
   MODULKU PRO ELEVATION DESIGN SYSTEM
   Unified Enterprise SaaS & EdTech Marketplace Polish
   Loaded LAST on Public, Portal (Guru/Kontributor), and Admin Layouts
   ========================================================================== */

:root {
  --pro-ink: #0f172a;
  --pro-slate: #334155;
  --pro-muted: #64748b;
  --pro-border: rgba(15, 23, 42, 0.08);
  --pro-border-strong: rgba(15, 23, 42, 0.14);
  --pro-surface: #ffffff;
  --pro-canvas: #f4f7f6;
  --pro-emerald: #059669;
  --pro-emerald-dark: #047857;
  --pro-emerald-deep: #064e3b;
  --pro-emerald-soft: #ecfdf5;
  --pro-mint: #34d399;
  --pro-gold: #f59e0b;
  --pro-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --pro-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.055), 0 1px 3px rgba(15, 23, 42, 0.04);
  --pro-shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --pro-shadow-lg: 0 22px 48px rgba(6, 78, 59, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* 1. GLOBAL TYPOGRAPHY, SMOOTHING & FORM PRECISION */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.stat-number,
.counter-number,
.hero-price-current,
.price-discount,
.commission-balance {
  font-variant-numeric: tabular-nums;
}

/* Eliminate ALL Double Arrows on Select Elements Everywhere (incl. DataTables v2 & Chromium picker-icon) */
select.form-select,
div.dt-container div.dt-length select,
.dataTables_wrapper .dataTables_length select,
.admin-content-body select.form-select,
select.language-switcher {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23059669' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.65rem center !important;
  background-size: 11px 9px !important;
  padding-right: 2rem !important;
  white-space: nowrap !important;
}

select::picker-icon,
select.form-select::picker-icon,
div.dt-container div.dt-length select::picker-icon {
  display: none !important;
  content: "" !important;
}

select.form-select::-ms-expand,
div.dt-container div.dt-length select::-ms-expand,
.dataTables_wrapper .dataTables_length select::-ms-expand {
  display: none !important;
}

/* Fix Language Pill Globe + Text Spacing (gap-1.5 is not in Bootstrap 5) */
.dropdown-toggle .fa-globe + span {
  margin-left: 5px;
}

/* Global Focus & Switch Brand Consistency (Zamrud Emerald instead of Bootstrap Blue) */
.form-control:focus,
.form-select:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.14) !important;
}

.form-check-input:checked {
  background-color: #059669 !important;
  border-color: #059669 !important;
}

.form-check-input:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
}

/* Brand-Matched Pagination (Eliminates Bootstrap Default Blue) */
.pagination .page-link {
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 9px !important;
  margin: 0 2px;
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.pagination .page-link:hover {
  color: #047857;
  background-color: #ecfdf5;
  border-color: #a7f3d0;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #059669, #047857) !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.28);
}

.pagination .page-item.disabled .page-link {
  color: #94a3b8;
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

/* 2. SPLASH SCREEN BRAND HARMONY */
.splash-brand-text .text-ku {
  background: linear-gradient(135deg, #34d399 0%, #fbbf24 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #34d399 !important;
}

.splash-brand-text .text-dot {
  background: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.65);
}

/* 3. LANDING PAGE & PUBLIC SHELL PRO ELEVATION */
.modulku-topbar {
  background: linear-gradient(90deg, #04241d 0%, #06382d 50%, #04241d 100%) !important;
  border-bottom: 1px solid rgba(52, 211, 153, 0.14);
}

.modulku-navbar {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

.modulku-navbar .navbar-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.modulku-navbar .nav-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155 !important;
  border-radius: 10px;
  transition: all 0.18s ease;
}

.modulku-navbar .nav-link:hover,
.modulku-navbar .nav-link.active {
  color: #047857 !important;
  background: #ecfdf5 !important;
}

/* Elevated Info Terkini Chevron-Ribbon Running Ticker */
.modulku-welcome-ticker {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%) !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #d1fae5;
  padding: 8px 0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  z-index: 5;
}

.modulku-welcome-ticker::before,
.modulku-welcome-ticker::after {
  display: none !important;
  content: none !important;
}

.welcome-ticker-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 5px 14px 5px 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.ticker-badge-shadow {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(4, 120, 87, 0.28));
  z-index: 3;
}

.ticker-info-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 24px 7px 14px;
  background: linear-gradient(135deg, #059669 0%, #047857 58%, #065f46 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 9px 0 0 9px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  overflow: hidden;
}

.ticker-info-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, transparent 48%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

.ticker-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75);
  animation: tickerPulseDot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes tickerPulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.72); }
  70%  { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.ticker-info-badge i {
  font-size: 0.86rem;
  color: #d1fae5;
  transform: rotate(-10deg);
}

.welcome-ticker-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.welcome-ticker-viewport .welcome-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  padding-left: 8px;
  color: #0f172a !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  animation: modulkuTickerScroll 34s linear infinite !important;
}

.welcome-ticker-shell:hover .welcome-ticker-track {
  animation-play-state: paused !important;
}

.welcome-ticker-viewport .ticker-item {
  color: #1e293b !important;
  display: inline-flex;
  align-items: center;
}

.welcome-ticker-viewport .ticker-sep {
  color: #10b981 !important;
  font-weight: 900;
  font-size: 1rem;
}

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

@media (max-width: 575.98px) {
  .modulku-welcome-ticker {
    padding: 6px 0 !important;
  }
  .welcome-ticker-shell {
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 12px;
  }
  .ticker-info-badge {
    padding: 5px 18px 5px 10px;
    font-size: 0.68rem;
    gap: 6px;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
  }
  .welcome-ticker-viewport .welcome-ticker-track {
    font-size: 0.78rem !important;
  }
}

/* Hero Showcase Elevation (Crisp Above-The-Fold Fit on 1366x800 + Zero Carousel Ghost Text) */
.hero-slider-section {
  background:
    radial-gradient(circle at 12% 15%, rgba(16, 185, 129, 0.11), transparent 36%),
    radial-gradient(circle at 88% 20%, rgba(245, 158, 11, 0.08), transparent 34%),
    linear-gradient(180deg, #f3faf7 0%, #ffffff 100%) !important;
  padding-top: 16px !important;
  padding-bottom: 18px !important;
}

.swiper-hero {
  position: relative !important;
  padding-bottom: 0 !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  box-shadow: 0 24px 60px rgba(4, 47, 42, 0.22), 0 4px 18px rgba(4, 47, 42, 0.1) !important;
  background: linear-gradient(132deg, #042f2a 0%, #064e3b 48%, #047857 100%) !important;
  border: 1px solid rgba(110, 231, 183, 0.24) !important;
}

.swiper-hero .swiper-wrapper {
  align-items: stretch !important;
}

.swiper-hero .swiper-slide {
  height: auto !important;
  display: flex !important;
}

.swiper-hero .swiper-slide:not(.swiper-slide-active) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero-slide-card {
  width: 100% !important;
  height: 100% !important;
  background:
    radial-gradient(circle at 84% 18%, rgba(52, 211, 153, 0.22), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(251, 191, 36, 0.12), transparent 38%),
    linear-gradient(132deg, #042f2a 0%, #064e3b 48%, #047857 100%) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  padding-bottom: 64px !important;
}

.hero-slide-content {
  padding: 26px 34px 22px !important;
}

.hero-slide-content .mb-4 {
  margin-bottom: 0.9rem !important;
}

.hero-slide-title {
  text-wrap: balance;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  font-size: clamp(1.4rem, 2.4vw, 2.08rem) !important;
  font-weight: 800 !important;
  margin-bottom: 0.65rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-desc {
  color: rgba(236, 253, 245, 0.88) !important;
  line-height: 1.55 !important;
  margin-bottom: 1rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Integrated Inside-Slider Frosted Glass Navigation Dock */
.hero-slider-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 28px;
  background: linear-gradient(180deg, rgba(4, 47, 42, 0.12) 0%, rgba(2, 28, 24, 0.62) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-slide-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(236, 253, 245, 0.94);
  letter-spacing: 0.04em;
  min-width: 110px;
}

.hero-counter-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.24);
  flex-shrink: 0;
}

.hero-counter-label {
  color: rgba(167, 243, 208, 0.82);
  font-weight: 600;
  font-size: 0.74rem;
}

.hero-swiper-pagination.swiper-pagination {
  position: static !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 !important;
}

.hero-swiper-pagination .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.34) !important;
  opacity: 1 !important;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease !important;
}

.hero-swiper-pagination .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.65) !important;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
  width: 28px !important;
  background: linear-gradient(90deg, #fbbf24 0%, #34d399 100%) !important;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.55) !important;
}

.hero-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-slider-controls .swiper-button-prev-custom,
.hero-slider-controls .swiper-button-next-custom {
  width: 38px !important;
  height: 38px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 24, 20, 0.2) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem !important;
  cursor: pointer;
  transition: all 0.22s ease !important;
}

.hero-slider-controls .swiper-button-prev-custom:hover,
.hero-slider-controls .swiper-button-next-custom:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #064e3b !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 8px 20px rgba(2, 24, 20, 0.34) !important;
}

@media (max-width: 767.98px) {
  .hero-slide-card {
    padding-bottom: 58px !important;
  }
  .hero-slider-controls {
    padding: 10px 14px;
    gap: 8px;
  }
  .hero-slide-counter {
    min-width: auto;
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .hero-swiper-pagination.swiper-pagination {
    gap: 5px;
    flex-shrink: 1;
    overflow: hidden;
  }
  .hero-swiper-pagination .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
  }
  .hero-swiper-pagination .swiper-pagination-bullet-active {
    width: 18px !important;
  }
  .hero-slider-controls .swiper-button-prev-custom,
  .hero-slider-controls .swiper-button-next-custom {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.76rem !important;
  }
}

.hero-book-showcase {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px !important;
  padding: 26px !important;
  box-shadow: 0 20px 44px rgba(2, 24, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.hero-book-showcase .hero-slide-img {
  border-radius: 16px !important;
  box-shadow: 0 18px 38px rgba(2, 24, 20, 0.34) !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #ffffff;
}

.floating-hero-pill {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 26px rgba(4, 47, 42, 0.22) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
}

.hero-price-panel {
  background: rgba(255, 255, 255, 0.11) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(12px);
  border-radius: 16px !important;
  padding: 10px 16px !important;
}

.hero-cta-group .btn-hero-buy {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.38) !important;
}

.hero-cta-group .btn-hero-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.48) !important;
}

.hero-cta-group .btn-hero-add-cart {
  background: #ffffff !important;
  color: #064e3b !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
}

.hero-cta-group .btn-atelier-light {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  backdrop-filter: blur(8px);
}

.hero-cta-group .btn-atelier-light:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

/* Institutional Trust & Payment Assurance Bar on Landing */
.trust-assurance-bar {
  background: #ffffff;
  border: 1px solid var(--pro-border);
  border-radius: 20px;
  padding: 16px 22px;
  margin-top: 18px;
  box-shadow: var(--pro-shadow-sm);
}

.trust-assurance-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}

.trust-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.trust-pay-chip.chip-qris {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

/* Quick Counter Bar & Cards Pro Polish */
.quick-counter-bar {
  border: 1px solid var(--pro-border) !important;
  border-radius: 22px !important;
  box-shadow: var(--pro-shadow-md) !important;
  background: #ffffff !important;
}

.jenjang-card,
.workflow-card,
.landing-feature-card,
.module-card {
  border: 1px solid var(--pro-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--pro-shadow-sm) !important;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.jenjang-card:hover,
.workflow-card:hover,
.landing-feature-card:hover,
.module-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: var(--pro-shadow-lg) !important;
}

.module-card-footer {
  padding-top: 12px !important;
  border-top: 1px solid #f1f5f9 !important;
  gap: 8px !important;
}

.module-card-footer .price-discount {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #047857 !important;
  white-space: nowrap;
}

.module-card-footer .btn-static-add-cart,
.module-card-footer .btn-static-buy {
  white-space: nowrap !important;
  border-radius: 9px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
}

/* Footer Payment Channel Badges */
.footer-pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.footer-pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 0.67rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  letter-spacing: 0.015em;
}

.footer-pay-pill.is-qris {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

/* 4. BUYER PORTAL (GURU) & PAYMENT GATEWAY UI ELEVATION */
.portal-header-banner {
  background:
    radial-gradient(circle at 85% 20%, rgba(52, 211, 153, 0.24), transparent 40%),
    linear-gradient(135deg, #042f2a 0%, #064e3b 52%, #047857 100%) !important;
  border-bottom: 1px solid rgba(52, 211, 153, 0.2);
}

.dashboard-stat-card {
  background: #ffffff !important;
  border: 1px solid var(--pro-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--pro-shadow-md) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.dashboard-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: var(--pro-shadow-lg) !important;
}

.dashboard-nav-tabs {
  background: #ffffff;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--pro-border);
  box-shadow: var(--pro-shadow-xs);
  gap: 6px;
  flex-wrap: wrap;
}

.dashboard-nav-tabs .nav-link {
  border-radius: 11px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  color: #475569 !important;
  padding: 10px 16px !important;
  transition: all 0.2s ease !important;
}

.dashboard-nav-tabs .nav-link:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.dashboard-nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28) !important;
}

.dashboard-nav-tabs .nav-link.active .badge {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

/* Official Bank Brand Cards in Buyer Checkout */
.payment-channels-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 20px !important;
}

.bank-brand-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  height: 100%;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bank-brand-card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.bank-brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.bank-brand-pill.bri { background: #00529C; }
.bank-brand-pill.bni { background: #F15A22; }
.bank-brand-pill.mandiri { background: #003D79; }
.bank-brand-pill.seabank { background: #FF5E14; }
.bank-brand-pill.dana { background: #118EEA; }
.bank-brand-pill.ovo { background: #4C3494; }

.bank-account-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.03em;
  margin-top: 8px;
}

.btn-copy-rekening {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-copy-rekening:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.btn-copy-rekening.copied {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

/* 5. ADMIN PORTAL PRO ELEVATION (CRITICAL FIXES & ENTERPRISE POLISH) */

/* 5.1 Admin Sidebar Hierarchical Submenus — 100% High Contrast, Zero Bullets, Zero Underline */
.admin-sidebar {
  background: linear-gradient(175deg, #062822 0%, #09372e 52%, #05201b 100%) !important;
  border-right: 1px solid rgba(52, 211, 153, 0.12) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
}

.admin-sidebar-header {
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 15 !important;
  box-shadow: 0 4px 16px rgba(3, 20, 16, 0.25);
}

.admin-sidebar-scroll-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important;
  padding-bottom: 12px;
}

.admin-sidebar-scroll-body::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(110, 231, 183, 0.28);
  border-radius: 10px;
}

.admin-sidebar-scroll-body::-webkit-scrollbar-thumb:hover {
  background: rgba(110, 231, 183, 0.5);
}

.admin-sidebar-footer {
  flex-shrink: 0 !important;
}

.btn-sidebar-logout {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca !important;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.btn-sidebar-logout:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #ef4444;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.admin-sidebar.collapsed .btn-sidebar-logout .nav-text {
  display: none;
}

.admin-topbar {
  overflow: visible !important;
}

.admin-topbar .dropdown-menu {
  z-index: 1048 !important;
}

.admin-sidebar-profile {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(110, 231, 183, 0.16) !important;
  padding: 12px 14px !important;
  margin: 14px 12px !important;
  border-radius: 16px !important;
}

.admin-sidebar-profile > .d-flex {
  gap: 14px !important;
}

.admin-sidebar-profile .admin-avatar-circle {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  font-size: 0.95rem !important;
}

.admin-sidebar-profile #sidebarAdminName {
  font-size: 0.84rem !important;
  line-height: 1.25 !important;
  margin-bottom: 4px !important;
}

.admin-sidebar .nav-section-title {
  color: #6ee7b7 !important;
  opacity: 0.78;
  font-size: 0.64rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  padding: 12px 12px 6px !important;
}

.admin-sidebar .admin-nav-link {
  text-decoration: none !important;
  color: rgba(236, 253, 245, 0.86) !important;
  font-size: 0.84rem !important;
  min-height: 42px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
}

.admin-sidebar .admin-nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.admin-sidebar .admin-nav-link.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border-color: rgba(110, 231, 183, 0.35) !important;
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.35) !important;
}

.admin-sidebar .admin-nav-parent.parent-active,
.admin-sidebar .admin-nav-parent[aria-expanded="true"] {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #ffffff !important;
  border-color: rgba(52, 211, 153, 0.22) !important;
}

.admin-sidebar .admin-nav-parent[aria-expanded="true"] .submenu-arrow {
  transform: rotate(180deg);
  color: #6ee7b7 !important;
  opacity: 1 !important;
}

.admin-sidebar ul.admin-nav-submenu {
  list-style: none !important;
  list-style-type: none !important;
  padding: 4px 0 6px 12px !important;
  margin: 4px 0 6px 18px !important;
  border-left: 1.5px solid rgba(110, 231, 183, 0.25) !important;
}

.admin-sidebar ul.admin-nav-submenu li {
  list-style: none !important;
  list-style-type: none !important;
  margin-bottom: 3px !important;
}

.admin-sidebar a.admin-submenu-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 7px 9px !important;
  border-radius: 10px !important;
  color: rgba(236, 253, 245, 0.84) !important;
  text-decoration: none !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
  transition: all 0.18s ease !important;
}

.admin-sidebar a.admin-submenu-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  text-decoration: none !important;
  transform: translateX(2px);
}

.admin-sidebar a.admin-submenu-link.active {
  color: #ffffff !important;
  font-weight: 700 !important;
  background: linear-gradient(95deg, rgba(16, 185, 129, 0.42), rgba(16, 185, 129, 0.16)) !important;
  border-color: rgba(52, 211, 153, 0.48) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16) !important;
}

.admin-sidebar .submenu-dot {
  width: 6px !important;
  height: 6px !important;
  min-width: 6px !important;
  border-radius: 50% !important;
  background-color: rgba(167, 243, 208, 0.45) !important;
  display: inline-block !important;
  margin-right: 9px !important;
}

.admin-sidebar a.admin-submenu-link.active .submenu-dot {
  background-color: #34d399 !important;
  box-shadow: 0 0 8px #34d399 !important;
}

/* 5.2 Admin Topbar Single-Line Precision */
.admin-topbar {
  height: 68px !important;
  min-height: 68px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.admin-topbar .topbar-title-wrap {
  min-width: 0;
  overflow: hidden;
}

.admin-topbar #topbarPageTitle {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: clamp(180px, 32vw, 420px) !important;
  font-size: 0.94rem !important;
  font-weight: 750 !important;
  color: #0f172a !important;
}

/* 5.3 Admin Dashboard KPI Cards — Never Split Rp / Numbers Across Lines */
.admin-dashboard-wrapper .admin-stat-card {
  padding: 18px 20px !important;
  border-radius: 18px !important;
  border: 1px solid var(--pro-border) !important;
  box-shadow: var(--pro-shadow-sm) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.admin-dashboard-wrapper .admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: var(--pro-shadow-md) !important;
}

.admin-dashboard-wrapper .admin-stat-card > .d-flex:first-child {
  gap: 10px !important;
}

.admin-dashboard-wrapper .admin-stat-card .stat-number {
  font-size: clamp(1.18rem, 1.45vw, 1.52rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  letter-spacing: -0.025em !important;
  margin-top: 4px !important;
  margin-bottom: 6px !important;
}

.admin-dashboard-wrapper .admin-banner-card {
  background:
    radial-gradient(circle at 86% 18%, rgba(52, 211, 153, 0.26), transparent 40%),
    linear-gradient(130deg, #042f2a 0%, #064e3b 52%, #047857 100%) !important;
  border: 1px solid rgba(110, 231, 183, 0.2) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 40px rgba(4, 47, 42, 0.16) !important;
}

/* 5.4 Admin Page Header Cards — Clean Side-by-Side Alignment */
.admin-content-body .admin-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-content-body .admin-section-header > div:first-child {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 720px;
}

.admin-content-body .admin-section-header > div:last-child {
  flex-shrink: 0;
}

/* 5.5 Admin DataTables (v1 & v2 Compatible) — Crisp Spacing, Wider Search, Zero Double-Arrow */
.admin-content-body .dataTables_wrapper .row:first-child,
.admin-content-body div.dt-container .row:first-child {
  margin-bottom: 14px;
  align-items: center;
}

.admin-content-body .dataTables_wrapper .dataTables_length label,
.admin-content-body .dataTables_wrapper .dataTables_filter label,
.admin-content-body div.dt-container div.dt-length label,
.admin-content-body div.dt-container div.dt-search label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0;
}

.admin-content-body .dataTables_wrapper .dataTables_length select,
.admin-content-body div.dt-container div.dt-length select {
  min-height: 36px !important;
  height: 36px !important;
  padding: 4px 28px 4px 12px !important;
  min-width: 72px !important;
  width: 72px !important;
  line-height: 1.3 !important;
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.admin-content-body .dataTables_wrapper .dataTables_filter input,
.admin-content-body div.dt-container div.dt-search input {
  min-height: 38px !important;
  height: 38px !important;
  min-width: 250px !important;
  padding: 6px 14px !important;
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #f8fafc !important;
  font-size: 0.82rem !important;
  color: #0f172a !important;
  transition: all 0.18s ease !important;
}

.admin-content-body .dataTables_wrapper .dataTables_filter input:focus,
.admin-content-body div.dt-container div.dt-search input:focus {
  background-color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.14) !important;
  outline: none !important;
}

.admin-content-body .table thead th {
  padding: 12px 12px !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: #475569 !important;
  background: #f8fafc !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

.admin-content-body .table tbody td {
  padding: 11px 12px !important;
  font-size: 0.83rem !important;
  border-color: #f1f5f9 !important;
  color: #1e293b !important;
}

.admin-content-body div.dt-container div.dt-info,
.admin-content-body .dataTables_wrapper .dataTables_info {
  font-size: 0.8rem;
  color: #64748b;
  padding-top: 10px !important;
}

.admin-content-body div.dt-container div.dt-paging,
.admin-content-body .dataTables_wrapper .dataTables_paginate {
  padding-top: 8px !important;
}

/* 5.6 Authoritative Modal, Backdrop, Select2 & SweetAlert2 Z-Index Hierarchy (NEVER Unclickable!) */
.admin-sidebar {
  z-index: 1030 !important;
}
.admin-topbar {
  z-index: 1020 !important;
}
.modal-backdrop {
  z-index: 1050 !important;
}
.modal {
  z-index: 1055 !important;
}
.modal-dialog {
  pointer-events: auto !important;
}
.modal-content {
  pointer-events: auto !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25) !important;
}
.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 110px);
  overflow: hidden;
}
.modal-dialog-scrollable .modal-content > form > .modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
}
.modal-dialog-scrollable .modal-content > form > .modal-footer {
  flex-shrink: 0;
}
.select2-container--open {
  z-index: 1065 !important;
}

/* ==========================================================================
   GLOBAL SWEETALERT2 OVERLAY & ZERO-LAYOUT-SHIFT FIX (ALL VIEWS)
   ========================================================================== */
.swal2-container {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050 !important;
}

.swal2-container.swal2-backdrop-show {
  background: rgba(15, 23, 42, 0.56) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

html.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown),
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
  overflow-y: auto !important;
  overflow-x: clip !important;
  padding-right: 0 !important;
  height: auto !important;
}

#toast-container {
  z-index: 10090 !important;
}

/* Rock-solid Fixed Desktop Admin Sidebar (Never crops/jumps when scrolled or when Swal/Modal opens) */
@media (min-width: 992px) {
  .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    z-index: 1030 !important;
  }
  .admin-main-wrapper {
    margin-left: var(--admin-sidebar-width, 272px) !important;
    width: calc(100% - var(--admin-sidebar-width, 272px)) !important;
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .admin-sidebar.collapsed ~ .admin-main-wrapper {
    margin-left: var(--admin-sidebar-collapsed-width, 76px) !important;
    width: calc(100% - var(--admin-sidebar-collapsed-width, 76px)) !important;
  }
}

/* Settings Save Bar — Non-overlapping Clean Bar */
.settings-save-bar {
  position: relative !important;
  bottom: auto !important;
  z-index: 5 !important;
  margin-top: 24px !important;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .admin-content-body .dataTables_wrapper .dataTables_filter input,
  .admin-content-body div.dt-container div.dt-search input {
    min-width: 100% !important;
    width: 100% !important;
  }
  .trust-assurance-bar {
    padding: 14px 16px;
  }
  .hero-slide-content {
    padding: 22px 20px !important;
  }
  .hero-brand-pill {
    font-size: 0.7rem !important;
    padding: 5px 12px !important;
  }
  .hero-book-showcase {
    padding: 18px !important;
  }
  .floating-cs-btn,
  .whatsapp-float,
  #backToTop {
    bottom: 84px !important;
  }
}

/* ==========================================================================
   6. REAL DEEP LEARNING DOCUMENT SHOWCASE (LANDING PAGE)
   ========================================================================== */
.doc-showcase-section {
  background:
    radial-gradient(circle at 8% 20%, rgba(16, 185, 129, 0.08), transparent 38%),
    radial-gradient(circle at 92% 80%, rgba(27, 54, 93, 0.07), transparent 40%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid var(--pro-border);
  border-bottom: 1px solid var(--pro-border);
}

.doc-showcase-stage {
  position: relative;
  padding: 12px 18px 34px 12px;
}

.doc-mini-sheet {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: 20px 26px 24px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12), 0 4px 14px rgba(15, 23, 42, 0.06);
  position: relative;
  z-index: 2;
}

.doc-mini-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.doc-mini-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.doc-mini-pill.is-verified {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.doc-mini-emblem {
  width: 96px;
  height: 96px;
  display: inline-block;
  margin-bottom: 8px;
  filter: drop-shadow(0 6px 12px rgba(16, 42, 84, 0.18));
}

.doc-mini-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.06em;
}

.doc-mini-sub {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1b365d;
  margin-bottom: 12px;
}

.doc-mini-id-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  color: #1e293b;
  margin-bottom: 12px;
}

.doc-mini-id-table td {
  padding: 3px 4px;
  border: none !important;
}

.doc-mini-id-table td:first-child {
  width: 38%;
  color: #475569;
}

.doc-mini-id-table td:nth-child(2) {
  width: 4%;
  text-align: center;
}

.doc-mini-double-rule {
  border-top: 2.5px solid #0f172a;
  border-bottom: 1px solid #0f172a;
  height: 3px;
  margin: 10px 0 12px;
}

.doc-mini-toc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
}

.doc-mini-rubric-float {
  position: relative;
  margin: -22px 0 0 auto;
  max-width: 320px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(27, 54, 93, 0.22);
  z-index: 4;
}

.rubric-float-head {
  background: #1b365d;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 7px 12px;
}

.rubric-float-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 0.6fr;
  font-size: 0.67rem;
}

.rubric-float-grid .rf-th {
  background: #eff6ff;
  color: #1b365d;
  font-weight: 800;
  padding: 4px 6px;
  border-bottom: 1px solid #cbd5e1;
}

.rubric-float-grid .rf-td {
  padding: 5px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.rubric-float-foot {
  padding: 5px 10px;
  background: #f8fafc;
  font-size: 0.66rem;
  color: #1b365d;
  font-weight: 600;
}

.doc-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--pro-border);
  border-radius: 14px;
  box-shadow: var(--pro-shadow-xs);
}

.doc-feature-item .dfi-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   7. PRO BUYER CHECKOUT STEPPER, TABBED PAYMENT GATEWAY & UPLOAD DROPZONE
   ========================================================================== */
.checkout-hero-banner {
  background:
    radial-gradient(circle at 88% 15%, rgba(52, 211, 153, 0.25), transparent 42%),
    linear-gradient(135deg, #042f2a 0%, #064e3b 55%, #047857 100%);
  box-shadow: 0 14px 32px rgba(4, 47, 42, 0.16);
}

.buyer-order-card {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: var(--pro-shadow-md) !important;
}

.order-card-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.order-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.order-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.order-step .step-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.order-step.is-active {
  color: #0f172a;
}

.order-step.is-active .step-dot {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.order-step.is-done {
  color: #047857;
}

.order-step.is-done .step-dot {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.order-step-line {
  flex: 1 1 auto;
  height: 2px;
  background: #e2e8f0;
  min-width: 18px;
}

.order-step-line.is-done {
  background: #10b981;
}

.pay-method-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.18s ease;
  cursor: pointer;
}

.pay-tab-btn:hover {
  border-color: #10b981;
  color: #047857;
  background: #f0fdf4;
}

.pay-tab-btn.active {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: #047857;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}

.pay-rec-tag {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  text-transform: uppercase;
}

.pay-tab-btn.active .pay-rec-tag {
  background: rgba(255, 255, 255, 0.22);
  color: #fef08a;
}

.pay-tab-pane {
  display: none;
}

.pay-tab-pane.active {
  display: block;
}

.proof-upload-zone {
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
  border: 2px dashed #6ee7b7;
  border-radius: 16px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.proof-upload-zone:hover {
  border-color: #059669;
  background: #ecfdf5;
}

.proof-zone-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #d1fae5;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

@media (max-width: 767.98px) {
  .order-stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .order-step-line {
    display: none;
  }
  .doc-mini-toc {
    grid-template-columns: 1fr;
  }
  .doc-mini-rubric-float {
    margin: 14px auto 0 auto;
    max-width: 100%;
  }
}

/* ==========================================================================
   7. REALISTIC MARKETPLACE CARDS, TOP/BOTTOM AJAX PAGINATION & FULL RESPONSIVE
   ========================================================================== */
html, body {
  overflow-x: clip !important;
  max-width: 100%;
}

/* Top Catalog Info, Sort & Left/Right Page Switcher Bar */
.catalog-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 18px;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.catalog-top-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #475569;
  font-weight: 500;
}

.catalog-top-summary strong {
  color: #0f172a;
  font-weight: 800;
}

.catalog-count-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
  flex-shrink: 0;
}

.catalog-top-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.catalog-sort-wrap > i {
  position: absolute;
  left: 12px;
  color: #059669;
  font-size: 0.78rem;
  pointer-events: none;
  z-index: 2;
}

.catalog-sort-select {
  padding: 6px 32px 6px 32px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 999px !important;
  min-height: 38px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-sort-select:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16) !important;
}

.catalog-top-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.catalog-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.catalog-arrow-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #047857 0%, #10b981 100%);
  border-color: #047857;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.26);
}

.catalog-arrow-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: #f8fafc;
  box-shadow: none;
}

.catalog-page-pill {
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.catalog-page-pill strong {
  color: #047857;
  font-weight: 800;
}

/* Smooth AJAX Transition State */
#modulesContainer {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#modulesContainer.is-ajax-loading {
  opacity: 0.42;
  pointer-events: none;
}

/* Realistic Tactile Module Cards */
#modulesContainer .module-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  overflow: visible !important;
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 26px -8px rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#modulesContainer .module-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 22px 44px -12px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(16, 185, 129, 0.22) !important;
  z-index: 10;
}

#modulesContainer .module-card.is-share-open {
  z-index: 60 !important;
  border-color: rgba(16, 185, 129, 0.52) !important;
  box-shadow: 0 22px 46px -12px rgba(6, 78, 59, 0.22), 0 0 0 1px rgba(16, 185, 129, 0.3) !important;
}

#modulesContainer .module-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #f1f5f9;
}

#modulesContainer .module-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.84) !important;
  backdrop-filter: blur(8px);
  color: #ffffff !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22) !important;
  letter-spacing: 0.02em;
  max-width: calc(100% - 76px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-card-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.34);
  z-index: 2;
}

.module-card-hover-cta {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 35%, rgba(6, 78, 59, 0.72) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 3;
}

.module-card-hover-cta span {
  background: rgba(255, 255, 255, 0.96);
  color: #065f46;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  transform: translateY(6px);
  transition: transform 0.22s ease;
}

#modulesContainer .module-card:hover .module-card-hover-cta {
  opacity: 1;
}

#modulesContainer .module-card:hover .module-card-hover-cta span {
  transform: translateY(0);
}

#modulesContainer .module-card-body {
  padding: 1rem 1.05rem 1.05rem !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

#modulesContainer .module-cat-pill {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  color: #047857 !important;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 0 !important;
  max-width: 78%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-rating-chip {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.module-subject-line {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  margin-top: 8px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#modulesContainer .module-card-title {
  font-size: 0.93rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  margin-bottom: 10px !important;
  min-height: 2.62em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#modulesContainer .module-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

#modulesContainer .module-card-title a:hover {
  color: #047857;
}

#modulesContainer .module-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

#modulesContainer .module-instructor-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  flex-shrink: 0;
  object-fit: cover;
}

#modulesContainer .module-instructor-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.module-instructor-role {
  font-size: 0.67rem;
  color: #64748b;
  line-height: 1.2;
}

#modulesContainer .module-meta-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  font-size: 0.69rem !important;
  font-weight: 600;
  color: #475569;
  margin-top: auto;
  margin-bottom: 12px;
}

#modulesContainer .module-meta-info > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#modulesContainer .module-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px !important;
  padding-top: 11px !important;
  border-top: 1px solid #f1f5f9 !important;
  margin-top: 0 !important;
  position: relative;
}

.module-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.module-utility-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-module-util {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0;
}

.btn-module-util:hover {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
  transform: translateY(-1px);
}

/* Share Trigger Button + Upward Popover Menu */
.module-share-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-module-share {
  height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.btn-module-share i {
  font-size: 0.74rem;
  color: #059669;
  transition: transform 0.22s ease, color 0.2s ease;
}

.btn-module-share:hover,
.module-share-wrap.is-open .btn-module-share {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px -4px rgba(5, 150, 105, 0.42);
  transform: translateY(-1px);
}

.btn-module-share:hover i,
.module-share-wrap.is-open .btn-module-share i {
  color: #ffffff !important;
  transform: scale(1.08);
}

.module-share-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 274px;
  max-width: calc(100vw - 32px);
  padding: 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 185, 129, 0.24);
  box-shadow: 0 20px 44px -8px rgba(15, 23, 42, 0.24), 0 4px 12px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s ease;
  z-index: 80;
}

.module-share-wrap.is-open .module-share-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.module-share-caret {
  position: absolute;
  bottom: -6px;
  right: 26px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid rgba(16, 185, 129, 0.24);
  border-bottom: 1px solid rgba(16, 185, 129, 0.24);
  transform: rotate(45deg);
  pointer-events: none;
}

.module-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 8px;
  margin-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #065f46;
}

.module-share-head i {
  margin-right: 5px;
  color: #10b981;
}

.module-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.module-share-item {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 11px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.73rem;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.module-share-item .msi-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.78rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.14);
  transition: transform 0.18s ease;
}

.module-share-item .msi-label {
  white-space: nowrap;
}

.module-share-item.is-fb .msi-icon {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bd9 100%);
}
.module-share-item.is-fb:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-2px);
}

.module-share-item.is-ig .msi-icon {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 52%, #8134af 100%);
}
.module-share-item.is-ig:hover {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: #be185d;
  transform: translateY(-2px);
}

.module-share-item.is-wa .msi-icon {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}
.module-share-item.is-wa:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
  transform: translateY(-2px);
}

.module-share-item.is-copy .msi-icon {
  background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}
.module-share-item.is-copy:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-2px);
}
.module-share-item.is-copy.is-copied {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}
.module-share-item.is-copy.is-copied .msi-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.module-share-item:hover .msi-icon {
  transform: scale(1.08);
}

#modulesContainer .module-price-box {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex-shrink: 0;
}

#modulesContainer .price-normal {
  font-size: 0.7rem !important;
  color: #94a3b8 !important;
  text-decoration: line-through;
  font-weight: 600;
}

#modulesContainer .price-discount {
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  color: #047857 !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.module-card-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.module-card-actions .btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px !important;
  font-size: 0.74rem !important;
  font-weight: 750 !important;
  border-radius: 11px !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  width: 100%;
}

.module-card-actions .btn-add-cart:hover {
  background: #d1fae5 !important;
  color: #065f46 !important;
}

.module-card-actions .btn-zamrud-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 11px !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  border-radius: 11px !important;
  white-space: nowrap;
  width: 100%;
}

/* Bottom Numbered Pagination Bar */
.catalog-pagination-bar {
  margin-top: 36px;
  padding: 16px 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.catalog-pagination-meta {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
}

.catalog-pagination-meta strong {
  color: #0f172a;
  font-weight: 800;
}

.catalog-pagination-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.page-num-btn,
.page-nav-btn {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-nav-btn {
  padding: 0 14px;
  background: #f8fafc;
}

.page-num-btn:hover:not(.active):not(:disabled),
.page-nav-btn:hover:not(:disabled) {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
  transform: translateY(-1px);
}

.page-num-btn.active {
  background: linear-gradient(135deg, #047857 0%, #10b981 100%);
  border-color: #047857;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.28);
}

.page-nav-btn:disabled,
.page-num-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 40px;
  color: #94a3b8;
  font-weight: 800;
}

/* Enhanced Responsive Breakpoints (Tablet & Mobile) */
@media (max-width: 991.98px) {
  .catalog-top-bar {
    padding: 12px 14px;
  }
  .catalog-pagination-bar {
    justify-content: center;
    text-align: center;
  }
  .jenjang-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 575.98px) {
  .jenjang-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .catalog-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .catalog-top-controls {
    justify-content: space-between;
    width: 100%;
  }
  .catalog-sort-wrap {
    flex: 1 1 auto;
  }
  .catalog-sort-select {
    width: 100%;
  }
  .catalog-pagination-bar {
    padding: 14px 12px;
  }
  .page-num-btn {
    height: 36px;
    min-width: 36px;
    padding: 0 8px;
    font-size: 0.8rem;
  }
  .page-nav-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
  .page-nav-btn span {
    display: none;
  }
  #modulesContainer .module-card-actions .btn-add-cart {
    padding: 7px 8px !important;
    font-size: 0.72rem !important;
  }
  .module-share-popover {
    width: 264px;
    max-width: calc(100vw - 32px);
    right: -2px;
  }
  .catalog-toolbar {
    padding: 14px !important;
  }
}

/* ==========================================================================
   8. WHATSAPP-STYLE LIVE CHAT WINDOW + FIREBASE CLOUD MESSAGING (FCM)
   ========================================================================== */
.wa-fab-btn {
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-size: 1.65rem !important;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.42) !important;
}

.wa-fab-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

.wa-fab-unread {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  z-index: 4;
}

.floating-chat-box.wa-chat-window {
  width: 378px !important;
  max-width: calc(100vw - 24px) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 24px 60px rgba(4, 47, 42, 0.28), 0 6px 20px rgba(15, 23, 42, 0.12) !important;
  background: #efeae2 !important;
  padding: 0 !important;
}

.wa-chat-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(52, 211, 153, 0.28), transparent 45%),
    linear-gradient(135deg, #043e35 0%, #066a59 52%, #0a8570 100%);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.wa-chat-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.wa-header-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.wa-header-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wa-avatar-online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #066a59;
}

.wa-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.wa-verified-icon {
  color: #22c55e;
  font-size: 0.9rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.wa-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(236, 253, 245, 0.9);
  margin-top: 2px;
}

.wa-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.24);
  flex-shrink: 0;
}

.wa-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wa-close-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

/* Warm WhatsApp Doodle Wallpaper Canvas */
.wa-chat-canvas {
  background-color: #efeae2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d6cec2' stroke-width='1.1' opacity='0.55'%3E%3Ccircle cx='20' cy='22' r='7'/%3E%3Cpath d='M78 18h14a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4h-6l-5 4v-4h-3a4 4 0 0 1-4-4v-8a4 4 0 0 1 4-4z'/%3E%3Cpath d='M22 86l5-9 5 9h-10z'/%3E%3Crect x='74' y='74' width='14' height='11' rx='3'/%3E%3Cpath d='M52 50c3-4 9-4 12 0'/%3E%3Ccircle cx='58' cy='58' r='2' fill='%23d6cec2'/%3E%3C/g%3E%3C/svg%3E");
  min-height: 430px;
  max-height: 74vh;
  display: flex;
  flex-direction: column;
}

/* Step 1: Floating Pre-Chat Identity Card (Reference Match) */
.wa-prechat-wrap {
  padding: 16px;
}

.wa-prechat-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  padding: 18px 18px 15px;
  box-shadow: 0 14px 36px rgba(4, 47, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.wa-info-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
  border: 1px solid #a7f3d0;
  border-radius: 15px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.wa-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.34), 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.wa-info-heading {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #065f46;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.wa-info-sub {
  font-size: 0.78rem;
  line-height: 1.42;
  color: #1e293b;
  font-weight: 600;
}

.wa-field-group {
  margin-bottom: 13px;
}

.wa-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.wa-optional-tag {
  font-size: 0.67rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
}

.wa-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.wa-input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  font-size: 0.92rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.wa-input-icon.is-wa {
  color: #16a34a;
  font-size: 1rem;
}

.wa-field-input,
.wa-field-select {
  width: 100%;
  height: 45px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wa-field-input.has-icon {
  padding-left: 40px;
}

.wa-field-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.wa-field-input:focus,
.wa-field-select:focus {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.16);
}

.wa-input-wrap:focus-within .wa-input-icon {
  color: #059669;
}

.wa-topic-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.wa-topic-pill {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  border-radius: 11px;
  padding: 7px 6px;
  font-size: 0.71rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.wa-topic-pill:hover {
  border-color: #6ee7b7;
  background: #ecfdf5;
  color: #047857;
}

.wa-topic-pill.active {
  border-color: #059669;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.14);
}

.wa-start-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981 0%, #059669 52%, #047857 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(4, 120, 87, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wa-start-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.wa-start-btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 16px 28px rgba(4, 120, 87, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: brightness(1.04);
}

.wa-start-btn:hover:not(:disabled) .wa-start-arrow {
  transform: translateX(3px);
}

.wa-start-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.wa-trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.69rem;
  font-weight: 700;
  color: #64748b;
}

.wa-trust-row > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.wa-trust-row i {
  color: #059669;
}

/* Step 2: Active WhatsApp Chat Room */
.wa-active-wrap {
  display: flex;
  flex-direction: column;
  height: 455px;
  max-height: 70vh;
}

.wa-session-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
}

.wa-fcm-pill {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wa-fcm-pill.is-active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.wa-end-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
}

.wa-end-btn:hover {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.wa-messages-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-msg-row {
  display: flex;
}

.wa-msg-row.is-in {
  justify-content: flex-start;
}

.wa-msg-row.is-out {
  justify-content: flex-end;
}

.wa-msg-bubble {
  max-width: 84%;
  padding: 9px 12px 6px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.48;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
  word-break: break-word;
}

.wa-bubble-in {
  background: #ffffff;
  border-top-left-radius: 4px;
}

.wa-bubble-out {
  background: #d9fdd3;
  border-top-right-radius: 4px;
}

.wa-msg-sender {
  font-size: 0.7rem;
  font-weight: 800;
  color: #047857;
  margin-bottom: 2px;
}

.wa-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
  font-size: 0.65rem;
  color: #64748b;
}

.wa-msg-tick {
  font-size: 0.68rem;
  color: #64748b;
}

.wa-msg-tick.is-read {
  color: #0284c7;
}

.wa-fcm-sent-tag {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
}

.wa-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 12px 8px;
}

.wa-quick-chip {
  border: 1px solid #a7f3d0;
  background: rgba(255, 255, 255, 0.92);
  color: #065f46;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.wa-quick-chip:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.wa-composer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f0f2f5;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.wa-composer-input {
  flex: 1 1 auto;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0 15px;
  font-size: 0.84rem;
  color: #0f172a;
  outline: none;
}

.wa-composer-input:focus {
  border-color: #10b981;
}

.wa-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0d9488 0%, #047857 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

.wa-send-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

@media (max-width: 575.98px) {
  .floating-chat-box.wa-chat-window {
    width: calc(100vw - 20px) !important;
    right: 10px !important;
    bottom: 76px !important;
  }
}

/* ==========================================================================
   9. REAL-TIME TYPING INDICATOR BUBBLE ANIMATION (VISITOR & ADMIN CONSOLE)
   ========================================================================== */
.wa-typing-bubble {
  padding: 9px 14px !important;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.wa-typing-dots-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wa-typing-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  font-style: italic;
}

.wa-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 14px;
}

.wa-typing-dots i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #059669;
  animation: waTypingBounce 1.25s infinite ease-in-out both;
}

.wa-typing-dots i:nth-child(1) { animation-delay: -0.28s; }
.wa-typing-dots i:nth-child(2) { animation-delay: -0.14s; }
.wa-typing-dots i:nth-child(3) { animation-delay: 0s; }

@keyframes waTypingBounce {
  0%, 80%, 100% {
    transform: translateY(0) scale(0.75);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-5px) scale(1.08);
    opacity: 1;
  }
}

.wa-typing-dots.is-mini i {
  width: 5px;
  height: 5px;
}

/* ==========================================================================
   10. COMPACT UNIFORM RIGHT-ALIGNED FLOATING DOCK (BACK TO TOP + LIVE CHAT)
   ========================================================================== */
.floating-actions-container {
  position: fixed !important;
  right: 10px !important;
  bottom: 16px !important;
  z-index: 1050 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

#backToTopBtn,
.floating-chat-btn,
.floating-chat-btn.wa-fab-btn {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

#backToTopBtn {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(16, 185, 129, 0.34) !important;
  color: #047857 !important;
  font-size: 0.92rem !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.13) !important;
}

#backToTopBtn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.32) !important;
}

.floating-chat-btn.wa-fab-btn {
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%) !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  font-size: 1.22rem !important;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.36) !important;
}

.floating-chat-btn.wa-fab-btn:hover {
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.44) !important;
}

.floating-chat-btn.wa-fab-btn .chat-pulse-ring {
  border: 1.5px solid rgba(16, 185, 129, 0.72) !important;
}

.floating-chat-btn.wa-fab-btn .wa-fab-unread {
  top: -4px !important;
  right: -4px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  font-size: 0.62rem !important;
  line-height: 18px !important;
}

.floating-chat-box.wa-chat-window {
  right: 10px !important;
  bottom: 68px !important;
}

@media (max-width: 1199.98px) {
  .floating-actions-container {
    right: 8px !important;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 8px !important;
  }
  #backToTopBtn,
  .floating-chat-btn,
  .floating-chat-btn.wa-fab-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  #backToTopBtn {
    font-size: 0.88rem !important;
  }
  .floating-chat-btn.wa-fab-btn {
    font-size: 1.15rem !important;
  }
  .floating-chat-box.wa-chat-window {
    right: 8px !important;
    bottom: calc(124px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 575.98px) {
  .floating-actions-container {
    right: 8px !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 7px !important;
  }
  #backToTopBtn,
  .floating-chat-btn,
  .floating-chat-btn.wa-fab-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
  #backToTopBtn {
    font-size: 0.84rem !important;
  }
  .floating-chat-btn.wa-fab-btn {
    font-size: 1.08rem !important;
  }
  .floating-chat-box.wa-chat-window {
    width: calc(100vw - 16px) !important;
    right: 8px !important;
    bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ==========================================================================
   11. FLOATING CHAT CALLOUT ("Butuh bantuan? hubungi kami !") EMERGING FROM BUTTON
   ========================================================================== */
.wa-fab-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-fab-shell .floating-chat-btn.wa-fab-btn {
  position: relative;
  z-index: 2;
}

.wa-fab-callout {
  position: absolute;
  right: 16px;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(16, 185, 129, 0.36);
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
  color: #064e3b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(4, 120, 87, 0.2), 0 2px 8px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(20px) scaleX(0.25);
  transform-origin: right center;
  transition:
    opacity 0.34s ease,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.34s ease,
    box-shadow 0.2s ease;
}

.wa-fab-callout.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0) scaleX(1);
}

.wa-fab-callout:hover {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: rgba(5, 150, 105, 0.55);
  box-shadow: 0 14px 30px rgba(4, 120, 87, 0.28);
}

.wa-callout-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
  animation: waCalloutPulse 1.6s infinite ease-in-out;
}

@keyframes waCalloutPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  }
  50% {
    transform: scale(1.16);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08);
  }
}

@media (max-width: 575.98px) {
  .wa-fab-callout {
    right: 14px;
    height: 34px;
    padding: 0 30px 0 12px;
    font-size: 0.72rem;
    gap: 6px;
    max-width: calc(100vw - 30px);
  }
  .wa-callout-dot {
    width: 7px;
    height: 7px;
  }
}

/* ==========================================================================
   12. VOUCHER DISKON PEMBAYARAN & KERANJANG (ULTRA-MODERN & RESPONSIVE)
   ========================================================================== */
.order-price-breakdown {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
}

.border-dashed {
  border-top-style: dashed !important;
  border-color: #cbd5e1 !important;
}

.voucher-checkout-card {
  position: relative;
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%, #ecfdf5 100%);
  border: 1.5px dashed rgba(16, 185, 129, 0.45);
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.06);
}

.voucher-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.voucher-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.28);
}

.voucher-card-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.2;
}

.voucher-card-sub {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.3;
}

.voucher-promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  background: #ffffff;
  color: #047857;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
  transition: all 0.2s ease;
}

.voucher-promo-chip i {
  color: #f59e0b;
}

.voucher-promo-chip strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  color: #065f46;
}

.voucher-promo-chip:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.28);
}

.voucher-promo-chip:hover strong,
.voucher-promo-chip:hover i {
  color: #fef08a;
}

.voucher-input-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.voucher-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.voucher-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-size: 0.82rem;
  pointer-events: none;
}

.voucher-code-input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 36px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.voucher-code-input::placeholder {
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: #94a3b8;
  font-size: 0.8rem;
}

.voucher-code-input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.btn-voucher-apply {
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
  transition: all 0.2s ease;
}

.btn-voucher-apply:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.36);
}

.btn-voucher-apply:disabled {
  opacity: 0.7;
  cursor: wait;
}

.voucher-feedback-msg {
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 10px;
}

.voucher-feedback-msg.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.voucher-feedback-msg.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.voucher-applied-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 13px;
  background: #ffffff;
  border: 1.5px solid #6ee7b7;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.12);
}

.voucher-applied-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.voucher-applied-check {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.voucher-code-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 7px;
  background: #064e3b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.voucher-saving-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
  font-size: 0.73rem;
  font-weight: 800;
}

.voucher-applied-desc {
  font-size: 0.73rem;
  color: #475569;
  margin-top: 3px;
  line-height: 1.42;
  white-space: normal;
  word-break: break-word;
}

.btn-voucher-remove {
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  font-size: 0.74rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.btn-voucher-remove:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

/* Cart Offcanvas Compact Voucher Box */
.cart-voucher-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1.5px dashed rgba(16, 185, 129, 0.42);
  border-radius: 13px;
  padding: 10px 12px;
}

.cart-voucher-input-row {
  display: flex;
  gap: 6px;
}

.cart-voucher-input-row input {
  border-radius: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cart-voucher-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #a7f3d0;
}

@media (max-width: 575.98px) {
  .voucher-checkout-card {
    padding: 12px;
  }
  .voucher-input-group {
    flex-direction: column;
  }
  .btn-voucher-apply {
    width: 100%;
  }
  .voucher-applied-ticket {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-voucher-remove {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   13. FOOTER BOTTOM BAR: COPYRIGHT + RESPONSIVE LIVE VISITOR STATISTICS
   ========================================================================== */
.footer-bottom-enhanced {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px !important;
  margin-top: 26px !important;
  border-top: 1px solid rgba(167, 243, 208, 0.14) !important;
}

.footer-copyright-text {
  font-size: 0.84rem;
  color: #cbd5e1;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-copyright-text strong {
  color: #ffffff;
  font-weight: 800;
}

.footer-visitor-stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(110, 231, 183, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.fvs-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6ee7b7;
  padding-right: 4px;
  white-space: nowrap;
}

.fvs-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28);
  animation: fvsPulse 1.8s infinite ease-in-out;
}

@keyframes fvsPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.08);
  }
}

.fvs-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.fvs-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 10px;
  background: rgba(15, 46, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.fvs-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 183, 0.4);
  background: rgba(6, 78, 59, 0.85);
}

.fvs-pill.is-online {
  border-color: rgba(52, 211, 153, 0.34);
  background: rgba(6, 95, 70, 0.45);
}

.fvs-pill.is-total {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(120, 53, 15, 0.28);
}

.fvs-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.fvs-pill.is-total .fvs-label {
  color: #fde68a;
}

.fvs-value {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 991.98px) {
  .footer-bottom-enhanced {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer-visitor-stats {
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
  }
}

@media (max-width: 575.98px) {
  .footer-visitor-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 11px;
  }
  .fvs-heading {
    justify-content: center;
    padding-right: 0;
  }
  .fvs-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
  }
  .fvs-pill {
    justify-content: space-between;
    padding: 7px 10px;
  }
  .footer-copyright-text {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   14. SINGLE-SELECT PAYMENT METHOD DROPDOWN (DEFAULT QRIS)
   ========================================================================== */
.pay-select-wrap {
  position: relative;
}

.pay-select-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #059669;
  font-size: 0.92rem;
  pointer-events: none;
  z-index: 2;
}

.pay-method-select {
  width: 100% !important;
  max-width: 100% !important;
  height: 46px !important;
  padding-left: 40px !important;
  padding-right: 36px !important;
  border-radius: 13px !important;
  border: 1.5px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05) !important;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.payment-channels-box .badge {
  white-space: normal !important;
  text-align: left;
  line-height: 1.35;
  max-width: 100%;
}

.pay-method-select:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.16) !important;
}

.pay-single-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #059669 !important;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.pay-single-account-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.04em;
}

@media (max-width: 575.98px) {
  .pay-method-select {
    font-size: 0.82rem !important;
    height: 44px !important;
  }
  .pay-single-detail-card {
    padding: 14px 15px;
  }
  .pay-single-account-num {
    font-size: 1.08rem;
  }
}

/* ==========================================================================
   15. ORDERS INNER SUB-TABS & SINGLE-CTA QRIS CARD
   ========================================================================== */
.orders-subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.orders-subtabs .nav-link {
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  transition: all 0.2s ease;
}

.orders-subtabs .nav-link:hover {
  color: #047857;
  background: #f0fdf4;
}

.orders-subtabs .nav-link.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.24);
}

.orders-subtabs .nav-link.active .badge.bg-success-subtle {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.qris-single-cta-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #a7f3d0;
  border-left: 4px solid #059669 !important;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.07);
}

.qris-single-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.24);
}

.qris-single-cta-action .js-btn-pay-qris-tab {
  min-width: 142px;
  font-size: 0.92rem;
}

@media (max-width: 767.98px) {
  .orders-subtabs {
    display: flex;
    width: 100%;
  }
  .orders-subtabs .nav-item {
    flex: 1 1 auto;
  }
  .orders-subtabs .nav-link {
    width: 100%;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .qris-single-cta-card {
    padding: 15px;
  }
  .qris-single-cta-action,
  .qris-single-cta-action .js-btn-pay-qris-tab {
    width: 100%;
  }
}
