/* ================================================================
   XCHANGEPRO — CSS PROFESSIONNEL FINTECH
   Design: Bleu & Blanc Premium | Expert FinTech
   Fonts: Nunito + Poppins | Icons: Font Awesome 6
   ================================================================ */

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

/* ---- VARIABLES ---- */
:root {
  /* Palette Bleu & Blanc */
  --blue-900:   #0A1628;
  --blue-800:   #0D2144;
  --blue-700:   #0F3460;
  --blue-600:   #1565C0;
  --blue-500:   #1976D2;
  --blue-400:   #2196F3;
  --blue-300:   #42A5F5;
  --blue-200:   #90CAF9;
  --blue-100:   #BBDEFB;
  --blue-50:    #E3F2FD;

  /* Accents */
  --accent:       #00B4D8;
  --accent-dark:  #0096C7;
  --accent-light: #90E0EF;
  --gold:         #FFB300;
  --gold-light:   #FFD54F;
  --green:        #00C853;
  --green-dark:   #00A844;
  --red:          #F44336;
  --orange:       #FF6D00;

  /* Backgrounds */
  --white:     #FFFFFF;
  --gray-50:   #F8FAFC;
  --gray-100:  #F1F5F9;
  --gray-200:  #E2E8F0;
  --gray-300:  #CBD5E1;
  --gray-400:  #94A3B8;
  --gray-500:  #64748B;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1E293B;

  /* Textes */
  --text-dark:      #0A1628;
  --text-body:      #334155;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;

  /* Typographie */
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Design tokens */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;

  --shadow-xs: 0 1px 3px rgba(10,22,40,0.08);
  --shadow-sm: 0 2px 8px rgba(10,22,40,0.10);
  --shadow:    0 4px 16px rgba(10,22,40,0.12);
  --shadow-md: 0 8px 28px rgba(10,22,40,0.14);
  --shadow-lg: 0 16px 48px rgba(10,22,40,0.18);
  --shadow-xl: 0 24px 64px rgba(10,22,40,0.22);

  --shadow-blue: 0 8px 32px rgba(21,101,192,0.25);
  --shadow-blue-lg: 0 16px 48px rgba(21,101,192,0.35);
  --shadow-accent: 0 8px 32px rgba(0,180,216,0.30);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--blue-500); }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-400); }

/* ================================================================
   NAVBAR PRINCIPALE
   ================================================================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  height: 72px;
  display: flex; align-items: center;
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 800;
  color: var(--blue-700);
  white-space: nowrap;
}
.navbar-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.15rem;
  box-shadow: var(--shadow-blue);
  flex-shrink: 0;
}
.navbar-logo i { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; flex: 1; justify-content: center; }
.nav-menu a {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600; color: var(--text-muted);
  transition: var(--transition);
}
.nav-menu a i { font-size: 0.82rem; }
.nav-menu a:hover { color: var(--blue-600); background: var(--blue-50); }
.nav-menu a.active { color: var(--blue-600); background: var(--blue-50); }
.nav-menu a.active i { color: var(--blue-500); }

.navbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.user-menu {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: var(--radius);
  background: var(--gray-50); border: 1px solid var(--gray-200);
  cursor: pointer; transition: var(--transition);
}
.user-menu:hover { background: var(--blue-50); border-color: var(--blue-200); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.75rem; font-weight: 700;
}
.user-info { line-height: 1.2; }
.user-name { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); }
.user-role { font-size: 0.72rem; color: var(--text-muted); }

.notif-btn {
  position: relative; width: 40px; height: 40px;
  border-radius: var(--radius); border: 1px solid var(--gray-200);
  background: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.95rem;
  transition: var(--transition);
}
.notif-btn:hover { background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-200); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: white;
  font-size: 0.65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* ================================================================
   BOUTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
  cursor: pointer; border: 2px solid transparent; white-space: nowrap;
  transition: var(--transition); letter-spacing: 0.2px;
}
.btn i { font-size: 0.85rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 100%);
  color: white; border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  box-shadow: var(--shadow-blue-lg);
  transform: translateY(-2px);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: white; border-color: transparent;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-white {
  background: white; color: var(--blue-700);
  border-color: var(--gray-200); box-shadow: var(--shadow-xs);
}
.btn-white:hover { background: var(--blue-50); border-color: var(--blue-200); }
.btn-outline {
  background: transparent; color: var(--blue-600);
  border-color: var(--blue-400);
}
.btn-outline:hover { background: var(--blue-50); }
.btn-outline-white {
  background: transparent; color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-success { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: white; box-shadow: 0 6px 20px rgba(0,200,83,0.3); }
.btn-success:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-danger { background: linear-gradient(135deg, #C62828, var(--red)); color: white; box-shadow: 0 6px 20px rgba(244,67,54,0.3); }
.btn-warning { background: linear-gradient(135deg, #E65100, var(--orange)); color: white; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); color: var(--text-body); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; border-radius: var(--radius-sm); gap: 6px; }
.btn-sm i { font-size: 0.75rem; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; border-radius: var(--radius-lg); gap: 10px; }
.btn-xl { padding: 18px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); gap: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ================================================================
   HERO SECTION — Page d'accueil
   ================================================================ */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-600) 100%);
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; flex-direction: column;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 50%, rgba(0,180,216,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(255,179,0,0.08) 0%, transparent 50%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-circles {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  animation: pulse-ring 6s ease-in-out infinite;
}
.hero-circle:nth-child(1) { width: 500px; height: 500px; right: -100px; top: -100px; animation-delay: 0s; }
.hero-circle:nth-child(2) { width: 700px; height: 700px; right: -200px; top: -200px; animation-delay: 1.5s; }
.hero-circle:nth-child(3) { width: 900px; height: 900px; right: -300px; top: -300px; animation-delay: 3s; }
@keyframes pulse-ring {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.1; transform: scale(1.03); }
}

.hero-nav {
  position: relative; z-index: 10;
  max-width: 1280px; margin: 0 auto; padding: 1.5rem 2rem;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.hero-nav .brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: white;
}
.hero-nav .logo-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: white;
}
.hero-nav .nav-links { display: flex; gap: 6px; }
.hero-nav .nav-links a {
  padding: 8px 16px; border-radius: var(--radius);
  color: rgba(255,255,255,0.75); font-size: 0.88rem; font-weight: 600;
  transition: var(--transition);
}
.hero-nav .nav-links a:hover { background: rgba(255,255,255,0.1); color: white; }
.hero-nav .nav-actions { display: flex; gap: 10px; }

.hero-body {
  flex: 1; display: flex; align-items: center;
  position: relative; z-index: 5;
}
.hero-content-wrap {
  max-width: 1280px; margin: 0 auto; padding: 4rem 2rem;
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.hero-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 30px;
  background: rgba(0,180,216,0.2); border: 1px solid rgba(0,180,216,0.4);
  color: var(--accent-light); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease both;
}
.hero-tagline i { color: var(--gold-light); }
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 900; color: white; line-height: 1.08; margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s 0.1s ease both;
}
.hero h1 .highlight {
  color: transparent;
  background: linear-gradient(135deg, #FFD54F, #FFB300, #00B4D8);
  -webkit-background-clip: text; background-clip: text;
}
.hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,0.75); line-height: 1.75;
  margin-bottom: 2.5rem; max-width: 500px;
  animation: fadeInUp 0.7s 0.2s ease both;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.3s ease both;
}
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem;
  animation: fadeInUp 0.7s 0.4s ease both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 900; color: white;
}
.hero-stat .num span { color: var(--accent-light); }
.hero-stat .lbl { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.hero-divider { width: 1px; background: rgba(255,255,255,0.1); }

/* Hero Right — Exchange Card */
.hero-card-wrap {
  animation: fadeInRight 0.8s 0.2s ease both;
  display: flex; align-items: center; justify-content: center;
}
.exchange-showcase {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}
.exchange-showcase-title {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  color: white; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 10px;
}
.exchange-showcase-title i { color: var(--accent-light); }
.op-selector {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  align-items: center; margin-bottom: 1.5rem;
}
.op-box {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 14px;
  text-align: center; transition: var(--transition); cursor: pointer;
}
.op-box:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.op-box .op-logo {
  width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900; color: white;
}
.op-box .op-name { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.8); }
.op-box .op-type { font-size: 0.68rem; color: rgba(255,255,255,0.45); margin-top: 2px; }
.swap-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,180,216,0.25); border: 1px solid rgba(0,180,216,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light); font-size: 1rem; cursor: pointer; transition: var(--transition);
}
.swap-btn:hover { background: rgba(0,180,216,0.4); transform: rotate(180deg); }
.amount-field {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.amount-field label { font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.amount-field input {
  background: none; border: none; outline: none;
  color: white; font-family: var(--font-head); font-size: 1.2rem; font-weight: 800;
  flex: 1; text-align: right;
}
.amount-field input::placeholder { color: rgba(255,255,255,0.25); }
.commission-bar {
  background: rgba(255,179,0,0.12); border: 1px solid rgba(255,179,0,0.25);
  border-radius: var(--radius); padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.commission-bar span { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.commission-bar strong { color: var(--gold-light); font-size: 0.88rem; }

/* ================================================================
   OPERATORS STRIP
   ================================================================ */
.operators-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}
.operators-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
}
.op-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 30px;
  border: 1.5px solid var(--gray-200);
  font-size: 0.82rem; font-weight: 700; color: var(--text-body);
  transition: var(--transition); cursor: default;
}
.op-chip:hover { border-color: var(--blue-300); background: var(--blue-50); }
.op-chip .op-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: white; }
.op-chip.mtn   .op-icon { background: linear-gradient(135deg, #E6AC00, #FFD700); }
.op-chip.moov  .op-icon { background: linear-gradient(135deg, #0053A0, #0077CC); }
.op-chip.celtis .op-icon { background: linear-gradient(135deg, #C0001A, #FF1A35); }
.op-chip.cash  .op-icon { background: linear-gradient(135deg, #007A33, #00B84A); }

/* ================================================================
   FEATURES / HOW IT WORKS
   ================================================================ */
.section {
  padding: 6rem 0;
}
.section-alt { background: var(--white); }
.section-blue { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--blue-500); margin-bottom: 1rem;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; width: 30px; height: 2px; background: var(--blue-300); border-radius: 2px;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900; color: var(--text-dark); line-height: 1.15;
}
.section-title .accent { color: var(--blue-600); }
.section-sub { font-size: 1rem; color: var(--text-muted); margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.container-xs { max-width: 560px; margin: 0 auto; padding: 0 2rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps-grid::before {
  content: ''; position: absolute;
  top: 40px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--blue-200), var(--accent-light), var(--blue-200));
  border-radius: 2px; z-index: 0;
}
.step-card {
  text-align: center; position: relative; z-index: 1;
  animation: fadeInUp 0.6s ease both;
}
.step-card:nth-child(2) { animation-delay: 0.1s; }
.step-card:nth-child(3) { animation-delay: 0.2s; }
.step-card:nth-child(4) { animation-delay: 0.3s; }
.step-num-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: var(--white); border: 2px solid var(--blue-200);
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.step-card:hover .step-num-wrap {
  border-color: var(--blue-500); background: var(--blue-50);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px);
}
.step-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.3rem;
}
.step-badge {
  position: absolute; top: -6px; right: -6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--blue-900);
  font-size: 0.68rem; font-weight: 900; border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* Feature cards */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem; transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue-200); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 60px; height: 60px; border-radius: var(--radius-lg);
  background: var(--blue-50); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--blue-600); margin-bottom: 1.25rem;
  transition: var(--transition);
}
.feature-card:hover .feature-icon { background: linear-gradient(135deg, var(--blue-600), var(--accent)); color: white; }
.feature-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ================================================================
   CARTES / CARDS
   ================================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
}
.card-flat { border-radius: var(--radius-lg); padding: 1.5rem; }
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--gray-100);
}
.card-title {
  font-family: var(--font-head); font-size: 1rem; font-weight: 800;
  color: var(--text-dark); display: flex; align-items: center; gap: 10px;
}
.card-title i { color: var(--blue-500); font-size: 1rem; }

/* Stat cards */
.stat-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 1.5rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-card-accent {
  position: absolute; top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--stat-color, rgba(21,101,192,0.08)) 0%, transparent 70%);
}
.stat-icon-wrap {
  width: 50px; height: 50px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1.25rem;
  background: var(--stat-bg, var(--blue-50));
  color: var(--stat-color, var(--blue-600));
}
.stat-value {
  font-family: var(--font-head); font-size: 2rem; font-weight: 900;
  color: var(--text-dark); line-height: 1;
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; font-weight: 600; }
.stat-change { font-size: 0.78rem; font-weight: 700; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ================================================================
   FORMULAIRES
   ================================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700; color: var(--text-body);
  margin-bottom: 7px; letter-spacing: 0.2px;
}
.form-label i { color: var(--blue-400); font-size: 0.78rem; }
.form-control {
  width: 100%; padding: 11px 15px;
  background: var(--white); color: var(--text-dark);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: 0.9rem; transition: var(--transition); outline: none;
}
.form-control:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:disabled { background: var(--gray-100); cursor: not-allowed; opacity: 0.7; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--blue-400); font-size: 0.9rem; pointer-events: none;
}
.input-suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.82rem; font-weight: 700; pointer-events: none;
}
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.form-hint i { color: var(--blue-400); }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.form-success { font-size: 0.78rem; color: var(--green); margin-top: 5px; }

/* Type selector (radio custom) */
.type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-option input[type="radio"] { display: none; }
.type-option label {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 1.5rem 1rem; border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200); cursor: pointer;
  transition: var(--transition); text-align: center; background: var(--white);
}
.type-option label:hover { border-color: var(--blue-300); background: var(--blue-50); }
.type-option input:checked + label {
  border-color: var(--blue-500); background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.type-option .type-icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; transition: var(--transition);
}
.type-option input:checked + label .type-icon {
  background: linear-gradient(135deg, var(--blue-600), var(--accent)); color: white;
}
.type-icon i { color: var(--blue-500); font-size: 1.2rem; }
.type-option input:checked + label .type-icon i { color: white; }
.type-option .type-label { font-size: 0.9rem; font-weight: 800; color: var(--text-dark); }
.type-option .type-desc { font-size: 0.75rem; color: var(--text-muted); }

/* Operateur grid */
.op-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.op-item input { display: none; }
.op-item label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
  cursor: pointer; transition: var(--transition); background: var(--white); text-align: center;
}
.op-item label:hover { border-color: var(--blue-300); background: var(--blue-50); }
.op-item input:checked + label { border-color: var(--blue-500); background: var(--blue-50); }
.op-item .op-img {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: white; font-weight: 900;
}
.op-item .op-n { font-size: 0.72rem; font-weight: 700; color: var(--text-body); }

/* Commission preview */
.commission-preview {
  background: linear-gradient(135deg, var(--blue-50), rgba(0,180,216,0.05));
  border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg);
  padding: 1.25rem; margin: 1rem 0;
}
.commission-preview .cp-title {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--blue-600); margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.commission-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 0.85rem; color: var(--text-muted);
  border-bottom: 1px dashed var(--gray-200);
}
.commission-row:last-child { border: none; }
.commission-row.total {
  padding-top: 10px; margin-top: 5px;
  font-size: 1rem; font-weight: 800; color: var(--text-dark);
}
.commission-row.total .cr-val { color: var(--blue-600); font-size: 1.1rem; }
.cr-val { font-weight: 700; color: var(--text-dark); }
.cr-val.neg { color: var(--red); }
.cr-val.pos { color: var(--green); }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 2.5rem 2rem; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--gray-50);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--blue-400); background: var(--blue-50);
}
.upload-zone .uz-icon {
  width: 60px; height: 60px; border-radius: var(--radius-lg);
  background: var(--blue-50); border: 1.5px solid var(--blue-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--blue-500); margin: 0 auto 1rem;
}
.upload-zone .uz-text { font-weight: 700; color: var(--text-body); margin-bottom: 4px; }
.upload-zone .uz-hint { font-size: 0.8rem; color: var(--text-muted); }
.upload-zone .uz-hint span { color: var(--blue-600); font-weight: 700; }

/* ================================================================
   BADGES / STATUTS
   ================================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.3px;
  white-space: nowrap;
}
.badge i { font-size: 0.65rem; }
.badge-pending    { background: #FFF8E1; color: #F57F17; border: 1px solid #FFECB3; }
.badge-processing { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }
.badge-confirmed  { background: #E8F5E9; color: #1B5E20; border: 1px solid #C8E6C9; }
.badge-rejected   { background: #FFEBEE; color: #B71C1C; border: 1px solid #FFCDD2; }
.badge-cancelled  { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-300); }
.badge-admin      { background: #EDE7F6; color: #4527A0; border: 1px solid #D1C4E9; }
.badge-client     { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); }

/* ================================================================
   TABLES
   ================================================================ */
.table-container {
  border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  overflow: hidden; background: var(--white); box-shadow: var(--shadow-xs);
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--gray-50); border-bottom: 2px solid var(--gray-200); }
th {
  padding: 13px 18px; text-align: left;
  font-size: 0.73rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--text-muted); white-space: nowrap;
}
th i { margin-right: 5px; color: var(--blue-400); }
td {
  padding: 14px 18px; font-size: 0.87rem; color: var(--text-body);
  border-bottom: 1px solid var(--gray-100);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: var(--transition-fast); }
tbody tr:hover { background: var(--blue-50); }
.td-ref { font-family: var(--font-head); font-size: 0.8rem; font-weight: 800; color: var(--blue-600); letter-spacing: 0.5px; }
.td-main { font-weight: 700; color: var(--text-dark); }
.td-sub { font-size: 0.76rem; color: var(--text-muted); margin-top: 1px; }
.td-amount { font-family: var(--font-head); font-weight: 800; color: var(--text-dark); }
.td-green { color: var(--green-dark); font-weight: 800; }
.td-red { color: var(--red); font-weight: 700; }
.td-gold { color: #E65100; font-weight: 800; }

/* ================================================================
   FLASH MESSAGES
   ================================================================ */
.flash-wrap { padding: 0 2rem; margin: 1rem auto; max-width: 1280px; }
.flash {
  padding: 14px 18px; border-radius: var(--radius);
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.88rem; font-weight: 600; border-left: 4px solid;
  animation: slideDown 0.3s ease;
}
.flash-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.flash-success { background: #F1FFF8; color: #1B5E20; border-color: var(--green); }
.flash-error   { background: #FFF5F5; color: #B71C1C; border-color: var(--red); }
.flash-info    { background: #EBF4FF; color: #1565C0; border-color: var(--blue-500); }
.flash-warning { background: #FFFBF0; color: #E65100; border-color: var(--gold); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ================================================================
   SIDEBAR ADMIN
   ================================================================ */
.admin-layout { display: flex; min-height: 100vh; background: var(--gray-50); }
.sidebar {
  width: 270px; min-height: 100vh; flex-shrink: 0;
  background: var(--blue-900);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-brand {
  padding: 1.5rem 1.5rem 1rem;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-brand .sb-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,180,216,0.3);
  flex-shrink: 0;
}
.sidebar-brand .sb-name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: white;
}
.sidebar-brand .sb-tag {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.45); margin-top: 1px;
}

.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-section {
  padding: 1.25rem 1.5rem 0.4rem;
  font-size: 0.67rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; color: rgba(255,255,255,0.3);
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 1.5rem; margin: 1px 0;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.875rem; font-weight: 600; transition: var(--transition);
  border-left: 3px solid transparent; position: relative;
}
.sidebar-link i { font-size: 0.95rem; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-link:hover { color: white; background: rgba(255,255,255,0.06); }
.sidebar-link.active {
  color: white; background: rgba(33,150,243,0.15);
  border-left-color: var(--blue-400);
}
.sidebar-link.active i { color: var(--blue-300); }
.sidebar-badge {
  margin-left: auto; padding: 2px 7px; border-radius: 10px;
  background: var(--red); color: white; font-size: 0.66rem; font-weight: 800;
}

.sidebar-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.sb-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-500), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.78rem; font-weight: 800;
}
.sb-uname { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.sb-urole { font-size: 0.7rem; color: rgba(255,255,255,0.35); }
.sb-logout {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.45); font-size: 0.8rem; font-weight: 600;
  transition: var(--transition);
}
.sb-logout:hover { color: #EF9A9A; }

.admin-main { flex: 1; padding: 2rem 2.5rem; min-width: 0; }
.admin-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.page-title {
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 900; color: var(--text-dark);
}
.page-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb i { font-size: 0.6rem; color: var(--gray-400); }
.breadcrumb span { color: var(--blue-600); font-weight: 700; }

/* ================================================================
   AUTH PAGES
   ================================================================ */
.auth-page {
  min-height: 100vh; display: flex;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  position: relative; overflow: hidden;
}
.auth-bg-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-rule='evenodd'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2l-2 2-36 36v-2zm2 4L80 0v2L44 40h-2zm4 0L80 4v2L48 40h-2zm4 0L80 8v2L52 40h-2zm4 0L80 12v2L56 40h-2zm4 0L80 16v2L60 40h-2zm4 0L80 20v2L64 40h-2zm4 0L80 24v2L68 40h-2zm4 0L80 28v2L72 40h-2zm4 0L80 32v2L76 40h-2zm4 0L80 36v2L80 40h-2z'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-left {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 4rem; position: relative; z-index: 1;
}
.auth-left .brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 4rem;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: white;
}
.auth-left .brand .logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: white;
}
.auth-left h2 {
  font-family: var(--font-head); font-size: 2.8rem; font-weight: 900;
  color: white; line-height: 1.1; margin-bottom: 1.25rem;
}
.auth-left h2 span { color: var(--accent-light); }
.auth-left p { color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.7; max-width: 440px; }
.auth-perks { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 14px; }
.auth-perk {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 600;
}
.auth-perk .perk-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--accent-light); flex-shrink: 0;
}

.auth-right {
  width: 520px; flex-shrink: 0;
  background: var(--white); display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 3.5rem;
}
.auth-right .auth-header { margin-bottom: 2rem; }
.auth-right h3 {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 900;
  color: var(--text-dark); margin-bottom: 6px;
}
.auth-right .auth-sub { font-size: 0.9rem; color: var(--text-muted); }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; color: var(--text-muted); margin: 1.5rem 0;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* ================================================================
   TIMELINE
   ================================================================ */
.timeline { list-style: none; }
.tl-item { display: flex; gap: 16px; padding-bottom: 1.75rem; position: relative; }
.tl-item::before {
  content: ''; position: absolute;
  left: 19px; top: 44px; bottom: 0; width: 2px;
  background: var(--gray-200);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; z-index: 1;
  background: var(--white); border: 2px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-muted); transition: var(--transition);
}
.tl-dot.active { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-600); }
.tl-dot.done   { border-color: var(--green); background: #E8F5E9; color: var(--green-dark); }
.tl-dot.error  { border-color: var(--red); background: #FFEBEE; color: var(--red); }
.tl-content h4 { font-size: 0.9rem; font-weight: 800; color: var(--text-dark); margin-bottom: 3px; }
.tl-content p  { font-size: 0.8rem; color: var(--text-muted); }

/* ================================================================
   DEMANDE CARD (liste)
   ================================================================ */
.demande-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 1.5rem;
  transition: var(--transition); cursor: pointer;
}
.demande-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); transform: translateY(-3px); }
.dc-ref {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 800;
  color: var(--blue-600); letter-spacing: 1px; text-transform: uppercase;
}
.dc-exchange {
  display: flex; align-items: center; gap: 10px; margin: 10px 0;
}
.dc-op {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 20px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  font-size: 0.78rem; font-weight: 700; color: var(--text-body);
}
.dc-op .oi { width: 18px; height: 18px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; color: white; }
.dc-arrow { color: var(--blue-400); font-size: 0.8rem; }
.dc-amounts {
  background: var(--gray-50); border-radius: var(--radius);
  padding: 10px 14px; margin: 10px 0;
  display: flex; justify-content: space-between;
}
.dc-amount-item { text-align: center; }
.dc-amount-item .lbl { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.dc-amount-item .val { font-family: var(--font-head); font-size: 0.95rem; font-weight: 800; color: var(--text-dark); margin-top: 2px; }
.dc-amount-item .val.green { color: var(--green-dark); }
.dc-amount-item .val.red { color: var(--red); }
.dc-footer { display: flex; justify-content: space-between; align-items: center; }
.dc-date { font-size: 0.75rem; color: var(--text-muted); }

/* ================================================================
   MODAL
   ================================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,22,40,0.5); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-box {
  background: var(--white); border-radius: var(--radius-2xl);
  width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.75rem 2rem 1.25rem; border-bottom: 1px solid var(--gray-200);
}
.modal-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 900; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.modal-title i { color: var(--blue-500); }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gray-100); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem; transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--text-dark); }
.modal-body { padding: 1.75rem 2rem; }
.modal-footer { padding: 1.25rem 2rem; border-top: 1px solid var(--gray-200); display: flex; gap: 10px; justify-content: flex-end; }

/* ================================================================
   INFO BOX
   ================================================================ */
.info-box {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  border-left: 4px solid; margin-bottom: 1rem;
}
.info-box i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.info-box.blue { background: var(--blue-50); border-color: var(--blue-500); color: #1a3a6e; }
.info-box.blue i { color: var(--blue-500); }
.info-box.gold { background: #FFF8E1; border-color: var(--gold); color: #6D4C00; }
.info-box.gold i { color: var(--gold); }
.info-box.green { background: #F1FFF8; border-color: var(--green); color: #1B4E2D; }
.info-box.green i { color: var(--green); }
.info-box.red { background: #FFF5F5; border-color: var(--red); color: #7C1415; }
.info-box.red i { color: var(--red); }
.info-box-body { font-size: 0.85rem; line-height: 1.55; }
.info-box-title { font-weight: 800; margin-bottom: 3px; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--blue-900);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.6);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 1rem;
}
.footer-brand .logo-box {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-500), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 800;
  color: white; text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 1rem;
}
.footer-col a {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.83rem; color: rgba(255,255,255,0.55);
  margin-bottom: 8px; transition: var(--transition);
}
.footer-col a:hover { color: var(--accent-light); }
.footer-col a i { font-size: 0.7rem; color: var(--blue-400); width: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.75rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; font-size: 0.8rem;
}
.footer-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-op-badge {
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.73rem; font-weight: 700; color: rgba(255,255,255,0.6);
}

/* ================================================================
   UTILITIES
   ================================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 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.25rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.72rem; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-blue { color: var(--blue-600); }
.text-green { color: var(--green-dark); }
.text-red { color: var(--red); }
.text-gold { color: #E65100; }
.text-muted { color: var(--text-muted); }
.text-dark { color: var(--text-dark); }
.text-white { color: white; }
.text-head { font-family: var(--font-head); }
.separator { height: 1px; background: var(--gray-200); margin: 1.25rem 0; }
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.mb-8{margin-bottom:32px}
.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}
.p-0{padding:0}
.hidden{display:none!important}
.w-full{width:100%}
.rounded{border-radius:var(--radius)}
.rounded-lg{border-radius:var(--radius-lg)}
.shadow{box-shadow:var(--shadow)}
.shadow-md{box-shadow:var(--shadow-md)}
.overflow-hidden{overflow:hidden}

/* Spinner */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--gray-300); border-top-color: var(--blue-500); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tooltip */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); white-space: nowrap;
  background: var(--blue-900); color: white; font-size: 0.75rem;
  padding: 5px 10px; border-radius: 6px; pointer-events: none;
  opacity: 0; transition: opacity 0.2s; z-index: 100;
  box-shadow: var(--shadow-md);
}
[data-tip]:hover::after { opacity: 1; }

/* Copy btn */
.copy-btn {
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 4px 10px; font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
  cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 5px;
}
.copy-btn:hover { background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-300); }

/* Animations */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight{ from { opacity: 0; transform: translateX(30px);  } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .hero-content-wrap { grid-template-columns: 1fr; }
  .hero-card-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid::before { display: none; }
}
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { width: 100%; padding: 2.5rem 2rem; }
  .admin-main { padding: 1.25rem; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .admin-layout { flex-direction: column; }
  .op-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .type-selector { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .auth-right { padding: 2rem 1.25rem; }
  .op-grid { grid-template-columns: repeat(2,1fr); }
  html { font-size: 14px; }
}
