/* ═══════════════════════════════════════════════════════════════
   WHF Cafe Loyalty — Premium Dark Glassmorphic Design System
   Gold Neon × Coffee Aesthetics × 3D Wallet Card
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --bg-primary: #08080d;
  --bg-secondary: #0e0e16;
  --bg-card: #13131d;
  --bg-card-hover: #191928;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.07);

  --gold: #d4a853;
  --gold-light: #f0c96e;
  --gold-dark: #b8892e;
  --gold-glow: rgba(212, 168, 83, 0.4);
  --gold-subtle: rgba(212, 168, 83, 0.1);

  --text-white: #eaeaea;
  --text-secondary: #8b8ba0;
  --text-muted: #55556a;

  --green: #34d399;
  --green-glow: rgba(52, 211, 153, 0.3);
  --red: #f87171;
  --red-glow: rgba(248, 113, 113, 0.3);
  --blue: #60a5fa;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-gold: 0 0 30px rgba(212, 168, 83, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', sans-serif;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-ar);
  background: var(--bg-primary);
  color: var(--text-white);
  min-height: 100vh;
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 168, 83, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(212, 168, 83, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 10px; }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.font-en { font-family: var(--font-en); }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.page { display: none; min-height: 100vh; }
.page.active { display: block; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* ── Glass Card ──────────────────────────────────────────────── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(212, 168, 83, 0.15);
  box-shadow: var(--shadow-card), 0 0 20px rgba(212, 168, 83, 0.05);
}

.glass-card-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
}

/* ── 3D Loyalty Wallet Card ──────────────────────────────────── */
.wallet-card-wrapper {
  perspective: 1000px;
  margin: 20px 0 30px;
}

.wallet-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, #1a1a2e 0%, #16162a 40%, #1e1e35 100%);
  border: 1px solid rgba(212, 168, 83, 0.2);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 168, 83, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  overflow: hidden;
  cursor: default;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 168, 83, 0.08), transparent 60%);
  pointer-events: none;
}

.wallet-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, transparent 30%, rgba(212, 168, 83, 0.03) 100%);
  pointer-events: none;
}

.wallet-card .card-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
  text-shadow: 0 0 20px var(--gold-glow);
  z-index: 1;
}

.wallet-card .card-points {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-light);
  text-shadow: 0 0 30px var(--gold-glow);
  z-index: 1;
  line-height: 1;
}

.wallet-card .card-points span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-right: 8px;
}

.wallet-card .card-name {
  font-size: 0.95rem;
  color: var(--text-secondary);
  z-index: 1;
}

.wallet-card .card-visits {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 1;
}

/* ── Points Badge ────────────────────────────────────────────── */
.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--gold-subtle);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(212, 168, 83, 0.2);
}

.points-badge.large {
  font-size: 1.4rem;
  padding: 10px 24px;
  font-family: var(--font-en);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0a0f;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
  box-shadow: 0 6px 30px rgba(212, 168, 83, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.btn-outline:hover {
  background: var(--gold-subtle);
  border-color: var(--gold);
}

.btn-green {
  background: linear-gradient(135deg, #059669, var(--green));
  color: #fff;
  box-shadow: 0 4px 20px var(--green-glow);
}

.btn-green:hover { box-shadow: 0 6px 30px rgba(52, 211, 153, 0.4); }

.btn-red {
  background: linear-gradient(135deg, #dc2626, var(--red));
  color: #fff;
}

.btn-dark {
  background: var(--bg-card);
  color: var(--text-white);
  border: 1px solid var(--glass-border);
}

.btn-dark:hover { border-color: var(--gold); color: var(--gold); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  font-size: 1.2rem;
}

/* ── Wallet Buttons (Apple / Google) ─────────────────────────── */
.wallet-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-apple-wallet, .btn-google-wallet {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.btn-apple-wallet {
  background: #000;
  color: #fff;
}

.btn-apple-wallet:hover {
  background: #1a1a1a;
  border-color: #fff;
}

.btn-google-wallet {
  background: #1a73e8;
  color: #fff;
  border-color: transparent;
}

.btn-google-wallet:hover {
  background: #1565c0;
}

/* ── Form Inputs ─────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-ar);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-subtle);
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238b8ba0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  padding-left: 36px;
}

/* ── PIN Input ───────────────────────────────────────────────── */
.pin-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
  direction: ltr;
}

.pin-input {
  width: 60px;
  height: 70px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 2px solid var(--glass-border);
  border-radius: 14px;
  color: var(--gold);
  outline: none;
  transition: var(--transition);
  -webkit-text-security: disc;
}

.pin-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* ── QR Code ─────────────────────────────────────────────────── */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 16px 0;
}

.qr-container img {
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.qr-container .qr-label {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Reward Card ─────────────────────────────────────────────── */
.rewards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.reward-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.reward-card:hover {
  border-color: rgba(212, 168, 83, 0.2);
  transform: translateY(-2px);
}

.reward-card .reward-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.reward-card .reward-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.reward-card .reward-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
}

/* ── Progress Bar ────────────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-bar .progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width 0.6s ease;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ── Timeline / Activity ─────────────────────────────────────── */
.timeline {
  margin-top: 16px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.timeline-icon.earned {
  background: var(--gold-subtle);
  color: var(--gold);
}

.timeline-icon.redeemed {
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
}

.timeline-content { flex: 1; }
.timeline-content .desc { font-size: 0.9rem; font-weight: 500; }
.timeline-content .time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.timeline-points {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.timeline-points.positive { color: var(--gold); }
.timeline-points.negative { color: var(--green); }

/* ── Dashboard Layout ────────────────────────────────────────── */
.dash-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  padding: 24px 0;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: var(--transition);
}

.sidebar .sidebar-logo {
  padding: 0 24px 24px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  border-right: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--gold);
  background: var(--gold-subtle);
  border-right-color: var(--gold);
}

.dash-main {
  flex: 1;
  margin-right: 260px;
  padding: 30px;
}

/* ── Stat Cards ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(212, 168, 83, 0.15);
  box-shadow: var(--shadow-gold);
}

.stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Data Table ──────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 16px;
}

.data-table th {
  text-align: right;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--glass-border);
}

.data-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(212, 168, 83, 0.03);
}

/* ── Toggle Switch ───────────────────────────────────────────── */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  display: inline-block;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border-radius: 26px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-muted);
  top: 2px;
  right: 2px;
  transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: var(--gold-subtle);
  border-color: var(--gold);
}

.toggle input:checked + .toggle-slider::before {
  background: var(--gold);
  transform: translateX(-22px);
}

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-header h3 { font-size: 1.2rem; }

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--glass);
  color: var(--text-secondary);
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover { color: var(--red); background: rgba(248, 113, 113, 0.1); }

/* ── Scanner Screen ──────────────────────────────────────────── */
.scanner-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 20px auto;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 40px var(--gold-glow);
}

.scanner-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-frame .scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 15px var(--gold-glow);
  animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 100% { top: 10%; }
  50% { top: 90%; }
}

.scanner-frame .corners {
  position: absolute;
  inset: 20px;
  border: 2px solid transparent;
}

.scanner-frame .corners::before,
.scanner-frame .corners::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--gold);
  border-style: solid;
}

.scanner-frame .corners::before {
  top: 0; right: 0;
  border-width: 3px 3px 0 0;
  border-radius: 0 8px 0 0;
}

.scanner-frame .corners::after {
  bottom: 0; left: 0;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 8px;
}

/* ── Product Grid (Scanner) ──────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.product-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-white);
  font-family: var(--font-ar);
}

.product-btn:hover {
  border-color: var(--gold);
  background: var(--gold-subtle);
}

.product-btn.selected {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.15);
  box-shadow: 0 0 15px var(--gold-glow);
}

.product-btn .product-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-btn .product-pts {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
}

.product-btn .product-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 6px;
  font-family: var(--font-en);
}

/* ── Order Summary Bar ───────────────────────────────────────── */
.order-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 16px 20px;
  z-index: 100;
  display: none;
  animation: slideUp 0.3s ease;
}

.order-bar.active { display: block; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.order-bar .order-total {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.order-bar .order-summary {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* ── Success Screen ──────────────────────────────────────────── */
.success-screen {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.success-screen.active { display: flex; }

.success-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  border: 3px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 24px;
  animation: successPop 0.5s ease;
  box-shadow: 0 0 40px var(--green-glow);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.success-screen h2 {
  color: var(--green);
  margin-bottom: 8px;
}

.success-screen .success-points {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 0 30px var(--gold-glow);
  margin: 16px 0;
}

/* ── Confetti Animation ──────────────────────────────────────── */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3000;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall 3s ease-in forwards;
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(-100vh) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ── Skeleton Loading ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text { height: 16px; margin-bottom: 10px; }
.skeleton-title { height: 24px; width: 60%; margin-bottom: 16px; }
.skeleton-card { height: 200px; }

/* ── Toast Notifications ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 400px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  animation: toastIn 0.3s ease;
  backdrop-filter: blur(20px);
}

.toast.success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green);
}

.toast.error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--red);
}

.toast.info {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--blue);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Section Header ──────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.section-header .badge {
  font-family: var(--font-en);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--glass);
  color: var(--text-secondary);
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.9rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(100%);
    width: 280px;
  }

  .sidebar.open { transform: translateX(0); }

  .dash-main {
    margin-right: 0;
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 150;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.3rem;
    cursor: pointer;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wallet-card .card-points {
    font-size: 2.2rem;
  }
}

@media (min-width: 769px) {
  .menu-toggle { display: none; }

  .rewards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Pulse Animation ─────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pulse { animation: pulse 2s ease-in-out infinite; }

/* ── Fade In ─────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.4s ease forwards; }

/* ── Utility ─────────────────────────────────────────────────── */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
