/* ================================================
   LANGGANIN — Premium UI Design v4
   Bold · Professional · Responsive
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand Gradient: Indigo → Violet */
  --bg:        #f5f7ff;
  --bg2:       #ffffff;
  --bg3:       #eef0fb;
  --border:    #e2e5f1;
  --border2:   #c7cce8;
  --text:      #0f172a;
  --text2:     #1e293b;
  --text-muted: #64748b;

  /* Accent — Indigo */
  --accent:       #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #eef2ff;
  --accent-muted: rgba(99,102,241,0.12);

  /* Violet */
  --violet:       #8b5cf6;
  --violet-light: #ede9fe;

  /* Gradient */
  --gradient:       linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(139,92,246,0.06) 100%);

  /* Status */
  --green:       #10b981;
  --green-light: #d1fae5;
  --red:         #ef4444;
  --red-light:   #fee2e2;
  --yellow:      #f59e0b;
  --yellow-light:#fef3c7;
  --blue:        #3b82f6;
  --purple:      #8b5cf6;
  --purple-light:#ede9fe;

  /* Radius & Shadows */
  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow:    0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 24px rgba(15,23,42,0.1), 0 4px 8px rgba(15,23,42,0.04);
  --shadow-xl: 0 24px 48px rgba(15,23,42,0.12), 0 8px 16px rgba(15,23,42,0.06);
  --shadow-accent: 0 8px 24px rgba(99,102,241,0.28);
  --trans:     all 0.22s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, button, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: #c7cce8; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================
   NAVBAR - Glass Premium Design
   ============================ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 68px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,229,241,0.8);
  box-shadow: 0 1px 0 rgba(99,102,241,0.06), 0 2px 12px rgba(15,23,42,0.04);
}
.navbar-brand {
  font-size: 1.2rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 0.5rem;
  transition: var(--trans);
}
.navbar-brand:hover { opacity: 0.85; }
.navbar-brand em { 
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal; 
}
.navbar-menu { display: flex; align-items: center; gap: 0.25rem; }
.navbar-menu a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); transition: var(--trans);
}
.navbar-menu a:hover {
  color: var(--text); background: var(--accent-muted);
}
.navbar-menu a.active {
  color: var(--accent); background: var(--accent-light);
  font-weight: 600;
}
.nav-balance {
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  color: var(--accent);
  border-radius: 99px;
  font-size: 0.825rem; font-weight: 700;
  border: 1px solid rgba(99,102,241,0.2);
  margin-left: 0.25rem;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 4.5px;
  cursor: pointer; padding: 8px; background: none; border: none;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--bg3); }
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 99px; transition: var(--trans);
}
  background: var(--green-light);
  color: var(--green);
  border-radius: 99px;
  font-size: 0.875rem; font-weight: 600;
  border: 1px solid rgba(16,185,129,0.2);
  margin-left: 0.5rem;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--bg3); }
.nav-toggle span {
  display: block; width: 22px; height: 2.5px;
  background: var(--text); border-radius: 2px; transition: var(--trans);
}

/* ============================
   BUTTONS - Premium Style
   ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: var(--trans); white-space: nowrap;
  text-decoration: none; line-height: 1.4;
  position: relative; overflow: hidden;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed !important; transform: none !important; }

.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.btn-primary:hover:not(:disabled) {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-secondary {
  background: var(--bg2);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover:not(:disabled) { 
  background: var(--bg3);
  border-color: var(--border2);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { 
  background: var(--accent-light); 
  transform: translateY(-1px);
}
.btn-danger {
  background: var(--red-light);
  color: var(--red);
  border: 1.5px solid rgba(239,68,68,0.25);
}
.btn-danger:hover { background: #fecaca; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-sm  { padding: 0.45rem 0.9rem; font-size: 0.825rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: 0.8rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* ============================
   FORMS - Premium Design
   ============================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.825rem; font-weight: 600;
  color: var(--text2); 
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.9rem;
  transition: var(--trans); outline: none;
}
.form-input::placeholder { color: #aab0cc; }
.form-input:focus {
  border-color: var(--accent);
  background: var(--bg2);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-input.error { border-color: var(--red); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ============================
   BADGES - Modern
   ============================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 11px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.03em; white-space: nowrap;
}
.badge-success { background: #d1fae5; color: #059669; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-danger  { background: #fee2e2; color: #dc2626; }
.badge-info    { background: #dbeafe; color: #2563eb; }
.badge-purple  { background: var(--accent-light); color: var(--accent); }
.badge-muted   { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================
   ALERTS - Clean Modern Design
   ============================ */
.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  border: 1.5px solid transparent;
  line-height: 1.5;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info    { background: var(--accent-light); color: #3730a3; border-color: rgba(99,102,241,0.3); }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* ============================
   LOADING - Smooth Spinner
   ============================ */
.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  margin: 3rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1rem;
  min-height: 40vh; color: var(--text-muted); font-size: 0.875rem;
}

/* ============================
   MODAL - Premium Design
   ============================ */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(10,14,30,0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
}
.modal.active { display: flex; }
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: popUp 0.26s cubic-bezier(.34,1.56,.64,1);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg2); z-index: 1;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.modal-close {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm); 
  background: var(--bg3);
  border: 1px solid var(--border); 
  cursor: pointer; 
  color: var(--text-muted); 
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.modal-close:hover { 
  background: var(--red-light); 
  color: var(--red); 
  border-color: rgba(239,68,68,0.3);
}
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 0.75rem; justify-content: flex-end;
}

@keyframes popUp {
  from { transform: scale(0.94) translateY(12px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { 
  from { transform: translateY(16px); opacity: 0; } 
  to { transform: translateY(0); opacity: 1; } 
}
@keyframes fadeInUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
  border-color: var(--border2);
}
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 0.75rem; justify-content: flex-end;
}

@keyframes popUp {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { 
  from { transform: translateY(20px); opacity: 0; } 
  to { transform: translateY(0); opacity: 1; } 
}

/* ============================
   TOAST - Premium Notifications
   ============================ */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  z-index: 9999; pointer-events: none;
}
.toast {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
  min-width: 260px; max-width: 320px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.15) inset;
  display: flex; align-items: center; gap: 0.75rem;
  animation: slideUp 0.28s cubic-bezier(.34,1.56,.64,1);
  pointer-events: auto; backdrop-filter: blur(8px);
}
.toast-success { background: #064e3b; color: #a7f3d0; }
.toast-error   { background: #7f1d1d; color: #fecaca; }
.toast-info    { background: #312e81; color: #c7d2fe; }

/* ============================
   LAYOUT - Modern Spacing
   ============================ */
.container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}
.page { padding: 3rem 0; min-height: calc(100vh - 68px); }
.page-header { margin-bottom: 2.5rem; }
.page-header h1 { 
  font-size: 1.875rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 0.4rem;
}
.page-header p  { 
  color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6;
}
.section-title  { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.01em; }

/* ============================
   STAT CARDS - Premium Design
   ============================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: var(--trans);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0; transition: var(--trans);
}
.stat-card:hover { 
  border-color: rgba(99,102,241,0.3); 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-lg);
}
.stat-card:hover::before { opacity: 1; }
.stat-label {
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem;
}
.stat-value {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.stat-value.green  { color: var(--green); }
.stat-value.yellow { color: var(--yellow); }
.stat-value.blue   { color: var(--blue); }
.stat-value.purple { color: var(--accent); }

/* ============================
   PRODUCT CARDS - Premium Design
   ============================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--bg2); 
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); 
  overflow: hidden;
  transition: var(--trans); 
  display: flex; 
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
}
.product-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(99,102,241,0.1);
}
/* Product image */
.product-image {
  width: 100%;
  height: 155px;
  overflow: hidden;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  border-bottom: 1.5px solid var(--border);
  transition: var(--trans);
  position: relative;
}
.product-image::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: var(--trans);
}
.product-card:hover .product-image::after { opacity: 0.04; }
.product-image img {
  max-height: 100%;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: var(--trans);
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
  position: relative; z-index: 1;
}
.product-card:hover .product-image img {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 20px rgba(99,102,241,0.2));
}
/* Product content */
.product-card > *:not(.product-image) {
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}
.product-card > .product-cat {
  padding-top: 1.1rem;
}
.product-card > .product-footer {
  padding-bottom: 1.4rem;
}
.product-card::after {
  content: '→';
  position: absolute; right: 1.25rem; top: 1.25rem;
  font-size: 1rem; color: #fff; opacity: 0;
  transition: var(--trans);
  background: var(--gradient);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
  z-index: 2;
}
.product-card:hover::after { opacity: 1; }
.product-name {
  font-size: 1rem; font-weight: 700;
  letter-spacing: -0.015em; 
  padding-right: 2rem;
  margin-top: 0.4rem;
  color: var(--text);
}
.product-cat {
  font-size: 0.7rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}
.product-desc {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.4rem;
  margin-bottom: 0.9rem;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.variant-count {
  font-size: 0.72rem; font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 3px 9px; border-radius: 999px;
}
.product-price-from {
  font-size: 0.8rem; color: var(--text-muted);
}
.product-price-from strong {
  color: var(--green); font-weight: 700; font-size: 0.925rem;
}

/* ============================
   VARIANT POPUP MODAL - Premium Design
   ============================ */
.vmodal {
  position: fixed; inset: 0; z-index: 900;
  display: none; align-items: center; justify-content: center;
  background: rgba(10,14,30,0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
}
.vmodal.active { display: flex; }
.vmodal-box {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 540px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: popUp 0.26s cubic-bezier(.34,1.56,.64,1);
}
.vmodal-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.5rem; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.vmodal-title { 
  font-size: 1.1rem; font-weight: 800; 
  letter-spacing: -0.02em; color: var(--text);
}
.vmodal-cat { 
  font-size: 0.7rem; font-weight: 700; 
  color: var(--accent); text-transform: uppercase; 
  letter-spacing: 0.07em; margin-top: 0.2rem; 
}
.vmodal-close {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: var(--radius-sm); 
  background: var(--bg3);
  border: 1px solid var(--border); 
  cursor: pointer; 
  color: var(--text-muted); 
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.vmodal-close:hover { 
  background: var(--red-light); 
  color: var(--red); 
  border-color: rgba(239,68,68,0.3);
}
.vmodal-desc {
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.6;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--gradient-subtle);
}
.vmodal-body {
  overflow-y: auto; flex: 1;
  padding: 0.75rem 1.5rem 1.5rem;
}
.vmodal-body::-webkit-scrollbar { width: 5px; }
.vmodal-body::-webkit-scrollbar-track { background: var(--bg3); }
.vmodal-body::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }
.vmodal-body::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================
   VARIANT ITEMS - Premium List
   ============================ */
.variant-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.variant-item:last-child { border-bottom: none; }
.variant-name { 
  font-size: 0.925rem; font-weight: 700; 
  margin-bottom: 0.45rem; color: var(--text);
}
.variant-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.65rem;
}
.variant-meta span {
  font-size: 0.72rem; color: var(--text-muted);
  background: var(--bg3);
  padding: 2px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 500;
}
.variant-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.price-group { flex: 1; }
.price-sell {
  font-size: 1.1rem; font-weight: 800;
  color: var(--green); letter-spacing: -0.02em;
}
.price-original {
  font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through;
  margin-left: 5px;
}
.btn-buy {
  padding: 0.5rem 1.2rem;
  background: var(--gradient); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: var(--trans); 
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
  flex-shrink: 0;
}
.btn-buy:hover { 
  background: var(--gradient-hover);
  transform: translateY(-2px); 
  box-shadow: 0 6px 18px rgba(99,102,241,0.4);
}
.btn-buy:disabled { 
  opacity: 0.4; cursor: not-allowed; 
  transform: none; box-shadow: none; 
}

/* ============================
   TABLE - Clean Modern Design
   ============================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--bg2);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 0.9rem 1.1rem; text-align: left;
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--bg3);
  border-bottom: 1.5px solid var(--border); white-space: nowrap;
}
tbody td {
  padding: 0.9rem 1.1rem; font-size: 0.875rem;
  border-bottom: 1px solid var(--border); vertical-align: middle;
  color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(99,102,241,0.03); }

/* ============================
   AUTH PAGES - Split Layout Design
   ============================ */
.auth-wrap {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left panel - brand/visual */
.auth-wrap::before {
  content: '';
  background: var(--gradient);
  position: relative;
}

/* Override with actual layout */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 2rem 1rem;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(99,102,241,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(139,92,246,0.08) 0%, transparent 45%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(99,102,241,0.04) 0%, transparent 60%);
}
.auth-card {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.75rem 2.5rem;
  width: 100%; max-width: 430px; 
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(99,102,241,0.06);
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient);
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo   { 
  font-size: 1.5rem; font-weight: 900; 
  letter-spacing: -0.03em; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.auth-logo em { 
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal; 
}
.auth-tagline { 
  color: var(--text-muted); font-size: 0.9rem; 
  margin-top: 0.5rem; line-height: 1.5;
}
.auth-footer {
  text-align: center; margin-top: 1.5rem;
  color: var(--text-muted); font-size: 0.875rem;
}
.auth-footer a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ============================
   LANDING PAGE - Bold Hero
   ============================ */
.hero {
  padding: 7rem 0 5.5rem; text-align: center;
  position: relative; overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(99,102,241,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139,92,246,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(99,102,241,0.06) 0%, transparent 45%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-light); border: 1px solid rgba(99,102,241,0.25);
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1.75rem;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.05; margin-bottom: 1.5rem;
  color: var(--text); position: relative;
}
.hero h1 em { 
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal; 
}
.hero-sub {
  font-size: 1.125rem; color: var(--text-muted);
  max-width: 540px; margin: 0 auto 3rem; line-height: 1.7;
  position: relative;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.hero-cta .btn-lg {
  font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
}

/* Hero trust badges */
.hero-trust {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  margin-top: 3rem; flex-wrap: wrap; position: relative;
}
.hero-trust-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
}
.hero-trust-item span { font-size: 1rem; }

.features { 
  padding: 5rem 0; 
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.features-header {
  text-align: center; margin-bottom: 3.5rem;
}
.features-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem;
  color: var(--text);
}
.features-header p { color: var(--text-muted); font-size: 1rem; max-width: 480px; margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  transition: var(--trans);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-subtle);
  opacity: 0; transition: var(--trans);
}
.feature-card:hover { 
  border-color: rgba(99,102,241,0.3); 
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
  position: relative;
}
.fi-purple { background: var(--violet-light); }
.fi-green  { background: var(--green-light); }
.fi-yellow { background: var(--yellow-light); }
.fi-blue   { background: #dbeafe; }
.feature-card h3 { 
  font-size: 1rem; font-weight: 700; 
  margin-bottom: 0.5rem; color: var(--text);
  letter-spacing: -0.01em; position: relative;
}
.feature-card p  { 
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; 
  position: relative;
}

.stats-section { 
  padding: 4rem 0 5rem;
  background: var(--gradient);
  position: relative; overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.06) 0%, transparent 35%);
  pointer-events: none;
}
.stats-row-hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem; text-align: center; position: relative;
}
.stat-num  { 
  font-size: 3rem; font-weight: 900; 
  color: #fff; letter-spacing: -0.04em; 
}
.stat-lbl  { 
  font-size: 0.875rem; color: rgba(255,255,255,0.75); 
  margin-top: 0.35rem; font-weight: 500;
}

/* ============================
   BALANCE / TOPUP - Premium Buttons
   ============================ */
.topup-presets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.25rem;
}
.preset-btn {
  padding: 0.75rem;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font-size: 0.875rem; font-weight: 700;
  cursor: pointer; transition: var(--trans); text-align: center;
  box-shadow: var(--shadow);
}
.preset-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent); 
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================
   EMPTY STATE - Modern Design
   ============================ */
.empty-state {
  text-align: center; padding: 5rem 1rem; color: var(--text-muted);
}
.empty-state .e-icon { 
  font-size: 3.5rem; margin-bottom: 1.25rem; opacity: 0.5; 
  display: block;
}
.empty-state h3 { 
  font-size: 1.2rem; font-weight: 700; 
  color: var(--text); margin-bottom: 0.6rem; letter-spacing: -0.01em;
}
.empty-state p  { 
  font-size: 0.9rem; margin-bottom: 1.75rem; 
  line-height: 1.6; max-width: 360px; margin-left: auto; margin-right: auto;
}

/* ============================
   WHATSAPP BUTTON - Green Theme
   ============================ */
.btn-wa-inline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(37,211,102,0.1);
  color: #25d366;
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; transition: var(--trans); white-space: nowrap;
  line-height: 1.2;
}
.btn-wa-inline:hover {
  background: rgba(37,211,102,0.15);
  border-color: rgba(37,211,102,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,211,102,0.2);
}

/* ============================
   ANNOUNCEMENT MODAL
   ============================ */
.ann-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 1rem;
}
.ann-modal.active { display: flex; }
.ann-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 500px;
  max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: popUp 0.28s cubic-bezier(.34,1.56,.64,1);
}
.ann-header {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.ann-header-text { flex: 1; }
.ann-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.ann-header h2 {
  font-size: 1.15rem; font-weight: 800; color: #fff;
  line-height: 1.3; margin: 0;
}
.ann-header p {
  font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-top: 0.2rem;
}
.ann-close {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.2);
  border: none; cursor: pointer; color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans); flex-shrink: 0;
}
.ann-close:hover { background: rgba(255,255,255,0.35); }

.ann-body { padding: 1.25rem 1.5rem; }

.ann-section { margin-bottom: 1.25rem; }
.ann-section:last-child { margin-bottom: 0; }
.ann-section-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.ann-update-list { list-style: none; padding: 0; margin: 0; }
.ann-update-list li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  padding: 0.35rem 0;
  font-size: 0.875rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.ann-update-list li:last-child { border-bottom: none; }
.ann-update-list li .ann-icon {
  font-size: 0.95rem; margin-top: 0.05rem; flex-shrink: 0;
}

.ann-ads-box {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--accent-light) 100%);
  border: 1px solid #c4b5fd;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
[data-theme="dark"] .ann-ads-box {
  background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(59,130,246,0.12) 100%);
  border-color: rgba(139,92,246,0.35);
}
.ann-ads-icon { font-size: 2rem; flex-shrink: 0; }
.ann-ads-text { flex: 1; }
.ann-ads-text strong {
  display: block; font-size: 0.9rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.2rem;
}
.ann-ads-text span { font-size: 0.8rem; color: var(--text-muted); }
.ann-ads-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  text-decoration: none; white-space: nowrap;
  transition: var(--trans); flex-shrink: 0;
}
.ann-ads-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.ann-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  flex-wrap: wrap;
}
.ann-dont-show {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-muted); cursor: pointer;
  user-select: none;
}
.ann-dont-show input { cursor: pointer; accent-color: var(--accent); }

/* ============================
   ADS MODAL - Responsive
   ============================ */
.ads-modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  padding: 1rem;
  z-index: 9999;
}
.ads-modal .ads-box {
  width: min(96vw, 520px);
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg2);
  border-radius: 18px;
  padding: 2.25rem 2rem 2.5rem;
  box-shadow: 0 16px 40px rgba(15,23,42,0.25);
  position: relative;
  border: 1px solid rgba(59,130,246,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ads-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: var(--bg3);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}
.ads-close:hover {
  background: var(--bg);
  color: var(--text);
}
.ads-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}
.ads-banner-icon {
  font-size: 1.3rem;
}
.ads-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent-hover);
  flex-wrap: wrap;
}
.ads-title-icon {
  font-size: 1.4rem;
}
.ads-video {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  min-height: 200px;
}
.ads-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  min-height: 180px;
}
.ads-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 14px;
  display: block;
}
.ads-content {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}
.ads-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: var(--trans);
  white-space: nowrap;
}
.ads-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .ads-modal .ads-box {
    padding: 1.75rem 1.4rem 2rem;
    border-radius: 16px;
  }
  .ads-title {
    font-size: 1.2rem;
  }
  .ads-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ============================
   FOOTER - Modern Multi-line
   ============================ */
footer {
  padding: 2.5rem 2rem; border-top: 1px solid var(--border);
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
  background: var(--bg2);
  position: relative;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gradient); opacity: 0.3;
}

/* ============================
   UTILITIES - Helper Classes
   ============================ */
.text-green  { color: var(--green-light)  !important; }
.text-red    { color: var(--red-light)    !important; }
.text-yellow { color: var(--yellow-light) !important; }
.text-blue   { color: var(--blue)   !important; }
.text-accent { color: var(--accent) !important; }
.text-muted  { color: var(--text-muted)  !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.d-flex  { display: flex; }
.ai-center { align-items: center; }
.jc-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-05 { margin-top: 0.5rem; }
.mt-1  { margin-top: 0.75rem; }
.mt-2  { margin-top: 1.25rem; }
.mb-1  { margin-bottom: 0.75rem; }
.mb-2  { margin-bottom: 1.25rem; }
.mb-3  { margin-bottom: 2rem; }
.mono  { font-family: 'Courier New', monospace; font-size: 0.875rem; }

/* ============================
   DARK MODE - Premium Deep Navy
   ============================ */
[data-theme="dark"] {
  --bg: #080c18;
  --bg2: #0f1629;
  --bg3: #1a2035;
  --text: #f0f2ff;
  --text2: #e2e6ff;
  --text-muted: #8892b0;
  --border: #1e2a45;
  --border2: #2a3755;
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-light: rgba(129,140,248,0.12);
  --accent-muted: rgba(129,140,248,0.1);
  --violet: #a78bfa;
  --violet-light: rgba(167,139,250,0.12);
  --gradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  --gradient-hover: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(129,140,248,0.07) 0%, rgba(167,139,250,0.07) 100%);
  --green: #34d399;
  --green-light: rgba(52,211,153,0.13);
  --red: #f87171;
  --red-light: rgba(248,113,113,0.13);
  --yellow: #fbbf24;
  --yellow-light: rgba(251,191,36,0.13);
  --blue: #60a5fa;
  --purple: #a78bfa;
  --purple-light: rgba(167,139,250,0.13);
  --shadow: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 8px 24px rgba(129,140,248,0.25);
}
[data-theme="dark"] .navbar {
  background: rgba(8,12,24,0.92);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .navbar-menu {
  background: var(--bg2);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .product-image {
  background: linear-gradient(135deg, rgba(129,140,248,0.06), rgba(167,139,250,0.06));
}
[data-theme="dark"] .hero {
  background: var(--bg);
}
[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(129,140,248,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(167,139,250,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(129,140,248,0.08) 0%, transparent 45%);
}
[data-theme="dark"] .features {
  background: var(--bg2);
}
[data-theme="dark"] .feature-card {
  background: var(--bg);
}
[data-theme="dark"] .auth-wrap {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(129,140,248,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(167,139,250,0.1) 0%, transparent 45%);
}
[data-theme="dark"] .auth-card {
  background: var(--bg2);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(129,140,248,0.1);
}
[data-theme="dark"] footer {
  background: var(--bg2);
  border-top-color: var(--border);
}
[data-theme="dark"] .product-card::after {
  background: var(--gradient);
}
[data-theme="dark"] .alert-success { background: rgba(52,211,153,0.1); color: #6ee7b7; border-color: rgba(52,211,153,0.25); }
[data-theme="dark"] .alert-danger  { background: rgba(248,113,113,0.1); color: #fca5a5; border-color: rgba(248,113,113,0.25); }
[data-theme="dark"] .alert-info    { background: rgba(129,140,248,0.1); color: #c7d2fe; border-color: rgba(129,140,248,0.25); }
[data-theme="dark"] .alert-warning { background: rgba(251,191,36,0.1);  color: #fde68a; border-color: rgba(251,191,36,0.25); }
[data-theme="dark"] .badge-success { background: rgba(52,211,153,0.15); color: #34d399; }
[data-theme="dark"] .badge-warning { background: rgba(251,191,36,0.15); color: #fbbf24; }
[data-theme="dark"] .badge-danger  { background: rgba(248,113,113,0.15); color: #f87171; }
[data-theme="dark"] .badge-info    { background: rgba(96,165,250,0.15); color: #60a5fa; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg3); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2a3755; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
[data-theme="dark"] .stats-section {
  background: linear-gradient(135deg, #1a0a3c 0%, #0a1a3c 100%);
}
[data-theme="dark"] tbody tr:hover td { background: rgba(129,140,248,0.04); }

/* Theme & language toggle buttons */
.nav-settings {
  display: flex; gap: 0.25rem; align-items: center; margin-left: 0.25rem;
}
.nav-stg-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg3);
  color: var(--text-muted);
  cursor: pointer; transition: var(--trans);
  font-size: 0.78rem; font-weight: 700;
  padding: 0; line-height: 1;
}
.nav-stg-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}
.nav-stg-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}
}
.nav-stg-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================
   RESPONSIVE - Mobile Friendly
   ============================ */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; height: 60px; }
  .navbar-menu {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    padding: 0.75rem; gap: 0.2rem;
    box-shadow: var(--shadow-lg);
    z-index: 201;
    animation: slideUp 0.2s ease;
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { 
    padding: 0.8rem 1rem; 
    border-radius: var(--radius-sm); 
    font-size: 0.925rem;
  }
  .nav-toggle { display: flex; }

  .page { padding: 1.75rem 0; }
  .page-header h1 { font-size: 1.4rem; }
  .auth-card { padding: 2rem 1.5rem; border-radius: var(--radius-lg); }
  .container { padding: 0 1rem; }
  .products-grid { grid-template-columns: 1fr; gap: 1rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .topup-presets { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3.5rem 0 2.75rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero-sub { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; max-width: 300px; margin: 0 auto; }
  .hero-trust { gap: 1rem; margin-top: 2rem; }
  .features { padding: 3.5rem 0; }
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .stats-row-hero { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .stat-num { font-size: 2.5rem; }

  /* Modal: bottom-sheet style on mobile */
  .modal { align-items: flex-end; padding: 0; }
  .modal-box {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
  }
  .modal-header { padding: 1.25rem; }
  .modal-body { padding: 1.25rem; }
  .modal-footer { padding: 1rem 1.25rem; }

  /* Variant modal bottom-sheet */
  .vmodal { align-items: flex-end; padding: 0; }
  .vmodal-box {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 90vh;
  }
  .vmodal-header { padding: 1.25rem; }
  .vmodal-body { padding: 0.75rem 1.25rem 1.25rem; }
  .variant-row { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .variant-row .btn-buy { width: 100%; text-align: center; }

  /* Table responsive */
  .table-wrap { border-radius: var(--radius); }
  thead th { padding: 0.7rem 0.85rem; font-size: 0.68rem; }
  tbody td { padding: 0.7rem 0.85rem; font-size: 0.8rem; }

  /* Stat cards compact */
  .stat-card { padding: 1.1rem; }
  .stat-value { font-size: 1.625rem; }

  /* Product card compact */
  .product-image { height: 130px; padding: 1.25rem; }
  .product-image img { max-width: 120px; }
  .product-card > *:not(.product-image) {
    padding-left: 1.1rem; padding-right: 1.1rem;
  }

  /* Toast positioning */
  .toast-container { bottom: 1rem; right: 0.75rem; left: 0.75rem; }
  .toast { min-width: auto; max-width: 100%; }

  /* Utility spacing */
  .page-header { margin-bottom: 1.5rem; }
  .section-title { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .modal-box { max-height: 92vh; }
  .topup-presets { grid-template-columns: 1fr; }
  .stats-row-hero { grid-template-columns: 1fr; }
  .stat-num { font-size: 2.25rem; }
  .page-header h1 { font-size: 1.25rem; }
  .container { padding: 0 0.85rem; }
  .navbar { padding: 0 0.85rem; }
  .btn { padding: 0.6rem 1rem; font-size: 0.875rem; }
  .btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
  .form-input { padding: 0.65rem 0.9rem; font-size: 0.875rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
}
