/* ============================================================
   DIGISAL STORE — cookiesmo.shadcn/ui Theme
   Monospace glass-morphism minimal design
   ============================================================ */

/* ===== 0. CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(17, 17, 24, 0.85);
  --bg-card-solid: #14141e;
  --bg-input: rgba(20, 20, 30, 0.9);
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --accent-1: #6366f1;
  --accent-1-hover: #818cf8;
  --accent-2: #00cec9;
  --accent-3: #f43f5e;
  --accent-gold: #eab308;
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.1);
  --glow-1: rgba(99, 102, 241, 0.35);
  --glow-2: rgba(0, 206, 201, 0.35);
  --glass-bg: rgba(17, 17, 24, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --blur: 16px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-card: 0 2px 16px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 30px var(--glow-1);
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --font-main: 'Geist Mono', 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Space Grotesk', var(--font-main);
  --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;
  --tc-glow: rgba(99, 102, 241, 0.32);
}

/* ===== 1. RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  font-size: 14px;
}
a { -webkit-tap-highlight-color: transparent; text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, button, select { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ===== 2. BACKGROUND ===== */
.bg-pattern {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 10%, rgba(99,102,241,0.06), transparent),
    radial-gradient(ellipse 500px 400px at 80% 90%, rgba(0,206,201,0.04), transparent),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(244,63,94,0.03), transparent);
}

.animated-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.08; will-change: transform; animation: blobFloat 25s infinite ease-in-out; }
.blob-1 { width: 400px; height: 400px; background: var(--accent-1); top: -10%; left: -10%; }
.blob-2 { width: 350px; height: 350px; background: var(--accent-2); bottom: -10%; right: -10%; animation-delay: -8s; }
.blob-3 { width: 300px; height: 300px; background: var(--accent-3); top: 50%; left: 50%; animation-delay: -16s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -25px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.page-wrapper { position: relative; z-index: 1; overflow-x: hidden; padding-top: 56px; }

/* ===== 3. SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 99999;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 0.1s linear; border-radius: 0 2px 2px 0;
  will-change: width;
}

/* ===== 4. HEADER (Sticky Glass) ===== */
.menu-toggle {
  position: fixed; top: 16px; left: 16px; z-index: 100;
  background: var(--glass-bg); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border); padding: 10px; border-radius: var(--radius-md);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25); transition: var(--transition-fast);
  color: var(--text-primary); width: 38px; height: 38px;
}
.menu-toggle:hover { border-color: var(--accent-1); color: var(--accent-1); }

.sidebar {
  position: fixed; top: 0; left: -320px; width: 280px; height: 100vh;
  background: var(--bg-secondary); z-index: 2000;
  box-shadow: 4px 0 24px rgba(0,0,0,0.4);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; text-align: left;
  border-right: 1px solid var(--border-color);
  will-change: left; overflow-y: auto;
}
.sidebar.active { left: 0; }

.sidebar-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 1500; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }

.sidebar-header {
  padding: 24px 20px; border-bottom: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center;
}
.sidebar-header h3 {
  margin: 0; font-family: var(--font-display); font-size: 18px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-weight: 700; letter-spacing: -0.5px;
}
.close-btn {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--text-muted); transition: var(--transition-fast); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md);
}
.close-btn:hover { color: var(--danger); background: var(--danger-bg); }

.sidebar-links { padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar-links a {
  text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 13px;
  padding: 10px 14px; border-radius: var(--radius-md); transition: var(--transition-fast);
  display: flex; align-items: center; gap: 10px; border: 1px solid transparent;
  min-height: 40px;
}
.sidebar-links a:hover, .sidebar-links a.active {
  background: var(--bg-card); color: var(--text-primary); border-color: var(--border-color);
}
.sidebar-links a:hover { transform: translateX(3px); }

/* ===== 5. TOGGLES ===== */
.theme-toggle {
  position: fixed; top: 16px; right: 16px; z-index: 100;
  background: var(--glass-bg); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border); padding: 8px; border-radius: var(--radius-md);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2); transition: var(--transition-fast);
  color: var(--text-primary); width: 38px; height: 38px;
}
.theme-toggle:hover { border-color: var(--accent-1); color: var(--accent-1); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
body.light .theme-toggle .sun { display: block; }
body.light .theme-toggle .moon { display: none; }

.sound-toggle {
  position: fixed; top: 16px; right: 64px; z-index: 100;
  background: var(--glass-bg); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border); padding: 8px; border-radius: var(--radius-md);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2); transition: var(--transition-fast);
  color: var(--text-primary); width: 38px; height: 38px;
}
.sound-toggle:hover { border-color: var(--accent-2); }
.sound-toggle .sound-on { display: block; }
.sound-toggle .sound-off { display: none; }
.sound-toggle.muted .sound-on { display: none; }
.sound-toggle.muted .sound-off { display: block; }

/* ===== 6. HERO ===== */
.hero-section { padding: 80px 24px 32px 24px; text-align: center; position: relative; }
.hero-typing-wrap {
  font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; min-height: 70px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
}
.hero-typing-text {
  background: linear-gradient(135deg, var(--text-primary), var(--accent-1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-typing-cursor {
  display: inline-block; width: 3px; height: 0.85em;
  background: var(--accent-1); animation: blink-cursor 1s step-end infinite;
  vertical-align: middle; margin-left: 2px;
}
@keyframes blink-cursor { 50% { opacity: 0; } }
.hero-subtitle { color: var(--text-muted); font-size: 14px; margin: 14px 0 0; max-width: 480px; margin-inline: auto; line-height: 1.6; }

/* ===== 7. BUTTONS ===== */
.btn-header-group { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.btn-header {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--bg-secondary); backdrop-filter: blur(var(--blur));
  color: var(--text-primary); border: 1px solid var(--border-color); text-decoration: none;
  font-size: 12px; font-weight: 600; border-radius: var(--radius-md); transition: var(--transition-fast);
  position: relative; overflow: hidden; min-height: 40px; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.btn-header:hover { border-color: var(--accent-1); color: var(--accent-1); transform: translateY(-1px); }
.btn-header.primary {
  background: linear-gradient(135deg, var(--accent-1), #4f46e5);
  border-color: transparent; color: white;
  box-shadow: 0 2px 12px var(--glow-1);
}
.btn-header.primary:hover {
  background: linear-gradient(135deg, var(--accent-1-hover), var(--accent-1));
  box-shadow: 0 4px 20px var(--glow-1); transform: translateY(-1px);
}

.btn-buy {
  position: relative; background: linear-gradient(135deg, var(--accent-1), #4f46e5);
  color: white; border: none; padding: 12px; font-size: 12px; cursor: pointer;
  font-family: var(--font-main); font-weight: 700; width: 100%;
  border-radius: var(--radius-md); transition: var(--transition-fast);
  overflow: hidden; text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 2px 12px var(--glow-1); min-height: 42px;
}
.btn-buy::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}
.btn-buy:hover::before { left: 100%; }
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--glow-1); }
.btn-buy:active { transform: translateY(0) scale(0.98); }
.btn-buy:disabled { background: var(--bg-secondary); color: var(--text-muted); cursor: not-allowed; box-shadow: none; transform: none; }
.btn-buy:disabled::before { display: none; }
.btn-buy .ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.3);
  transform: scale(0); animation: ripple-effect 0.5s linear; pointer-events: none;
}
@keyframes ripple-effect { to { transform: scale(4); opacity: 0; } }

.btn-animated {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 20px; border: none; cursor: pointer;
  font-family: var(--font-main); font-size: 12px; font-weight: 700;
  border-radius: var(--radius-md); transition: var(--transition-fast);
  text-transform: uppercase; letter-spacing: 0.5px; color: white; min-height: 40px;
}
.btn-animated:active { transform: scale(0.97); }
.btn-animated.accent-1 { background: linear-gradient(135deg, var(--accent-1), #4f46e5); box-shadow: 0 2px 12px var(--glow-1); }
.btn-animated.accent-1:hover { box-shadow: 0 4px 20px var(--glow-1); transform: translateY(-1px); }
.btn-animated.accent-2 { background: linear-gradient(135deg, var(--accent-2), #0891b2); box-shadow: 0 2px 12px var(--glow-2); }
.btn-animated.accent-2:hover { box-shadow: 0 4px 20px var(--glow-2); transform: translateY(-1px); }
.btn-animated.danger-btn { background: linear-gradient(135deg, var(--danger), #dc2626); }
.btn-animated.danger-btn:hover { box-shadow: 0 4px 20px rgba(239,68,68,0.3); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color);
  padding: 10px 20px; cursor: pointer; font-family: var(--font-main); font-size: 12px;
  font-weight: 600; border-radius: var(--radius-md); transition: var(--transition-fast);
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; min-height: 40px;
}
.btn-outline:hover { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-hover); }

.magnetic-btn { position: relative; transition: transform 0.2s ease; }
.btn-press:active { transform: scale(0.97) !important; transition: transform 0.1s !important; }

/* ===== 8. GRID ===== */
.grid-container {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; max-width: 1200px; margin: auto; padding: 0 24px 60px 24px;
}

/* ===== 9. PRODUCT CARDS ===== */
.product-card {
  background: var(--bg-card); backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: 24px; text-align: left; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); border: 1px solid var(--border-color);
  transition: var(--transition-fast); box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover { transform: translateY(-3px); border-color: var(--border-hover); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }

.status-badge {
  font-size: 10px; font-weight: 700; padding: 4px 12px; display: inline-flex;
  margin-bottom: 14px; border-radius: 50px; align-self: flex-start;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.status-badge.ready { background: var(--success-bg); color: var(--success); }
.status-badge.empty { background: var(--danger-bg); color: var(--danger); }
.status-badge.manual { background: var(--warning-bg); color: var(--accent-gold); }

.product-cat-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: rgba(99,102,241,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; color: var(--accent-1); border: 1px solid rgba(99,102,241,0.15);
}
.product-cat-icon svg { width: 20px; height: 20px; }

.product-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.3px; }
.product-desc { color: var(--text-muted); font-size: 12px; line-height: 1.6; margin-bottom: 16px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.product-price span { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== 10. STATS ===== */
.stats-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 32px auto; padding: 0 24px; max-width: 500px; }
.stat-item { text-align: center; padding: 16px 24px; flex: 1; min-width: 130px; background: var(--bg-card); backdrop-filter: blur(var(--blur)); border-radius: var(--radius-lg); border: 1px solid var(--border-color); transition: var(--transition-fast); }
.stat-item:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: var(--shadow-card); }
.stat-number { font-family: var(--font-display); font-size: 28px; font-weight: 700; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 11px; font-weight: 600; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== 11. FILTER & SEARCH ===== */
.search-bar { display: flex; gap: 8px; max-width: 380px; margin: 0 auto 16px auto; padding: 0 24px; }
.search-bar input { flex: 1; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 13px; outline: none; min-height: 40px; }
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }

.filter-bar { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 0 24px; margin-bottom: 16px; }
.filter-tab { padding: 7px 16px; border-radius: 50px; border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-secondary); font-size: 11px; font-weight: 600; cursor: pointer; transition: var(--transition-fast); text-transform: uppercase; letter-spacing: 0.5px; min-height: 36px; display: inline-flex; align-items: center; }
.filter-tab:hover { border-color: var(--accent-1); color: var(--accent-1); }
.filter-tab.active { background: linear-gradient(135deg, var(--accent-1), #4f46e5); border-color: transparent; color: white; box-shadow: 0 2px 10px var(--glow-1); }

.urgency-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 18px; margin: 0 auto 20px auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 50px; max-width: 380px; font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.urgency-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: liveDot 1.5s infinite; flex-shrink: 0; }

/* ===== 12B. SEARCH & TRANSACTION LIST ===== */
.search-container { background: var(--bg-card); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); padding: 28px; width: 100%; max-width: 560px; margin: 0 auto 28px; border-radius: var(--radius-xl); border: 1px solid var(--border-color); box-shadow: var(--shadow-card); text-align: left; }
.search-container p { color: var(--text-muted); font-size: 13px; font-weight: 500; margin: 0 0 20px; line-height: 1.6; }
.search-box { display: flex; gap: 8px; margin-bottom: 10px; }
.search-input { flex: 1; padding: 12px 14px; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-primary); font-size: 13px; outline: none; border-radius: var(--radius-md); font-family: var(--font-mono); min-height: 40px; }
.search-input::placeholder { color: var(--text-muted); font-family: var(--font-main); }
.search-input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.btn-search { background: linear-gradient(135deg, var(--accent-1), #4f46e5); color: white; border: none; padding: 0 22px; font-weight: 700; font-size: 12px; cursor: pointer; border-radius: var(--radius-md); transition: var(--transition-fast); text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 10px var(--glow-1); min-height: 40px; min-width: 90px; }
.btn-search:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--glow-1); }
.section-title { font-family: var(--font-display); font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin: 0 0 16px; }
.trx-list { display: flex; flex-direction: column; gap: 8px; }
.trx-item { background: var(--bg-secondary); border: 1px solid var(--border-color); padding: 12px 18px; border-radius: var(--radius-md); display: flex; justify-content: space-between; align-items: center; transition: var(--transition-fast); }
.trx-item:hover { border-color: var(--border-hover); transform: translateX(3px); }
.trx-id { font-family: var(--font-mono); color: var(--text-primary); font-size: 12px; font-weight: 600; }
.trx-prod { color: var(--text-muted); font-size: 11px; margin-top: 3px; }
.trx-status { background: var(--success-bg); color: var(--success); padding: 4px 10px; font-weight: 700; font-size: 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.btn-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 10px 20px; color: var(--text-secondary); border: 1px solid var(--border-color); text-decoration: none; font-weight: 600; border-radius: var(--radius-md); font-size: 12px; background: var(--glass-bg); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: var(--transition-fast); min-height: 40px; }
.btn-back:hover { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-hover); transform: translateY(-1px); }

/* ===== 12C. PROMO CARD ===== */
.promo-card { background: var(--bg-card); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); padding: 24px; width: 300px; text-align: left; display: flex; flex-direction: column; border-radius: var(--radius-lg); border: 1px solid var(--border-color); transition: var(--transition-fast); box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.promo-card:hover { transform: translateY(-3px); border-color: var(--border-hover); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.code-box { font-family: var(--font-mono); font-size: 20px; font-weight: 700; background: rgba(99,102,241,0.1); border: 2px dashed rgba(99,102,241,0.3); padding: 12px; text-align: center; border-radius: var(--radius-md); margin-bottom: 18px; letter-spacing: 2px; color: var(--accent-1); word-break: break-all; }
.promo-details { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.promo-details .row { display: flex; justify-content: space-between; margin-bottom: 10px; align-items: flex-start; gap: 8px; }
.promo-details .row span { min-width: 70px; color: var(--text-muted); flex-shrink: 0; }
.promo-details .row b { color: var(--text-primary); text-align: right; }
.btn-copy { background: linear-gradient(135deg, var(--accent-1), #4f46e5); color: white; border: none; padding: 14px; font-size: 12px; cursor: pointer; font-family: var(--font-main); font-weight: 700; width: 100%; border-radius: var(--radius-md); transition: var(--transition-fast); overflow: hidden; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 10px var(--glow-1); min-height: 44px; }
.btn-copy:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--glow-1); }
.btn-copy:disabled { background: var(--bg-secondary); color: var(--text-muted); cursor: not-allowed; box-shadow: none; }

/* ===== 12D. HISTORY ===== */
.history-container { background: var(--bg-card); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); padding: 28px; width: 100%; max-width: 560px; margin: 0 auto; border-radius: var(--radius-xl); border: 1px solid var(--border-color); box-shadow: var(--shadow-card); text-align: left; }
.history-container h2 { font-family: var(--font-display); font-size: 18px; margin: 0 0 18px; text-align: center; }
.order-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.order-card { padding: 14px 18px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: var(--transition-fast); }
.order-card:hover { border-color: var(--border-hover); transform: translateX(3px); }
.order-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.order-product { font-weight: 700; font-size: 13px; color: var(--text-primary); }
.order-invoice { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.order-amount { font-family: var(--font-display); font-weight: 700; color: var(--success); font-size: 14px; flex-shrink: 0; }
.order-meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.order-status { padding: 3px 8px; border-radius: 50px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.status-paid { background: var(--success-bg); color: var(--success); }
.order-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--accent-1); font-size: 11px; font-weight: 600; text-decoration: none; transition: var(--transition-fast); }
.order-link:hover { color: var(--accent-1-hover); transform: translateX(3px); }
.empty-state { text-align: center; padding: 28px; color: var(--text-muted); }

/* ===== 12E. ORDER DETAIL ===== */
.order-container { background: var(--bg-card); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); padding: 28px; width: 100%; max-width: 480px; border-radius: var(--radius-xl); border: 1px solid var(--border-color); box-shadow: var(--shadow-card); }
.order-container h2 { font-family: var(--font-display); font-size: 20px; color: var(--text-primary); margin: 0 0 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 14px; text-align: center; }
.info-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; color: var(--text-muted); gap: 10px; }
.info-row span { color: var(--text-primary); font-weight: 600; text-align: right; max-width: 65%; word-wrap: break-word; }
.data-box { background: var(--bg-secondary); border: 1px solid var(--border-color); padding: 16px; margin: 18px 0; border-radius: var(--radius-md); font-family: var(--font-mono); color: var(--text-primary); white-space: pre-wrap; font-size: 12px; word-break: break-all; line-height: 1.7; overflow-x: auto; }
.btn-group { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.btn-copy-cred { background: linear-gradient(135deg, var(--accent-1), #4f46e5); color: white; border: none; padding: 10px; flex: 1; font-weight: 700; font-size: 12px; cursor: pointer; border-radius: var(--radius-md); transition: var(--transition-fast); text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 10px var(--glow-1); text-align: center; min-height: 40px; }
.btn-copy-cred:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--glow-1); }
.btn-dl { background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); padding: 10px; flex: 1; text-align: center; text-decoration: none; font-weight: 600; font-size: 12px; border-radius: var(--radius-md); transition: var(--transition-fast); min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.btn-dl:hover { background: var(--bg-secondary); color: var(--text-primary); }
.email-area { margin-top: 24px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.email-input { width: 100%; padding: 12px; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-primary); font-size: 12px; outline: none; box-sizing: border-box; margin-bottom: 10px; border-radius: var(--radius-md); min-height: 40px; }
.email-input::placeholder { color: var(--text-muted); }
.email-input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.order-alert { padding: 10px; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); margin-top: 8px; }
.order-alert-success { background: var(--success-bg); color: var(--success); }
.order-alert-error { background: var(--danger-bg); color: var(--danger); }
.pending-box { background: var(--warning-bg); border: 1px solid rgba(251,191,36,0.2); padding: 16px; text-align: center; color: var(--accent-gold); border-radius: var(--radius-lg); margin: 20px 0; }
.pending-box h4 { margin: 0 0 6px; font-family: var(--font-display); }
.pending-box p { font-size: 12px; margin: 0; color: var(--text-secondary); line-height: 1.6; }
.btn-wa-inline { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--accent-2), #0891b2); color: white; padding: 10px 18px; text-decoration: none; border-radius: 50px; font-size: 12px; font-weight: 700; margin-top: 10px; transition: var(--transition-fast); box-shadow: 0 2px 10px var(--glow-2); min-height: 40px; }
.btn-wa-inline:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--glow-2); }

/* ===== 12. TRUST BADGES ===== */
.trust-badges { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 0 24px 32px 24px; max-width: 800px; margin: 0 auto; }
.trust-badge { text-align: center; padding: 18px 14px; flex: 1; min-width: 150px; max-width: 180px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); transition: var(--transition-fast); }
.trust-badge:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: var(--shadow-card); }
.trust-icon { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 10px auto; background: rgba(99,102,241,0.1); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(99,102,241,0.15); }
.trust-icon svg { width: 22px; height: 22px; }
.trust-label { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.trust-desc { font-size: 10px; color: var(--text-muted); }

/* ===== 13. MODAL ===== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 3000; opacity: 0; pointer-events: none; transition: all 0.25s ease; padding: 16px; padding-top: 70px; overflow-y: auto; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-container { background: var(--bg-card-solid); border: 1px solid var(--border-color); padding: 28px; width: 100%; max-width: 440px; position: relative; border-radius: var(--radius-xl); text-align: left; box-sizing: border-box; transform: scale(0.96) translateY(16px); transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 16px 48px rgba(0,0,0,0.4); max-height: calc(100vh - 90px); overflow-y: auto; overflow-x: hidden; }
.modal-overlay.active .modal-container { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-muted); width: 32px; height: 32px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: var(--transition-fast); z-index: 10; }
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--text-primary); letter-spacing: -0.3px; }
.modal-desc { color: var(--text-muted); font-size: 12px; line-height: 1.6; margin-bottom: 20px; background: var(--bg-secondary); padding: 12px; border-radius: var(--radius-md); border: 1px solid var(--border-color); }

/* ===== 14. FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.pop-qty-input { width: 100%; padding: 12px; background: var(--bg-input); border: 1px solid var(--border-color); font-family: var(--font-main); font-size: 13px; color: var(--text-primary); outline: none; box-sizing: border-box; border-radius: var(--radius-md); transition: var(--transition-fast); min-height: 40px; }
.pop-qty-input::placeholder { color: var(--text-muted); }
.pop-qty-input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.pop-total-box { margin: 16px 0; padding: 16px; background: var(--bg-secondary); border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.pop-total-price { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text-primary); margin-top: 4px; }

.btn-modal-action { font-family: var(--font-main); font-size: 13px; font-weight: 700; padding: 12px; width: 100%; border: none; cursor: pointer; border-radius: var(--radius-md); transition: var(--transition-fast); margin-top: 8px; text-align: center; text-decoration: none; box-sizing: border-box; position: relative; overflow: hidden; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.btn-modal-action.primary { background: linear-gradient(135deg, var(--accent-1), #4f46e5); color: white; box-shadow: 0 2px 12px var(--glow-1); }
.btn-modal-action.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--glow-1); }
.btn-modal-action.danger { background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); }
.btn-modal-action.danger:hover { background: var(--bg-secondary); color: var(--text-primary); }

.qris-wrapper { text-align: center; margin: 14px 0; }
.pop-qris-img { max-width: 180px; background: white; padding: 10px; border: 1px solid var(--border-color); margin: 0 auto; display: block; border-radius: var(--radius-lg); box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.pop-timer { font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--danger); text-align: center; margin: 6px 0 10px; text-shadow: 0 0 16px rgba(239,68,68,0.4); }

.secret-box { background: var(--bg-secondary); border: 1px solid var(--border-color); padding: 14px; margin: 14px 0; border-radius: var(--radius-md); }
.secret-input-wrapper { display: flex; gap: 8px; margin-top: 8px; }
.secret-input { flex: 1; padding: 10px; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-primary); font-family: var(--font-mono); font-size: 11px; outline: none; box-sizing: border-box; border-radius: var(--radius-sm); }
.btn-copy-link { background: linear-gradient(135deg, var(--accent-1), #4f46e5); color: white; border: none; font-weight: 700; font-size: 11px; padding: 0 14px; cursor: pointer; border-radius: var(--radius-sm); transition: var(--transition-fast); text-transform: uppercase; min-height: 40px; display: inline-flex; align-items: center; }
.btn-copy-link:hover { box-shadow: 0 2px 12px var(--glow-1); }
.flex-row { display: flex; gap: 8px; }
.manual-icon { font-size: 52px; text-align: center; margin-bottom: 14px; }
.manual-icon svg { animation: pulse-glow 2s infinite; }
@keyframes pulse-glow { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px var(--accent-1)); } 50% { transform: scale(1.06); filter: drop-shadow(0 0 16px var(--accent-1)); } }

/* ===== 15. TOAST ===== */
.toast { position: fixed; bottom: 20px; right: 20px; z-index: 9999; padding: 12px 18px; border-radius: var(--radius-md); background: var(--bg-card-solid); border: 1px solid var(--border-color); color: var(--text-primary); font-size: 12px; font-weight: 600; box-shadow: 0 8px 32px rgba(0,0,0,0.35); transform: translateY(100px); opacity: 0; transition: var(--transition-spring); pointer-events: none; max-width: calc(100vw - 40px); }
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast.success { border-color: var(--success); box-shadow: 0 0 16px rgba(34,197,94,0.15); }
.toast.error { border-color: var(--danger); box-shadow: 0 0 16px rgba(239,68,68,0.15); }

/* ===== 16. FLASH SALE ===== */
.flash-banner { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; padding: 12px 20px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; animation: flashPulse 2s infinite; flex-wrap: wrap; display: flex; align-items: center; justify-content: center; gap: 8px; }
.flash-banner .flash-timer { font-family: var(--font-mono); font-size: 18px; background: rgba(0,0,0,0.3); padding: 4px 12px; border-radius: 6px; letter-spacing: 2px; }
.flash-badge { position: absolute; top: 12px; right: 12px; z-index: 5; background: linear-gradient(135deg, #ef4444, #dc2626); color: white; padding: 4px 10px; border-radius: 50px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; animation: flashPulse 1.5s infinite; box-shadow: 0 2px 10px rgba(239,68,68,0.4); }
.flash-price-old { text-decoration: line-through; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.flash-price-new { color: var(--danger) !important; font-size: 24px !important; text-shadow: 0 0 16px rgba(239,68,68,0.3); }
@keyframes flashPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }

/* ===== 17. TESTIMONIALS ===== */
.testimonial-section { padding: 20px 24px 50px 24px; text-align: center; }
.testimonial-section h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 18px; background: linear-gradient(135deg, var(--text-primary), var(--accent-1)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.testimonial-container { position: relative; max-width: 560px; margin: auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
.testimonial-card { min-width: 100%; padding: 24px; box-sizing: border-box; background: var(--bg-card); backdrop-filter: blur(var(--blur)); border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.testimonial-stars { color: var(--accent-gold); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { color: var(--text-secondary); font-size: 13px; line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.testimonial-info { text-align: left; }
.testimonial-name { color: var(--text-primary); font-weight: 700; font-size: 13px; }
.testimonial-role { color: var(--text-muted); font-size: 11px; }
.testimonial-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.testimonial-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-color); cursor: pointer; transition: var(--transition-fast); border: none; }
.testimonial-dot.active { background: var(--accent-1); box-shadow: 0 0 8px var(--glow-1); transform: scale(1.3); }

/* ===== 18. COUPON POPUP ===== */
.coupon-popup-overlay { position: fixed; bottom: 20px; left: 20px; z-index: 500; animation: popupSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-width: calc(100vw - 40px); }
.coupon-popup { background: linear-gradient(135deg, var(--accent-1), #4f46e5); border-radius: var(--radius-lg); padding: 18px; max-width: 300px; box-shadow: 0 12px 32px rgba(99,102,241,0.35); color: white; position: relative; }
.coupon-popup .close-popup { position: absolute; top: 8px; right: 10px; background: rgba(255,255,255,0.2); border: none; color: white; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: var(--transition-fast); }
.coupon-popup .close-popup:hover { background: rgba(255,255,255,0.3); }
.coupon-popup h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 15px; }
.coupon-popup p { margin: 0 0 12px; font-size: 11px; opacity: 0.9; }
.coupon-popup .coupon-code { font-family: var(--font-mono); font-size: 18px; font-weight: 700; background: rgba(0,0,0,0.2); padding: 8px 12px; border-radius: 8px; text-align: center; letter-spacing: 2px; margin-bottom: 12px; display: block; }
.coupon-popup .btn-copy-coupon { background: white; color: var(--accent-1); border: none; padding: 10px; width: 100%; border-radius: var(--radius-md); font-weight: 700; font-size: 12px; cursor: pointer; transition: var(--transition-fast); text-transform: uppercase; min-height: 40px; }
.coupon-popup .btn-copy-coupon:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
@keyframes popupSlideIn { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ===== 19. LIVE PURCHASE ===== */
.live-purchase { position: fixed; bottom: 70px; left: 20px; z-index: 499; background: var(--glass-bg); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 12px 16px; max-width: 280px; display: flex; align-items: center; gap: 10px; box-shadow: 0 6px 24px rgba(0,0,0,0.25); animation: livePurchaseIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); transition: all 0.3s ease; }
.live-purchase.hiding { opacity: 0; transform: translateX(-30px) scale(0.9); pointer-events: none; }
.live-purchase .lp-icon { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), #0891b2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.live-purchase .lp-icon svg { width: 16px; height: 16px; stroke: white; }
.live-purchase .lp-info { flex: 1; min-width: 0; }
.live-purchase .lp-name { font-weight: 700; font-size: 11px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-purchase .lp-product { font-size: 10px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-purchase .lp-time { font-size: 9px; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 3px; }
.live-purchase .lp-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); animation: liveDot 1.5s infinite; }
@keyframes livePurchaseIn { from { opacity: 0; transform: translateY(16px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes liveDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }

/* ===== 20. PAGE TRANSITIONS ===== */
.page-transition { animation: fadeInUp 0.4s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.card-appear { animation: cardFadeIn 0.5s ease-out forwards; }
.card-appear:nth-child(1) { animation-delay: 0.05s; }
.card-appear:nth-child(2) { animation-delay: 0.1s; }
.card-appear:nth-child(3) { animation-delay: 0.15s; }
@keyframes cardFadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 20B. DONATE PAGE ===== */
.donate-wrap { max-width: 440px; margin: 0 auto; padding: 0 20px 50px; }
.donate-card { background: var(--bg-card); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); padding: 32px 24px; border-radius: var(--radius-xl); border: 1px solid var(--border-color); box-shadow: var(--shadow-card); text-align: center; }
.donate-card h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 0 0 6px; color: var(--text-primary); }
.donate-card .sub { color: var(--text-muted); font-size: 12px; margin-bottom: 20px; }
.donate-card .fl { display: block; font-size: 11px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; text-align: left; }
.donate-card input, .donate-card textarea { width: 100%; padding: 12px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-sizing: border-box; outline: none; font-size: 13px; color: var(--text-primary); font-family: var(--font-main); margin-bottom: 12px; transition: var(--transition-fast); }
.donate-card input::placeholder, .donate-card textarea::placeholder { color: var(--text-muted); }
.donate-card input:focus, .donate-card textarea:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.donate-card textarea { resize: vertical; min-height: 50px; }
.nominal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.nominal-btn { padding: 10px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-secondary); color: var(--text-primary); font-family: var(--font-display); font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition-fast); text-align: center; min-height: 40px; }
.nominal-btn:hover { border-color: var(--accent-1); color: var(--accent-1); }
.nominal-btn.active { border-color: var(--accent-1); background: rgba(99,102,241,0.1); color: var(--accent-1); }
.donate-btn { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--accent-3), #e84393); color: white; border: none; border-radius: var(--radius-md); font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition-fast); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; min-height: 44px; }
.donate-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(253,121,168,0.3); }
.donate-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.qris-section { display: none; text-align: center; }
.qris-section img { max-width: 180px; background: white; padding: 10px; border-radius: var(--radius-lg); box-shadow: 0 4px 16px rgba(0,0,0,0.25); margin: 12px auto; display: block; }
.donate-timer { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--danger); margin: 6px 0; }
.donate-amount-display { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 6px 0; }
.success-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 12px; }
.donate-msg { padding: 12px; border-radius: var(--radius-md); font-size: 12px; font-weight: 600; margin-bottom: 12px; text-align: center; }
.donate-msg.ok { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.donate-msg.err { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }

/* ===== 21. LOW STOCK ===== */
.stock-warning { display: inline-flex; align-items: center; gap: 4px; background: var(--danger-bg); color: var(--danger); padding: 2px 8px; border-radius: 50px; font-size: 9px; font-weight: 700; margin-left: 4px; animation: liveDot 1.5s infinite; }

/* ===== 22. STICKY HEADER ===== */
.sticky-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-primary); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px; display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition-fast);
}
.sticky-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.sticky-header .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sticky-header .brand-icon { width: 32px; height: 32px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; }
.sticky-header .brand-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
.sticky-header .brand-tag { font-size: 10px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.sticky-header .nav-links { display: flex; gap: 8px; align-items: center; }
.sticky-header .nav-link { padding: 6px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-muted); font-size: 11px; font-weight: 600; text-decoration: none; transition: var(--transition-fast); text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 6px; }
.sticky-header .nav-link:hover { border-color: var(--accent-1); color: var(--text-primary); }
.sticky-header .nav-link.primary { background: linear-gradient(135deg, var(--accent-1), #4f46e5); border-color: transparent; color: white; }
.sticky-header .nav-link.primary:hover { box-shadow: 0 2px 12px var(--glow-1); }
.sticky-header .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 50px; border: 1px solid var(--border-color); background: var(--bg-secondary); font-size: 10px; color: var(--text-muted); letter-spacing: 1px; }
.sticky-header .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-1); }
.sticky-header .header-actions { display: flex; gap: 8px; align-items: center; }

/* ===== 23. RESPONSIVE ===== */
@media (max-width: 768px) {
  .blob { display: none; }
  .particles-canvas { display: none; }
  .backdrop-filter, .product-card, .stat-item, .modal-container,
  .sidebar-overlay, .menu-toggle, .theme-toggle, .btn-header,
  .fab-btn, .toast, .admin-container, .promo-card, .testimonial-card,
  .search-container, .order-container {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .fab-container { bottom: 20px; right: 20px; }
  .fab-btn { width: 54px; height: 54px; }
  .back-to-top { bottom: 85px; right: 22px; width: 42px; height: 42px; }
  .hero-section { padding: 80px 16px 30px; }
  .hero-typing-wrap { font-size: 1.5rem !important; min-height: 50px; }
  .hero-subtitle { font-size: 12px; }
  .grid-container { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 0 16px 40px; }
  .product-card { padding: 20px; }
  .product-title { font-size: 14px; }
  .product-desc { font-size: 11px; margin-bottom: 14px; -webkit-line-clamp: 2; }
  .product-price { font-size: 20px; margin-bottom: 14px; }
  .stats-row { gap: 8px; }
  .stat-item { padding: 14px 18px; min-width: auto; }
  .stat-number { font-size: 24px; }
  .trust-badges { gap: 8px; }
  .trust-badge { min-width: calc(50% - 4px); flex: unset; padding: 14px 10px; }
  .trust-icon { width: 40px; height: 40px; margin-bottom: 8px; }
  .trust-label { font-size: 11px; }
  .trust-desc { font-size: 9px; }
  .btn-header-group { flex-direction: column; align-items: center; }
  .btn-header { width: 100%; max-width: 280px; justify-content: center; }
  .sidebar { width: 85%; max-width: 260px; }
  .menu-toggle { top: 12px; left: 12px; padding: 8px; width: 34px; height: 34px; }
  .theme-toggle { top: 12px; right: 12px; width: 34px; height: 34px; }
  .sound-toggle { top: 12px; right: 54px; width: 34px; height: 34px; }
  .sticky-header { padding: 10px 12px; }
  .sticky-header .brand-icon { display: none; }
  .sticky-header .brand-name { font-size: 14px; }
  .sticky-header .brand-tag { font-size: 9px; }
  .sound-toggle { top: 12px; right: 54px; width: 34px; height: 34px; }
  .modal-overlay { align-items: flex-start; padding: 12px; padding-top: 60px; }
  .modal-container { padding: 20px 16px; border-radius: var(--radius-lg); max-height: calc(100vh - 80px); }
  .modal-title { font-size: 16px; }
  .toast { left: 12px; right: 12px; bottom: 12px; text-align: center; }
  .live-purchase { bottom: 80px; left: 12px; max-width: calc(100vw - 24px); padding: 10px 12px; }
  .coupon-popup-overlay { bottom: 12px; left: 12px; max-width: calc(100vw - 24px); }
  .coupon-popup { max-width: 260px; padding: 16px; }
  .testimonial-container { padding: 0 12px; }
  .testimonial-card { padding: 18px 14px; }
  .search-container, .history-container { padding: 20px 14px; }
  .donate-card { padding: 24px 16px; }
  .sticky-header .nav-links { display: none; }
}
@media (max-width: 500px) {
  .header-section { padding: 70px 14px 20px; }
  .header-title h1 { font-size: 1.6rem; }
  .hero-section { padding: 70px 14px 20px; }
  .hero-typing-wrap { font-size: 1.2rem !important; }
  .grid-container { grid-template-columns: 1fr; gap: 12px; padding: 0 14px 32px; }
  .product-card { padding: 16px; }
  .product-title { font-size: 13px; }
  .product-desc { font-size: 10px; -webkit-line-clamp: 2; }
  .product-price { font-size: 18px; margin-bottom: 12px; }
  .search-box { flex-direction: column; }
  .btn-search { padding: 12px; width: 100%; }
  .trx-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .history-container, .search-container { padding: 16px 12px; }
  .history-container .search-box { flex-direction: column; }
  .history-container .btn-search { padding: 12px; width: 100%; }
  .order-header { flex-direction: column; gap: 4px; }
  .order-container { padding: 16px 12px !important; }
  .info-row { flex-direction: column; gap: 4px; }
  .info-row span { text-align: left; max-width: 100%; }
  .btn-group { flex-direction: column; }
  .btn-copy-cred, .btn-dl { width: 100%; }
  .donate-card { padding: 20px 14px; }
  .promo-card { width: 100%; max-width: 100%; padding: 16px; }
  .modal-overlay { padding: 8px; padding-top: 56px; }
  .modal-container { padding: 18px 14px; max-height: calc(100vh - 70px); }
  .live-purchase { bottom: 70px; left: 8px; max-width: calc(100vw - 16px); font-size: 10px; }
}
@media (max-width: 360px) {
  .hero-typing-wrap { font-size: 1rem !important; }
  .hero-subtitle { font-size: 10px; }
  .grid-container { gap: 8px; padding: 0 10px 24px; }
  .product-card { padding: 14px; }
  .product-title { font-size: 12px; }
  .product-price { font-size: 16px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .blob { animation: none; opacity: 0.04; }
  .page-transition { animation: none; }
  .card-appear { opacity: 1; transform: none; animation: none; }
}

/* ===== LIGHT MODE ===== */
body.light {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-solid: #ffffff;
  --bg-input: rgba(245, 245, 245, 0.95);
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.14);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.06);
  --glow-1: rgba(99, 102, 241, 0.12);
  --glow-2: rgba(0, 206, 201, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.06);
}
body.light .bg-pattern { background: radial-gradient(ellipse 600px 400px at 20% 10%, rgba(99,102,241,0.04), transparent), radial-gradient(ellipse 500px 400px at 80% 90%, rgba(0,206,201,0.03), transparent); }
body.light .product-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
body.light .modal-container { box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
body.light .toast { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
body.light .sticky-header { background: var(--bg-primary); box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
body.light .blob { opacity: 0.03; }
body.light .particles-canvas { display: none; }

/* ===== FAB WHATSAPP ===== */
.fab-container { position: fixed; bottom: 30px; right: 30px; z-index: 500; }
.fab-btn {
  width: 62px; height: 62px; border-radius: 50%; border: 3px solid rgba(37,211,102,0.5);
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white; font-size: 28px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 30px rgba(37,211,102,0.6); transition: var(--transition-smooth);
  position: relative; overflow: visible; text-decoration: none;
}
.fab-btn::before {
  content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%;
  background: rgba(37,211,102,0.3); animation: fabPulse 2s infinite; pointer-events: none;
}
.fab-btn:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 10px 40px rgba(37,211,102,0.7); }
.fab-btn svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 100px; right: 32px; z-index: 499;
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(108,92,231,0.5);
  background: rgba(108,92,231,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(108,92,231,0.5); transition: var(--transition-smooth);
  opacity: 0; pointer-events: none; transform: translateY(20px);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: rgba(108,92,231,1); border-color: rgba(108,92,231,0.8); box-shadow: 0 6px 25px rgba(108,92,231,0.7); transform: translateY(-3px); }
.back-to-top svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }

/* ===== PRINT ===== */
@media print { .menu-toggle, .theme-toggle, .sound-toggle, .fab-container, .sidebar, .sidebar-overlay, .animated-bg, .bg-pattern, .particles-canvas, .scroll-progress, .flash-banner, .coupon-popup-overlay, .live-purchase, .filter-bar, .search-bar, .sticky-header { display: none !important; } body { background: white; color: black; } .product-card, .order-container, .search-container, .history-container { backdrop-filter: none; border: 1px solid #ccc; box-shadow: none; } }
