/* ═══════════════════════════════════════════════════════
   ZoZoPeak.com — main.css
   Design System | Reset | Typography | Navbar | Footer
   ═══════════════════════════════════════════════════════ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Variables ─── */
:root {
  /* Backgrounds */
  --bg-primary:    #0B0F2C;
  --bg-secondary:  #0D1235;
  --bg-card:       #111840;
  --bg-card-hover: #151f4d;
  --bg-overlay:    rgba(11,15,44,0.95);

  /* Gold Palette */
  --gold-primary:  #D4AF37;
  --gold-light:    #FFD700;
  --gold-dark:     #B8860B;
  --gold-muted:    rgba(212,175,55,0.15);
  --gold-glow:     rgba(212,175,55,0.35);

  /* Text */
  --text-primary:  #FFFFFF;
  --text-secondary:#A0A8C0;
  --text-gold:     #E8B84B;
  --text-muted:    #6B7280;

  /* Semantic */
  --success:       #22C55E;
  --danger:        #EF4444;
  --warning:       #F59E0B;
  --info:          #3B82F6;

  /* Borders */
  --border:        rgba(212,175,55,0.2);
  --border-strong: rgba(212,175,55,0.4);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-gold:  0 0 20px rgba(212,175,55,0.15), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 40px rgba(212,175,55,0.25);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Navbar */
  --navbar-height: 72px;
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ─── Watermark Branding ─── */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../assets/nav_logo.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%; /* لتكون بحجم مناسب في المنتصف */
  opacity: 0.05; /* ضبط الشفافية لتكون خافتة جداً */
  z-index: -1;
  pointer-events: none;
}

* { touch-action: manipulation; }

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

img, svg { max-width: 100%; height: auto; display: block; }

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }

button, a, .clickable {
  min-height: 44px;
  cursor: pointer;
}

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

h1 { font-size: clamp(2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 3vw, 2rem); }
h4 { font-size: clamp(1rem, 2vw, 1.5rem); }

p { font-size: clamp(0.9rem, 2vw, 1.05rem); color: var(--text-secondary); }

.text-gold { color: var(--text-gold); }
.text-primary { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-mono  { font-family: 'JetBrains Mono', monospace; }

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

@media (min-width: 640px) {
  .container { padding: 0 var(--space-xl); }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

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

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

/* Gold Button */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
  color: #0B0F2C;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
  animation: pulseGold 3s ease-in-out infinite;
}

.btn-gold:hover {
  box-shadow: 0 6px 28px rgba(212,175,55,0.6);
  transform: translateY(-2px);
  animation: none; /* Stop pulsing on hover */
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--text-gold);
  border: 1px solid var(--border-strong);
}

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

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-gold);
  }
  .card:hover::before { opacity: 1; }
}

/* ─── Grid Utilities ─── */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

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

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-2xl{ padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.py-3xl{ padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Gold gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: shimmer 3s linear infinite;
}

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

/* Section backgrounds */
.section { padding: var(--space-3xl) 0; }
.section-alt { background: var(--bg-secondary); }

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: var(--space-2xl) 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-gold {
  background: var(--gold-muted);
  color: var(--text-gold);
  border: 1px solid var(--border);
}
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-danger  { background: rgba(239,68,68,0.15);  color: var(--danger); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
  animation: slideInRight 0.3s ease;
  pointer-events: auto;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

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

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  /* ⚡ Replaced blur(8px) with solid bg — backdrop-filter is GPU-heavy */
  background: rgba(11, 15, 44, 0.88);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  /* Only transition opacity/visibility — avoids painting all properties */
  transition: opacity var(--transition-base), visibility var(--transition-base);
  /* Hardware acceleration */
  will-change: opacity;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  /* Smooth touch scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Use translate3d for GPU-composited layer (no layout reflow) */
  transform: scale(0.93) translate3d(0, 20px, 0);
  transition: transform var(--transition-base);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  /* Promote to its own GPU layer */
  will-change: transform, opacity;
}

.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.modal::-webkit-scrollbar-track { background: transparent; }

.modal-overlay.active .modal {
  transform: scale(1) translate3d(0, 0, 0);
}


.modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  min-height: unset;
}

.modal-close:hover {
  background: rgba(239,68,68,0.2);
  color: var(--danger);
}

/* Forms */
.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);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
  background: rgba(212,175,55,0.05);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0A8C0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-textarea { resize: vertical; min-height: 100px; }

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  transition: all var(--transition-fast);
  font-size: 1.2rem;
  line-height: 1;
}

.password-toggle:hover {
  color: var(--gold-light);
  transform: translateY(-50%) scale(1.1);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.eye-icon {
  display: inline-block;
  user-select: none;
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 7000;
  transition: all var(--transition-base);
  background: #0B0F2C !important; /* السيادة للون الكحلي الأصلي */
}

#navbar.scrolled {
  background: #0B0F2C !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-logo img {
  height: 45px;
  width: auto;
  /* Convert black logo to gold (#D4AF37) */
  filter: invert(72%) sepia(82%) saturate(415%) hue-rotate(352deg) brightness(91%) contrast(85%) drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
  border-radius: var(--radius-sm);
  object-fit: contain;
  mix-blend-mode: screen;
}

.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-logo-text span { color: var(--text-gold); }

/* Nav Links (center) */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-xl);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-points {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  background: var(--gold-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-gold);
  cursor: default;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold-primary);
  object-fit: cover;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.nav-avatar:hover { border-color: var(--gold-light); }

#btn-nav-login {
  background: transparent;
  border: 1px solid #D4AF37;
  color: #D4AF37;
  padding: 5px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: all 0.3s ease;
}

#btn-nav-login:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #FFD700;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Increased gap slightly */
  background: transparent;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
  min-height: 48px; /* Touch target > 44px */
  min-width: 48px;  /* Touch target > 44px */
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 30px; /* Modified SVG/span width for better visibility */
  height: 2px;
  background: #D4AF37; /* Made gold to stand out against dark bg */
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #0f1628;
  transition: left 0.3s ease;
  z-index: 7000;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nav-drawer.open {
  left: 0;
}

.nav-drawer a {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-drawer a:hover { color: var(--text-gold); }

.nav-drawer-points {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-gold);
  font-weight: 600;
  padding: var(--space-sm) 0;
}

@media (min-width: 640px) {
  .nav-points { display: flex; }
}

@media (max-width: 767px) {
  .nav-points { display: flex; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hamburger { display: none !important; }
  .nav-drawer { display: none; }
}

@media (max-width: 1023px) {
  .hamburger { display: flex !important; }
  .nav-drawer { display: flex; flex-direction: column; }
}

/* Page content offset */
.page-content { padding-top: var(--navbar-height); }

/* ─── Mobile Navbar Refinement ─── */
@media (max-width: 767px) {
  .nav-inner {
    padding: 0 var(--space-md); /* Reduced padding for more logo space */
  }
  .hamburger {
    margin-right: 20px; /* Push hamburger away from edge */
  }
  .nav-logo-text {
    font-size: 1.15rem; /* Slightly smaller to fit better */
  }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
footer {
  background: #060920;
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .nav-logo { margin-bottom: var(--space-lg); }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-gold);
  margin-bottom: var(--space-lg);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: auto;
}

.footer-col a:hover { color: var(--text-gold); }

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
  line-height: 1.6;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════
   AUTH MODAL (Login/Register)
   ═══════════════════════════════════════════════════════ */
.auth-tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-xl);
}

.auth-tab {
  flex: 1;
  padding: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  min-height: unset;
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

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

.auth-divider span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.btn-google {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: unset;
}

.btn-google:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* ═══════════════════════════════════════════════════════
   Stats / Counters
   ═══════════════════════════════════════════════════════ */
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-xs);
}

/* ═══════════════════════════════════════════════════════
   Offer Cards
   ═══════════════════════════════════════════════════════ */
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  opacity: 0;
  transition: opacity var(--transition-base);
}

@media (hover: hover) {
  .offer-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-gold);
  }
  .offer-card:hover::before { opacity: 1; }
}

.offer-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.offer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.offer-points {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-gold);
  line-height: 1;
}

.offer-points-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

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

/* ═══════════════════════════════════════════════════════
   Stars
   ═══════════════════════════════════════════════════════ */
.stars-display {
  display: flex;
  gap: 4px;
  align-items: center;
}

.star {
  font-size: 1rem;
  line-height: 1;
}

.star.filled { color: var(--gold-primary); }
.star.empty  { color: rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════════════════════
   Turnstile widget wrapper
   ═══════════════════════════════════════════════════════ */
.turnstile-wrapper {
  display: flex;
  justify-content: center;
  margin: var(--space-md) 0;
}

/* ═══════════════════════════════════════════════════════
   Scrollbar (webkit)
   ═══════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(212,175,55,0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,0.5); }

/* ═══════════════════════════════════════════════════════
   Animations (shared)
   ═══════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulseGold {
  0%   { box-shadow: 0 4px 20px rgba(212,175,55,0.4); }
  50%  { box-shadow: 0 4px 35px rgba(212,175,55,0.7); }
  100% { box-shadow: 0 4px 20px rgba(212,175,55,0.4); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease both; }
.animate-fade-in    { animation: fadeIn 0.4s ease both; }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ─── Background Dolphin Animation ─── */
.bg-dolphin {
  position: absolute;
  width: 600px;
  height: auto;
  object-fit: contain;
  opacity: 0.05;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  animation: dolphinSwimAcross 20s linear infinite;
  pointer-events: none;
  z-index: -1; /* Always behind content */
  mix-blend-mode: screen; /* Fix for checkerboard/black backgrounds */
  filter: invert(1) sepia(1) saturate(5) hue-rotate(-15deg); /* Make it golden if source is black */
}

@keyframes dolphinSwimAcross {
  0% { transform: translateY(-50%) translateX(100vw); }
  100% { transform: translateY(-50%) translateX(-100vw); }
}

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE ENHANCEMENTS
   ═══════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  /* Ensure all buttons have adequate touch targets (min 44px) */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .btn-sm {
    min-height: 40px;
    padding: 0.6rem 1.2rem;
  }

  /* Full width cards on mobile */
  .card {
    width: 100%;
  }

  /* Larger text for readability */
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Ensure modals are full width with padding on mobile */
  .modal {
    max-width: 100%;
    margin: var(--space-md);
  }

  /* Ensure form inputs are large enough for mobile */
  .form-input,
  .form-select,
  .form-textarea {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Toast notifications on mobile */
  #toast-container {
    bottom: var(--space-md);
    right: var(--space-md);
    left: var(--space-md);
  }

  .toast {
    max-width: 100%;
  }

  /* Offer cards full width on mobile */
  .offer-card {
    width: 100%;
  }

  /* Ensure tables are scrollable on mobile */
  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ─── MyLead OfferWall ─────────────────────────────── */
.offerwall-section { width:100%; margin-bottom:2rem; padding:0 1rem; }
.offerwall-header { margin-bottom:1rem; color:#C9A84C; }
.offerwall-header h2 { font-size:1.4rem; margin-bottom:0.25rem; }
.offerwall-header p { color:var(--text-secondary); font-size:0.95rem; margin:0; }
