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

:root {
  --bg-base:       #08090e;
  --bg-surface:    #0f1019;
  --bg-elevated:   #171824;
  --bg-hover:      #1f2130;

  --accent:        #7c6cf7;
  --accent-2:      #38bdf8;
  --accent-3:      #a78bfa;
  --accent-glow:   rgba(124,108,247,0.18);
  --accent-glow-2: rgba(56,189,248,0.12);

  --text-primary:  #eef0ff;
  --text-secondary:#9094c0;
  --text-muted:    #4a4d6e;

  --border:        rgba(255,255,255,0.07);
  --border-light:  rgba(255,255,255,0.12);
  --border-glow:   rgba(124,108,247,0.35);

  --success:       #34d399;
  --warning:       #fbbf24;
  --error:         #f87171;
  --info:          #60a5fa;

  --font-ui:      'Plus Jakarta Sans', system-ui, sans-serif;
  --font-heading: 'Sora', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full:9999px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow:0 4px 24px var(--accent-glow);

  --transition-fast: 150ms cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-base: 280ms cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --glass-bg:           rgba(10, 10, 20, 0.6);
  --dock-bg:            rgba(20, 20, 30, 0.85);
  --dock-hover-bg:      rgba(255, 255, 255, 0.1);
  --dock-shadow-inset:  rgba(255, 255, 255, 0.05);
}

[data-theme='light'] {
  --bg-base:       #f4f5fa;
  --bg-surface:    #ffffff;
  --bg-elevated:   #eaeef5;
  --bg-hover:      #dfe4f0;
  --accent:        #5b4bd9;
  --accent-2:      #0284c7;
  --accent-3:      #7c3aed;
  --accent-glow:   rgba(91,75,217,0.18);
  --accent-glow-2: rgba(2,132,199,0.12);
  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --border:        rgba(0,0,0,0.08);
  --border-light:  rgba(0,0,0,0.15);
  --border-glow:   rgba(91,75,217,0.35);
  --success:       #059669;
  --warning:       #d97706;
  --error:         #dc2626;
  --info:          #2563eb;
  --glass-bg:      rgba(255, 255, 255, 0.7);
  --dock-bg:            rgba(255, 255, 255, 0.45);
  --dock-hover-bg:      rgba(0, 0, 0, 0.05);
  --dock-shadow-inset:  rgba(0, 0, 0, 0.03);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body, .glass-card, .topbar, .dock-menu, .pill, input, select, textarea {
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 120px;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.25; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-2); }
img { max-width: 100%; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-base);
  overflow: hidden;
  contain: strict; 
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  will-change: transform;
  animation: aurora-float 25s infinite ease-in-out;
  backface-visibility: hidden; 
}
.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #6c3fff 0%, transparent 70%);
  top: -20%; left: -15%;
  animation-delay: 0s;
  opacity: 0.35;
}
.blob-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  bottom: -10%; right: -10%;
  animation-delay: -8s;
  opacity: 0.28;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: 40%; left: 55%;
  animation-delay: -15s;
  opacity: 0.22;
}

@media (max-width: 768px) {
  .blob-3 { display: none; }
  .blob-1 { width: 380px; height: 380px; filter: blur(70px); }
  .blob-2 { width: 300px; height: 300px; filter: blur(70px); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none !important; }
}
@keyframes aurora-float {
  0%   { transform: translate3d(0,0,0) scale(1); }
  33%  { transform: translate3d(80px,-60px,0) scale(1.12); }
  66%  { transform: translate3d(-40px,80px,0) scale(0.92); }
  100% { transform: translate3d(0,0,0) scale(1); }
}

.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.glass-card:hover {
  border-color: var(--border-light);
}
.glass-card.hoverable:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.96); }

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  transition: all 0.15s cubic-bezier(0,0,0.58,1);
  box-shadow: 0 5px 0 -2px var(--accent-3), 0 5px 0 0 #4a43d0, 0 10px 10px -5px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background-color: var(--accent-3);
  transform: translateY(2px);
  box-shadow: 0 3px 0 -2px var(--accent-3), 0 3px 0 0 #4a43d0, 0 6px 10px -5px rgba(0,0,0,0.3);
}
.btn-primary:active {
  background-color: var(--accent-3);
  transform: translateY(5px);
  box-shadow: 0 0px 0 -2px var(--accent-3), 0 0px 0 0 #4a43d0, 0 0px 0 0 rgba(0,0,0,0);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  transition: all 0.15s cubic-bezier(0,0,0.58,1);
  box-shadow: 0 5px 0 -2px var(--bg-hover), 0 5px 0 0 var(--border), 0 10px 10px -5px rgba(0,0,0,0.2);
}
.btn-secondary:hover { 
  background-color: var(--bg-elevated); 
  transform: translateY(2px);
  box-shadow: 0 3px 0 -2px var(--bg-hover), 0 3px 0 0 var(--border), 0 6px 10px -5px rgba(0,0,0,0.2);
}
.btn-secondary:active {
  background-color: var(--bg-elevated);
  transform: translateY(5px);
  box-shadow: 0 0px 0 -2px var(--bg-hover), 0 0px 0 0 var(--border), 0 0px 0 0 rgba(0,0,0,0);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.15s cubic-bezier(0,0,0.58,1);
  box-shadow: 0 0px 0 -2px transparent, 0 0px 0 0 transparent, 0 0px 0px -5px rgba(0,0,0,0);
}
.btn-ghost:hover { 
  color: var(--text-primary); 
  background-color: var(--bg-elevated); 
  border: 1px solid var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 -2px var(--bg-hover), 0 4px 0 0 var(--border), 0 6px 10px -5px rgba(0,0,0,0.1);
}
.btn-ghost:active {
  background-color: var(--bg-elevated);
  transform: translateY(2px);
  box-shadow: 0 0px 0 -2px var(--bg-hover), 0 0px 0 0 var(--border), 0 0px 0 0 rgba(0,0,0,0);
}

.btn-danger {
  background-color: rgba(248,113,113,0.15);
  color: var(--error);
  border: 1px solid rgba(248,113,113,0.25);
  transition: all 0.15s cubic-bezier(0,0,0.58,1);
  box-shadow: 0 5px 0 -2px rgba(248,113,113,0.2), 0 5px 0 0 rgba(220,38,38,0.5), 0 10px 10px -5px rgba(220,38,38,0.2);
}
.btn-danger:hover { 
  background-color: rgba(248,113,113,0.25); 
  transform: translateY(2px);
  box-shadow: 0 3px 0 -2px rgba(248,113,113,0.2), 0 3px 0 0 rgba(220,38,38,0.5), 0 6px 10px -5px rgba(220,38,38,0.2);
}
.btn-danger:active {
  background-color: rgba(248,113,113,0.25);
  transform: translateY(5px);
  box-shadow: 0 0px 0 -2px rgba(248,113,113,0.2), 0 0px 0 0 rgba(220,38,38,0.5), 0 0px 0 0 rgba(0,0,0,0);
}

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.dock-wrapper {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}
.dock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(255,255,255,0.05);
}
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  min-width: 52px;
}
.dock-item svg, .dock-item i { width: 22px; height: 22px; font-size: 20px; }
.dock-item .dock-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}
.dock-item:hover {
  color: #fff;
}
.dock-item:hover .dock-label { opacity: 1; }
.dock-item.active {
  color: var(--accent);
}
.dock-item.active .dock-label { opacity: 1; color: var(--accent); }

.dock-divider {
  width: 1px; height: 40px;
  background: var(--border);
  margin: 0 4px;
  border-radius: 1px;
}
.dock-balance-chip {
  background: var(--accent-glow);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-3);
  white-space: nowrap;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--glass-bg, rgba(10,10,20,0.6));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.icon-btn:hover { color: var(--text-primary); background: var(--bg-hover); border-color: var(--border-light); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-wrapper { padding-top: 28px; padding-bottom: 28px; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.page-header p { color: var(--text-secondary); font-size: 15px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-order-lg { grid-template-columns: 1.5fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
input, select, textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
.input-group { position: relative; }
.input-prefix {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.input-group input { padding-left: 36px; }
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; cursor: pointer; }

.pill-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.pill-nav::-webkit-scrollbar { display: none; }
.pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.pill:hover { color: var(--text-primary); border-color: var(--border-light); background: var(--bg-hover); }
.pill.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 12px var(--accent-glow); }

.product-card {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: var(--border-glow);
}
.product-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 24px;
}
.product-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.product-card p { font-size: 13px; color: var(--text-secondary); flex: 1; margin-bottom: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.product-price span { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.stat-card {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.purple { background: rgba(124,108,247,0.15); color: var(--accent); }
.stat-icon.blue   { background: rgba(56,189,248,0.15);  color: var(--accent-2); }
.stat-icon.green  { background: rgba(52,211,153,0.15);  color: var(--success); }
.stat-icon.orange { background: rgba(251,191,36,0.15);  color: var(--warning); }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.balance-card {
  background: linear-gradient(135deg, rgba(124,108,247,0.15) 0%, rgba(56,189,248,0.08) 100%);
  border: 1px solid rgba(124,108,247,0.25);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.05;
}
.balance-label { font-size: 13px; color: var(--text-secondary); font-weight: 600; margin-bottom: 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.balance-amount { font-size: 42px; font-weight: 800; font-family: var(--font-heading); color: var(--text-primary); }
.balance-amount small { font-size: 20px; color: var(--text-secondary); margin-right: 4px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.badge.pending  { background: rgba(251,191,36,0.12); color: var(--warning);  }
.badge.pending::before  { background: var(--warning);  box-shadow: 0 0 6px var(--warning); animation: pulse-dot 1.5s infinite; }
.badge.success  { background: rgba(52,211,153,0.12); color: var(--success);  }
.badge.success::before  { background: var(--success); }
.badge.failed   { background: rgba(248,113,113,0.12); color: var(--error);  }
.badge.failed::before   { background: var(--error); }
.badge.processing { background: rgba(96,165,250,0.12); color: var(--info);  }
.badge.processing::before { background: var(--info); animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-full);
  width: 0;
  transition: width var(--transition-slow);
}

#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  font-size: 14px;
  font-weight: 500;
  min-width: 260px;
  max-width: 360px;
  animation: toast-in var(--transition-spring) forwards;
}
.toast.toast-out { animation: toast-out 300ms ease forwards; }
.toast.success { border-color: rgba(52,211,153,0.3); }
.toast.error   { border-color: rgba(248,113,113,0.3); }
@keyframes toast-in  { from { opacity: 0; transform: translateX(100%); } to { opacity:1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

.blur-in {
  opacity: 0;
  filter: blur(12px);
  animation: blur-reveal 0.9s var(--transition-slow) forwards;
}
.blur-in-1 { animation-delay: 0s; }
.blur-in-2 { animation-delay: 0.12s; }
.blur-in-3 { animation-delay: 0.24s; }
@keyframes blur-reveal {
  to { opacity: 1; filter: blur(0); }
}
.slide-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.slide-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { animation: fade-in 0.5s ease forwards; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 44px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo h1 {
  font-size: 26px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-logo p { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }

.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
  background: var(--accent-glow);
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.stats-strip {
  display: flex;
  gap: 0;
  margin-top: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 28px; font-weight: 800; font-family: var(--font-heading); background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item .lbl { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.features-section { padding: 60px 0; }
.feature-card {
  padding: 28px;
  text-align: center;
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-secondary); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); color: var(--text-primary); }

.qris-card {
  text-align: center;
  padding: 32px;
  max-width: 360px;
  margin: 0 auto;
}
.qris-card img { border-radius: var(--radius-md); border: 4px solid #fff; width: 220px; margin: 20px 0; }
.countdown { font-size: 36px; font-weight: 800; font-family: var(--font-heading); color: var(--warning); }
.countdown.expired { color: var(--error); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-order-lg { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-strip { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .hero h1 { font-size: 38px; }
  .dock { gap: 2px; padding: 8px; }
  .dock-item { padding: 8px; min-width: 44px; }
  .topbar { padding: 14px 16px; }
  .auth-card { padding: 28px 24px; }
  .balance-amount { font-size: 32px; }
  .page-header h1 { font-size: 22px; }
  body { padding-bottom: 100px; }
}
@media (max-width: 480px) {
  .dock-balance-chip { display: none; }
  .hero-cta .btn-lg { width: 100%; max-width: 300px; }
}

.section { margin-bottom: 32px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title { font-size: 18px; font-weight: 700; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.alert.info    { background: rgba(96,165,250,0.1); border: 1px solid rgba(96,165,250,0.25); color: var(--info); }
.alert.warning { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.25); color: var(--warning); }
.alert.error   { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.25); color: var(--error); }
.alert.success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25); color: var(--success); }

.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 800; }
.text-sm  { font-size: 13px; }
.text-xs  { font-size: 11px; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 28px; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 28px; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.text-center { text-align: center; }

.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.preset-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.preset-btn {
  padding: 7px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0,0,0.58,1);
  box-shadow: 0 5px 0 -2px var(--bg-hover), 0 5px 0 0 var(--border), 0 10px 10px -5px rgba(0,0,0,0.2);
}
.preset-btn:hover { 
  background-color: var(--bg-elevated); 
  transform: translateY(2px);
  box-shadow: 0 3px 0 -2px var(--bg-hover), 0 3px 0 0 var(--border), 0 6px 10px -5px rgba(0,0,0,0.2);
}
.preset-btn:active {
  background-color: var(--bg-elevated);
  transform: translateY(5px);
  box-shadow: 0 0px 0 -2px var(--bg-hover), 0 0px 0 0 var(--border), 0 0px 0 0 rgba(0,0,0,0);
}
.preset-btn.selected { 
  background-color: var(--accent-glow); 
  border-color: var(--accent); 
  color: var(--accent); 
  box-shadow: 0 5px 0 -2px var(--accent-glow), 0 5px 0 0 var(--accent), 0 10px 10px -5px rgba(108,99,255,0.2);
}
.preset-btn.selected:active {
  transform: translateY(5px);
  box-shadow: 0 0px 0 -2px var(--accent-glow), 0 0px 0 0 var(--accent), 0 0px 0 0 rgba(0,0,0,0);
}

.desc-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  min-height: 90px;
  line-height: 1.6;
}

.pop-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  color: #fff;
  padding: 0 18px;
  height: 42px;
  line-height: 42px;
  border-radius: 10px;
  background-color: var(--accent);
  border: 2px solid #5a52d5;
  transition: all 0.15s cubic-bezier(0,0,0.58,1);
  box-shadow: 0 6px 0 -2px #8b85ff, 0 6px 0 0 #5a52d5, 0 10px 10px -5px rgba(0,0,0,0.3);
  cursor: pointer;
}
.pop-button:hover {
  background-color: #7b73ff;
  transform: translateY(2px);
  box-shadow: 0 4px 0 -2px #8b85ff, 0 4px 0 0 #5a52d5, 0 6px 10px -5px rgba(0,0,0,0.3);
}
.pop-button:active {
  background-color: #7b73ff;
  transform: translateY(6px);
  box-shadow: 0 0px 0 -2px #8b85ff, 0 0px 0 0 #5a52d5, 0 0px 0 0 rgba(0,0,0,0);
}

.blur-reveal {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px) scale(0.96);
  transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity, filter;
}
.blur-reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.hero-text-glow {
  color: var(--text-primary);
  text-shadow: 1px 2px 0px rgba(255, 255, 255, 0.2);
  display: inline-block;
}

[data-theme='light'] .hero-text-glow {
  text-shadow: 1px 2px 0px rgba(0, 0, 0, 0.2);
}

@keyframes split-text-pop {
  0% {
    opacity: 0;
    transform: translateY(25px) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}
.split-word {
  display: inline-block;
  opacity: 0;
  animation: split-text-pop 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
