/* ═══════════════════════════════════════════════════════
   WINWIN ADS — Design System v3
   Pearl white — nacré & lumineux
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* ── Backgrounds ── */
  --bg:          #f3f7ff;
  --bg-1:        #eaf0ff;
  --bg-2:        #e2ecff;
  --bg-card:     rgba(255, 255, 255, 0.88);
  --bg-card-2:   rgba(255, 255, 255, 0.97);

  /* ── Brand ── */
  --cyan:        #00b4d8;
  --cyan-mid:    #0096c7;
  --electric:    #2563eb;
  --purple:      #7c3aed;
  --violet:      #9333ea;
  --gold:        #d97706;
  --gold-2:      #ea580c;
  --green:       #059669;
  --red:         #dc2626;

  /* ── Glow / dim ── */
  --glow-cyan:   rgba(0, 180, 216, 0.2);
  --glow-blue:   rgba(37, 99, 235, 0.2);
  --glow-purple: rgba(124, 58, 237, 0.18);
  --glow-gold:   rgba(217, 119, 6, 0.2);
  --dim-cyan:    rgba(0, 180, 216, 0.1);
  --dim-blue:    rgba(37, 99, 235, 0.08);
  --dim-purple:  rgba(124, 58, 237, 0.08);
  --dim-gold:    rgba(217, 119, 6, 0.1);
  --dim-green:   rgba(5, 150, 105, 0.1);
  --dim-red:     rgba(220, 38, 38, 0.08);

  /* ── Text ── */
  --t1: #0d1f3c;
  --t2: #3b5a82;
  --t3: #7a9aba;
  --t4: #b8cfe4;

  /* ── Borders ── */
  --b1: rgba(37, 99, 235, 0.12);
  --b2: rgba(0, 180, 216, 0.28);
  --b-gold: rgba(217, 119, 6, 0.22);

  /* ── Radii ── */
  --r-sm:  10px;
  --r:     16px;
  --r-lg:  22px;
  --r-xl:  30px;
  --r-2xl: 40px;

  /* ── Shadows ── */
  --sh:    0 4px 24px rgba(20, 60, 140, 0.1);
  --sh-lg: 0 16px 48px rgba(20, 60, 140, 0.14);

  /* ── Layout ── */
  --max-w: 1200px;
  --nav-h: 70px;
  --t: 0.2s ease;

  /* ── Fonts ── */
  --f-head: 'Space Grotesk', sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
}

/* ════ RESET ════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  /* Fond nacré iridescent */
  background-image:
    radial-gradient(ellipse 120% 60% at 10% 0%, rgba(0,180,216,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 90% 5%, rgba(124,58,237,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(37,99,235,0.05) 0%, transparent 60%);
  color: var(--t1); font-size: 15px; line-height: 1.65; overflow-x: hidden;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--b2); border-radius: 99px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { cursor: pointer; font-family: var(--f-body); }

/* ════ LAYOUT ════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ════ TYPOGRAPHY ════ */
h1,h2,h3,h4,h5 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: var(--t1); }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--t2); line-height: 1.75; }

/* Gradient text */
.g-cyan    { background: linear-gradient(135deg, var(--cyan) 0%, var(--electric) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.g-purple  { background: linear-gradient(135deg, var(--purple) 0%, var(--violet) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.g-gold    { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.g-full    { background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 60%, var(--gold) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ════ ANIMATED BACKGROUND MESH ════ */
.mesh-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.mesh-orb {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 1;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 { width: 900px; height: 900px; left: -250px; top: -250px; background: radial-gradient(circle, rgba(0,180,216,0.16), rgba(37,99,235,0.08) 50%, transparent 70%); animation-delay: 0s; animation-duration: 14s; }
.orb-2 { width: 700px; height: 700px; right: -200px; top: 8%; background: radial-gradient(circle, rgba(124,58,237,0.12), rgba(147,51,234,0.06) 50%, transparent 70%); animation-delay: -4s; animation-duration: 18s; }
.orb-3 { width: 600px; height: 600px; left: 25%; bottom: 10%; background: radial-gradient(circle, rgba(37,99,235,0.1), rgba(0,180,216,0.05) 50%, transparent 70%); animation-delay: -8s; animation-duration: 16s; }
.orb-gold { width: 500px; height: 500px; right: 5%; bottom: 5%; background: radial-gradient(circle, rgba(217,119,6,0.08), rgba(234,88,12,0.04) 50%, transparent 70%); animation-delay: -6s; animation-duration: 20s; }

@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-40px) scale(1.04); }
  66%      { transform: translate(-20px,30px) scale(0.97); }
}

/* ════ TOPBAR ════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--nav-h);
  background: rgba(243, 247, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(37,99,235,0.1);
  box-shadow: 0 1px 24px rgba(20,60,140,0.07);
}
.topbar::after {
  content: '';
  position: absolute; bottom: -1px; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--electric), var(--purple), transparent);
  opacity: 0.4;
}
.topbar-inner {
  max-width: var(--max-w); width: 100%; margin: 0 auto;
  padding: 0 28px; height: 100%;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,229,255,0.3);
  box-shadow: 0 0 16px rgba(0,229,255,0.2);
  transition: box-shadow var(--t);
}
.brand:hover .brand-logo { box-shadow: 0 0 28px rgba(0,229,255,0.45); }
.brand-text { display: flex; flex-direction: column; gap: 0; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--t1); letter-spacing: -0.02em; }
.brand-tag  { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--t3); margin-top: -1px; }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--t2);
  padding: 7px 13px; border-radius: 9px;
  transition: all var(--t); position: relative;
}
.nav-links a:hover { color: var(--cyan); background: rgba(0,229,255,0.06); }
.nav-links a.nav-amb { color: var(--gold); }
.nav-links a.nav-amb:hover { background: var(--dim-gold); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ════ BUTTONS ════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; padding: 11px 22px;
  border-radius: var(--r); border: none;
  cursor: pointer; transition: all var(--t); white-space: nowrap;
  font-family: var(--f-body); text-decoration: none; position: relative; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity var(--t); }
.btn:hover::after { opacity: 1; }

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--electric));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,180,216,0.3);
}
.btn-primary::after { background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent); }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(0,180,216,0.45), 0 4px 16px rgba(37,99,235,0.3); transform: translateY(-2px); }

/* Ghost */
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--t2); border: 1px solid var(--b1); }
.btn-ghost:hover { border-color: var(--b2); color: var(--t1); background: rgba(255,255,255,0.95); box-shadow: var(--sh); }

/* Purple */
.btn-purple { background: linear-gradient(135deg, var(--purple), var(--violet)); color: #fff; }
.btn-purple:hover { box-shadow: 0 0 32px var(--glow-purple), 0 8px 24px rgba(0,0,0,0.4); transform: translateY(-2px); }

/* Gold */
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a0900; font-weight: 700; }
.btn-gold:hover { box-shadow: 0 0 32px var(--glow-gold), 0 8px 24px rgba(0,0,0,0.4); transform: translateY(-2px); }

/* Outline variants */
.btn-outline-cyan { background: var(--dim-cyan); color: var(--cyan); border: 1px solid rgba(0,229,255,0.25); }
.btn-outline-cyan:hover { background: rgba(0,229,255,0.14); border-color: var(--cyan); }
.btn-outline-gold { background: var(--dim-gold); color: var(--gold); border: 1px solid rgba(255,171,0,0.25); }
.btn-outline-gold:hover { background: rgba(255,171,0,0.14); border-color: var(--gold); }
.btn-outline-ghost { background: transparent; color: var(--t2); border: 1px solid var(--b1); }
.btn-outline-ghost:hover { border-color: var(--b2); color: var(--t1); }

/* Sizes */
.btn-lg { padding: 14px 30px; font-size: 15px; border-radius: var(--r-lg); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn-danger { background: var(--dim-red); color: var(--red); border: 1px solid rgba(255,23,68,0.2); }
.btn-danger:hover { background: rgba(255,23,68,0.15); }

/* ════ CARDS ════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--sh);
}
.card-glow:hover { border-color: var(--b2); box-shadow: 0 8px 40px rgba(0,180,216,0.18), 0 2px 12px rgba(20,60,140,0.1); }

/* Glass card */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,248,255,0.85));
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--sh);
}

/* ════ PILLS / BADGES ════ */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 99px;
}
.p-cyan   { background: rgba(0,180,216,0.1);   color: var(--cyan);    border: 1px solid rgba(0,180,216,0.25); }
.p-blue   { background: rgba(37,99,235,0.08);  color: var(--electric); border: 1px solid rgba(37,99,235,0.2); }
.p-purple { background: rgba(124,58,237,0.08); color: var(--purple);   border: 1px solid rgba(124,58,237,0.2); }
.p-gold   { background: rgba(217,119,6,0.1);   color: var(--gold);    border: 1px solid rgba(217,119,6,0.22); }
.p-green  { background: rgba(5,150,105,0.1);   color: var(--green);   border: 1px solid rgba(5,150,105,0.22); }
.p-red    { background: rgba(220,38,38,0.08);  color: var(--red);     border: 1px solid rgba(220,38,38,0.2); }

/* ════ INPUTS ════ */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 12.5px; font-weight: 600; color: var(--t2); letter-spacing: 0.01em; }
.input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  color: var(--t1); font-family: var(--f-body); font-size: 14px;
  outline: none; transition: all var(--t);
  box-shadow: 0 1px 4px rgba(20,60,140,0.06);
}
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,216,0.15); }
.input::placeholder { color: var(--t4); }
.input-gold:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px var(--dim-gold) !important; }
select.input { cursor: pointer; }

/* ════ TABLES ════ */
.table-wrap { overflow-x: auto; border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; }
th {
  font-family: var(--f-head); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--t3);
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--b1);
}
td { padding: 12px 16px; font-size: 13.5px; color: var(--t2); border-bottom: 1px solid rgba(60,120,200,0.06); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(0,229,255,0.02); color: var(--t1); }

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.status::before { content:''; width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.s-active::before    { background: var(--green);  box-shadow: 0 0 8px var(--green); }
.s-published::before { background: var(--cyan);   box-shadow: 0 0 8px var(--cyan); }
.s-paused::before    { background: var(--gold); }
.s-draft::before     { background: var(--t3); }
.s-archived::before  { background: var(--red); }
.s-paid::before      { background: var(--green);  box-shadow: 0 0 8px var(--green); }
.s-pending::before   { background: var(--gold); }

/* ════ DIVIDERS ════ */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(0,180,216,0.25), rgba(37,99,235,0.3), rgba(0,180,216,0.25), transparent); margin: 0; }

/* ════ SECTIONS ════ */
.section    { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; position: relative; }
.section-xs { padding: 50px 0; position: relative; }

/* Alternate section tint */
#avantages {
  background: linear-gradient(180deg, rgba(235,245,255,0.6) 0%, rgba(240,248,255,0.4) 100%);
}
#comment-ca-marche {
  background: linear-gradient(180deg, rgba(240,248,255,0.5) 0%, rgba(245,250,255,0.3) 100%);
}
#simulateur {
  background: linear-gradient(180deg, rgba(246,240,255,0.5) 0%, rgba(238,244,255,0.4) 100%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow-cyan   { color: var(--cyan); }
.eyebrow-purple { color: #b388ff; }
.eyebrow-gold   { color: var(--gold); }

.section-lead { font-size: 18px; color: var(--t2); max-width: 560px; line-height: 1.75; margin-top: 16px; }
p { color: var(--t2); line-height: 1.75; }
.section-header { margin-bottom: 60px; }
.section-center { text-align: center; }
.section-center .section-lead { margin: 16px auto 0; }

/* ════ HERO ════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 70px) 0 90px;
  position: relative; overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0; z-index: 0; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(0,180,216,0.1), rgba(37,99,235,0.08));
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: 99px; padding: 7px 16px; margin-bottom: 28px;
  font-size: 12px; font-weight: 600; color: var(--cyan); letter-spacing: 0.03em;
  box-shadow: 0 2px 12px rgba(0,180,216,0.12);
}
.hero-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-chip-gold { background: linear-gradient(135deg, rgba(217,119,6,0.1), rgba(234,88,12,0.07)); border-color: rgba(217,119,6,0.28); color: var(--gold); }

.hero-title { font-size: clamp(3rem, 6.5vw, 5.2rem); font-weight: 800; margin-bottom: 22px; line-height: 1.08; }
.hero-sub { font-size: 18px; color: var(--t2); margin-bottom: 40px; max-width: 520px; line-height: 1.75; }
.hero-sub strong { color: var(--t1); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-proof { display: flex; gap: 32px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--b1); flex-wrap: wrap; }
.hero-proof-item {}
.hero-proof-val { font-family: var(--f-head); font-size: 1.9rem; font-weight: 800; background: linear-gradient(135deg, var(--electric), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.hero-proof-lbl { font-size: 12px; color: var(--t3); margin-top: 4px; }

/* Hero right — dashboard mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-mockup-wrap {
  position: relative;
  /* subtle rotating gradient border */
}
.hero-mockup-wrap::before {
  content: '';
  position: absolute; inset: -2px; border-radius: calc(var(--r-xl) + 2px);
  background: conic-gradient(from 180deg at 50% 50%, var(--cyan) 0%, var(--electric) 25%, var(--purple) 50%, var(--violet) 75%, var(--cyan) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1.5px;
  animation: spin 8s linear infinite;
  opacity: 0.5;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dash-mockup {
  background: linear-gradient(145deg, rgba(255,255,255,0.97), rgba(240,248,255,0.95));
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  padding: 28px;
  width: 100%; max-width: 440px;
  box-shadow: 0 24px 80px rgba(20,60,140,0.15), 0 4px 24px rgba(0,180,216,0.12), inset 0 1px 0 rgba(255,255,255,1);
  position: relative; z-index: 1;
}
.dmock-header { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--b1); }
.dmock-dots { display: flex; gap: 6px; }
.dmock-dot { width: 11px; height: 11px; border-radius: 50%; }
.dmock-title { font-family: var(--f-head); font-size: 13px; font-weight: 600; margin-left: 6px; color: var(--t2); }
.dmock-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.dmock-kpi {
  background: rgba(243,248,255,0.9); border: 1px solid var(--b1);
  border-radius: var(--r); padding: 14px 16px;
  transition: all 0.3s;
}
.dmock-kpi:hover { border-color: var(--b2); box-shadow: 0 4px 16px rgba(0,180,216,0.12); }
.dmock-val { font-family: var(--f-head); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.dmock-lbl { font-size: 11px; color: var(--t3); margin-top: 4px; }
.dmock-chart { background: rgba(240,246,255,0.9); border: 1px solid var(--b1); border-radius: var(--r); padding: 14px; display: flex; align-items: flex-end; gap: 5px; height: 80px; overflow: hidden; }
.dmock-bar { flex: 1; border-radius: 4px 4px 0 0; animation: barGrow 1s ease both; }
.dmock-bar:nth-child(1) { animation-delay: 0.0s; }
.dmock-bar:nth-child(2) { animation-delay: 0.1s; }
.dmock-bar:nth-child(3) { animation-delay: 0.2s; }
.dmock-bar:nth-child(4) { animation-delay: 0.3s; }
.dmock-bar:nth-child(5) { animation-delay: 0.4s; }
.dmock-bar:nth-child(6) { animation-delay: 0.5s; }
.dmock-bar:nth-child(7) { animation-delay: 0.6s; }
@keyframes barGrow { from { transform: scaleY(0); transform-origin: bottom; opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.dmock-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.dmock-badge { font-size: 11px; color: var(--green); display: flex; align-items: center; gap: 5px; }
.dmock-badge::before { content: '↑'; font-weight: 700; }

/* Floating mini cards on the mockup */
.mock-float {
  position: absolute;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 12px; font-weight: 600;
  animation: floatY 4s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(20,60,140,0.14), 0 2px 8px rgba(0,180,216,0.1);
}
.mock-float-1 { top: -20px; right: -30px; color: var(--green); border-color: rgba(0,230,118,0.2); animation-delay: 0s; }
.mock-float-2 { bottom: 30px; left: -35px; color: var(--cyan);  border-color: rgba(0,229,255,0.2); animation-delay: -2s; }
@keyframes floatY { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }

/* ════ STATS STRIP ════ */
.stats-strip {
  border-top: 1px solid var(--b1); border-bottom: 1px solid var(--b1);
  background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(240,248,255,0.8), rgba(255,255,255,0.7));
  backdrop-filter: blur(12px);
  padding: 36px 0;
  position: relative;
}
.stats-strip-inner { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 28px; }
.stat-n  { font-family: var(--f-head); font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--electric), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-l  { font-size: 12px; color: var(--t2); margin-top: 4px; }
.stat-sep { width: 1px; height: 40px; background: var(--b1); }

/* ════ FEATURE CARDS ════ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg); padding: 30px 26px;
  transition: all 0.25s; position: relative; overflow: hidden;
  box-shadow: 0 2px 16px rgba(20,60,140,0.07);
}
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0.6; transition: opacity 0.25s;
}
.feat-card:hover { transform: translateY(-5px); border-color: var(--b2); box-shadow: 0 16px 48px rgba(20,60,140,0.13), 0 4px 16px rgba(0,180,216,0.15); }
.feat-card:hover::before { opacity: 1; }
.feat-card-cyan::before   { background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.feat-card-blue::before   { background: linear-gradient(90deg, transparent, var(--electric), transparent); }
.feat-card-purple::before { background: linear-gradient(90deg, transparent, var(--purple), transparent); }
.feat-card-gold::before   { background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.feat-icon {
  width: 48px; height: 48px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.feat-icon-cyan   { background: var(--dim-cyan);   border: 1px solid rgba(0,229,255,0.18); }
.feat-icon-blue   { background: var(--dim-blue);   border: 1px solid rgba(41,121,255,0.18); }
.feat-icon-purple { background: var(--dim-purple); border: 1px solid rgba(124,77,255,0.18); }
.feat-icon-gold   { background: var(--dim-gold);   border: 1px solid rgba(255,171,0,0.18); }
.feat-icon-green  { background: var(--dim-green);  border: 1px solid rgba(0,230,118,0.18); }

.feat-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feat-card p  { font-size: 13.5px; }

/* ════ STEPS ════ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(90deg, transparent, var(--b2), transparent); }
.step-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--b1); border-radius: var(--r-lg); padding: 30px 22px;
  position: relative; transition: all 0.2s;
  box-shadow: 0 2px 16px rgba(20,60,140,0.07);
}
.step-card:hover { transform: translateY(-4px); border-color: var(--b2); box-shadow: 0 16px 40px rgba(20,60,140,0.13), 0 4px 16px rgba(0,180,216,0.12); }
.step-n {
  font-family: var(--f-head); font-size: 3.5rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--electric));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px; display: block;
}
.step-card h4 { margin-bottom: 8px; font-size: 1.02rem; }

/* ════ FORMATS ════ */
.formats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.format-card {
  background: linear-gradient(145deg, rgba(8,18,36,0.85), rgba(5,12,26,0.75));
  border: 1px solid var(--b1); border-radius: var(--r-xl);
  padding: 36px 30px; position: relative; overflow: hidden;
  transition: all 0.25s;
}
.format-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,229,255,0.04), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.format-card:hover::after { opacity: 1; }
.format-card:hover { transform: translateY(-4px); border-color: rgba(0,229,255,0.18); box-shadow: 0 24px 56px rgba(0,0,0,0.5); }
.format-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.format-card p  { font-size: 14px; margin-bottom: 22px; }
.format-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.format-list li { font-size: 13.5px; color: var(--t2); display: flex; align-items: center; gap: 10px; }
.format-list li::before { content: '✦'; font-size: 8px; color: var(--cyan); flex-shrink: 0; }

/* ════ ROI NUMBERS ════ */
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.roi-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.roi-box {
  background: linear-gradient(145deg, rgba(8,18,36,0.85), rgba(5,12,26,0.7));
  border: 1px solid var(--b1); border-radius: var(--r-lg); padding: 24px 20px;
  position: relative; overflow: hidden;
}
.roi-box::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--electric)); opacity: 0.4; }
.roi-v { font-family: var(--f-head); font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.roi-l { font-size: 12.5px; color: var(--t2); }

/* ════ SIMULATOR ════ */
.sim-wrap {
  background: linear-gradient(145deg, rgba(8,18,36,0.9), rgba(5,12,26,0.85));
  border: 1px solid var(--b1); border-radius: var(--r-2xl); overflow: hidden;
}
.sim-header-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; border-bottom: 1px solid var(--b1); background: rgba(4,10,24,0.5); }
.sim-hcell { padding: 12px 18px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--t3); }
.sim-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; align-items: center; border-bottom: 1px solid rgba(60,120,200,0.06); transition: background var(--t); }
.sim-row:last-child { border-bottom: none; }
.sim-row:hover { background: rgba(0,229,255,0.02); }
.sim-cell { padding: 14px 18px; font-size: 13.5px; }
.sim-city  { font-weight: 600; color: var(--t1); }
.sim-input { width: 84px; padding: 7px 11px; background: rgba(4,10,24,0.9); border: 1px solid var(--b1); border-radius: 8px; color: var(--t1); font-size: 13px; outline: none; transition: border-color var(--t); }
.sim-input:focus { border-color: var(--cyan); }
.sim-min   { font-family: var(--f-head); font-weight: 700; color: var(--cyan); }
.sim-total { font-family: var(--f-head); font-weight: 700; color: var(--t1); }
.sim-footer { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; background: rgba(4,10,24,0.4); flex-wrap: wrap; gap: 16px; }
.sim-grand { font-family: var(--f-head); font-size: 2.2rem; font-weight: 800; color: var(--cyan); }

/* ════ AMBASSADOR TEASER ════ */
.amb-teaser {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,250,235,0.92) 50%, rgba(248,242,255,0.9) 100%);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: var(--r-2xl);
  padding: 64px 56px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 56px; align-items: center;
  position: relative; overflow: hidden;
}
.amb-teaser::before {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,171,0,0.1), transparent 65%);
  pointer-events: none;
}
.amb-teaser::after {
  content: ''; position: absolute; left: -60px; bottom: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,77,255,0.07), transparent 65%);
  pointer-events: none;
}
.amb-teaser-right { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 210px; position: relative; z-index: 1; }
.amb-earn-big { font-family: var(--f-head); font-size: 3.5rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--gold), var(--gold-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ════ TIERS ════ */
.tiers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tier-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--b1); border-radius: var(--r-xl);
  padding: 30px 24px; text-align: center; position: relative;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(20,60,140,0.08);
}
.tier-card:hover { transform: translateY(-5px); border-color: var(--b2); box-shadow: 0 20px 50px rgba(20,60,140,0.14), 0 4px 20px rgba(0,180,216,0.12); }
.tier-featured { border-color: rgba(217,119,6,0.35); box-shadow: 0 8px 40px rgba(217,119,6,0.16); }
.tier-featured-label { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.tier-icon  { font-size: 2.4rem; margin-bottom: 14px; display: block; }
.tier-name  { font-family: var(--f-head); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--t2); margin-bottom: 4px; }
.tier-range { font-size: 12px; color: var(--t3); margin-bottom: 20px; }
.tier-rate  { font-family: var(--f-head); font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.tier-unit  { font-size: 12px; color: var(--t2); margin-bottom: 20px; }
.tier-ex    { background: rgba(240,246,255,0.9); border: 1px solid var(--b1); border-radius: var(--r-sm); padding: 10px 14px; font-size: 12px; color: var(--t2); }
.tier-ex strong { color: var(--t1); }

/* ════ EARN CALCULATOR ════ */
.earn-calc {
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,252,240,0.94));
  border: 1px solid rgba(217,119,6,0.18);
  border-radius: var(--r-xl); padding: 44px 40px;
  max-width: 600px;
}
.earn-slider-track { position: relative; margin: 12px 0; }
.earn-slider {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 5px; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold) var(--pct,5%), var(--b2) var(--pct,5%));
  outline: none; cursor: pointer;
}
.earn-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 16px var(--glow-gold), 0 2px 8px rgba(0,0,0,0.4);
  cursor: pointer; transition: transform var(--t);
}
.earn-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.earn-result {
  background: rgba(255,252,235,0.9); border: 1px solid rgba(217,119,6,0.2);
  border-radius: var(--r-lg); padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px;
}
.earn-monthly { font-family: var(--f-head); font-size: 3rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--gold), var(--gold-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.earn-yearly  { font-family: var(--f-head); font-size: 1.2rem; font-weight: 600; color: var(--t2); }

/* ════ FAQ ════ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--b1); border-radius: var(--r-lg); overflow: hidden;
  transition: all var(--t);
  box-shadow: 0 2px 12px rgba(20,60,140,0.06);
}
.faq-item:hover { border-color: var(--b2); box-shadow: 0 6px 24px rgba(20,60,140,0.1); }
.faq-q {
  padding: 20px 24px; font-weight: 600; font-size: 15px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  user-select: none; transition: background var(--t);
}
.faq-q:hover { background: rgba(0,180,216,0.04); }
.faq-chevron { color: var(--t3); font-size: 18px; transition: transform 0.25s, color 0.25s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--cyan); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 14px; color: var(--t2); padding: 0 24px; }
.faq-item.open .faq-a { max-height: 250px; padding: 0 24px 20px; }

/* ════ CTA BANNER ════ */
.cta-banner {
  border-radius: var(--r-2xl); padding: 80px 56px; text-align: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(235,245,255,0.95) 50%, rgba(240,235,255,0.95) 100%);
  border: 1px solid var(--b1);
  box-shadow: 0 24px 80px rgba(20,60,140,0.12), 0 4px 24px rgba(0,180,216,0.1), inset 0 1px 0 rgba(255,255,255,1);
}
.cta-banner::before {
  content: ''; position: absolute; top: -80px; left: 30%; transform: translateX(-50%);
  width: 600px; height: 250px;
  background: radial-gradient(ellipse, rgba(0,180,216,0.12), transparent 70%);
  pointer-events: none;
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -60px; right: 15%;
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.08), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 18px; }
.cta-banner p  { margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; font-size: 17px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ════ FOOTER ════ */
.footer {
  background: linear-gradient(180deg, rgba(235,243,255,0.9) 0%, rgba(226,236,255,0.95) 100%);
  border-top: 1px solid var(--b1);
  padding: 72px 0 36px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,180,216,0.3), rgba(37,99,235,0.4), rgba(0,180,216,0.3), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.footer-brand-desc { font-size: 14px; color: var(--t2); margin-top: 16px; max-width: 280px; line-height: 1.75; }
.footer-col h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--t3); margin-bottom: 18px; }
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a { font-size: 14px; color: var(--t2); transition: color var(--t); }
.footer-col-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--b1); font-size: 12.5px; color: var(--t3); flex-wrap: wrap; gap: 14px; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: var(--t3); transition: color var(--t); }
.footer-bottom-links a:hover { color: var(--t2); }

/* ════ AUTH PAGES ════ */
.auth-bg {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px;
}
.auth-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--b1);
  border-radius: var(--r-2xl);
  padding: 48px 44px; width: 100%; max-width: 500px;
  box-shadow: 0 24px 80px rgba(20,60,140,0.14), 0 4px 24px rgba(0,180,216,0.1), inset 0 1px 0 rgba(255,255,255,1);
}
.auth-logo-wrap { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 30px; }
.auth-logo-img  { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(0,229,255,0.3); box-shadow: 0 0 20px rgba(0,229,255,0.18); }
.auth-logo-text { font-family: var(--f-head); font-size: 18px; font-weight: 700; }
.auth-h2   { font-size: 1.75rem; text-align: center; margin-bottom: 8px; }
.auth-sub  { text-align: center; font-size: 14px; color: var(--t2); margin-bottom: 34px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-link-row { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--t2); }
.auth-link-row a { color: var(--cyan); font-weight: 600; transition: color var(--t); }
.auth-link-row a:hover { color: var(--t1); }
.auth-link-row-gold a { color: var(--gold); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.auth-divider span { font-size: 12px; color: var(--t3); white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--b1); }
.auth-err { background: rgba(255,23,68,0.08); border: 1px solid rgba(255,23,68,0.22); border-radius: var(--r); padding: 12px 16px; font-size: 13.5px; color: var(--red); display: none; }
.auth-ok  { background: var(--dim-green); border: 1px solid rgba(0,230,118,0.25); border-radius: var(--r); padding: 12px 16px; font-size: 13.5px; color: var(--green); display: none; }
.auth-gold-card { border-color: rgba(255,171,0,0.18); box-shadow: var(--sh-lg), 0 0 80px rgba(255,171,0,0.04); }

/* ════ DASHBOARD ════ */
.dl-root { display: flex; min-height: 100vh; padding-top: var(--nav-h); }
.dl-sidebar {
  width: 224px; flex-shrink: 0;
  background: rgba(255,255,255,0.95);
  border-right: 1px solid var(--b1);
  position: fixed; top: var(--nav-h); bottom: 0; left: 0;
  display: flex; flex-direction: column; padding: 20px 12px;
  overflow-y: auto;
}
.dl-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dl-nav-sec { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--t3); padding: 14px 12px 6px; }
.dl-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; color: var(--t2);
  transition: all var(--t);
}
.dl-nav a:hover { background: rgba(255,255,255,0.04); color: var(--t1); }
.dl-nav a.dl-active { background: var(--dim-cyan); color: var(--cyan); }
.dl-nav a.dl-active-gold { background: var(--dim-gold); color: var(--gold); }
.dl-nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

.dl-main { flex: 1; margin-left: 224px; padding: 36px 44px; }
.dl-topbar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; }
.dl-page-title    { font-family: var(--f-head); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.dl-page-subtitle { font-size: 13.5px; color: var(--t2); margin-top: 4px; }

.kpi-grid  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.kpi-card  { background: rgba(255,255,255,0.92); border: 1px solid var(--b1); border-radius: var(--r-lg); padding: 22px 24px; transition: all var(--t); box-shadow: 0 2px 12px rgba(20,60,140,0.07); }
.kpi-card:hover { border-color: var(--b2); box-shadow: 0 8px 28px rgba(20,60,140,0.1); }
.kpi-lbl   { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--t3); margin-bottom: 10px; }
.kpi-val   { font-family: var(--f-head); font-size: 1.9rem; font-weight: 800; color: var(--t1); line-height: 1; }
.kpi-delta { font-size: 12px; margin-top: 7px; }
.kpi-up    { color: var(--green); }
.kpi-dn    { color: var(--red); }

.dl-section  { margin-bottom: 40px; }
.dl-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dl-sec-title{ font-family: var(--f-head); font-size: 1.05rem; font-weight: 700; }

.tbl-card { background: rgba(255,255,255,0.92); border: 1px solid var(--b1); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 2px 12px rgba(20,60,140,0.07); }

.campaign-form { background: rgba(255,255,255,0.96); border: 1px solid var(--b1); border-radius: var(--r-xl); padding: 30px 26px; display: none; margin-bottom: 22px; box-shadow: var(--sh); }
.campaign-form.open { display: block; }
.f-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.f-sec    { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--t3); margin: 20px 0 14px; }
.f-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--b1); }

/* Ambassador dashboard extras */
.ref-box { background: linear-gradient(135deg, rgba(255,171,0,0.07), rgba(255,109,0,0.04)); border: 1px solid rgba(255,171,0,0.2); border-radius: var(--r-lg); padding: 18px; margin: 12px 0; }
.ref-code { font-family: 'Courier New', monospace; font-size: 1.3rem; font-weight: 700; color: var(--gold); letter-spacing: 0.12em; }
.copy-btn { font-size: 12px; padding: 5px 12px; cursor: pointer; background: var(--dim-gold); border: 1px solid rgba(255,171,0,0.25); color: var(--gold); border-radius: 8px; transition: all var(--t); font-family: var(--f-body); font-weight: 600; }
.copy-btn:hover { background: rgba(255,171,0,0.15); }

.tier-bar-track { height: 5px; background: var(--b1); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.tier-bar-fill  { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 0.8s ease; }

.earn-hist td:last-child { font-weight: 700; color: var(--gold); }

/* ════ NOTICE ════ */
.notice { background: rgba(255,171,0,0.07); border: 1px solid rgba(255,171,0,0.2); border-radius: var(--r); padding: 14px 18px; font-size: 13.5px; color: var(--gold); }

/* ════ UTILS ════ */
.tc { text-align: center; }
.tr { text-align: right; }
.c-cyan   { color: var(--cyan); }
.c-gold   { color: var(--gold); }
.c-green  { color: var(--green); }
.c-red    { color: var(--red); }
.c-muted  { color: var(--t2); }
.c-dim    { color: var(--t3); }
.fw-bold  { font-weight: 700; }
.fh { font-family: var(--f-head); }
.mt4{margin-top:4px}.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}.mt32{margin-top:32px}.mt40{margin-top:40px}
.mb8{margin-bottom:8px}.mb16{margin-bottom:16px}.mb24{margin-bottom:24px}.mb32{margin-bottom:32px}
.flex { display: flex; }
.flex-c  { display: flex; align-items: center; }
.flex-bc { display: flex; justify-content: space-between; align-items: center; }
.gap8    { gap: 8px; }
.gap12   { gap: 12px; }
.gap16   { gap: 16px; }
.hidden  { display: none !important; }
.w-full  { width: 100%; }

/* ════ RESPONSIVE ════ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-sidebar { display: none; }
  .dl-main { margin-left: 0; padding: 24px 22px; }
  .amb-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .feat-grid { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .f-grid-2, .f-grid-3 { grid-template-columns: 1fr; }
  .sim-header-row .sim-hcell:nth-child(4), .sim-row .sim-cell:nth-child(4) { display: none; }
  .sim-header-row, .sim-row { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .cta-banner { padding: 48px 28px; }
  .amb-teaser { padding: 44px 28px; }
}
@media (max-width: 520px) {
  .tiers-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .auth-card { padding: 36px 24px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .stat-sep { display: none; }
}

/* ════ SPLIT AUTH ════ */
.split-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left branding panel */
.split-left {
  background: linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
}
.split-left-noise {
  position: absolute; inset: 0; z-index: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.split-left-orb-a {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.1), transparent 65%);
  top: -150px; left: -150px; filter: blur(80px); pointer-events: none;
}
.split-left-orb-b {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,77,255,0.1), transparent 65%);
  bottom: -100px; right: -100px; filter: blur(80px); pointer-events: none;
}
.split-left-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.04;
  background-image:
    linear-gradient(var(--b2) 1px, transparent 1px),
    linear-gradient(90deg, var(--b2) 1px, transparent 1px);
  background-size: 48px 48px;
}
.split-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.split-brand-logo {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(0,229,255,0.35); box-shadow: 0 0 24px rgba(0,229,255,0.2);
}
.split-brand-name { font-family: var(--f-head); font-size: 20px; font-weight: 800; color: var(--t1); }
.split-brand-tag  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--t3); }

.split-center { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.split-headline { font-family: var(--f-head); font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.split-sub { font-size: 15px; color: var(--t2); line-height: 1.75; max-width: 420px; margin-bottom: 40px; }

.split-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.split-stat-n { font-family: var(--f-head); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.split-stat-l { font-size: 11.5px; color: var(--t2); margin-top: 4px; }

.split-features { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.split-feat {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(4,10,24,0.6); border: 1px solid var(--b1);
  border-radius: var(--r); padding: 14px 18px;
}
.split-feat-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.split-feat-title { font-size: 13.5px; font-weight: 600; color: var(--t1); }
.split-feat-desc  { font-size: 12px; color: var(--t3); margin-top: 2px; }

.split-mockup {
  position: relative; z-index: 1; margin-top: 32px;
  background: linear-gradient(145deg, rgba(6,14,32,0.96), rgba(4,10,24,0.94));
  border: 1px solid var(--b1); border-radius: var(--r-xl); padding: 20px 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.split-mock-bar { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 12px; }
.split-mock-b { flex: 1; border-radius: 4px 4px 0 0; animation: barGrow 1s ease both; }

.split-bottom { position: relative; z-index: 1; }
.split-bottom-quote { font-size: 13px; color: var(--t2); font-style: italic; line-height: 1.65; }
.split-bottom-author { font-size: 12px; color: var(--t3); margin-top: 8px; }

/* Right form panel */
.split-right {
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 48px;
  position: relative;
}
.split-right::before {
  content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--b2), transparent);
}
.split-form-wrap { width: 100%; max-width: 420px; }
.split-form-title { font-family: var(--f-head); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.split-form-sub { font-size: 14px; color: var(--t2); margin-bottom: 36px; }
.split-form { display: flex; flex-direction: column; gap: 18px; }

@media (max-width: 900px) {
  .split-auth { grid-template-columns: 1fr; }
  .split-left  { display: none; }
  .split-right { padding: 80px 28px 60px; }
}

/* ════ PLAYER MAP ════ */
.map-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.map-filters {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: linear-gradient(145deg, rgba(8,18,36,0.8), rgba(5,12,26,0.7));
  border: 1px solid var(--b1); border-radius: var(--r-lg);
}
.map-filter-input {
  padding: 7px 12px; background: rgba(4,10,24,0.8);
  border: 1px solid var(--b1); border-radius: var(--r-sm);
  color: var(--t1); font-size: 13px; outline: none;
  transition: border-color var(--t);
}
.map-filter-input:focus { border-color: var(--cyan); }
.map-count { font-size: 12px; color: var(--t2); margin-left: auto; }
.map-count strong { color: var(--t1); font-weight: 700; }

.player-list-wrap {
  background: linear-gradient(145deg, rgba(8,18,36,0.9), rgba(5,12,26,0.85));
  border: 1px solid var(--b1); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.player-list-head {
  padding: 14px 16px; border-bottom: 1px solid var(--b1);
  font-family: var(--f-head); font-size: 13px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.player-list-scroll { flex: 1; overflow-y: auto; max-height: 500px; }
.player-list-scroll::-webkit-scrollbar { width: 4px; }
.player-list-scroll::-webkit-scrollbar-thumb { background: var(--b2); border-radius: 99px; }

.player-row {
  padding: 10px 14px; border-bottom: 1px solid rgba(60,120,200,0.06);
  cursor: pointer; transition: background var(--t);
  display: flex; flex-direction: column; gap: 4px;
}
.player-row:hover { background: rgba(0,229,255,0.03); }
.player-row:last-child { border-bottom: none; }
.player-row-top { display: flex; align-items: center; gap: 8px; }
.player-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.player-dot-online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.player-dot-offline { background: var(--t4); }
.player-name { font-size: 13px; font-weight: 600; color: var(--t1); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-pts { font-size: 11.5px; font-family: var(--f-head); font-weight: 700; color: var(--cyan); }
.player-row-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.player-meta-tag {
  font-size: 10.5px; padding: 2px 7px; border-radius: 99px;
  background: var(--dim-blue); color: var(--t2); border: 1px solid var(--b1);
}
.player-meta-city { background: var(--dim-purple); border-color: rgba(124,77,255,0.15); color: #b388ff; }
.player-meta-gp { background: var(--dim-gold); border-color: rgba(255,171,0,0.15); color: var(--gold); }
.player-meta-squad { background: var(--dim-cyan); border-color: rgba(0,229,255,0.15); color: var(--cyan); }
.player-meta-time { background: transparent; border-color: transparent; color: var(--t3); padding-left: 0; }

/* ════════════════════════════════════════════════════════
   SIMULATEUR DE PLACEMENT — League Brand Simulator
   ════════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.lsim-section {
  padding: 120px 0 140px;
  position: relative;
}
.lsim-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,77,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Two-column layout ── */
.lsim-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 60px;
}

/* ── Form panel ── */
.lsim-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lsim-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lsim-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t2);
}

.lsim-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  color: var(--t1);
  font-family: var(--f-body);
  font-size: 14px;
  outline: none;
  transition: all var(--t);
  box-shadow: 0 1px 4px rgba(20,60,140,0.07);
}
.lsim-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.lsim-input::placeholder { color: var(--t4); }

/* Range slider */
.lsim-range-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lsim-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple) var(--pct, 50%), var(--t4) var(--pct, 50%));
  outline: none;
  cursor: pointer;
  transition: background var(--t);
}
.lsim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--t1);
  box-shadow: 0 0 10px rgba(124,77,255,0.5);
  border: 2px solid var(--purple);
  transition: box-shadow var(--t);
}
.lsim-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 18px rgba(124,77,255,0.8);
}
.lsim-range::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--t1);
  border: 2px solid var(--purple);
  cursor: pointer;
}
.lsim-val {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  min-width: 36px;
  text-align: right;
}

/* Color swatches */
.lsim-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lsim-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.lsim-swatch:hover { transform: scale(1.15); }
.lsim-swatch-on {
  border-color: var(--t1) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3), 0 0 14px rgba(255,255,255,0.25);
  transform: scale(1.1);
}

/* Upload zone */
.lsim-upload {
  width: 100%;
  min-height: 90px;
  border: 2px dashed rgba(37,99,235,0.25);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all var(--t);
  background: rgba(240,246,255,0.7);
  position: relative;
  overflow: hidden;
}
.lsim-upload:hover,
.lsim-upload.drag-over {
  border-color: var(--purple);
  background: rgba(124,58,237,0.06);
}
.lsim-upload-preview {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 10px;
  display: none;
}
.lsim-upload-placeholder {
  font-size: 26px;
  line-height: 1;
  opacity: 0.5;
}
.lsim-upload-hint {
  font-size: 12px;
  color: var(--t3);
  text-align: center;
}
.lsim-upload-filename {
  font-size: 11px;
  color: var(--cyan);
  display: none;
  text-align: center;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* CTA */
.lsim-cta {
  margin-top: 8px;
  width: 100%;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all var(--t);
  box-shadow: 0 4px 24px rgba(124,77,255,0.3);
  letter-spacing: -0.01em;
}
.lsim-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124,77,255,0.55);
}

.lsim-note {
  font-size: 11.5px;
  color: var(--t3);
  text-align: center;
  line-height: 1.6;
}

/* ── Phones panel ── */
.lsim-phones {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
}

.lsim-phone-map,
.lsim-phone-league {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.lsim-phone-map { margin-top: 0; }
.lsim-phone-league { margin-top: 24px; }

.lsim-phone-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t3);
}

/* ════════════════════════════════════════════════════════
   iPHONE SIMULATOR — Ultra-réaliste
   ════════════════════════════════════════════════════════ */

/* ── Layout téléphones ── */
.lsim-phones {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
}
.lsim-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.lsim-phone-map   { margin-top: 0; }
.lsim-phone-league { margin-top: 32px; }
.lsim-phone-lbl {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--t3);
}

/* ── Wrap — contient frame + boutons ── */
.iph-wrap {
  width: 270px;
  position: relative;
}

/* ── Boutons latéraux ── */
.iph-btn-vol-up,
.iph-btn-vol-dn,
.iph-btn-pwr {
  position: absolute;
  background: #2a2a35;
  border-radius: 3px;
}
.iph-btn-vol-up {
  width: 4px; height: 30px;
  left: -4px; top: 110px;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.15), -1px 0 0 rgba(0,0,0,0.6);
}
.iph-btn-vol-dn {
  width: 4px; height: 30px;
  left: -4px; top: 150px;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.15), -1px 0 0 rgba(0,0,0,0.6);
}
.iph-btn-pwr {
  width: 4px; height: 46px;
  right: -4px; top: 130px;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.15), 1px 0 0 rgba(0,0,0,0.6);
}

/* ── Chassis iPhone ── */
.iph-frame {
  width: 270px;
  height: 582px;
  /* Corps en titane/aluminium satiné */
  background: linear-gradient(160deg, #2d2d38 0%, #1a1a24 40%, #22222e 100%);
  border-radius: 52px;
  /* Bords vitrés → reflet subtil */
  border: 1.5px solid rgba(255,255,255,0.18);
  box-shadow:
    /* reflet haut */
    inset 0 1px 1px rgba(255,255,255,0.22),
    /* reflet intérieur bas */
    inset 0 -1px 1px rgba(0,0,0,0.5),
    /* épaisseur du châssis */
    0 0 0 6px #1e1e28,
    0 0 0 7px rgba(255,255,255,0.1),
    0 0 0 8px #16161e,
    /* ombre portée */
    0 50px 100px rgba(0,0,0,0.6),
    0 20px 40px rgba(0,0,0,0.4),
    0 4px 12px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  /* Couleur forcée pour tout le contenu du téléphone */
  color: #fff;
}

/* ── Écran OLED — noir absolu ── */
.iph-screen {
  position: absolute;
  /* Bords verre légèrement en retrait du châssis */
  inset: 5px;
  border-radius: 47px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #000;
}

/* ── Dynamic Island ── */
.iph-island {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
  /* micro-reflet sur le pill */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(255,255,255,0.04);
}
/* Camera dot visible dans le pill */
.iph-island::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #0a0a12;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 4px rgba(0,150,255,0.4);
}

/* ── Status bar ── */
.iph-status {
  height: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.iph-time {
  font-family: -apple-system, 'SF Pro Display', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff !important;
  letter-spacing: -0.02em;
}
.iph-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff !important;
  opacity: 1;
}

/* ── App bar iOS ── */
.iph-appbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  /* Glassmorphism iOS translucide */
  background: rgba(18, 22, 38, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}
.iph-appbar-l {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, 'SF Pro Display', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -0.02em;
}
.iph-appbar-logo {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00b4d8, #2563eb);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,180,216,0.4);
}
.iph-wp-badge {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700;
  color: #fbbf24 !important;
  background: rgba(251,191,36,0.15);
  padding: 4px 9px; border-radius: 99px;
  border: 1px solid rgba(251,191,36,0.3);
}

/* ══════════════════════════
   VUE CARTE — Dark Maps
══════════════════════════ */
.iph-map {
  flex: 1;
  position: relative;
  overflow: hidden;
  /* Base sol = gris sombre façon Google Maps dark */
  background-color: #1d2c3c;
  /* Couches : sol, blocs bâtiments, axes routiers principaux, voies secondaires */
  background-image:
    /* Parcs verts (taches) */
    radial-gradient(ellipse 55px 45px at 72% 18%, rgba(15,80,35,0.85) 0%, transparent 100%),
    radial-gradient(ellipse 30px 25px at 18% 78%, rgba(12,65,28,0.8) 0%, transparent 100%),
    /* Plan d'eau */
    radial-gradient(ellipse 60px 28px at 12% 38%, rgba(10,35,75,0.95) 0%, transparent 100%),
    /* Blocs de bâtiments (zones plus sombres entre les rues) */
    repeating-linear-gradient(0deg,   #1a2533 0px, #1a2533 34px, transparent 34px, transparent 42px),
    repeating-linear-gradient(90deg,  #1a2533 0px, #1a2533 34px, transparent 34px, transparent 42px),
    /* Rues principales */
    repeating-linear-gradient(0deg,   transparent 0px, transparent 33px, #2e4460 33px, #2e4460 42px),
    repeating-linear-gradient(90deg,  transparent 0px, transparent 33px, #2e4460 33px, #2e4460 42px),
    /* Voies secondaires */
    repeating-linear-gradient(0deg,   transparent 0px, transparent 9px, #253547 9px, #253547 11px),
    repeating-linear-gradient(90deg,  transparent 0px, transparent 9px, #253547 9px, #253547 11px);
  background-size:
    100% 100%, 100% 100%, 100% 100%,
    42px 42px, 42px 42px,
    42px 42px, 42px 42px,
    11px 11px, 11px 11px;
}

/* Boulevard diagonal + zone commerciale */
.iph-map::before {
  content: '';
  position: absolute; inset: -15%;
  background:
    /* Boulevard diagonal NW→SE */
    linear-gradient(-22deg,
      transparent 42%, #34526e 42%, #34526e 46%, transparent 46%
    ),
    /* Grande avenue horizontale */
    linear-gradient(0deg,
      transparent 47%, #2e4460 47%, #2e4460 54%, transparent 54%
    );
  background-size: 100% 100%, 100% 100%;
  transform: rotate(0deg);
  pointer-events: none;
}

/* Reflet/vignette pour donner profondeur */
.iph-map::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%,
    transparent 40%,
    rgba(0,0,0,0.35) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Boussole miniature */
.iph-map-compass {
  position: absolute;
  top: 8px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  border: 0.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800;
  color: #ff4444;
  z-index: 12;
}

/* Bouton FAB localisation */
.iph-map-fab {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(18,24,40,0.85);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  z-index: 12;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ── Marqueur joueur ── */
.iph-map-player {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  display: flex; align-items: center; justify-content: center;
}
.iph-player-pulse {
  position: absolute;
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,255,0.25) 0%, transparent 70%);
  animation: playerPulse 2.5s ease-in-out infinite;
}
.iph-player-ring {
  position: absolute;
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(0,180,255,0.6);
  animation: playerRing 2.5s ease-in-out infinite;
}
.iph-player-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: #007aff;
  border: 2.5px solid #fff;
  box-shadow:
    0 0 0 3px rgba(0,122,255,0.25),
    0 2px 8px rgba(0,0,0,0.5);
  position: relative; z-index: 1;
  display: none; /* replaced by .iph-player-avatar */
}

@keyframes playerPulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.25); }
}
@keyframes playerRing {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.12); }
}

/* ══════════════════════════
   HUD (replaces appbar on map screen)
══════════════════════════ */
.iph-hud {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}
.iph-hud-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #00d4ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: rgba(0,212,255,0.12);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,212,255,0.35);
}
.iph-hud-info {
  display: flex; flex-direction: column; gap: 1px; flex: 1;
}
.iph-hud-pseudo {
  font-size: 11px; font-weight: 700;
  color: #fff !important;
  line-height: 1;
  font-family: -apple-system, 'SF Pro Display', sans-serif;
  letter-spacing: -0.01em;
}
.iph-hud-wp {
  font-size: 10px; font-weight: 700;
  color: #00d4ff !important;
  line-height: 1;
}

/* ══════════════════════════
   Squad badge (map overlay left)
══════════════════════════ */
.iph-squad-badge {
  position: absolute;
  left: 7px; top: 8px;
  z-index: 12;
  background: rgba(0, 212, 255, 0.18);
  border: 1px solid rgba(0, 212, 255, 0.5);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 4px 7px;
  font-size: 9px; font-weight: 700;
  color: #00d4ff !important;
  white-space: nowrap;
}

/* ══════════════════════════
   Controls column (right side of map)
══════════════════════════ */
.iph-controls {
  position: absolute;
  right: 7px; top: 8px;
  z-index: 12;
  display: flex; flex-direction: column; gap: 5px;
}
.iph-ctrl-btn {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: rgba(10, 18, 38, 0.78);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
  position: relative;
}
.iph-ctrl-pub-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #00d4ff;
  color: #000 !important;
  font-size: 7px; font-weight: 800;
  border-radius: 99px;
  padding: 1px 3px;
  line-height: 1;
  white-space: nowrap;
}

/* ══════════════════════════
   Concentric circles
══════════════════════════ */
.iph-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
}
/* circle-1: 25m — solid cyan thin */
.iph-circle-1 {
  width: 50px; height: 50px;
  border: 1.5px solid rgba(0, 212, 255, 0.75);
  background: rgba(0, 212, 255, 0.05);
}
/* circle-2: 100m — dashed cyan (collectable range) */
.iph-circle-2 {
  width: 160px; height: 160px;
  border: 1.5px dashed rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.03);
}
/* circle-3: 250m — very faint, large */
.iph-circle-3 {
  width: 260px; height: 260px;
  border: 1px solid rgba(0, 212, 255, 0.18);
}

/* ══════════════════════════
   Player avatar (replaces dot)
══════════════════════════ */
.iph-player-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2.5px solid #00d4ff;
  background: rgba(0, 212, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  position: relative; z-index: 2;
  box-shadow:
    0 0 0 3px rgba(0,212,255,0.2),
    0 0 14px rgba(0,212,255,0.45),
    0 3px 10px rgba(0,0,0,0.5);
}

/* ══════════════════════════
   Directional arrow (on circle-3 edge)
══════════════════════════ */
.iph-map-arrow {
  position: absolute;
  /* Positioned at circle-3 top, will be overridden by JS if needed */
  top: calc(50% - 130px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 13;
  font-size: 11px;
  color: #00d4ff !important;
  filter: drop-shadow(0 0 4px #00d4ff);
  animation: arrowPulse 1.4s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s;
}
@keyframes arrowPulse {
  0%,100% { opacity: 0.7; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;   transform: translateX(-50%) translateY(-3px); }
}

/* ══════════════════════════
   League slider (between map and nav)
══════════════════════════ */
.iph-league-slider {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  background: rgba(8, 12, 24, 0.92);
  backdrop-filter: blur(10px);
  border-top: 0.5px solid rgba(255,255,255,0.08);
  position: relative; z-index: 10;
}
.iph-league-slider::-webkit-scrollbar { display: none; }
.iph-league-pill {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 99px;
  font-size: 9px; font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.55) !important;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.15s;
}
.iph-league-pill-active {
  background: rgba(0,212,255,0.18);
  border-color: rgba(0,212,255,0.55) !important;
  color: #00d4ff !important;
}
.iph-league-pill-all {
  letter-spacing: 0.02em;
}
.iph-league-pill-logo {
  width: 16px; height: 16px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.iph-league-pill-name {
  max-width: 50px; overflow: hidden; text-overflow: ellipsis;
}
.iph-league-pill-rank {
  opacity: 0.7;
}

/* ══════════════════════════
   WinPoints items (cyan W coin)
══════════════════════════ */
.iph-item-wp {
  position: absolute;
  z-index: 11;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900;
  font-family: -apple-system, 'SF Pro Display', sans-serif;
}
.iph-item-wp-near {
  background: #00d4ff;
  color: #001a2e !important;
  border: 1.5px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 8px rgba(0,212,255,0.6), 0 2px 6px rgba(0,0,0,0.4);
  animation: itemFloat 3s ease-in-out infinite;
}
.iph-item-wp-far {
  background: rgba(0,212,255,0.35);
  color: #00d4ff !important;
  border: 1.5px solid rgba(0,212,255,0.4);
  opacity: 0.65;
}

/* ── Items brand sur carte ── */
.iph-item {
  position: absolute;
  z-index: 12;
  transform: translate(-50%, -50%);
}
.iph-item-near {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; position: relative;
  animation: itemFloat 3s ease-in-out infinite;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 3px 12px rgba(0,0,0,0.7);
}
.iph-item-ring {
  position: absolute;
  inset: -6px; border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: itemRing 2.2s ease-out infinite;
}
@keyframes itemFloat {
  0%,100% { transform: translate(-50%,-50%) translateY(0); }
  50%      { transform: translate(-50%,-50%) translateY(-4px); }
}
@keyframes itemRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Brand items */
.iph-item-brand {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent;
  box-shadow: 0 3px 12px rgba(0,0,0,0.7);
}
.iph-item-brand-near {
  animation: itemFloat 3s ease-in-out infinite;
}
.iph-item-brand-far {
  opacity: 0.62;
}

/* ── Nearby player markers ── */
.iph-player-marker {
  position: absolute;
  z-index: 13;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid transparent;
  cursor: pointer;
}
.iph-player-team {
  background: rgba(0,212,255,0.15);
  border-color: #00d4ff !important;
  box-shadow: 0 0 8px rgba(0,212,255,0.4);
}
.iph-player-enemy {
  background: rgba(255,68,68,0.15);
  border-color: #ff4444 !important;
  box-shadow: 0 0 8px rgba(255,68,68,0.4);
}
.iph-player-bubble {
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(10,14,26,0.9);
  border: 1.5px solid transparent;
}

/* Burst collect */
.iph-item.iph-item-collect {
  animation: itemBurst 0.55s ease-out forwards;
}
@keyframes itemBurst {
  0%   { transform: translate(-50%,-50%) scale(1);   filter: brightness(1); }
  40%  { transform: translate(-50%,-50%) scale(1.7); filter: brightness(2.5); }
  100% { transform: translate(-50%,-50%) scale(1);   filter: brightness(1); }
}

/* ── Nav bar iOS ── */
.iph-nav {
  height: 56px;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 0.5px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 8px 4px 0;
  flex-shrink: 0;
  position: relative; z-index: 10;
}
.iph-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 600;
  color: rgba(255,255,255,0.38) !important;
  padding: 2px 8px;
  min-width: 50px;
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.iph-nav-active {
  color: #007aff !important;
}
.iph-nav-icon {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
}
.iph-nav-icon svg { display: block; }

/* ── Home indicator ── */
.iph-home-bar {
  height: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding-bottom: 2px;
  background: rgba(10,14,26,0.92);
}
.iph-home-bar::after {
  content: '';
  width: 100px; height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 99px;
}

/* ══════════════════════════
   VUE LEAGUE — Dark UI
══════════════════════════ */
.iph-league-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 10px 10px 0;
  scrollbar-width: none; -ms-overflow-style: none;
  background: #0f1724;
}
.iph-league-scroll::-webkit-scrollbar { display: none; }

/* League card — dark */
.lsim-league-card {
  margin: 0 0 10px;
  border-radius: 16px;
  overflow: hidden;
  background: #1a2540;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
/* Barre couleur en haut de la card */
.lsim-league-card::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--lc, #00b4d8);
}

.lsim-lc-top {
  padding: 12px 12px 8px;
  display: flex; align-items: center; gap: 10px;
}
.lsim-lc-logo {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}
.lsim-lc-logo img { width: 100%; height: 100%; object-fit: contain; }
.lsim-lc-info { flex: 1; min-width: 0; }
.lsim-lc-name {
  font-size: 14px; font-weight: 700;
  color: #fff !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lsim-lc-div {
  font-size: 10px; color: rgba(255,255,255,0.4) !important; margin-top: 2px;
}
.lsim-lc-joined {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px;
  flex-shrink: 0; white-space: nowrap;
}

.lsim-lc-reward {
  margin: 0 12px 12px;
  padding: 10px 12px; border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}
.lsim-lc-r-icon { font-size: 20px; flex-shrink: 0; }
.lsim-lc-r-txt  { flex: 1; min-width: 0; }
.lsim-lc-r-label {
  font-size: 9px; color: rgba(255,255,255,0.4) !important;
  text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700;
}
.lsim-lc-r-name {
  font-size: 12px; font-weight: 700;
  color: #fff !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.lsim-lc-r-lots {
  font-size: 11px; font-weight: 700; padding: 4px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1); flex-shrink: 0;
  color: rgba(255,255,255,0.7) !important;
}

/* Leaderboard */
.lsim-lb-header {
  padding: 8px 12px 6px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.lsim-lb-title {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.5) !important;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.lsim-lb-reset {
  font-size: 9px; color: rgba(255,255,255,0.3) !important;
}

.lsim-lb-row {
  padding: 7px 12px;
  display: flex; align-items: center; gap: 8px;
}
.lsim-lb-me {
  background: rgba(0,122,255,0.1);
  border-left: 2.5px solid #007aff;
}
.lsim-lb-rank {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.35) !important;
  width: 18px; text-align: center; flex-shrink: 0;
}
.lsim-lb-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
  background: rgba(255,255,255,0.07);
}
.lsim-lb-info { flex: 1; min-width: 0; }
.lsim-lb-pseudo {
  font-size: 11px; font-weight: 600;
  color: #e8f4ff !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lsim-lb-bar-wrap {
  width: 44px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px; overflow: hidden; flex-shrink: 0; margin-top: 3px;
}
.lsim-lb-bar {
  height: 100%; border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.lsim-lb-score {
  font-size: 11px; font-weight: 800;
  width: 22px; text-align: right; flex-shrink: 0;
}

.lsim-lb-footer {
  padding: 8px 12px 12px; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 10px; color: rgba(255,255,255,0.3) !important;
}

.lsim-lb-initial {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .iph-wrap       { width: 230px; }
  .iph-frame      { width: 230px; height: 496px; border-radius: 44px; }
  .iph-screen     { inset: 4px; border-radius: 40px; }
  .iph-island     { width: 77px; height: 24px; }
}
@media (max-width: 960px) {
  .lsim-layout    { grid-template-columns: 1fr; gap: 48px; }
  .iph-wrap       { width: 210px; }
  .iph-frame      { width: 210px; height: 453px; border-radius: 40px; }
  .iph-screen     { inset: 4px; border-radius: 36px; }
  .iph-island     { width: 70px; height: 22px; }
}
@media (max-width: 540px) {
  .lsim-phones    { gap: 14px; }
  .iph-wrap       { width: 164px; }
  .iph-frame      { width: 164px; height: 354px; border-radius: 32px; }
  .iph-screen     { inset: 3px; border-radius: 29px; }
  .iph-island     { width: 56px; height: 18px; top: 10px; }
  .iph-time       { font-size: 12px; }
  .iph-status     { height: 40px; padding: 0 16px 6px; }
  .iph-appbar     { height: 36px; }
  .iph-nav        { height: 46px; }
}

/* ── Missing helpers ── */
.lsim-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lsim-upload-drag {
  border-color: var(--purple) !important;
  background: rgba(124,77,255,0.1) !important;
  box-shadow: 0 0 0 3px rgba(124,77,255,0.15);
}

/* lsim-phone: general wrapper (no additional style needed beyond flex children) */
.lsim-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}

/* Initial letter shown in league card logo when no image uploaded */
.lsim-lb-initial {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 800;
}

/* iph-item collect burst on item itself */
.iph-item.iph-item-collect {
  animation: itemBurst 0.55s ease-out forwards;
}
@keyframes itemBurst {
  0%   { transform: translate(-50%,-50%) scale(1);   filter: brightness(1); }
  40%  { transform: translate(-50%,-50%) scale(1.6); filter: brightness(2.5); }
  100% { transform: translate(-50%,-50%) scale(1);   filter: brightness(1); }
}

/* Override lsim-cta when used alongside .btn (reset conflicting defaults) */
a.lsim-cta.btn {
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

/* iph-item-ring needs absolute positioning relative to the item container
   but it's appended to the map wrapper — so ensure map child positioning */
#lsimMapItems .iph-item-ring {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
