:root {
  color-scheme: dark;
  --bg-black: #050505;
  --bg-surface-1: rgba(17, 17, 17, 0.9);
  --bg-surface-2: rgba(25, 24, 24, 0.94);
  --bg-surface-elevated: #1b1a1a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.24);
  --text-primary: #ffffff;
  --text-secondary: #c6c0bd;
  --text-muted: #837d7a;

  --accent-heart: #ffffff;
  --accent-heart-glow: rgba(255, 255, 255, 0.22);
  --accent-blush: #f0b6b2;
  --accent-blush-soft: rgba(240, 182, 178, 0.14);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.4);
  --accent-indigo: #6366f1;
  --accent-cyan: #38bdf8;
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.45);

  /* Warzone Metals */
  --metal-bronze: #d97706;
  --metal-silver: #94a3b8;
  --metal-gold: #fbbf24;
  --metal-platinum: #38bdf8;
  --metal-diamond: #c084fc;
  --metal-apex: #ff2d55;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(240, 182, 178, 0.16);
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-black);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  background: var(--bg-black);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Background Atmosphere */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle 700px at 85% 0%, rgba(240, 182, 178, 0.09), transparent 70%),
    radial-gradient(circle 600px at 10% 55%, rgba(255, 255, 255, 0.035), transparent 72%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
}

/* Application States */
body.is-loading .shell,
body.is-gated .shell {
  display: none !important;
}

body.is-ready .access-state {
  display: none !important;
}

/* Access State Gate */
.access-state {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.access-card {
  width: min(440px, 100%);
  padding: 44px 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.access-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-heart), transparent);
}

.access-logo-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  box-shadow: 0 0 35px rgba(255, 45, 85, 0.25);
}

.access-logo {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 12px var(--accent-heart-glow));
}

.access-card h1 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
}

.access-card p:not(.eyebrow) {
  margin: 4px 0 20px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Vector Brand Mark */
.mq-brand-mark .logo-heart {
  fill: var(--accent-heart);
  filter: drop-shadow(0 0 8px var(--accent-heart-glow));
}

.mq-brand-mark .logo-text {
  fill: #ffffff;
}

/* Buttons Base */
button {
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 11px 20px;
  color: #06080c;
  background: #ffffff;
  font: inherit;
  font-weight: 750;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  touch-action: manipulation;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #f1f5f9;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:focus-visible {
  outline: 2px solid var(--accent-heart);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.5;
}

button.is-busy {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}

button.quiet {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

button.quiet:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: var(--border-hover);
  box-shadow: none;
}

button.danger {
  background: rgba(255, 45, 85, 0.15);
  color: #ff6b87;
  border: 1px solid rgba(255, 45, 85, 0.35);
}

button.danger:hover:not(:disabled) {
  background: #ff2d55;
  color: #ffffff;
  border-color: #ff2d55;
  box-shadow: 0 4px 18px rgba(255, 45, 85, 0.4);
}

/* Shell & Container */
.shell {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 16px 16px 56px;
  position: relative;
  z-index: 1;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.brand-mark-wrap:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.topbar-logo {
  width: 38px;
  height: 38px;
}

.brand-text .eyebrow {
  margin: 0 0 1px;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  line-height: 1;
}

.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: pulse-green 2s infinite;
}

/* ========================================== */
/* 3-SECTION NAVIGATION HUB                   */
/* ========================================== */
.hub-nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px;
  border-radius: var(--radius-xl);
  background: rgba(10, 13, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.75);
}

.hub-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
}

.hub-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.hub-tab .hub-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.hub-tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hub-tab.is-active,
#tabClicks.is-active,
#tabPass.is-active,
#tabArsenal.is-active,
#tabReferral.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 45, 85, 0.45);
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ========================================== */
/* SECTION COMMON SYSTEM                      */
/* ========================================== */
.module-section {
  display: none;
  margin-bottom: 32px;
}

.module-section.is-active {
  display: block;
  animation: tabFadeIn 0.2s ease-out;
}

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

.section-title-wrap {
  margin-bottom: 14px;
}

.section-title-wrap h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.section-title-wrap p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subheading {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  color: #ffffff;
}

/* ========================================== */
/* SECTION 1 : CLICS & PALIERS                */
/* ========================================== */
.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: 24px 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(20, 25, 36, 0.85) 0%, rgba(10, 13, 20, 0.92) 100%);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) 50%, transparent);
  pointer-events: none;
}

.operator {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.avatar-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-heart), var(--accent-indigo) 55%, var(--accent-emerald));
  box-shadow: 0 0 24px -4px rgba(99, 102, 241, 0.35);
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0d1017;
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
}

.avatar-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-tag {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 9999px;
  background: #0a0c12;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.operator-copy h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
}

.status-line {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald-glow);
}

.status-line b {
  color: #ffffff;
}

.status-line strong {
  color: var(--text-primary);
  font-weight: 800;
}

.progress-core {
  display: flex;
  align-items: center;
  gap: 20px;
}

.progress-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  background: conic-gradient(
    var(--accent-emerald) calc(var(--progress, 0) * 1%),
    rgba(255, 255, 255, 0.06) 0
  );
  box-shadow: 0 0 28px -6px var(--accent-emerald-glow);
  transition: background 0.6s ease;
}

.progress-ring::before {
  content: "";
  position: absolute;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: #0c0f16;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.ring-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.ring-label {
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.ring-inner strong {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.ring-inner small {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-emerald);
  letter-spacing: 0.06em;
}

.progress-copy {
  display: grid;
  gap: 2px;
}

.progress-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-copy strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.progress-copy span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.progress-copy span b {
  color: #ffffff;
}

/* Intel Grid */
.intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.intel-card-wide {
  grid-column: 1 / -1;
}

.intel-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-kicker {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.xp-badge {
  font-size: 0.68rem;
  font-weight: 850;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.metric strong {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.metric-delta strong {
  color: var(--accent-emerald);
}

.trend-icon {
  font-size: 1.1rem;
  color: var(--accent-emerald);
}

.intel-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.intel-status b {
  color: #ffffff;
}

.heat-bars {
  display: flex;
  gap: 3px;
  height: 14px;
  align-items: flex-end;
}

.heat-bars i {
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent-heart);
  box-shadow: 0 0 6px var(--accent-heart-glow);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.heat-bars i:nth-child(1) { height: 6px; }
.heat-bars i:nth-child(2) { height: 9px; }
.heat-bars i:nth-child(3) { height: 11px; }
.heat-bars i:nth-child(4) { height: 13px; }
.heat-bars i:nth-child(5) { height: 16px; }

.heat-bars i.off {
  opacity: 0.2;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.account-pill {
  font-size: 0.72rem;
  font-weight: 850;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

/* ========================================== */
/* SECTION 2 : GRILLE DE RÉMUNÉRATION        */
/* ========================================== */
.cash-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.cash-strip-item {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cash-strip-item:hover {
  transform: translateY(-2px);
}

/* Card 1: Rémunération acquise (Emerald) */
.cash-strip-item:first-child {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(8, 14, 22, 0.95) 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.cash-strip-item:first-child .strip-label {
  color: #34d399;
}

.cash-strip-item:first-child .strip-val strong {
  color: #34d399;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

/* Card 2: Prochain palier (Radiant Gold) */
.cash-strip-item.is-highlight {
  border: 2px solid rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(20, 16, 12, 0.95) 100%);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
}

.cash-strip-item.is-highlight .strip-label {
  color: #fbbf24;
}

.cash-strip-item.is-highlight .strip-val strong {
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.cash-strip-item.is-highlight .strip-pill {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
}

/* Card 3: Barème évolutif (Cyber Violet / Neon) */
.cash-strip-item:last-child {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(12, 10, 24, 0.95) 100%);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.cash-strip-item:last-child .strip-label {
  color: #c084fc;
}

.cash-strip-item:last-child .strip-val strong {
  color: #c084fc;
  text-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.strip-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.strip-label {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.strip-pill {
  font-size: 0.65rem;
  font-weight: 850;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.strip-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.strip-val strong {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.strip-val .currency {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
}

.strip-sub {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.cycle-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

/* Combat Rail */
.pass-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.pass-track-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 20px -6px 0;
  padding: 0 6px 8px;
}

.pass-track-wrapper::-webkit-scrollbar {
  display: none;
}

.pass-track {
  min-width: 580px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px 0;
}

.track-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 30px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
}

.track-line span {
  display: block;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-emerald));
  box-shadow: 0 0 14px var(--accent-emerald-glow);
}

.tier {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  color: var(--text-muted);
}

.tier i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #0f121a;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.tier b {
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 850;
  color: var(--text-secondary);
}

.tier small {
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.tier.unlocked i {
  border-color: var(--accent-emerald);
  background: #064e3b;
  color: #a7f3d0;
  box-shadow: 0 0 18px var(--accent-emerald-glow);
}

.tier.unlocked b {
  color: #ffffff;
}

.tier.unlocked small {
  color: #34d399;
}

.tier.current i {
  border-color: #ffffff;
  background: #1e1b4b;
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.55);
  animation: breathe 2.5s infinite;
}

.tier.current b {
  color: #ffffff;
}

.tier.current small {
  color: #c7d2fe;
}

/* Warzone Tier Matrix */
.warzone-matrix {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.sector-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.sector-tabs::-webkit-scrollbar {
  display: none;
}

.sector-tab {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sector-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transform: none;
  box-shadow: none;
}

.sector-tab.is-active {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.warzone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 12px;
}

.wz-tier-card {
  position: relative;
  overflow: hidden;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: #0b0e14;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all var(--transition-fast);
}

.wz-tier-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.wz-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wz-rank-badge {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.wz-status-pill {
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}

.wz-status-pill.unlocked {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.wz-status-pill.target {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  animation: pulse-gold 2s infinite;
}

.wz-status-pill.locked {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.wz-status-pill.apex-special {
  background: rgba(255, 45, 85, 0.2);
  border: 1px solid rgba(255, 45, 85, 0.5);
  color: #ff6b87;
}

.wz-clicks-box strong {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.wz-reward-box {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.wz-amount {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.wz-currency {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
}

.wz-card-progress {
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.wz-card-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* Metals Styling */
.wz-tier-card.metal-bronze {
  border-color: rgba(217, 119, 6, 0.35);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08) 0%, rgba(10, 13, 20, 0.95) 100%);
}
.wz-tier-card.metal-bronze .wz-rank-badge {
  color: #fb923c;
  background: rgba(217, 119, 6, 0.18);
}

.wz-tier-card.metal-silver {
  border-color: rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.08) 0%, rgba(10, 13, 20, 0.95) 100%);
}
.wz-tier-card.metal-silver .wz-rank-badge {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.18);
}

.wz-tier-card.metal-gold {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1) 0%, rgba(10, 13, 20, 0.95) 100%);
}
.wz-tier-card.metal-gold .wz-rank-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.22);
}

.wz-tier-card.metal-platinum {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.1) 0%, rgba(10, 13, 20, 0.95) 100%);
}
.wz-tier-card.metal-platinum .wz-rank-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.22);
}

.wz-tier-card.metal-diamond {
  border-color: rgba(192, 132, 252, 0.45);
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.1) 0%, rgba(10, 13, 20, 0.95) 100%);
}
.wz-tier-card.metal-diamond .wz-rank-badge {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.22);
}

.wz-tier-card.metal-apex {
  border-color: rgba(255, 45, 85, 0.55);
  background: linear-gradient(180deg, rgba(255, 45, 85, 0.12) 0%, rgba(10, 13, 20, 0.95) 100%);
  box-shadow: 0 0 25px rgba(255, 45, 85, 0.25);
}
.wz-tier-card.metal-apex .wz-rank-badge {
  color: #ff2d55;
  background: rgba(255, 45, 85, 0.22);
}

/* Card States - Overrides for Unlocked and Target */
.wz-tier-card.state-unlocked {
  border-color: rgba(16, 185, 129, 0.5) !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(8, 14, 20, 0.95) 100%) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.15);
}

.wz-tier-card.state-unlocked .wz-rank-badge {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
}

.wz-tier-card.state-unlocked .wz-amount {
  color: #34d399 !important;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

.wz-tier-card.state-target {
  border: 2px solid #fbbf24 !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.22) 0%, rgba(20, 16, 10, 0.95) 100%) !important;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.15) !important;
  transform: translateY(-2px);
}

.wz-tier-card.state-target .wz-rank-badge {
  background: rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
  font-weight: 900;
}

.wz-tier-card.state-target .wz-amount {
  color: #fbbf24 !important;
  font-weight: 950;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

.wz-tier-card.state-target .wz-currency {
  color: #fde68a !important;
  font-weight: 850;
}

/* ========================================== */
/* SECTION 3 : COMPTES INSTAGRAM              */
/* ========================================== */
.accounts-header-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.capacity-stat {
  display: grid;
  gap: 6px;
}

.capacity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.capacity-label {
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.capacity-ratio strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent-emerald);
}

.capacity-ratio {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.capacity-bar-track {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.capacity-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  box-shadow: 0 0 10px var(--accent-emerald-glow);
  transition: width 0.5s ease;
}

.scan-status-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.scan-badge {
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.74rem;
  font-weight: 800;
  flex-shrink: 0;
}

.scan-schedule {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Fast Add Form */
.arsenal-add-card {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.form-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.form-title-row label {
  font-size: 0.88rem;
  font-weight: 850;
  color: #ffffff;
}

.secure-tag {
  font-size: 0.72rem;
  font-weight: 750;
  color: #34d399;
}

.form-body {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.add-input-bar {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.at-prefix {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  pointer-events: none;
}

.add-input-bar textarea {
  width: 100%;
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 32px;
  color: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  resize: none;
  height: 44px;
  min-height: 44px;
  line-height: 22px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.add-input-bar textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.form-body button {
  min-width: 120px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
}

.operation-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: pre-line;
}

.operation-status.error {
  background: rgba(255, 45, 85, 0.12);
  border-color: rgba(255, 45, 85, 0.3);
  color: #ff6b87;
}

/* Accounts Panel & Workspace */
.accounts-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  width: min(280px, 100%);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0.6;
}

.search-box input {
  width: 100%;
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 9px 12px 9px 34px;
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.managed-accounts-list {
  display: grid;
  gap: 10px;
}

.managed-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(10, 13, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.managed-account:hover {
  background: rgba(15, 20, 30, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
}

.account-info {
  display: grid;
  gap: 2px;
}

.account-handle-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.account-handle-link:hover {
  color: var(--accent-cyan);
}

.account-follower-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.account-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.delta-badge.positive {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.32);
}

.delta-badge.positive .delta-val {
  color: #34d399;
}

.delta-badge.positive .delta-tag {
  color: #a7f3d0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.delta-badge.negative {
  background: rgba(255, 45, 85, 0.14);
  border-color: rgba(255, 45, 85, 0.32);
}

.delta-badge.negative .delta-val {
  color: #ff6b87;
}

.delta-badge.negative .delta-tag {
  color: #fecdd3;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 45, 85, 0.25);
}

.delta-badge.neutral {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.delta-val {
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.delta-tag {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.delta-badge-7d {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.delta-badge-7d .delta-val {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--text-secondary);
}

.delta-badge-7d .delta-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 3px;
  border-radius: 4px;
}

.remove-account {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 45, 85, 0.1);
  border: 1px solid rgba(255, 45, 85, 0.28);
  color: #ff6b87;
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
}

.remove-account:hover:not(:disabled) {
  background: #ff2d55;
  color: #ffffff;
  border-color: #ff2d55;
  box-shadow: 0 4px 14px rgba(255, 45, 85, 0.35);
}

.empty-managed {
  margin: 10px 0;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Dialogs */
dialog {
  border: none;
  padding: 0;
  background: transparent;
  color: inherit;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.confirm-dialog {
  width: min(420px, calc(100% - 32px));
  margin: auto;
}

.confirm-shell {
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  background: #0f131c;
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.confirm-shell h2 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
  font-weight: 850;
  color: #ffffff;
}

.confirm-shell p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.confirm-actions button {
  flex: 1;
}

/* Footer */
.command-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-wrap {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.footer-logo {
  width: 24px;
  height: 24px;
}

.footer-left p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-actions {
  display: flex;
  gap: 10px;
}

.footer-actions button {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 0.78rem;
  border-radius: var(--radius-md);
}

/* ========================================== */
/* MQ AGENCY ART DIRECTION                    */
/* Deep Obsidian Black, Warm Pink & White DA  */
/* ========================================== */
.brand-mark-wrap,
.access-logo-wrap {
  background: #0b0b0d;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.season-badge,
.scan-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.17);
  color: #f5f1ef;
}

.pulse-dot {
  background: #ff2d55;
  box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.45);
  animation: pulse-pink 2s infinite;
}

/* Desktop Hub Nav - Capsule Style */
.hub-nav {
  background: rgba(14, 12, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 26px;
  padding: 7px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.hub-tab {
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.90rem;
  font-weight: 800;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}

.hub-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.hub-tab.is-active,
#tabClicks.is-active,
#tabPass.is-active,
#tabArsenal.is-active {
  color: #090909 !important;
  background: #f5f1ef !important;
  border-color: #f5f1ef !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

/* ========================================== */
/* SECTION 1 : CLICS & RÉMUNÉRATION (UNIFIÉ)  */
/* ========================================== */

/* 1. Fiche Créateur & Crest Percentile Discord */
.creator-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(145deg, rgba(26, 22, 25, 0.92) 0%, rgba(13, 11, 13, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.percentile-crest {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 45, 85, 0.35);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  box-shadow: 0 4px 18px rgba(255, 45, 85, 0.15);
  flex-shrink: 0;
}

.trophy-icon {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 45, 85, 0.5));
}

.crest-details {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.crest-rank {
  font-size: 0.98rem;
  font-weight: 900;
  color: #ff3366;
  letter-spacing: -0.01em;
}

.crest-label {
  font-size: 0.58rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

/* 2. Hero Card Rémunération */
.remun-hero-card {
  position: relative;
  background: linear-gradient(165deg, rgba(26, 20, 23, 0.95) 0%, rgba(13, 11, 13, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 24px 24px 20px;
  margin-bottom: 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.remun-hero-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 45, 85, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.remun-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.remun-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.remun-eyebrow {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff3366;
}

.remun-headline {
  margin: 0;
  font-size: 1.30rem;
  font-weight: 850;
  color: #ffffff;
  line-height: 1.25;
}

.total-payout-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(255, 45, 85, 0.08);
  border: 1px solid rgba(255, 45, 85, 0.35);
  border-radius: 18px;
  padding: 8px 16px;
  text-align: right;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(255, 45, 85, 0.16);
}

.total-payout-badge small {
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.total-payout-val {
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-top: 1px;
}

.total-payout-val .currency {
  font-size: 0.80rem;
  font-weight: 850;
  color: #ff3366;
}

.remun-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Anneau Circulaire Rémunération */
.remun-ring-wrap {
  position: relative;
  width: 105px;
  height: 105px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.remun-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.remun-ring-svg circle {
  fill: none;
  stroke-width: 9;
}

.remun-ring-svg .ring-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.remun-ring-svg .ring-fill {
  stroke: #ff2d55;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px rgba(255, 45, 85, 0.65));
}

.remun-ring-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.remun-ring-val {
  font-size: 1.60rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.remun-ring-sub {
  font-size: 0.58rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
  max-width: 74px;
  line-height: 1.15;
}

/* Mini-cartes empilées */
.remun-mini-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.remun-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.remun-mini-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.remun-mini-card.is-referral-bonus {
  border-color: rgba(255, 45, 85, 0.2);
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.06), rgba(255, 255, 255, 0.02));
}

.remun-mini-card.is-referral-bonus .mini-val strong {
  color: #34d399;
}

.remun-mini-card.is-next {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 45, 85, 0.28);
}

.mini-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-label {
  font-size: 0.68rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.65);
}

.mini-pill {
  background: rgba(255, 45, 85, 0.2);
  color: #ff7597;
  border: 1px solid rgba(255, 45, 85, 0.35);
  font-size: 0.60rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.mini-pill.ref-pill {
  background: rgba(255, 45, 85, 0.14);
  color: #ff6b8b;
  border: 1px solid rgba(255, 45, 85, 0.3);
}

.mini-val {
  font-size: 1.10rem;
  font-weight: 850;
  color: #ffffff;
}

.mini-val .currency {
  font-size: 0.70rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 2px;
}

.mini-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 1.10rem;
  flex-shrink: 0;
}

/* ========================================== */
/* 3. GRAPHIQUE CAMEMBERT (DONUT) DES CLICS   */
/* Vert = Clics payés / Rouge = Non payés     */
/* ========================================== */
.clicks-donut-panel {
  background: linear-gradient(145deg, rgba(24, 21, 23, 0.94), rgba(12, 11, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.donut-chart-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 22px;
  margin: 18px 0 18px;
}

.donut-svg-wrap {
  position: relative;
  width: 126px;
  height: 126px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 14;
}

.donut-arc {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.donut-arc.arc-unpaid {
  stroke: rgba(255, 45, 85, 0.35); /* Arc épuré clics non éligibles */
}

.donut-arc.arc-paid {
  stroke: #10b981; /* Vert émeraude clics payés T1 */
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}

.donut-center-info {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-total-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.donut-total-sub {
  font-size: 0.58rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
  letter-spacing: 0.06em;
}

.donut-legend-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.donut-legend-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.donut-legend-item.is-paid {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(255, 255, 255, 0.02));
}

.donut-legend-item.is-unpaid {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.05), rgba(255, 255, 255, 0.02));
}

.legend-indicator {
  display: flex;
  align-items: center;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.indicator-dot.dot-green {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.indicator-dot.dot-red {
  background: #ff3366;
  box-shadow: 0 0 6px rgba(255, 51, 102, 0.45);
}

.indicator-dot.dot-blush {
  background: #ff2d55;
  box-shadow: 0 0 6px rgba(255, 45, 85, 0.45);
}

.legend-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.legend-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.legend-title {
  font-size: 0.74rem;
  font-weight: 750;
  color: #dedede;
}

.legend-pct {
  font-size: 0.88rem;
  font-weight: 850;
}

.donut-legend-item.is-paid .legend-pct {
  color: #34d399;
}

.donut-legend-item.is-unpaid .legend-pct {
  color: #ff85a1;
}

.legend-meta {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
}

.legend-number {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
}

.today-badge {
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(255, 45, 85, 0.16);
  color: #ff7597;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Barre de progression bicolore Payés vs Non Payés */
.paid-ratio-bar-wrap {
  margin-top: 14px;
}

.ratio-bar-track {
  height: 9px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  overflow: hidden;
}

.ratio-bar-paid {
  height: 100%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
  transition: width 0.6s ease;
}

.ratio-bar-unpaid {
  height: 100%;
  background: rgba(255, 255, 255, 0.14);
  transition: width 0.6s ease;
}

.ratio-bar-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 7px;
  font-size: 0.70rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================== */
/* BARRE DES PAYS T1 & EXPLICATION UNIFIÉE    */
/* ========================================== */
.t1-eligibility-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t1-eligibility-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.t1-badge-pill {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.t1-eligibility-title {
  font-size: 0.72rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.75);
}

.t1-flags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.t1-flag-card {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}

.t1-flag-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.t1-flag-emoji {
  font-size: 1.15rem;
  line-height: 1;
}

.t1-flag-name {
  font-size: 0.74rem;
  font-weight: 750;
  color: #f5f1ef;
  white-space: nowrap;
}

/* NOTE EXPLICATIVE UNIFIÉE */
.t1-note-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.t1-note-icon {
  font-size: 1.05rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.t1-note-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.t1-note-content strong {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
}

.t1-note-content p {
  margin: 0;
  font-size: 0.70rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

/* ========================================== */
/* 4. PALIERS DE RÉMUNÉRATION                 */
/* ========================================== */
.paliers-section {
  margin-top: 24px;
}

.paliers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.paliers-header-text .subheading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 850;
  color: #ffffff;
}

.paliers-header-text .matrix-sub {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.carousel-nav-arrows {
  display: flex;
  gap: 8px;
}

.arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.arrow-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.paliers-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.paliers-track::-webkit-scrollbar {
  display: none;
}

.palier-card {
  flex: 0 0 170px;
  min-width: 170px;
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: linear-gradient(155deg, rgba(26, 22, 25, 0.95), rgba(14, 12, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-snap-align: center;
  position: relative;
  transition: all 0.25s ease;
}

.palier-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.palier-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.palier-tier-name {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.palier-badge {
  font-size: 0.64rem;
  font-weight: 850;
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}

.badge-unlocked {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.badge-target {
  background: rgba(255, 45, 85, 0.14);
  color: #ff2d55;
  border: 1px solid rgba(255, 45, 85, 0.35);
  font-weight: 900;
}

.badge-locked {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.palier-cash-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
}

.palier-cash-val {
  font-size: 1.40rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.palier-cash-currency {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
}

.palier-req-text {
  font-size: 0.76rem;
  font-weight: 750;
  color: #ff6b8b;
  margin: 0;
}

/* PALIER ACTIF / EN COURS - CARTE STAR ILLUMINÉE BLANCHE/CRÈME (STYLE CHATGPT) */
.palier-card.is-target-milestone {
  background: linear-gradient(165deg, #ffffff 0%, #fff0f3 100%);
  border: 1.5px solid rgba(255, 45, 85, 0.55);
  box-shadow: 0 12px 32px rgba(255, 45, 85, 0.35), 0 0 18px rgba(255, 45, 85, 0.2);
  transform: translateY(-2px);
}

.palier-card.is-target-milestone .palier-tier-name {
  color: #ff2d55;
  font-weight: 900;
}

.palier-card.is-target-milestone .palier-badge.badge-target {
  background: rgba(255, 45, 85, 0.12);
  color: #ff2d55;
  border: 1px solid rgba(255, 45, 85, 0.35);
  box-shadow: none;
  font-weight: 900;
}

.palier-card.is-target-milestone .palier-cash-val {
  color: #09080a;
}

.palier-card.is-target-milestone .palier-cash-currency {
  color: #695e65;
}

.palier-card.is-target-milestone .palier-req-text {
  color: #ff2d55;
  font-weight: 800;
}

.palier-card.is-target-milestone .palier-target-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.palier-card.is-target-milestone .palier-mini-track {
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.palier-card.is-target-milestone .palier-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff2d55, #ff6384);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.palier-card.is-target-milestone .palier-mini-meta {
  font-size: 0.64rem;
  font-weight: 800;
  color: #4b4147;
}

.palier-here-pill {
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.12);
  color: #ff2d55;
  border: 1px solid rgba(255, 45, 85, 0.3);
  font-size: 0.62rem;
  font-weight: 850;
  text-align: center;
  letter-spacing: 0.02em;
}

.palier-target-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.palier-mini-track {
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.palier-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff2d55, #ff6384);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.palier-mini-meta {
  font-size: 0.64rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================== */
/* SECTION 3 : PARRAINAGE (5 $ PAR FILLEUL)   */
/* ========================================== */
.referral-hero-card {
  position: relative;
  background: linear-gradient(165deg, rgba(28, 20, 25, 0.95) 0%, rgba(14, 11, 13, 0.98) 100%);
  border: 1px solid rgba(255, 45, 85, 0.22);
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 45, 85, 0.12);
  overflow: hidden;
}

.ref-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff2d55;
  margin-bottom: 4px;
}

.ref-headline {
  margin: 0;
  font-size: 1.30rem;
  font-weight: 850;
  color: #ffffff;
}

.ref-subheadline {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.ref-win-win-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 45, 85, 0.08);
  border: 1px solid rgba(255, 45, 85, 0.25);
  font-size: 0.76rem;
  color: #ffffff;
  line-height: 1.4;
}

.win-win-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.ref-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.ref-stat-card {
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ref-stat-card.is-highlight {
  border-color: rgba(255, 45, 85, 0.35);
  background: rgba(255, 45, 85, 0.08);
}

.ref-stat-kicker {
  font-size: 0.60rem;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ref-stat-val {
  font-size: 1.30rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.ref-stat-card.is-highlight .ref-stat-val {
  color: #ff3366;
}

.ref-stat-card small {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.5);
}

/* CARTE MENTION DE PARRAINAGE */
.referral-mention-card {
  background: linear-gradient(145deg, rgba(24, 21, 23, 0.94), rgba(12, 11, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.mention-card-header .mention-kicker {
  font-size: 0.64rem;
  font-weight: 800;
  color: #ff3366;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mention-card-header h3 {
  margin: 3px 0 2px;
  font-size: 1.10rem;
  font-weight: 850;
  color: #ffffff;
}

.mention-help {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.mention-copy-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: stretch;
}

.mention-text-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 45, 85, 0.05);
  border: 1.5px solid rgba(255, 45, 85, 0.35);
  min-width: 0;
}

.link-field-icon {
  font-size: 1.10rem;
  line-height: 1;
  flex-shrink: 0;
}

.referral-link-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.90rem;
  font-weight: 750;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  min-width: 0;
}

.ref-copy-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: #ffffff;
  color: #090909;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ref-copy-btn:hover {
  background: #f0ebe8;
  transform: translateY(-1px);
}

.ref-copy-btn.is-copied {
  background: #10b981;
  color: #ffffff;
}

.ref-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ref-step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 45, 85, 0.16);
  color: #ff6b8b;
  border: 1px solid rgba(255, 45, 85, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
}

.step-content strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.step-content p {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.35;
}

/* LISTE DES FILLEULS & PROGRESSION 100 CLICS */
.referral-list-card {
  background: linear-gradient(145deg, rgba(24, 21, 23, 0.94), rgba(12, 11, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  margin-bottom: 16px;
}

.referrals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.referral-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 10px;
}

.referral-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.referral-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 45, 85, 0.18);
  color: #ff7597;
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.referral-user-meta {
  display: flex;
  flex-direction: column;
}

.referral-user-meta strong {
  font-size: 0.86rem;
  color: #ffffff;
}

.referral-user-meta small {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.5);
}

.referral-progress-box {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 10px;
}

.ref-card-track {
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ref-card-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff2d55, #ff6384);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.ref-card-fill.is-complete {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.ref-card-sub {
  font-size: 0.64rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.6);
}

.ref-status-badge {
  font-size: 0.68rem;
  font-weight: 850;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ref-status-badge.is-valid {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.ref-status-badge.is-pending {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ENCART RÈGLES & ANTI-FRAUDE */
.referral-rules-notice {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(18, 16, 14, 0.8));
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rules-notice-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.rules-notice-body strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  color: #fbbf24;
  margin-bottom: 3px;
}

.rules-notice-body p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}

.rules-notice-sub {
  margin-top: 6px !important;
  font-size: 0.70rem !important;
  color: #dedede !important;
  font-weight: 650;
}

/* Autres éléments Section Comptes */
.accounts-header-card,
.arsenal-add-card,
.accounts-panel,
.pass-panel {
  border-color: rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg, rgba(24, 21, 23, 0.94), rgba(10, 9, 10, 0.97));
}

.track-line span,
.capacity-bar-fill {
  background: linear-gradient(90deg, #a86f6c, #ff2d55, #f5f1ef);
  box-shadow: 0 0 12px rgba(255, 45, 85, 0.35);
}

.capacity-ratio strong {
  color: #ff4d6d;
}

/* ========================================== */
/* NATIVE MOBILE APP DOCK & RESPONSIVE RULES  */
/* ========================================== */
@media (max-width: 768px) {
  .shell {
    padding: 12px 14px 135px;
  }

  /* Compact topbar on mobile */
  .topbar {
    gap: 8px;
    padding: 4px 0 8px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-mark-wrap {
    width: 36px;
    height: 36px;
  }

  .topbar-logo {
    width: 26px;
    height: 26px;
  }

  .brand-text h1 {
    font-size: 0.96rem;
  }

  .season-badge {
    padding: 4px 8px;
    font-size: 0.64rem;
  }

  /* NATIVE MOBILE BOTTOM BAR (DOCK) */
  .hub-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    margin: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 8, 10, 0.95);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 8px 12px max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    z-index: 1000;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.85);
  }

  .hub-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 6px 3px;
    gap: 3px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    color: #8a8486;
    transition: all 0.2s ease;
  }

  .hub-tab .hub-icon {
    font-size: 1.20rem;
    line-height: 1;
    display: block;
    transition: transform 0.2s ease;
  }

  .hub-tab .hub-text {
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    white-space: nowrap;
    display: block;
  }

  .hub-tab.is-active,
  #tabClicks.is-active,
  #tabPass.is-active,
  #tabArsenal.is-active,
  #tabReferral.is-active {
    color: #090909 !important;
    background: #f5f1ef !important;
    border-color: #f5f1ef !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55) !important;
  }

  .hub-tab.is-active .hub-text {
    color: #090909 !important;
  }

  .hub-tab.is-active .hub-icon {
    transform: scale(1.06);
  }

  /* Section 1 mobile */
  .creator-header-card {
    padding: 16px 14px;
    border-radius: var(--radius-lg);
    gap: 12px;
  }

  .creator-profile {
    min-width: 0;
  }

  .creator-identity {
    min-width: 0;
  }

  .creator-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .percentile-crest {
    padding: 6px 10px;
    gap: 6px;
    flex-shrink: 0;
  }

  .crest-rank {
    font-size: 0.85rem;
  }

  .crest-label {
    font-size: 0.52rem;
  }

  .remun-hero-card {
    padding: 18px 14px 16px;
    border-radius: 22px;
  }

  .remun-hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }

  .total-payout-badge {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 14px;
    box-sizing: border-box;
  }

  .remun-headline {
    font-size: 1.15rem;
  }

  /* Centered ring on mobile + full-width mini-cards (no icon overflow!) */
  .remun-stats-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
  }

  .remun-ring-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto;
  }

  .remun-ring-val {
    font-size: 1.55rem;
  }

  .remun-ring-sub {
    font-size: 0.60rem;
    max-width: 82px;
  }

  .remun-mini-cards {
    width: 100%;
    gap: 9px;
  }

  .remun-mini-card {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
  }

  .mini-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .mini-icon-wrap {
    flex-shrink: 0;
    margin-left: 10px;
    width: 36px;
    height: 36px;
  }

  .mini-val {
    font-size: 1.05rem;
  }

  /* Donut chart responsive mobile */
  .clicks-donut-panel {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }

  .donut-chart-container {
    flex-direction: column;
    gap: 16px;
    margin: 12px 0 14px;
  }

  .donut-legend-col {
    width: 100%;
  }

  .ratio-bar-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 0.68rem;
  }

  .t1-flags-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Paliers mobile: wide enough to never wrap titles or clip badges */
  .palier-card {
    flex: 0 0 185px;
    min-width: 185px;
    padding: 14px 14px 12px;
  }

  .palier-card.is-target-milestone {
    flex: 0 0 205px;
    min-width: 205px;
  }

  .palier-tier-name {
    white-space: nowrap;
    font-size: 0.70rem;
  }

  .palier-badge {
    white-space: nowrap;
    font-size: 0.62rem;
    padding: 2px 7px;
  }

  .palier-here-pill {
    white-space: nowrap;
    font-size: 0.62rem;
  }

  /* Section 2 : Comptes Instagram mobile */
  .accounts-header-card {
    grid-template-columns: 1fr;
    padding: 14px 14px;
    gap: 10px;
    border-radius: var(--radius-lg);
  }

  .scan-status-wrap {
    justify-content: space-between;
    align-items: center;
  }

  .arsenal-add-card {
    padding: 14px 14px;
    border-radius: var(--radius-lg);
  }

  .form-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 10px;
  }

  .form-body {
    flex-direction: row;
    gap: 8px;
  }

  .add-input-bar {
    flex: 1;
    min-height: 44px;
  }

  .add-input-bar textarea {
    height: 44px;
    font-size: 0.80rem;
    padding: 12px 10px 10px 30px;
    resize: none;
    overflow: hidden;
    line-height: 20px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .add-input-bar .at-prefix {
    top: 12px;
    font-size: 0.9rem;
  }

  .form-body button {
    width: auto;
    min-width: 90px;
    height: 44px;
    padding: 0 16px;
    font-size: 0.84rem;
    flex-shrink: 0;
  }

  .accounts-panel {
    padding: 14px 14px;
    border-radius: var(--radius-lg);
  }

  .panel-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
  }

  .search-box {
    width: 100%;
    height: 38px;
  }

  .managed-account {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    gap: 8px;
    border-radius: var(--radius-md);
  }

  .account-handle-link {
    font-size: 0.88rem;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
  }

  .delta-badge,
  .delta-badge-7d {
    padding: 2px 6px;
    gap: 4px;
  }

  .managed-account .remove-account {
    width: auto;
    padding: 6px 10px;
    font-size: 0.72rem;
    border-radius: 8px;
    flex-shrink: 0;
  }

  /* Section 3 : Referral mobile (Grid 2-level, progress bar full-width) */
  .referral-hero-card {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }

  .ref-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .referral-mention-card,
  .referral-list-card {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }

  .mention-copy-bar {
    flex-direction: column;
  }

  .ref-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ref-copy-btn {
    width: 100%;
    justify-content: center;
  }

  .referral-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "user badge"
      "prog prog";
    gap: 10px 12px;
    padding: 12px 14px;
    align-items: center;
  }

  .referral-user-info {
    grid-area: user;
    min-width: 0;
  }

  .ref-status-badge {
    grid-area: badge;
    white-space: nowrap;
    justify-self: end;
  }

  .referral-progress-box {
    grid-area: prog;
    width: 100%;
    max-width: 100%;
    margin: 2px 0 0;
  }

  .command-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-top: 36px;
    padding-top: 20px;
  }

  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .footer-actions {
    width: 100%;
    gap: 8px;
  }

  .footer-actions button {
    flex: 1;
    min-height: 42px;
    font-size: 0.82rem;
  }
}

/* Desktop layout optimizations */
@media (min-width: 769px) {
  .creator-header-card {
    padding: 26px 32px;
  }

  .remun-hero-card {
    padding: 30px 34px 22px;
  }

  .remun-headline {
    font-size: 1.45rem;
  }

  .clicks-donut-panel {
    padding: 28px 32px;
  }

  .paliers-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    overflow-x: visible;
  }

  .carousel-nav-arrows {
    display: none;
  }

  .palier-card {
    flex: none;
    min-width: 0;
    padding: 18px 16px 16px;
  }

  .referral-hero-card {
    padding: 30px 34px;
  }

  .ref-headline {
    font-size: 1.45rem;
  }
}

/* Keyframe Animations */
@keyframes pulse-pink {
  70% { box-shadow: 0 0 0 8px rgba(255, 45, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
}

/* ========================================== */
/* MQ FINAL DA — NOIR, BLANC, ROSE POUDRÉ     */
/* Cette couche garde la mise en page moderne */
/* tout en alignant l'interface sur le logo.  */
/* ========================================== */
:root {
  --accent-heart: #ffffff;
  --accent-heart-glow: rgba(255, 255, 255, 0.18);
  --accent-blush: #f0b6b2;
  --accent-blush-soft: rgba(240, 182, 178, 0.12);
  --accent-emerald: #f0b6b2;
  --accent-emerald-glow: rgba(240, 182, 178, 0.24);
  --accent-indigo: #d9d2cf;
  --accent-cyan: #f0b6b2;
  --accent-gold: #f5f1ef;
  --accent-gold-glow: rgba(245, 241, 239, 0.18);
}

.hub-tab[hidden],
.module-section[hidden] {
  display: none !important;
}

.hub-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(11, 11, 12, 0.94);
}

.hub-nav.is-single-tab {
  grid-template-columns: 1fr;
}

.hub-nav.is-two-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pulse-dot,
.status-indicator {
  background: var(--accent-blush);
  box-shadow: 0 0 10px rgba(240, 182, 178, 0.42);
}

.creator-header-card,
.remun-hero-card,
.clicks-donut-panel,
.accounts-header-card,
.arsenal-add-card,
.accounts-panel,
.referral-hero-card,
.referral-mention-card,
.referral-list-card {
  background: linear-gradient(145deg, rgba(24, 22, 23, 0.96), rgba(10, 10, 11, 0.98));
  border-color: rgba(255, 255, 255, 0.12);
}

.referral-hero-card {
  border-color: rgba(240, 182, 178, 0.25);
}

.ref-eyebrow,
.mention-card-header .mention-kicker,
.ref-stat-card.is-highlight .ref-stat-val {
  color: var(--accent-blush);
}

.ref-win-win-banner,
.ref-stat-card.is-highlight,
.mention-text-field {
  background: var(--accent-blush-soft);
  border-color: rgba(240, 182, 178, 0.28);
}

.referral-user-avatar,
.step-num {
  background: var(--accent-blush-soft);
  color: #f5d6d3;
  border-color: rgba(240, 182, 178, 0.28);
}

.ref-card-fill,
.ref-card-fill.is-complete {
  background: linear-gradient(90deg, #d99e9a, #f0b6b2, #f5f1ef);
  box-shadow: 0 0 8px rgba(240, 182, 178, 0.25);
}

.ref-status-badge.is-valid {
  color: #f5d6d3;
  background: var(--accent-blush-soft);
  border-color: rgba(240, 182, 178, 0.28);
}

.ref-copy-btn.is-copied {
  background: var(--accent-blush);
  color: #171313;
}

.ref-copy-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

#referralOperationStatus {
  margin-top: 12px;
}

.avatar-ring {
  background: linear-gradient(145deg, #ffffff, var(--accent-blush));
  box-shadow: 0 0 24px rgba(240, 182, 178, 0.18);
}

.rank-tag,
.remun-eyebrow,
.total-payout-val .currency,
.capacity-ratio strong,
.secure-tag,
.account-handle-link:hover {
  color: var(--accent-blush);
}

.total-payout-badge,
.remun-mini-card.is-next {
  background: var(--accent-blush-soft);
  border-color: rgba(240, 182, 178, 0.34);
  box-shadow: none;
}

.remun-ring-svg .ring-fill {
  stroke: var(--accent-blush);
  filter: drop-shadow(0 0 6px rgba(240, 182, 178, 0.42));
}

.mini-pill,
.today-badge,
.t1-badge-pill {
  background: var(--accent-blush-soft);
  color: #f5d6d3;
  border-color: rgba(240, 182, 178, 0.3);
}

.donut-arc.arc-paid {
  stroke: var(--accent-blush);
  filter: drop-shadow(0 0 6px rgba(240, 182, 178, 0.38));
}

.donut-arc.arc-unpaid {
  stroke: rgba(255, 255, 255, 0.18);
}

.donut-legend-item.is-paid,
.donut-legend-item.is-unpaid {
  background: rgba(255, 255, 255, 0.035);
}

.indicator-dot.dot-green,
.indicator-dot.dot-blush {
  background: var(--accent-blush);
  box-shadow: 0 0 8px rgba(240, 182, 178, 0.42);
}

.indicator-dot.dot-red {
  background: rgba(255, 255, 255, 0.36);
  box-shadow: none;
}

.donut-legend-item.is-paid .legend-pct,
.delta-badge.positive .delta-val {
  color: #f5d6d3;
}

.donut-legend-item.is-unpaid .legend-pct {
  color: #b7b0ad;
}

.ratio-bar-paid,
.capacity-bar-fill,
.palier-mini-fill {
  background: linear-gradient(90deg, #d99e9a, #f0b6b2, #f5f1ef);
  box-shadow: 0 0 10px rgba(240, 182, 178, 0.24);
}

.ratio-bar-unpaid {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.t1-note-box,
.t1-flag-card {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
}

.palier-card.is-target-milestone {
  background: linear-gradient(165deg, #f7f3f1, #ead9d6);
  border-color: rgba(240, 182, 178, 0.72);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42), 0 0 20px rgba(240, 182, 178, 0.14);
}

.palier-card.is-target-milestone .palier-tier-name,
.palier-card.is-target-milestone .palier-cash-val,
.palier-card.is-target-milestone .palier-cash-currency,
.palier-card.is-target-milestone .palier-badge.badge-target {
  color: #191516;
}

.palier-card.is-target-milestone .palier-badge.badge-target {
  background: rgba(25, 21, 22, 0.08);
  border-color: rgba(25, 21, 22, 0.18);
}

.managed-account {
  background: rgba(255, 255, 255, 0.035);
}

.managed-account:hover {
  background: rgba(255, 255, 255, 0.06);
}

.add-input-bar textarea,
.search-box input {
  background: #090909;
}

.add-input-bar textarea:focus,
.search-box input:focus {
  border-color: rgba(240, 182, 178, 0.7);
  box-shadow: 0 0 14px rgba(240, 182, 178, 0.16);
}

.delta-badge,
.delta-badge.positive,
.delta-badge.negative {
  background: rgba(240, 182, 178, 0.10);
  border-color: rgba(240, 182, 178, 0.24);
}

.delta-badge.positive .delta-tag,
.delta-badge.negative .delta-tag {
  color: #f1d5d2;
  border-color: rgba(240, 182, 178, 0.2);
}

@media (max-width: 768px) {
  .shell {
    width: 100%;
    padding: 10px 12px calc(104px + env(safe-area-inset-bottom));
  }

  .hub-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 7px 10px max(8px, env(safe-area-inset-bottom));
  }

  .hub-nav.is-single-tab {
    grid-template-columns: 1fr;
  }

  .hub-nav.is-two-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-tab {
    min-width: 0;
    min-height: 54px;
  }

  .hub-tab .hub-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .creator-header-card {
    padding: 14px;
  }

  .avatar-ring {
    width: 68px;
    height: 68px;
  }

  .avatar-fallback {
    font-size: 1.65rem;
  }

  .operator {
    gap: 13px;
    min-width: 0;
  }

  .operator-copy {
    min-width: 0;
  }

  .operator-copy h2 {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
  }

  .status-line {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .remun-mini-cards {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-heading,
  .paliers-header {
    align-items: flex-start;
  }

  .t1-eligibility-header {
    align-items: flex-start;
  }

  .t1-flags-grid {
    width: 100%;
  }

  .managed-account {
    min-width: 0;
  }

  .account-info {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .topbar {
    align-items: center;
  }

  .season-badge {
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .remun-hero-card,
  .clicks-donut-panel,
  .accounts-panel,
  .arsenal-add-card,
  .accounts-header-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .total-payout-val {
    font-size: 1.3rem;
  }

  .donut-legend-item {
    padding: 9px 10px;
    gap: 9px;
  }

  .legend-top-row {
    gap: 8px;
  }

  .legend-unit {
    display: block;
    margin-top: 1px;
  }

  .paliers-header {
    gap: 8px;
  }

  .form-body {
    flex-direction: column;
  }

  .form-body button {
    width: 100%;
    min-height: 46px;
  }

  .managed-account {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "identity remove"
      "stats stats";
    align-items: center;
    gap: 9px;
  }

  .account-info {
    grid-area: identity;
  }

  .account-stats {
    grid-area: stats;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .managed-account .remove-account {
    grid-area: remove;
    min-height: 38px;
  }

  .account-handle-link {
    max-width: 190px;
  }

  .command-footer {
    padding-bottom: 6px;
  }
}

@media (max-width: 350px) {
  .shell {
    padding-left: 9px;
    padding-right: 9px;
  }

  .brand-text h1 {
    font-size: 0.86rem;
  }

  .hub-tab .hub-text {
    font-size: 0.62rem;
  }

  .t1-flags-grid {
    grid-template-columns: 1fr;
  }

  .account-handle-link {
    max-width: 140px;
  }
}

/* Clics & rémunération — lecture instantanée */
.creator-header-compact {
  padding: 13px 16px;
}

.creator-header-compact .operator {
  gap: 12px;
}

.avatar-ring-compact {
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 2px;
}

.avatar-ring-compact .avatar-fallback {
  font-size: 1.25rem;
}

.creator-header-compact .operator-copy h2 {
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.earnings-command-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(240, 182, 178, 0.3);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 5%, rgba(240, 182, 178, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(27, 23, 24, 0.98), rgba(9, 9, 10, 0.99));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.earnings-command-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #fff, var(--accent-blush), transparent 92%);
}

.earnings-command-top,
.next-reward-heading,
.reward-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.command-kicker,
.next-reward-heading > div > span,
.snapshot-card > span,
.t1-rule-line > span {
  display: block;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.earnings-command-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.earnings-command-value strong {
  color: #fff;
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.earnings-command-value span {
  color: var(--accent-blush);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.cycle-chip {
  display: grid;
  gap: 3px;
  min-width: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.cycle-chip span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.cycle-chip strong {
  color: #fff;
  font-size: 0.94rem;
}

.next-reward-block {
  margin-top: 22px;
  padding: 17px 18px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.next-reward-heading > div > span {
  margin-bottom: 3px;
  font-size: 0.58rem;
}

.next-reward-heading > div > strong {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.next-reward-heading .reward-delta {
  padding: 7px 10px;
  border: 1px solid rgba(240, 182, 178, 0.25);
  border-radius: 999px;
  background: rgba(240, 182, 178, 0.11);
  color: #f6d9d6;
  font-size: 0.68rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.reward-progress-track {
  height: 8px;
  margin: 15px 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.reward-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d99e9a, #f0b6b2, #fff);
  box-shadow: 0 0 16px rgba(240, 182, 178, 0.32);
  transition: width 0.55s ease;
}

.reward-progress-meta {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
}

.reward-progress-meta strong {
  color: rgba(255, 255, 255, 0.88);
}

.reward-progress-meta b {
  color: var(--accent-blush);
}

.clicks-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.snapshot-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(22, 21, 22, 0.96), rgba(10, 10, 11, 0.98));
}

.snapshot-card.is-live {
  border-color: rgba(240, 182, 178, 0.28);
  background: linear-gradient(145deg, rgba(240, 182, 178, 0.12), rgba(12, 11, 12, 0.98));
}

.snapshot-card strong {
  display: block;
  margin: 9px 0 2px;
  color: #fff;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.snapshot-card.is-live strong {
  color: #f5d6d3;
}

.snapshot-card small {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t1-rule-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.t1-rule-line strong {
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.paliers-section-clean {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 19, 20, 0.96), rgba(9, 9, 10, 0.98));
}

.paliers-section-clean .paliers-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.paliers-section-clean .paliers-track::-webkit-scrollbar {
  display: none;
}

.reward-stage {
  position: relative;
  display: grid;
  flex: 0 0 156px;
  min-height: 132px;
  align-content: center;
  gap: 7px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  scroll-snap-align: center;
}

.reward-stage.state-unlocked {
  border-color: rgba(240, 182, 178, 0.2);
}

.reward-stage.is-current {
  border-color: rgba(240, 182, 178, 0.72);
  background: linear-gradient(150deg, #f7f1ef, #dfc3c0);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), 0 0 18px rgba(240, 182, 178, 0.14);
}

.reward-stage-marker {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  font-weight: 900;
}

.reward-stage.state-unlocked .reward-stage-marker {
  border-color: rgba(240, 182, 178, 0.3);
  background: rgba(240, 182, 178, 0.11);
  color: #f5d6d3;
}

.reward-stage.is-current .reward-stage-marker {
  border-color: rgba(20, 17, 18, 0.16);
  background: #1a1718;
  color: #fff;
}

.reward-stage-cash {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
  white-space: nowrap;
}

.reward-stage-requirement {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  font-weight: 750;
}

.reward-stage.is-current .reward-stage-cash,
.reward-stage.is-current .reward-stage-requirement {
  color: #1a1718;
}

.reward-stage-progress {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 17, 18, 0.12);
}

.reward-stage-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1a1718;
}

@media (max-width: 480px) {
  .creator-header-compact {
    padding: 11px 12px;
  }

  .avatar-ring-compact {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .earnings-command-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .earnings-command-value strong {
    font-size: 2.8rem;
  }

  .next-reward-block {
    margin-top: 18px;
    padding: 15px 14px 13px;
  }

  .clicks-snapshot-grid {
    gap: 7px;
  }

  .snapshot-card {
    padding: 13px 10px;
    border-radius: 16px;
  }

  .snapshot-card > span {
    font-size: 0.53rem;
    letter-spacing: 0.07em;
  }

  .snapshot-card strong {
    margin-top: 7px;
    font-size: 1.45rem;
  }

  .snapshot-card small {
    font-size: 0.58rem;
  }

  .t1-rule-line {
    padding: 12px 13px;
  }

  .t1-rule-line strong {
    font-size: 0.88rem;
  }

  .paliers-section-clean {
    padding: 16px 13px;
  }

  .paliers-section-clean .carousel-nav-arrows {
    display: none;
  }

  .reward-stage {
    flex-basis: 142px;
    min-height: 122px;
  }
}

/* Protection contre un mélange d'anciens fichiers conservés par le WebView
   Discord. L'ancien rail n'est plus utilisé par la page actuelle. */
#passTrack,
#progressRing,
.pass-track-wrapper,
.topbar::before,
.topbar::after,
.brand-lockup::before,
.brand-lockup::after {
  display: none !important;
  content: none !important;
}
