/* ============================================================
   BarakaCoin — Main Stylesheet
   Theme: Islamic Luxury Gold × Deep Forest Green
   Fonts: Tajawal (Arabic) + Cinzel Decorative (display)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cinzel+Decorative:wght@400;700;900&family=Cairo:wght@300;400;600;700;900&display=swap');

/* ── CSS Variables (overridden by DB theme settings via PHP) ── */
:root {
  /* Gold Palette */
  --gold-300:  #FFD452;
  --gold-500:  #D4A017;
  --gold-700:  #8B6508;
  --accent:    #F5C518;

  /* Green Palette */
  --green-900: #0A1F0F;
  --green-700: #12381C;
  --green-500: #1E5C2E;
  --green-300: #2E9E50;

  /* Text */
  --text-main:  #FFFFFF;
  --text-muted: rgba(255,255,255,0.60);
  --text-dim:   rgba(255,255,255,0.35);

  /* Cards */
  --card-bg:    rgba(255,255,255,0.04);
  --border:     rgba(212,160,23,0.25);
  --border-strong: rgba(212,160,23,0.55);

  /* Gradients */
  --grad-gold:  linear-gradient(135deg, #8B6508 0%, #D4A017 35%, #FFD452 65%, #D4A017 100%);
  --grad-hero:  linear-gradient(155deg, #0A1F0F 0%, #0D2B15 45%, #12381C 75%, #1A4D28 100%);
  --grad-card:  linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);

  /* Shadows */
  --shadow-gold: 0 4px 24px rgba(212,160,23,0.40);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 60px rgba(212,160,23,0.15);

  /* Radius */
  --r-sm:   8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;
  --r-full:9999px;

  /* Typography */
  --font-body:    'Cairo', 'Tajawal', sans-serif;
  --font-display: 'Cinzel Decorative', serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.3s;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  background: var(--green-900);
  color: var(--text-main);
  direction: rtl;
  line-height: 1.75;
  overflow-x: hidden;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--green-900); }
::-webkit-scrollbar-thumb { background: var(--gold-500); border-radius: 3px; }

/* ── Selection ───────────────────────────────────────────── */
::selection { background: rgba(212,160,23,0.30); color: #fff; }

/* ─────────────────────────────────────────────────────────── */
/*  TYPOGRAPHY                                                 */
/* ─────────────────────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.display-lg {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-main);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0.75rem auto 0;
}
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }

/* ─────────────────────────────────────────────────────────── */
/*  LAYOUT                                                     */
/* ─────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 96px 0; }
.section-center { text-align: center; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.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-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ─────────────────────────────────────────────────────────── */
/*  NAVBAR                                                     */
/* ─────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--t) var(--ease), padding var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10,31,15,0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: var(--border);
  padding: 0.7rem 0;
  box-shadow: 0 4px 40px rgba(0,0,0,0.45);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-mark {
  width: 42px; height: 42px;
  background: var(--grad-gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.logo-mark svg { width: 24px; height: 24px; color: var(--green-900); }
.logo-info { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-size: 1.1rem; font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: 0.03em;
}
.logo-sub { font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.08em; }

/* Nav Links */
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-muted);
  transition: color var(--t) var(--ease);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -5px; right: 0; left: 0;
  height: 2px; background: var(--grad-gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--t) var(--ease);
}
.nav-links a:hover { color: var(--gold-300); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Mobile toggle */
.nav-toggle {
  display: none; color: var(--text-main);
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(10,31,15,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t) var(--ease);
}
.nav-mobile.open { display: flex; opacity: 1; pointer-events: all; }
.nav-mobile a { font-size: 1.4rem; font-weight: 700; color: var(--text-muted); }
.nav-mobile a:hover { color: var(--gold-300); }
.nav-mobile-close {
  position: absolute; top: 1.5rem; left: 1.5rem;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────── */
/*  BUTTONS                                                    */
/* ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-weight: 700; font-size: 0.92rem;
  transition: all var(--t) var(--ease);
  white-space: nowrap; cursor: pointer;
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--green-900);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,160,23,0.55);
  filter: brightness(1.08);
}
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
  background: rgba(212,160,23,0.07);
  transform: translateY(-2px);
}

.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text-main); }
.btn-ghost:hover { background: rgba(255,255,255,0.11); }

.btn-danger { background: rgba(220,38,38,0.15); color: #ef4444; border: 1px solid rgba(220,38,38,0.25); }
.btn-danger:hover { background: rgba(220,38,38,0.25); }

.btn-success { background: rgba(22,163,74,0.15); color: #4ade80; border: 1px solid rgba(22,163,74,0.25); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-xl { padding: 1.15rem 3rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────── */
/*  CARDS                                                      */
/* ─────────────────────────────────────────────────────────── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.card-gold {
  background: linear-gradient(145deg, rgba(212,160,23,0.10) 0%, rgba(212,160,23,0.04) 100%);
  border-color: rgba(212,160,23,0.35);
}
.card-glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─────────────────────────────────────────────────────────── */
/*  FORMS                                                      */
/* ─────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.form-label { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.form-control:focus {
  border-color: var(--gold-500);
  background: rgba(212,160,23,0.07);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}
.form-control::placeholder { color: var(--text-dim); }
.form-control.error { border-color: #ef4444; }
.form-hint { font-size: 0.78rem; color: var(--text-dim); }
.form-error { font-size: 0.80rem; color: #ef4444; }

/* Input with icon */
.input-wrap { position: relative; }
.input-wrap .input-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: 1rem; width: 18px; height: 18px; color: var(--text-dim);
  pointer-events: none;
}
.input-wrap .form-control { padding-right: 2.75rem; }

.input-wrap .input-suffix {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: 1rem; font-size: 0.8rem; font-weight: 700;
  color: var(--gold-500);
}
.input-wrap .form-control.has-suffix { padding-left: 3.5rem; }

/* Select */
select.form-control {
  -webkit-appearance: none; 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 fill='%23D4A017' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 1rem center;
}
select.form-control option { background: #12381C; color: #fff; }

/* Textarea */
textarea.form-control { resize: vertical; min-height: 100px; }

/* ─────────────────────────────────────────────────────────── */
/*  HERO SECTION                                               */
/* ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
  padding: 120px 0 80px;
}

/* Animated background pattern */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212,160,23,0.08) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(30,92,46,0.20) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(212,160,23,0.05) 0%, transparent 45%);
  pointer-events: none;
}

/* Geometric arabesque overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(212,160,23,0.06)' stroke-width='0.5'%3E%3Cpolygon points='30,2 58,16 58,44 30,58 2,44 2,16'/%3E%3Cpolygon points='30,10 50,20 50,40 30,50 10,40 10,20'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.6;
}

.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.30);
  border-radius: var(--r-full);
  font-size: 0.8rem; font-weight: 700; color: var(--gold-300);
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 8px var(--gold-500);
  animation: pulse 2s infinite;
}

.hero-title { margin-bottom: 1.25rem; }
.hero-desc {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 540px; margin-bottom: 2.25rem; line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

/* Stats row in hero */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat {}
.hero-stat-value {
  font-size: 1.6rem; font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.2rem; }

/* Coin visual */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.coin-3d {
  width: 260px; height: 260px;
  background: var(--grad-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 80px rgba(212,160,23,0.4), 0 0 160px rgba(212,160,23,0.15), inset 0 -8px 24px rgba(0,0,0,0.3);
  animation: float 6s ease-in-out infinite;
  position: relative;
}
.coin-3d::before {
  content: '';
  position: absolute; inset: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
}
.coin-3d::after {
  content: '';
  position: absolute; inset: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
}
.coin-inner {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 900;
  color: var(--green-900);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1;
}
.coin-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,160,23,0.20);
  animation: spin-slow 20s linear infinite;
}
.coin-ring-1 { inset: -30px; }
.coin-ring-2 { inset: -55px; animation-direction: reverse; animation-duration: 30s; }
.coin-ring-3 { inset: -80px; opacity: 0.5; }

/* ─────────────────────────────────────────────────────────── */
/*  FEATURES / SHARIA SECTION                                  */
/* ─────────────────────────────────────────────────────────── */
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--gold-500); }
.feature-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* Sharia badge */
.sharia-seal {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  background: rgba(212,160,23,0.10);
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: var(--r-full);
  font-size: 0.85rem; font-weight: 700; color: var(--gold-300);
}
.sharia-seal svg { width: 18px; height: 18px; color: var(--gold-500); }

/* ─────────────────────────────────────────────────────────── */
/*  STATS SECTION                                              */
/* ─────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem;
}
.stat-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.stat-value {
  font-size: 2.2rem; font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }

/* ─────────────────────────────────────────────────────────── */
/*  BUY WIDGET (Landing Page)                                  */
/* ─────────────────────────────────────────────────────────── */
.buy-widget {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  position: sticky; top: 100px;
}
.buy-widget-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 1.5rem; }
.coin-calc {
  background: rgba(212,160,23,0.06);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.coin-calc-amount {
  font-size: 2rem; font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.coin-calc-label { font-size: 0.8rem; color: var(--text-muted); }

.gateway-selector { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.gateway-btn {
  flex: 1; padding: 0.7rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-size: 0.85rem; font-weight: 600;
  transition: all var(--t) var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.gateway-btn.active {
  border-color: var(--gold-500);
  background: rgba(212,160,23,0.10);
  color: var(--gold-300);
}
.gateway-btn svg { width: 22px; height: 22px; }

/* ─────────────────────────────────────────────────────────── */
/*  HOW IT WORKS                                               */
/* ─────────────────────────────────────────────────────────── */
.steps-list { display: flex; flex-direction: column; gap: 1.5rem; }
.step-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--grad-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.95rem; color: var(--green-900);
  box-shadow: var(--shadow-gold);
}
.step-body {}
.step-title { font-weight: 700; margin-bottom: 0.25rem; }
.step-desc { font-size: 0.88rem; color: var(--text-muted); }

/* ─────────────────────────────────────────────────────────── */
/*  FAQ                                                        */
/* ─────────────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.faq-question {
  width: 100%; text-align: right;
  padding: 1.1rem 1.25rem;
  background: var(--card-bg);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer; color: var(--text-main);
  transition: background var(--t);
}
.faq-question:hover { background: rgba(212,160,23,0.06); }
.faq-question svg {
  width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0;
  transition: transform var(--t) var(--ease);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.25rem;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 1rem 1.25rem; }

/* ─────────────────────────────────────────────────────────── */
/*  AUTH PAGES (Login / Register)                              */
/* ─────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--grad-hero);
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 1.5rem 3rem;
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,160,23,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.auth-card {
  width: 100%; max-width: 460px;
  background: rgba(18,56,28,0.70);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  position: relative; z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.50);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-title { font-size: 1.5rem; font-weight: 900; text-align: center; margin-bottom: 0.5rem; }
.auth-sub { font-size: 0.88rem; color: var(--text-muted); text-align: center; margin-bottom: 2rem; }
.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: var(--text-dim); font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-footer {
  text-align: center; margin-top: 1.5rem;
  font-size: 0.85rem; color: var(--text-muted);
}
.auth-footer a { color: var(--gold-300); font-weight: 600; }

/* ─────────────────────────────────────────────────────────── */
/*  DASHBOARD (Client)                                         */
/* ─────────────────────────────────────────────────────────── */
.dash-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 260px; flex-shrink: 0;
  background: rgba(10,31,15,0.98);
  border-left: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; padding: 1.5rem 0;
  display: flex; flex-direction: column;
}
.sidebar-logo { padding: 0.5rem 1.5rem 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.sidebar-nav { flex: 1; padding: 0 0.75rem; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-md);
  color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
  transition: all var(--t) var(--ease);
  margin-bottom: 0.2rem;
}
.sidebar-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-link:hover { background: rgba(212,160,23,0.07); color: var(--text-main); }
.sidebar-link.active {
  background: rgba(212,160,23,0.12);
  color: var(--gold-300);
  border-right: 3px solid var(--gold-500);
}
.sidebar-link.active svg { color: var(--gold-500); }
.sidebar-footer { padding: 1rem 0.75rem; border-top: 1px solid var(--border); margin-top: auto; }

/* Dashboard main */
.dash-main { flex: 1; overflow-x: hidden; }
.dash-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,31,15,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.dash-content { padding: 2rem; }
.dash-page-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.75rem; }

/* Balance card */
.balance-card {
  background: linear-gradient(135deg, rgba(212,160,23,0.15) 0%, rgba(18,56,28,0.80) 60%);
  border: 1px solid rgba(212,160,23,0.40);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  position: relative; overflow: hidden;
}
.balance-card::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(212,160,23,0.10) 0%, transparent 70%);
  border-radius: 50%;
}
.balance-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem; }
.balance-amount {
  font-size: 3rem; font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.balance-symbol { font-size: 1.2rem; color: var(--text-muted); margin-top: 0.5rem; }
.balance-usd-val { font-size: 1rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Metric cards */
.metric-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.metric-icon {
  width: 44px; height: 44px;
  background: rgba(212,160,23,0.12);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.metric-icon svg { width: 22px; height: 22px; color: var(--gold-500); }
.metric-val { font-size: 1.6rem; font-weight: 900; }
.metric-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Transactions table */
.tx-table { width: 100%; border-collapse: collapse; }
.tx-table thead th {
  text-align: right; padding: 0.75rem 1rem;
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.tx-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--t);
}
.tx-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.tx-table td { padding: 0.9rem 1rem; font-size: 0.88rem; vertical-align: middle; }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full); font-size: 0.75rem; font-weight: 700;
}
.badge-success { background: rgba(22,163,74,0.15); color: #4ade80; border: 1px solid rgba(22,163,74,0.25); }
.badge-pending { background: rgba(245,197,24,0.15); color: #fbbf24; border: 1px solid rgba(245,197,24,0.25); }
.badge-failed  { background: rgba(220,38,38,0.15);  color: #ef4444; border: 1px solid rgba(220,38,38,0.25); }
.badge-info    { background: rgba(59,130,246,0.15);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ─────────────────────────────────────────────────────────── */
/*  ADMIN PANEL                                                */
/* ─────────────────────────────────────────────────────────── */
.admin-sidebar { background: #060f08; }
.admin-sidebar .sidebar-link.active {
  background: rgba(212,160,23,0.10);
  border-right-color: var(--gold-500);
}

/* Admin stat cards */
.admin-stat {
  background: var(--grad-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.4rem 1.6rem;
  display: flex; align-items: center; gap: 1rem;
}
.admin-stat-icon {
  width: 48px; height: 48px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.admin-stat-icon.gold  { background: rgba(212,160,23,0.15); }
.admin-stat-icon.green { background: rgba(22,163,74,0.15); }
.admin-stat-icon.blue  { background: rgba(59,130,246,0.15); }
.admin-stat-icon.red   { background: rgba(220,38,38,0.15); }
.admin-stat-icon svg   { width: 24px; height: 24px; }
.admin-stat-icon.gold  svg { color: var(--gold-500); }
.admin-stat-icon.green svg { color: #4ade80; }
.admin-stat-icon.blue  svg { color: #60a5fa; }
.admin-stat-icon.red   svg { color: #ef4444; }
.admin-stat-val  { font-size: 1.5rem; font-weight: 900; }
.admin-stat-lbl  { font-size: 0.78rem; color: var(--text-muted); }

/* ── THEME BUILDER ────────────────────────────────────────── */
.theme-builder { display: flex; flex-direction: column; gap: 1rem; }
.theme-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t);
}
.theme-row:hover { border-color: var(--border-strong); }
.theme-preview {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer; overflow: hidden;
}
.theme-preview input[type="color"] {
  width: 200%; height: 200%; border: none; cursor: pointer;
  transform: translate(-25%, -25%);
}
.theme-info { flex: 1; }
.theme-key  { font-size: 0.78rem; font-weight: 700; color: var(--gold-300); font-family: monospace; }
.theme-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }
.theme-val  {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  font-family: monospace; min-width: 180px; text-align: center;
}

/* Color input swatch */
input[type="color"] {
  -webkit-appearance: none; border: none; cursor: pointer;
  width: 100%; height: 100%; padding: 0; background: none;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 0; }

/* ─────────────────────────────────────────────────────────── */
/*  ALERTS / TOASTS                                            */
/* ─────────────────────────────────────────────────────────── */
.alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--r-md);
  font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: flex-start; gap: 0.65rem;
  margin-bottom: 1rem;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(22,163,74,0.12); border: 1px solid rgba(22,163,74,0.25); color: #4ade80; }
.alert-danger   { background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.25); color: #ef4444; }
.alert-warning  { background: rgba(245,158,11,0.12);border: 1px solid rgba(245,158,11,0.25);color: #fbbf24; }
.alert-info     { background: rgba(59,130,246,0.12);border: 1px solid rgba(59,130,246,0.25); color: #60a5fa; }

/* Toast */
.toast-container {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.7rem;
  max-width: 360px;
}
.toast {
  background: rgba(18,56,28,0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow-card);
  font-size: 0.9rem; font-weight: 600;
  animation: slideUp 0.35s var(--ease);
}
.toast-success { border-color: rgba(22,163,74,0.40); }
.toast-danger  { border-color: rgba(220,38,38,0.40); }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────── */
/*  MODAL                                                      */
/* ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t) var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #0d2b15;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 32px 100px rgba(0,0,0,0.7);
  transform: scale(0.95);
  transition: transform var(--t) var(--ease);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1.15rem; font-weight: 800; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--t);
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text-main); }
.modal-close svg { width: 18px; height: 18px; }

/* ─────────────────────────────────────────────────────────── */
/*  FOOTER                                                     */
/* ─────────────────────────────────────────────────────────── */
.footer {
  background: #060f08;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); margin-top: 1rem; max-width: 280px; line-height: 1.8; }
.footer-col-title { font-weight: 800; font-size: 0.9rem; margin-bottom: 1rem; color: var(--text-main); }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--t); }
.footer-links a:hover { color: var(--gold-300); }
.footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--text-dim);
}
.social-links { display: flex; gap: 0.6rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--t);
}
.social-link:hover { border-color: var(--gold-500); color: var(--gold-300); background: rgba(212,160,23,0.08); }
.social-link svg { width: 16px; height: 16px; }

/* ─────────────────────────────────────────────────────────── */
/*  ANIMATIONS                                                 */
/* ─────────────────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

.animate-in { animation: fadeInUp 0.6s var(--ease) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Loading shimmer */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: var(--r-sm);
}

/* Spinner */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,0.15);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin-slow 0.7s linear infinite;
  display: inline-block;
}

/* ─────────────────────────────────────────────────────────── */
/*  UTILITIES                                                  */
/* ─────────────────────────────────────────────────────────── */
.hidden      { display: none !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.w-full      { width: 100%; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-0 { padding: 0 !important; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─────────────────────────────────────────────────────────── */
/*  RESPONSIVE                                                 */
/* ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .grid-4      { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .sidebar { display: none; }
  .dash-layout { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 60px; }
  .hero-visual { display: none; }
  .coin-3d { width: 180px; height: 180px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gateway-selector { flex-direction: column; }
  .balance-amount { font-size: 2.2rem; }
  .buy-widget { position: static; }
  .auth-card { padding: 1.75rem; }
  .dash-content { padding: 1.25rem; }
  .dash-topbar { padding: 0.8rem 1.25rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .btn-xl { padding: 0.9rem 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 1.25rem; }
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.6);
}
.sidebar.mobile-open { display: flex; position: fixed; inset: 0 auto 0 0; z-index: 950; width: 260px; animation: slideUp 0.3s var(--ease); }
@media (max-width:768px) {
  .sidebar.mobile-open + .sidebar-overlay { display: block; }
}

/* ─────────────────────────────────────────────────────────── */
/*  PRINT                                                      */
/* ─────────────────────────────────────────────────────────── */
@media print {
  .navbar, .sidebar, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}