/* ============================================================
   APP — Dark/Light theme · Couleurs Leopar jaune
   ============================================================ */

/* ROOT */
:root {
  --hdr-gradient: linear-gradient(135deg, #fdb60f 0%, #f28207 100%);
  --sdr-gradient: linear-gradient(135deg, #fdb60f 0%, #f28207 100%);

  --app-bg: #080808;
  --app-bg-1: #0f0f0f;
  --app-bg-2: #161616;
  --app-bg-3: #1e1e1e;
  --app-bg-4: #242424;
  --app-surface: #141414;
  --app-border: rgba(255,255,255,0.09);
  --app-border-md: rgba(255,255,255,0.15);
  --app-text: #f0f0f0;
  --app-text-2: rgba(255,255,255,0.58);
  --app-text-3: rgba(255,255,255,0.35);
  --app-text-muted: rgba(255,255,255,0.38);
  --app-input-bg: rgba(255,255,255,0.05);
  --app-input-border: rgba(255,255,255,0.14);
  --app-input-placeholder: rgba(255,255,255,0.3);
  --app-shadow: 0 10px 30px rgba(0,0,0,0.4);
  --app-shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
  --app-stat-bg: #161616;
  --app-stat-border: rgba(255,255,255,0.09);
  --app-meta-bg: #1a1a1a;
  --app-meta-border: rgba(255,255,255,0.08);
  --app-empty-bg: rgba(255,255,255,0.03);
  --app-empty-border: rgba(255,255,255,0.12);
  --app-badge-neutral-bg: rgba(255,255,255,0.08);
  --app-badge-neutral-color: rgba(255,255,255,0.7);
  --app-badge-neutral-border: rgba(255,255,255,0.12);
  --app-notice-bg: #1a1a1a;
  --app-notice-border: rgba(255,255,255,0.1);
  --app-notice-color: rgba(255,255,255,0.65);
  --app-range-bg: #1a1a1a;
  --app-range-border: rgba(255,255,255,0.1);
  --app-pending-bg: rgba(255,150,50,0.12);
  --app-pending-border: rgba(255,150,50,0.25);
  --app-pending-color: #fb923c;
  --app-failed-bg: rgba(248,113,113,0.12);
  --app-failed-border: rgba(248,113,113,0.25);
  --app-failed-color: #f87171;

  --bg-secondary: var(--app-bg-2);
  --border-color: var(--app-border);
  --input-bg: var(--app-input-bg);
  --text-color: var(--app-text);
  --text-muted: var(--app-text-2);
  --bg-card: var(--app-bg-1);
  --primary-color: #fdb60f;
}

/* LIGHT */
html.light {
  --app-bg: #f5f5f5;
  --app-bg-1: #ffffff;
  --app-bg-2: #f8f8f8;
  --app-bg-3: #f0f0f0;
  --app-bg-4: #ececec;
  --app-surface: #ffffff;
  --app-border: #e5e7eb;
  --app-border-md: #d1d5db;
  --app-text: #111827;
  --app-text-2: #6b7280;
  --app-text-3: #9ca3af;
  --app-text-muted: #9ca3af;
  --app-input-bg: #ffffff;
  --app-input-border: rgba(0,0,0,0.2);
  --app-input-placeholder: rgba(0,0,0,0.35);
  --app-shadow: 0 10px 30px rgba(15,23,42,0.06);
  --app-shadow-lg: 0 24px 60px rgba(15,23,42,0.15);
  --app-stat-bg: #ffffff;
  --app-stat-border: #e5e7eb;
  --app-meta-bg: #f9fafb;
  --app-meta-border: #eef2f7;
  --app-empty-bg: #f9fafb;
  --app-empty-border: #d1d5db;
  --app-badge-neutral-bg: #f3f4f6;
  --app-badge-neutral-color: #374151;
  --app-badge-neutral-border: #e5e7eb;
  --app-notice-bg: #f8fafc;
  --app-notice-border: #e5e7eb;
  --app-notice-color: #475569;
  --app-range-bg: #f9fafb;
  --app-range-border: #eef2f7;
  --app-pending-bg: #fff7ed;
  --app-pending-border: #fed7aa;
  --app-pending-color: #c2410c;
  --app-failed-bg: #fef2f2;
  --app-failed-border: #fecaca;
  --app-failed-color: #b91c1c;

  --bg-secondary: var(--app-bg-2);
  --border-color: var(--app-border);
  --input-bg: var(--app-input-bg);
  --text-color: var(--app-text);
  --text-muted: var(--app-text-2);
  --bg-card: var(--app-bg-1);
  --primary-color: #b8860b;
}

html, body { background-color: var(--app-bg) !important; color: var(--app-text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-leopar {
  font-size: 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.18s ease;
  border: 1px solid var(--app-border-md);
  background: var(--app-bg-2);
  color: var(--app-text);
  cursor: pointer;
}

.btn-leopar:hover { transform: translateY(-1px); background: var(--app-bg-3); }

.btn-leopar.primary {
  background: var(--app-text);
  color: var(--app-bg);
  border-color: var(--app-text);
}

.btn-leopar.primary:hover { opacity: 0.85; }

.btn-leopar.gradient {
  background: linear-gradient(135deg, #fdb60f 0%, #f28207 100%);
  color: #000;
  border: 0;
}

.btn-leopar.is-success {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border-color: rgba(74,222,128,0.25);
}

html.light .btn-leopar.is-success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.btn-primary {
  height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(135deg, #fdb60f 0%, #f28207 100%);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(253,182,15,0.25);
  transition: .2s ease;
}

.btn-primary:hover { transform: translateY(-1px); opacity: 0.88; }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }

/* ============================================================
   UTILS
   ============================================================ */
.error {
  background: rgba(255,0,0,0.15);
  color: #f87171 !important;
  border: 1px solid rgba(255,0,0,0.3) !important;
}

html.light .error {
  background: rgba(255,0,0,0.08);
  color: rgba(180,0,0,0.85) !important;
  border: 1px solid rgba(255,0,0,0.25) !important;
}

.site-new { margin-bottom: 24px; }

/* ============================================================
   AUTH PAGE
   ============================================================ */
#authPage {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth_hero { position: relative; width: 100%; overflow: hidden; }

.auth_wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}

.auth_wrap--register { grid-template-columns: 1.05fr .95fr; }
.auth_wrap--center { display: flex !important; justify-content: center !important; align-items: center !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
.auth_wrap--center #feedback_confirm { font-style: italic; color: var(--app-text-3); height: 28px; }

.auth_card {
  position: relative;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--app-shadow-lg);
}

.auth_card--center {
  width: 100%;
  max-width: 480px;
  margin: 0;
  text-align: center;
  padding: 40px;
  border-radius: 28px;
  border: 1px solid var(--app-border);
  background: var(--app-bg-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: none !important;
}

.auth_card--center h1 { margin: 0 0 12px; font-size: 28px; color: var(--app-text); }
.auth_card--center .auth_subtitle { margin-bottom: 6px; }

.auth_left { border-radius: 28px; padding: 42px; }
.auth_right { display: flex; }
.auth_card { width: 100%; border-radius: 28px; padding: 34px; }

.auth_hero_bg { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.auth_hero_bg_1 { width: 340px; height: 340px; left: -80px; top: -40px; background: rgba(253,182,15,0.25); }
.auth_hero_bg_2 { width: 340px; height: 340px; right: -80px; bottom: -40px; background: rgba(242,130,7,0.2); }

.auth_kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--app-text-2);
}

html.light .auth_kicker { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }

.auth_left h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.04em;
  color: var(--app-text);
}

.auth_intro { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--app-text-2); }

.auth_points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 34px; }

.auth_point {
  display: grid;
  gap: 6px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 16px;
}

html.light .auth_point { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.auth_point strong { display: block; margin-bottom: 6px; font-size: 15px; color: var(--app-text); }
.auth_point span { display: block; font-size: 14px; line-height: 1.55; color: var(--app-text-2); }

.auth_card h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.08; letter-spacing: -.04em; color: var(--app-text); }
.auth_subtitle { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--app-text-2); }
.auth_note { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--app-text-2); }
.auth_note a { color: var(--app-text); font-weight: 700; text-decoration: none; }
.auth_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#company_name_register { display: none; }

/* ============================================================
   AUTH FORMS
   ============================================================ */
#loginForm, .auth_form { display: flex; flex-direction: column; gap: 16px; }

#login_email,
.auth_form input,
.auth_form select {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--app-input-border);
  background: var(--app-input-bg);
  color: var(--app-text);
  font-size: 16px;
  outline: none;
  transition: .2s ease;
  box-sizing: border-box;
}

select option { color: #000 !important; }

#login_email::placeholder,
.auth_form input::placeholder { color: var(--app-input-placeholder); }

#login_email:focus,
.auth_form input:focus,
.auth_form select:focus {
  border-color: rgba(253,182,15,0.5);
  box-shadow: 0 0 0 4px rgba(253,182,15,0.1);
  background: var(--app-input-bg);
}

.auth_form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--app-text-2) 50%), linear-gradient(135deg, var(--app-text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-color: var(--app-input-bg);
}

#login_submit, #register_submit {
  height: 58px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #fdb60f 0%, #f28207 100%);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(253,182,15,0.25);
  transition: .2s ease;
}

#login_submit:hover, #register_submit:hover { transform: translateY(-1px); opacity: 0.88; }
#login_submit:disabled, #register_submit:disabled { opacity: .55; cursor: default; transform: none; }

#feedback_login, #feedback_register {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

#feedback_login.is-visible, #feedback_register.is-visible { display: block; }
#feedback_login.is-info, #feedback_register.is-info { background: rgba(100,149,237,.12); border: 1px solid rgba(100,149,237,.22); color: #7faaff; }
#feedback_login.is-success, #feedback_register.is-success { background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.22); color: #4ade80; }
#feedback_login.is-error, #feedback_register.is-error { background: rgba(255,91,110,.12); border: 1px solid rgba(255,91,110,.22); color: #f87171; }

html.light #feedback_login.is-info, html.light #feedback_register.is-info { color: #1d4ed8; }
html.light #feedback_login.is-success, html.light #feedback_register.is-success { color: #047857; }
html.light #feedback_login.is-error, html.light #feedback_register.is-error { color: #b91c1c; }

/* ============================================================
   REGISTER SUCCESS
   ============================================================ */
.register_success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0 4px; }

.register_success_icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: 32px;
  background: linear-gradient(135deg, rgba(253,182,15,.15) 0%, rgba(242,130,7,.15) 100%);
  border: 1px solid rgba(253,182,15,.2);
  box-shadow: 0 10px 30px rgba(253,182,15,.15);
}

.register_success h3 { margin: 0 0 10px; font-size: 34px; line-height: 1.05; letter-spacing: -.04em; color: var(--app-text); }
.register_success p { margin: 0; max-width: 460px; font-size: 16px; line-height: 1.7; color: var(--app-text-2); }
.register_success p + p { margin-top: 10px; }
.register_success_mail { font-weight: 700; color: var(--app-text); word-break: break-word; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-leopar { max-width: 1200px; margin: 0 auto; padding: 32px 16px 60px; overflow-x: hidden; box-sizing: border-box; }
.dashboard-leopar * { box-sizing: border-box; }

.dashboard-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dashboard-hero h1 { margin: 0 0 8px 0; font-size: 32px; line-height: 1.1; color: var(--app-text); }
.dashboard-hero p { margin: 0; color: var(--app-text-2); font-size: 15px; }

.dashboard-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.dashboard-stat {
  background: var(--app-stat-bg);
  border: 1px solid var(--app-stat-border);
  border-radius: 16px;
  padding: 16px 18px;
  min-width: 180px;
}

.dashboard-stat .label { display: block; font-size: 13px; color: var(--app-text-2); margin-bottom: 6px; }
.dashboard-stat .value { display: block; font-size: 24px; font-weight: 700; color: var(--app-text); }

/* ============================================================
   SITES GRID & CARDS
   ============================================================ */
.sites-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.site-card {
  background: var(--app-bg-1);
  border: 1px solid var(--app-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--app-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-card:hover { transform: translateY(-3px); box-shadow: var(--app-shadow-lg); }

.site-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.site-domain { margin: 0; font-size: 22px; line-height: 1.2; word-break: break-word; color: var(--app-text); }

.site-link { display: inline-block; margin-top: 6px; font-size: 14px; color: #fdb60f; text-decoration: none; }
.site-link:hover { text-decoration: underline; }

.site-link--disabled {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--app-text-3);
  text-decoration: none;
  cursor: default;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

html.light .site-link { color: #b8860b; }

.site-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 18px 0 20px; }

.site-meta-item {
  padding: 12px 14px;
  background: var(--app-meta-bg);
  border-radius: 14px;
  border: 1px solid var(--app-meta-border);
}

.site-meta-item .meta-label { display: block; font-size: 12px; color: var(--app-text-2); margin-bottom: 5px; }
.site-meta-item .meta-value { display: block; font-size: 15px; font-weight: 600; color: var(--app-text); word-break: break-word; }

.site-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.site-pending {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--app-pending-bg);
  border: 1px solid var(--app-pending-border);
  color: var(--app-pending-color);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.site-failed {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--app-failed-bg);
  border: 1px solid var(--app-failed-border);
  color: var(--app-failed-color);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.site-card--pending { opacity: .85; }
.site-card--pending .site-domain,
.site-card--pending .site-meta,
.site-card--pending .site-meta-item,
.site-card--pending .meta-value,
.site-card--pending .meta-label,
.site-card--pending .site-card-head { user-select: none; -webkit-user-select: none; cursor: default; }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-badge.is-neutral { background: var(--app-badge-neutral-bg); color: var(--app-badge-neutral-color); border-color: var(--app-badge-neutral-border); }
.status-badge.is-info { background: rgba(96,165,250,0.12); color: #60a5fa; border-color: rgba(96,165,250,0.25); }
.status-badge.is-warning { background: rgba(253,182,15,0.12); color: #fdb60f; border-color: rgba(253,182,15,0.25); }
.status-badge.is-success { background: rgba(74,222,128,0.12); color: #4ade80; border-color: rgba(74,222,128,0.25); }
.status-badge.is-danger { background: rgba(248,113,113,0.12); color: #f87171; border-color: rgba(248,113,113,0.25); }

html.light .status-badge.is-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
html.light .status-badge.is-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
html.light .status-badge.is-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
html.light .status-badge.is-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  padding: 34px 24px;
  text-align: center;
  background: var(--app-empty-bg);
  border: 1px dashed var(--app-empty-border);
  border-radius: 20px;
}

.empty-state h2 { margin: 0 0 10px 0; font-size: 22px; color: var(--app-text); }
.empty-state p { margin: 0; color: var(--app-text-2); }

/* ============================================================
   AFFILIATE PAGE
   ============================================================ */
.affiliate_page { padding-top: 20px; }

.affiliate_top_card {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(280px,.7fr);
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--app-bg-1);
  border: 1px solid var(--app-border);
  border-radius: 20px;
  box-shadow: var(--app-shadow);
  align-items: start;
}

.affiliate_top_main { min-width: 0; }
.affiliate_top_head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.affiliate_top_card h2 { margin: 0 0 8px 0; font-size: 30px; line-height: 1.1; color: var(--app-text); word-break: break-word; }
.affiliate_top_text { margin: 0; color: var(--app-text-2); font-size: 15px; line-height: 1.6; }
.affiliate_top_actions { display: flex; gap: 10px; flex-wrap: wrap; }
.affiliate_top_side { display: grid; gap: 14px; min-width: 0; }
.affiliate_token_value { letter-spacing: .08em; color: var(--app-text); }

.affiliate_kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(253,182,15,0.12);
  border: 1px solid rgba(253,182,15,0.25);
  color: #fdb60f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

html.light .affiliate_kicker { background: #fffbeb; border-color: #fde68a; color: #b45309; }

/* ============================================================
   AFFILIATE FILTER BAR
   ============================================================ */
.affiliate_filter_bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.affiliate_filter_bar h2 { margin: 0 0 6px 0; font-size: 24px; color: var(--app-text); }
.affiliate_filter_bar p { margin: 0; color: var(--app-text-2); font-size: 14px; }
.affiliate_filter_wrap { display: grid; gap: 8px; min-width: 250px; }
.affiliate_filter_wrap label { font-size: 13px; font-weight: 600; color: var(--app-text); }

.affiliate_filter_wrap select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--app-border-md);
  background: var(--app-bg-2);
  color: var(--app-text);
  font-size: 14px;
  min-width: 0;
}

/* ============================================================
   AFFILIATE MAIN GRID & PANELS
   ============================================================ */
.affiliate_main_grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(320px,.8fr); gap: 20px; margin-bottom: 20px; align-items: start; }
.affiliate_panel { min-width: 0; }
.affiliate_panel_head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.affiliate_panel_head h2 { margin: 0 0 6px 0; font-size: 24px; color: var(--app-text); }
.affiliate_panel_head p { margin: 0; color: var(--app-text-2); font-size: 14px; }
.affiliate_stats_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================================
   AFFILIATE TABLE
   ============================================================ */
.affiliate_table_wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.affiliate_table { width: 100%; border-collapse: collapse; min-width: 680px; }

.affiliate_table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--app-border);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--app-text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.affiliate_table td {
  padding: 14px;
  border-bottom: 1px solid var(--app-border);
  font-size: 14px;
  color: var(--app-text);
  vertical-align: middle;
}

.affiliate_empty_cell { text-align: center; color: var(--app-text-2); }

.affiliate_status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.affiliate_status.is-success { background: rgba(74,222,128,0.12); color: #4ade80; border-color: rgba(74,222,128,0.25); }
.affiliate_status.is-warning { background: rgba(253,182,15,0.12); color: #fdb60f; border-color: rgba(253,182,15,0.25); }
.affiliate_status.is-danger { background: rgba(248,113,113,0.12); color: #f87171; border-color: rgba(248,113,113,0.25); }
.affiliate_status.is-neutral { background: var(--app-badge-neutral-bg); color: var(--app-badge-neutral-color); border-color: var(--app-badge-neutral-border); }

html.light .affiliate_status.is-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
html.light .affiliate_status.is-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
html.light .affiliate_status.is-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* ============================================================
   AFFILIATE BOTTOM PANEL & BANK
   ============================================================ */
.affiliate_bottom_panel { padding: 22px; }
.affiliate_bottom_grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 24px; align-items: start; }
.affiliate_bank_box { display: grid; gap: 14px; min-width: 0; }

.affiliate_notice {
  padding: 16px;
  border-radius: 16px;
  background: var(--app-notice-bg);
  border: 1px solid var(--app-notice-border);
  color: var(--app-notice-color);
  font-size: 14px;
  line-height: 1.6;
  min-width: 0;
}

.affiliate_bank_form { display: grid; gap: 14px; min-width: 0; }
.affiliate_bank_form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--app-text); }

.affiliate_bank_form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--app-border-md);
  background: var(--app-bg-2);
  color: var(--app-text);
  font-size: 14px;
  box-sizing: border-box;
  min-width: 0;
}

.affiliate_bank_actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   AFFILIATE LINKS
   ============================================================ */
.affiliate_link_grid { display: grid; gap: 14px; }

.affiliate_link_item {
  padding: 14px;
  background: var(--app-range-bg);
  border: 1px solid var(--app-range-border);
  border-radius: 16px;
  min-width: 0;
}

.affiliate_link_label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--app-text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.affiliate_link_value_row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

.affiliate_link_input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--app-border-md);
  background: var(--app-bg-2);
  color: var(--app-text);
  font-size: 14px;
  box-sizing: border-box;
  min-width: 0;
}

/* ============================================================
   AFFILIATE FEEDBACK
   ============================================================ */
.affiliate_feedback { display: none; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.affiliate_feedback.is-visible { display: block; }
.affiliate_feedback.is-success { background: rgba(74,222,128,0.12); color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.affiliate_feedback.is-error { background: rgba(248,113,113,0.12); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }

html.light .affiliate_feedback.is-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
html.light .affiliate_feedback.is-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* ============================================================
   DIALOG / MODAL
   ============================================================ */
.fs-dialog { position: fixed; inset: 0; display: none; z-index: 9999; }

.fs-dialog.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0;
}

.fs-dialog__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fs-dialog__panel {
  position: relative;
  width: calc(100% - 32px);
  max-width: 760px;
  margin: auto;
  background: var(--app-bg-1);
  border: 1px solid var(--app-border);
  border-radius: 24px;
  box-shadow: var(--app-shadow-lg);
  flex-shrink: 0;
}

.fs-dialog__panel--wide {
  max-width: 680px !important;
  width: 95vw !important;
}

.fs-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--app-bg-3);
  color: var(--app-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* ============================================================
   AFFILIATE CONFIG PANEL
   ============================================================ */
.affiliate_config_panel { padding: 28px; }
.affiliate_config_head { margin-bottom: 22px; }
.affiliate_config_head h2 { margin: 0 0 8px 0; font-size: 28px; color: var(--app-text); }
.affiliate_config_head p { margin: 0; color: var(--app-text-2); font-size: 15px; line-height: 1.6; }
.affiliate_config_form { display: grid; gap: 20px; }
.affiliate_form_group { display: grid; gap: 10px; }
.affiliate_form_group label { font-size: 14px; font-weight: 700; color: var(--app-text); }

.affiliate_form_group input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--app-border-md);
  background: var(--app-bg-2);
  color: var(--app-text);
  font-size: 15px;
  box-sizing: border-box;
}

.affiliate_form_help { margin: 0; color: var(--app-text-2); font-size: 13px; line-height: 1.6; }

.affiliate_range_header { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.affiliate_range_box {
  padding: 14px;
  border-radius: 16px;
  background: var(--app-range-bg);
  border: 1px solid var(--app-range-border);
}

.affiliate_range_box span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--app-text-2); }
.affiliate_range_box strong { display: block; font-size: 24px; color: var(--app-text); }
.affiliate_range_scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--app-text-3); margin-top: -4px; }

.affiliate_preview_grid { display: grid; gap: 14px; }
.affiliate_form_actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   CHECKBOX CUSTOM
   ============================================================ */
.fs-check { margin-top: 24px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; color: var(--app-text); }
.fs-check input { display: none; }

.fs-check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--app-border-md);
  background: var(--app-bg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  position: relative;
  flex-shrink: 0;
}

.fs-check input:checked + .fs-check-box {
  background: linear-gradient(135deg, #fdb60f 0%, #f28207 100%);
  border-color: transparent;
}

.fs-check input:checked + .fs-check-box::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg);
  position: absolute;
  top: 3px;
}

.fs-check-label { line-height: 1.4; flex: 1; color: var(--app-text); }

/* ============================================================
   AFFILIATE TERMS BOX
   ============================================================ */
.affiliate_terms_box { display: grid; gap: 16px; }
.fs-list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; }
.fs-list li { font-size: 14px; line-height: 1.6; color: var(--app-text-2); }

/* ============================================================
   AI MODAL INPUTS
   ============================================================ */
#leoparAiModalForm { margin-top: 20px; }

#leoparAiModalForm .site-meta-item { margin-bottom: 12px; }

#leoparAiKeyInput {
  font-family: monospace;
  margin-top: 6px;
  background: var(--app-input-bg);
  border: 1px solid var(--app-input-border);
}

#leoparAiKeyInput,
#leoparChatInput {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  color: var(--app-text);
}

#leoparAiKeyInput {
  font-family: monospace;
  margin-top: 6px;
}

#leoparChatInput {
  flex: 1;
  font-family: inherit;
  resize: none;
  line-height: 1.5;
}

#leoparAiKeyInput::placeholder,
#leoparChatInput::placeholder { color: var(--app-input-placeholder); }

#leoparAiKeyInput:focus,
#leoparChatInput:focus {
  outline: none;
  border-color: rgba(253,182,15,0.5);
}

/* ============================================================
   CHAT MODAL
   ============================================================ */
#leoparChatModalDomain { font-weight: 600; }

#leoparChatConnections {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chat-domain-link {
  color: inherit;
  text-decoration: none;
}

.chat-domain-link:hover { text-decoration: underline; }

.chat-connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid transparent;
}

.chat-connection-badge.is-connected {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border-color: rgba(74,222,128,0.25);
}

.chat-connection-badge.is-error {
  background: rgba(248,113,113,0.12);
  color: #f87171;
  border-color: rgba(248,113,113,0.25);
}

.chat-connection-badge.is-neutral {
  background: var(--app-badge-neutral-bg);
  color: var(--app-badge-neutral-color);
  border-color: var(--app-badge-neutral-border);
}

html.light .chat-connection-badge.is-connected {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

html.light .chat-connection-badge.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

#leoparChatMessages {
  height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--app-bg-2);
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--app-border);
}

#leoparChatWelcome {
  text-align: center;
  color: var(--app-text-2);
  font-size: 14px;
  margin: auto;
  padding: 20px;
  line-height: 1.6;
}

#leoparChatWelcome span {
  font-size: 12px;
  color: var(--app-text-3);
}

.leopar-chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

#leoparChatSend {
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
}

.chat-message {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.chat-message--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #fdb60f 0%, #f28207 100%);
  color: #000;
  border-bottom-right-radius: 3px;
}

.chat-message--user img {
max-width:100%
}

.chat-message--ai {
  align-self: flex-start;
  background: var(--app-bg-1);
  color: var(--app-text);
  border: 1px solid var(--app-border);
  border-bottom-left-radius: 3px;
}

.chat-message--ai .chat-files-updated {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--app-border);
  font-size: 12px;
  color: var(--app-text-2);
}

.chat-message--typing {
  align-self: flex-start;
  background: var(--app-bg-1);
  border: 1px solid var(--app-border);
  border-bottom-left-radius: 3px;
  padding: 12px 16px;
}

.chat-typing-dots { display: flex; gap: 5px; align-items: center; }

.chat-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-text-2);
  animation: chatDotBounce 1.2s infinite ease-in-out;
}

.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatDotBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   RESPONSIVE — 980px
   ============================================================ */
@media (max-width: 980px) {
  .auth_wrap, .auth_wrap--register { grid-template-columns: 1fr; max-width: 640px; padding: 0 16px; }
  #authPage { padding: 32px 0; }
  .auth_points { grid-template-columns: 1fr; }
  .affiliate_top_card { grid-template-columns: 1fr; }
  .affiliate_top_side { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .affiliate_main_grid { grid-template-columns: 1fr; }
  .affiliate_bottom_grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — 640px
   ============================================================ */
@media (max-width: 640px) {
  #authPage { padding: 18px 16px; }
  .auth_wrap { padding: 0; }
  .auth_wrap--center { padding: 0 !important; }
  .auth_left, .auth_card { border-radius: 22px; }
  .auth_left { padding: 26px; }
  .auth_card { padding: 24px; }
  .auth_left h1 { font-size: 36px; }
  .auth_card h2 { font-size: 28px; }
  .auth_grid { grid-template-columns: 1fr; gap: 10px; }
  #login_email, .auth_form input, .auth_form select { height: 52px; padding: 0 14px; font-size: 15px; }
  #login_submit, #register_submit { height: 54px; font-size: 15px; }
  .register_success { padding: 6px 0 0; }
  .register_success_icon { width: 60px; height: 60px; font-size: 26px; margin-bottom: 16px; }
  .register_success h3 { font-size: 28px; }
  .register_success p { font-size: 15px; }
	.dashboard-leopar { padding: 24px 20px 40px; }
  .dashboard-hero { margin-bottom: 20px; }
  .dashboard-hero h1 { font-size: 26px; }
  .site-meta { grid-template-columns: 1fr; }
  .site-card, .affiliate_top_card, .affiliate_bottom_panel { padding: 16px; border-radius: 16px; }
  .affiliate_top_card h2, .affiliate_panel_head h2, .affiliate_config_head h2 { font-size: 22px; line-height: 1.2; }
  .affiliate_top_head { flex-direction: column; }
  .affiliate_top_actions, .affiliate_bank_actions, .affiliate_form_actions { width: 100%; flex-direction: column; }
  .affiliate_top_actions .btn-leopar, .affiliate_bank_actions .btn-leopar, .affiliate_form_actions .btn-leopar { width: 100%; white-space: nowrap; }
  .affiliate_top_side { grid-template-columns: 1fr; }
  .affiliate_stats_grid { grid-template-columns: 1fr; }
  .affiliate_range_header { grid-template-columns: 1fr; }
  .affiliate_filter_bar { align-items: stretch; }
  .affiliate_filter_wrap { width: 100%; min-width: 0; }
  .affiliate_link_value_row { grid-template-columns: 1fr; }
  .affiliate_config_panel { padding: 18px; }
  .fs-dialog__panel { width: calc(100% - 16px); border-radius: 18px; margin: 0 auto; }
  .fs-dialog.is-open { padding: 8px 0; }
  .fs-dialog__close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 24px; }
  .fs-check { align-items: flex-start; }
  .leopar-chat-input-row { flex-direction: column; align-items: stretch; }
  #leoparChatSend { width: 240px; }
}

.site-link--expiry {
    color: var(--app-text-2) !important;
    cursor: default;
    pointer-events: none;
    user-select: none;
}
.lp-status {
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
}
.lp-status.is-pending {
    background: var(--app-pending-bg);
    border-color: var(--app-pending-border);
    color: var(--app-pending-color);
}
.lp-status.is-success {
    background: rgba(74,222,128,0.12);
    border-color: rgba(74,222,128,0.25);
    color: #4ade80;
}
.lp-status.is-error {
    background: var(--app-failed-bg);
    border-color: var(--app-failed-border);
    color: var(--app-failed-color);
}
html.light .lp-status.is-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
html.light .lp-status.is-error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.leopar-modal-actions-top { margin-top: 20px; }

/* Bouton Détails — discret */
.btn-leopar--ghost {
    background: transparent;
    border: 1px solid var(--app-border);
    color: var(--app-text-2);
    opacity: 0.75;
}
.btn-leopar--ghost:hover {
    opacity: 1;
    background: var(--app-bg-2);
}

/* ============================================================
   CHAT PROMPT BOX (dashboard)
   ============================================================ */

.chat-prompt-box { position: relative; width: 100%; padding: 14px; background: var(--app-bg-2); border: 1px solid var(--app-border); border-radius: 18px; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); transition: border-color .2s ease, box-shadow .2s ease; }
.chat-prompt-box:focus-within { border-color: rgba(253, 182, 15, .45); box-shadow: 0 6px 20px rgba(0, 0, 0, .1), 0 0 0 3px rgba(253, 182, 15, .08); }

/* Textarea */
.chat-prompt-box__input { display: block; width: 100%; min-height: 52px; max-height: 160px; padding: 6px 8px 4px; background: transparent; border: 0; outline: 0; resize: none; font-family: inherit; font-size: 15px; line-height: 1.5; color: var(--app-text); caret-color: var(--app-accent, #fdb60f); }
.chat-prompt-box__input::placeholder { color: var(--app-text-3, rgba(0, 0, 0, .35)); }

/* Preview image */
.chat-prompt-box__preview { position: relative; display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; padding: 8px 10px; background: var(--app-bg-3); border: 1px solid var(--app-border); border-radius: 10px; }
.chat-prompt-box__preview img { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--app-border); border-radius: 6px; object-fit: cover; }
.chat-prompt-box__preview-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-prompt-box__preview-info span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; color: var(--app-text); }
.chat-prompt-box__preview-info span:last-child { font-size: 11px; color: var(--app-text-2); }
.chat-prompt-box__preview-remove { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; background: var(--app-bg-2); border: 0; border-radius: 50%; color: var(--app-text-2); font-size: 18px; line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease; }
.chat-prompt-box__preview-remove:hover { background: #ef4444; color: #fff; }

/* Toolbar */
.chat-prompt-box__toolbar { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 0 2px; }
.chat-prompt-box__spacer { flex: 1; }

/* Bouton joindre */
.chat-prompt-box__attach { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; background: var(--app-bg-3); border: 1px solid var(--app-border); border-radius: 9px; color: var(--app-text-2); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.chat-prompt-box__attach img {opacity:0.5}
.chat-prompt-box__attach:hover { background: rgba(253, 182, 15, .08); border-color: rgba(253, 182, 15, .35); color: #fdb60f; }
.chat-prompt-box__attach.has-file { background: rgba(253, 182, 15, .1); border-color: rgba(253, 182, 15, .4); color: #fdb60f; }
.chat-prompt-box__attach:disabled { opacity: .4; cursor: not-allowed; }

/* Bouton envoyer */
.chat-prompt-box__send, .chat-prompt-box__send#leoparChatSend { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; background: linear-gradient(135deg, #fdb60f 0%, #f28207 100%); border: 0; border-radius: 9px; color: #000; cursor: pointer; box-shadow: 0 2px 10px rgba(253, 182, 15, .3); transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease; }
.chat-prompt-box__send:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(253, 182, 15, .45); }
.chat-prompt-box__send:active { transform: scale(.96); }
.chat-prompt-box__send:disabled { opacity: .4; transform: none; box-shadow: none; cursor: not-allowed; }
.chat-prompt-box__send svg { display: block; width: 16px; height: 16px; color: #000; stroke: currentColor; }

/* Hint "Votre idée initiale" */
.chat-initial-hint { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 10px 14px; background: rgba(253, 182, 15, .08); border: 1px solid rgba(253, 182, 15, .22); border-radius: 12px; color: #fdb60f; font-size: 13px; line-height: 1.4; animation: chatInitialHintIn .3s ease-out; }
.chat-initial-hint strong { font-weight: 700; }
html.light .chat-initial-hint { background: #fffbeb; border-color: #fde68a; color: #b45309; }

@keyframes chatInitialHintIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 640px) {
    .chat-prompt-box { padding: 10px; border-radius: 16px; }
    .chat-prompt-box__input { font-size: 16px; }
}

/* Mobile : modale chat en fullscreen pur, tout le reste masqué */
@media (max-width: 640px) {
body.chat-modal-active > *:not(#leoparChatModal):not(script):not(style) {
    display: none !important;
}
  
  body.chat-modal-active {
    overflow: hidden;
    height: 100dvh;
    padding-top: 0 !important;
  }
  
  body.chat-modal-active #leoparChatModal {
    position: fixed;
    inset: 0;
    padding: 0;
    align-items: stretch;
    overflow: hidden;
  }
  
  body.chat-modal-active #leoparChatModal .fs-dialog__backdrop {
    display: none;
  }
  
  body.chat-modal-active #leoparChatModal .fs-dialog__panel--wide {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  
  body.chat-modal-active #leoparChatModal .affiliate_config_panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 16px;
    padding-top: 60px; /* Place pour le bouton fermer */
  }
  
  body.chat-modal-active #leoparChatMessages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  body.chat-modal-active #leoparChatModal .chat-prompt-box {
    flex-shrink: 0;
  }
  
	/* Mode saisie : masquer le header pour maximiser la zone de chat */
	body.chat-modal-active #leoparChatModal.is-typing .affiliate_config_head,
	body.chat-modal-active #leoparChatModal.is-typing #leoparChatConnections,
	body.chat-modal-active #leoparChatModal.is-typing #leoparChatFtpBadge,
	body.chat-modal-active #leoparChatModal.is-typing #leoparChatDbBadge {
		display: none !important;
	}

	body.chat-modal-active #leoparChatModal.is-typing .affiliate_config_panel {
		padding-top: 50px;
	}
}