@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ========================================================
   1. CORE DESIGN SYSTEM & CUSTOM PROPERTIES
   ======================================================== */

:root {
  /* Default Theme: Midnight */
  --bg-color: #030712;
  --text-color: #f3f4f6;
  --text-muted: #9ca3af;
  --card-bg: rgba(17, 24, 39, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(31, 41, 55, 0.85);
  --primary-color: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.3);
  --primary-hover: #4f46e5;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Theme: Dark AMOLED (Pure Black) */
.theme-dark-amoled {
  --bg-color: #000000;
  --text-color: #e5e5e5;
  --text-muted: #a1a1aa;
  --card-bg: rgba(18, 18, 18, 0.8);
  --card-border: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(26, 26, 26, 0.9);
  --primary-color: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --primary-hover: #2563eb;
  --accent-color: #38bdf8;
}

/* Theme: Emerald (Green Mint) */
.theme-emerald {
  --bg-color: #022c22;
  --text-color: #ecfdf5;
  --text-muted: #a7f3d0;
  --card-bg: rgba(6, 78, 59, 0.6);
  --card-border: rgba(16, 185, 129, 0.15);
  --card-hover: rgba(6, 95, 70, 0.85);
  --primary-color: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.3);
  --primary-hover: #059669;
  --accent-color: #34d399;
}

/* Theme: Ocean (Deep Blue) */
.theme-ocean {
  --bg-color: #082f49;
  --text-color: #e0f2fe;
  --text-muted: #bae6fd;
  --card-bg: rgba(12, 74, 110, 0.6);
  --card-border: rgba(14, 165, 233, 0.15);
  --card-hover: rgba(3, 105, 161, 0.85);
  --primary-color: #0ea5e9;
  --primary-glow: rgba(14, 165, 233, 0.3);
  --primary-hover: #0284c7;
  --accent-color: #38bdf8;
}

/* Theme: Dark Pink (Cyberpunk) */
.theme-dark-pink {
  --bg-color: #1c001a;
  --text-color: #fdf2f8;
  --text-muted: #fbcfe8;
  --card-bg: rgba(43, 0, 40, 0.6);
  --card-border: rgba(236, 72, 153, 0.15);
  --card-hover: rgba(61, 0, 56, 0.85);
  --primary-color: #ec4899;
  --primary-glow: rgba(236, 72, 153, 0.3);
  --primary-hover: #db2777;
  --accent-color: #f472b6;
}

/* ========================================================
   2. GENERAL RESET & BASE STYLES
   ======================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Backdrop Blobs */
.background-glow {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  transition: all 0.5s ease;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-color);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-color);
  bottom: -100px;
  right: -100px;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: #a855f7;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
}

/* ========================================================
   3. MODERN NAVBAR & HEADER
   ======================================================== */

.top-bar-marquee {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--card-border);
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  gap: 40px;
  animation: marquee 25s linear infinite;
  padding-left: 100%;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-color);
  font-weight: 500;
}

.marquee-item i {
  font-size: 14px;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

header {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo-link span {
  background: linear-gradient(135deg, var(--text-color) 30%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn {
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

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

/* ========================================================
   4. MAIN CONTAINER & HERO SECTION
   ======================================================== */

main {
  flex: 1;
  padding-top: 130px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.hero {
  text-align: center;
  padding: 40px 0 10px;
  position: relative;
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 24px;
}

.badge-trust i {
  color: var(--primary-color);
}

.hero-title {
  font-size: 48px;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #fff 40%, var(--primary-color) 80%, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

.btn-primary {
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--primary-glow);
  cursor: pointer;
}

.btn-secondary {
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  padding: 12px 28px;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-primary:active, .btn-secondary:active {
  transform: translateY(0);
}

.trust-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-pill {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.feature-pill-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary-color);
}

.feature-pill-info h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-pill-info p {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========================================================
   5. LIVE FEED & SERVICES LAYOUT
   ======================================================== */

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr;
  }
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 30px;
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.feed-title-wrap h3 {
  font-size: 16px;
  font-weight: 700;
}

.feed-title-wrap p {
  font-size: 11px;
  color: var(--text-muted);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success-color);
  padding: 4px 10px;
  border-radius: 100px;
}

.dot-pulse {
  width: 6px;
  height: 6px;
  background: var(--success-color);
  border-radius: 50%;
  position: relative;
}

.dot-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--success-color);
  animation: pulse 1.5s infinite ease-in-out;
  opacity: 0;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.stat-box .label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.stat-box .val {
  font-size: 16px;
  font-weight: 800;
}

.stat-box.green .val { color: var(--success-color); }
.stat-box.cyan .val { color: var(--accent-color); }

.orders-list {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
}

.orders-list h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.orders-list h4 i {
  color: var(--primary-color);
}

.orders-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

.order-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-inv {
  font-size: 12px;
  font-weight: 700;
}

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

.badge-status {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-status.rejected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Services section */
.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.services-wrapper h2 {
  font-size: 24px;
  font-weight: 800;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.service-title h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.service-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.service-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
}

.service-pricing .price-label {
  font-size: 11px;
  color: var(--text-muted);
}

.service-pricing .price-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--success-color);
}

.service-buy-btn {
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ========================================================
   6. INTERACTIVE CHECKOUT MODAL
   ======================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0d1117;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.modal-title-wrap h3 {
  font-size: 15px;
  font-weight: 700;
}

.modal-title-wrap p {
  font-size: 10px;
  color: var(--text-muted);
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.input-container {
  position: relative;
  width: 100%;
}

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

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px var(--primary-glow);
}

.checkout-summary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}

.summary-row:last-child {
  margin-bottom: 0;
  border-top: 1px solid var(--card-border);
  padding-top: 8px;
  margin-top: 8px;
}

.summary-row .lbl { color: var(--text-muted); }
.summary-row .val { font-weight: 700; }
.summary-row .total-val { font-size: 14px; color: var(--success-color); }

/* QRIS view inside checkout */
.qris-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qris-badge {
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  width: 100px;
}

.qris-badge img {
  width: 100%;
  height: auto;
}

.qr-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.qr-box img {
  width: 200px;
  height: 200px;
  display: block;
}

.payment-timer {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.payment-timer span {
  font-weight: 700;
  color: var(--warning-color);
}

.payment-status-message {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  margin-top: 8px;
}

.spinner-mini {
  width: 16px;
  height: 16px;
  border: 2px border var(--primary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-demo-pay {
  margin-top: 14px;
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.2);
}

/* Success View */
.success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--success-color);
  color: var(--success-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  box-shadow: 0 0 20px var(--success-glow);
}

.otp-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed var(--success-color);
  border-radius: 12px;
  padding: 14px;
  width: 100%;
  margin: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.otp-code {
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--success-color);
}

.btn-copy-otp {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-copy-otp:hover {
  background: rgba(255, 255, 255, 0.1);
}

.success-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================================
   7. CHAT WIDGET & FOOTER
   ======================================================== */

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-bubble {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  max-width: 200px;
}

.chat-bubble .title {
  font-weight: 700;
}

.chat-bubble .sub {
  font-size: 10px;
  color: var(--text-muted);
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-btn-wa {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #128c7e;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(18, 140, 126, 0.3);
}

.chat-btn-main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 25px var(--primary-glow);
  transition: all 0.2s ease;
}

.chat-btn-main:hover {
  transform: translateY(-2px);
}

footer {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 20, 0.8) 100%);
  border-top: 1px solid var(--card-border);
  padding: 30px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  font-weight: 700;
  font-size: 13px;
}

.footer-brand span {
  color: var(--primary-color);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
}

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

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

/* ========================================================
   8. STOCK MODAL & THEMING CONTROLLER
   ======================================================== */

.theme-switcher-float {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 98;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.theme-btn-main {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-options-list {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.theme-opt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  width: 120px;
}

.theme-opt-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Stock status custom container */
.stock-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stock-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stock-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}

.stock-bar-outer {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.stock-bar-inner {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.stock-bar-inner.high { background: var(--success-color); }
.stock-bar-inner.med { background: var(--warning-color); }
.stock-bar-inner.low { background: var(--danger-color); }
