/* ============================================================
   APP GIÁ TỐT — Design System (Manrope Typography)
   ============================================================ */

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

/* ─── CSS Custom Properties ─── */
:root {
  /* Font Family */
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Manrope', sans-serif;

  /* Colors */
  --bg-base:        #0a0c17;
  --bg-surface:     #111326;
  --bg-card:        #161a2e;
  --bg-card-hover:  #1c2040;
  --bg-elevated:    #1e2235;

  --primary:        #3b82f6;
  --primary-light:  #60a5fa;
  --primary-dark:   #2563eb;
  --primary-glow:   rgba(59, 130, 246, 0.35);
  --primary-subtle: rgba(59, 130, 246, 0.12);

  --secondary:      #8b5cf6;
  --secondary-light:#a78bfa;
  --secondary-glow: rgba(139, 92, 246, 0.25);

  --success:        #10b981;
  --success-bg:     rgba(16, 185, 129, 0.1);
  --warning:        #f59e0b;
  --error:          #ef4444;
  --error-bg:       rgba(239, 68, 68, 0.1);
  --info:           #3b82f6;

  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-inverted:  #0a0c17;

  --border:         rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(59, 130, 246, 0.35);
  --border-focus:   rgba(59, 130, 246, 0.7);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #8b5cf6, #d946ef);
  --gradient-dark: linear-gradient(135deg, #161a2e, #1e2235);
  --gradient-hero: linear-gradient(135deg, #0a0c17 0%, #0f172a 50%, #17103a 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.25s ease;
  --transition-slow:   all 0.4s ease;
  --transition-spring: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1280px;
  --navbar-height: 72px;

  /* Z-index */
  --z-base:    1;
  --z-dropdown: 100;
  --z-sticky:  200;
  --z-overlay: 300;
  --z-modal:   400;
  --z-toast:   500;
}

/* ─── Light Theme Overrides ─── */
[data-theme="light"] {
  --bg-base:        #f8fafc;
  --bg-surface:     #ffffff;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f8fafc;
  --bg-elevated:    #f1f5f9;

  --navbar-bg:      rgba(255, 255, 255, 0.88);

  --primary:        #2563eb;
  --primary-light:  #3b82f6;
  --primary-dark:   #1d4ed8;
  --primary-glow:   rgba(37, 99, 235, 0.25);
  --primary-subtle: #eff6ff;

  --secondary:      #7c3aed;
  --secondary-light:#8b5cf6;
  --secondary-glow: rgba(124, 58, 237, 0.15);

  --success:        #059669;
  --success-bg:     #ecfdf5;
  --warning:        #f59e0b;
  --error:          #dc2626;
  --error-bg:       #fef2f2;
  --info:           #2563eb;

  --text-primary:   #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --text-inverted:  #ffffff;

  --border:         rgba(0, 0, 0, 0.08);
  --border-hover:   rgba(37, 99, 235, 0.45);
  --border-focus:   rgba(37, 99, 235, 0.7);

  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-dark:  linear-gradient(135deg, #ffffff, #f1f5f9);
  --gradient-hero:  linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #eff6ff 100%);
  --gradient-card:  linear-gradient(145deg, #ffffff, #f8fafc);

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.08);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── SVG Icons Styles ─── */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* Background grid pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section { padding: var(--space-3xl) 0; position: relative; z-index: 1; }
.section-sm { padding: var(--space-2xl) 0; position: relative; z-index: 1; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  position: relative;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-spring);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition-fast);
}

.btn:hover::after { background: rgba(255,255,255,0.05); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-primary);
  color: #000;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(245,158,11,0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-subtle);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text-primary); background: var(--bg-elevated); }

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

.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-xl { padding: 18px 40px; font-size: 1.15rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-loading { pointer-events: none; }
.btn-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}

/* ─── Form Elements ─── */
.form-group { margin-bottom: var(--space-lg); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-input.error { border-color: var(--error); }
.form-error { font-size: 0.8rem; color: var(--error); margin-top: 4px; }

/* Input with icon */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.input-wrapper .form-input,
.input-wrapper input {
  padding-left: 42px !important;
  width: 100%;
}
/* ─── Modern Search Bar Component ─── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.search-bar:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.search-bar:focus-within {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-md);
}

.search-bar span[data-icon],
.search-bar .search-icon {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.search-bar:focus-within span[data-icon],
.search-bar:focus-within .search-icon {
  color: var(--primary);
  transform: scale(1.08);
}

.search-bar input {
  border: none !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  font-size: 0.92rem !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  flex: 1 !important;
}

.search-bar input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.85;
}

.search-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-primary { background: var(--primary-subtle); color: var(--primary); border: 1px solid rgba(59,130,246,0.25); }
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.badge-error   { background: var(--error-bg); color: var(--error); border: 1px solid rgba(239,68,68,0.2); }
.badge-info    { background: rgba(59,130,246,0.1); color: var(--info); border: 1px solid rgba(59,130,246,0.2); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.badge-muted   { background: rgba(100,116,139,0.15); color: var(--text-muted); border: 1px solid rgba(100,116,139,0.2); }

/* ─── Premium Luxury Page Header (Standardized across pages) ─── */
.wallet-page-header,
.page-title-badge-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-xl);
}

.wallet-page-icon,
.page-title-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .wallet-page-icon,
[data-theme="light"] .page-title-icon-badge {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.wallet-page-title,
.page-title-text {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

/* ─── Section Headers ─── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-subtle);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.section-title { margin-bottom: var(--space-sm); }
.section-subtitle { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ─── Product Card ─── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-card-img-wrapper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img { transform: scale(1.05); }

.product-card-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 2;
}

.product-card-body {
  padding: 16px 18px 12px 18px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 1.35em;
}

.product-card-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  margin-bottom: 0;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-top: auto;
  gap: 12px;
}

.product-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: nowrap;
}

.product-price-from {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
}

.product-card-footer .btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
}

/* ─── Toast Notifications ─── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 380px;
  animation: slideInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.removing { animation: slideOutRight 0.2s ease forwards; }

.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--error); }
.toast-info    { border-left: 3px solid var(--info); }
.toast-warning { border-left: 3px solid var(--warning); }

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.9rem; }
.toast-message { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }
.toast-close { color: var(--text-muted); padding: 2px; transition: var(--transition-fast); }
.toast-close:hover { color: var(--text-primary); }

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

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-img { aspect-ratio: 16/9; }
.skeleton-circle { border-radius: 50%; }

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loader-sm { width: 20px; height: 20px; border-width: 2px; }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 23, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay);
  backdrop-filter: blur(4px);
}

/* ─── Modal ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  animation: fadeIn 0.2s ease forwards;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: var(--transition-fast);
  font-size: 1.2rem;
}

.modal-close:hover { background: var(--bg-elevated); color: var(--text-primary); }

.modal-body { padding: var(--space-xl); }
.modal-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* ─── Table ─── */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }

th {
  background: var(--bg-elevated);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-card-hover); }

/* ─── Admin Layout & Components (Desktop Base) ─── */
.admin-bottom-nav {
  display: none !important;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg-base);
}

.admin-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: var(--space-lg) 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--space-lg) var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}

.admin-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1rem;
}

.admin-nav-label {
  padding: 10px var(--space-lg) 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--space-lg);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.admin-nav-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: var(--primary-subtle);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.admin-content {
  padding: var(--space-xl);
  background: var(--bg-base);
  min-width: 0;
  overflow-y: auto;
}

.admin-header,
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.admin-title,
.admin-page-header-title h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-page-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.search-filter-bar {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  align-items: center;
}

/* ─── Navigation ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--navbar-height);
  background: var(--navbar-bg, rgba(10, 12, 23, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

.navbar-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* ─── Cyber Shield Logo & Dynamic Micro-Animations ─── */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.logo-icon,
.navbar-logo .logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  animation: cyberShieldFloat 3.5s ease-in-out infinite;
}

.cyber-shield-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px var(--primary-glow));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.navbar-logo:hover .logo-icon {
  transform: scale(1.12) rotate(4deg);
  animation-play-state: paused;
}

.navbar-logo:hover .cyber-shield-svg {
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.8)) drop-shadow(0 0 26px rgba(139, 92, 246, 0.5));
}

@keyframes cyberShieldFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.3));
  }
  50% {
    transform: translateY(-3px) rotate(-1.5deg);
    filter: drop-shadow(0 8px 18px rgba(139, 92, 246, 0.45));
  }
}

.logo-text,
.navbar-logo .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
  padding: 6px 0;
  overflow: visible;
}

.logo-app {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.4;
  transition: color var(--transition-fast);
  display: inline-block;
}

.logo-giatot,
.logo-text span {
  font-weight: 900;
  background: linear-gradient(115deg, #3b82f6 0%, #8b5cf6 35%, #ffffff 50%, #8b5cf6 65%, #3b82f6 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoShimmerWave 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  display: inline-block;
  letter-spacing: -0.01em;
  line-height: 1.4;
  padding: 6px 0;
  margin: -6px 0;
  overflow: visible;
}

.navbar-logo:hover .logo-giatot,
.navbar-logo:hover .logo-text span {
  animation: logoShimmerWave 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

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

[data-theme="light"] .logo-giatot,
[data-theme="light"] .logo-text span {
  background: linear-gradient(115deg, #2563eb 0%, #7c3aed 35%, #60a5fa 50%, #7c3aed 65%, #2563eb 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-subtle);
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--border-hover);
  color: var(--primary);
  transform: scale(1.06);
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
}

.user-menu-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--primary-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.6);
}

.cyber-avatar-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: var(--transition-base);
  overflow: hidden;
}

.dropdown-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  width: 100%;
  text-align: left;
}

.dropdown-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.dropdown-item.danger:hover { color: var(--error); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Balance display in navbar */
.balance-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-subtle);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.balance-chip:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* ─── Cart Icon ─── */
.cart-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.cart-btn:hover {
  border-color: var(--border-hover);
  color: var(--primary);
  transform: scale(1.06);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--primary);
  color: #000;
  border-radius: 9px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ─── Hero Section ─── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.15), transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  bottom: -100px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.08), transparent 70%);
  top: 50%;
  left: 40%;
  animation: float 12s ease-in-out infinite 2s;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat { }

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--bg-surface);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .navbar-logo { margin-bottom: var(--space-md); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.footer-link:hover { color: var(--primary); }

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.3;
}

.empty-title { font-size: 1.3rem; font-weight: 600; margin-bottom: var(--space-sm); }
.empty-desc { color: var(--text-muted); margin-bottom: var(--space-xl); }

/* ─── Tabs ─── */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-elevated); border-radius: var(--radius-md); }

.tab-btn {
  flex: 1;
  padding: 10px 20px;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-base);
  text-align: center;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) { color: var(--text-secondary); }

/* ─── Price Amount Selector ─── */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }

.amount-option {
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
}

.amount-option:hover { border-color: var(--border-hover); }
.amount-option.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 15px var(--primary-glow);
}

.amount-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* ─── Stats Cards ─── */
.stat-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.stat-card:hover::after { transform: scaleX(1); }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.stat-icon.amber { background: var(--primary-subtle); color: var(--primary); }
.stat-icon.indigo { background: var(--secondary-glow); color: var(--secondary); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.red { background: var(--error-bg); color: var(--error); }

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: var(--space-sm);
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--error); }

/* ─── Filter Chips (Pills) ─── */
.filter-chip {
  padding: 8px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.filter-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* ─── Animations ─── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  33% { transform: translateY(-20px) scale(1.05); }
  66% { transform: translateY(10px) scale(0.95); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 40px rgba(245,158,11,0.4); }
}

/* Entrance animation classes */
.fade-in { animation: fadeIn 0.4s ease both; }
.fade-in-up { animation: fadeInUp 0.4s ease both; }
.scale-in { animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* ─── Dividers ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-lg) 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: var(--space-lg) 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Utility classes ─── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.text-primary-c  { color: var(--primary) !important; }
.text-secondary-c { color: var(--text-secondary) !important; }
.text-muted-c    { color: var(--text-muted) !important; }
.text-success    { color: var(--success) !important; }
.text-error      { color: var(--error) !important; }
.text-warning    { color: var(--warning) !important; }

.font-bold   { font-weight: 700; }
.font-outfit { font-family: var(--font-heading); }

.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.hidden { display: none !important; }

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; position: relative; z-index: 1; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --navbar-height: 60px; }

  .navbar-nav { display: none; }

  .container { padding: 0 var(--space-md); }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-stats { flex-wrap: wrap; gap: var(--space-lg); }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .modal { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-backdrop { align-items: flex-end; padding: 0; }

  table { font-size: 0.8rem; }
  th, td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2rem; }
  .toast { min-width: auto; max-width: calc(100vw - 32px); }
}

/* ─── Theme Toggle Button ─── */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.1rem;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  transform: rotate(15deg) scale(1.08);
  background: var(--primary-subtle);
}

/* ─── Mobile Elevated Notch Bottom Tab Bar ─── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
}

.notch-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.bottom-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 2px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  position: relative;
  text-align: center;
}

.bottom-tab-item:hover,
.bottom-tab-item.active {
  color: var(--primary);
}

.bottom-tab-item .tab-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.bottom-tab-item.active .tab-icon {
  transform: translateY(-2px);
}

.tab-icon-wrap {
  position: relative;
  display: inline-flex;
}

.bottom-cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--error);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bottom-nav {
    display: block;
  }
}

/* ─── Scrollbar Styling ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Selection ─── */
::selection { background: var(--primary-glow); color: var(--text-primary); }
