/* BILLGATEWAYS — Design system */
:root {
  /* Thème global : clair, ultra minimal, accent bleu-vert */
  --bg: #f3f4f6;
  --bg-subtle: #eef2f7;
  --panel: #ffffff;
  --panel-elevated: #ffffff;
  --panel-hover: #f9fafb;
  --border: #e2e8f0;
  --border-subtle: #e5e7eb;
  --border-focus: #0ea5e9;
  --text: #0f172a;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --nav-bg: #0f172a;
  --nav-surface: #020617;
  --nav-text: #e5e7eb;
  --nav-text-muted: #9ca3af;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-soft: #e0f2fe;
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-soft: #e0f2fe;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);
  --transition-fast: 0.12s ease-out;
  --transition: 0.2s ease-out;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Auth (login) page */
.auth-body {
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(14, 165, 233, 0.14), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(34, 197, 94, 0.10), transparent 55%),
    var(--bg);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}
.auth-main {
  width: 100%;
  max-width: 460px;
}
.auth-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.auth-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent);
  border: 1px solid rgba(14, 165, 233, 0.25);
}
.auth-brand-mark svg { width: 22px; height: 22px; display: block; }
.auth-brand-name { font-weight: 800; letter-spacing: -0.02em; }
.auth-brand-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.auth-brand--banner {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.auth-brand-banner {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.auth-header { margin: 4px 0 18px; }
.auth-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.auth-subtitle { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }

.auth-form { margin-top: 8px; }
.auth-form .form-group { margin-bottom: 14px; }
.auth-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.auth-captcha {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin: 12px 0 4px;
}
.auth-captcha-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.auth-captcha-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.auth-captcha-hint { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.auth-captcha-refresh {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.auth-captcha-refresh:hover {
  transform: translateY(-1px);
  background: var(--panel-hover);
  color: var(--text);
  border-color: var(--border-focus);
}
.auth-captcha-refresh svg { width: 18px; height: 18px; display: block; }

.auth-captcha-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-captcha-badge {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.auth-captcha-eq {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.auth-captcha-answer {
  width: 120px !important;
  text-align: center;
  font-weight: 800;
}

.auth-message {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: var(--danger);
}
.auth-actions { margin-top: 14px; display: flex; justify-content: center; }
.auth-actions .primary-button {
  min-width: 140px;
  background: var(--nav-bg);
  color: #fff;
}
.auth-actions .primary-button:hover {
  background: #1e293b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}
.auth-footer {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button, input, select, textarea {
  font: inherit;
}

/* Layout */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 14px 12px;
  background: var(--nav-bg);
  color: var(--nav-text);
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid rgba(15, 23, 42, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--nav-text-muted);
  font-size: 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Sidebar banner (remplace icon + nom) */
.sidebar-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Users/admin: on remplace l'icône + nom par une bannière image dans la sidebar */
.sidebar .brand-mark,
.sidebar .brand-name,
.sidebar .brand-subtitle {
  display: none;
}

.nav-item {
  text-decoration: none;
  color: var(--nav-text-muted);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.nav-item:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--nav-text);
  transform: translateY(-1px);
}

.nav-item.active {
  background: rgba(15, 23, 42, 1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.4);
}

/* Main content */
.main-content {
  padding: 24px 28px;
  min-width: 0;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: -24px -28px 0;
  padding: 18px 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.page-title {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-profile {
  position: relative;
}
.topbar-icon-btn--profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
}
.topbar-profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.topbar-profile-avatar span { transform: translateY(1px); }
.topbar-profile-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
.topbar-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  z-index: 50;
}
.topbar-profile-header {
  padding: 6px 12px 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}
.topbar-profile-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.topbar-profile-item {
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-profile-item:hover {
  background: var(--panel-hover);
}

/* Balance pill */
.balance-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 170px;
  padding: 10px 16px 10px 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.balance-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(56, 189, 248, 0.03));
  opacity: 1;
}

.balance-pill::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 70%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #2563eb, #38bdf8);
  transform: translateY(-50%);
}

.balance-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  position: relative;
  z-index: 1;
}

.balance-value {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-hover);
  position: relative;
  z-index: 1;
}

/* Topbar: reworked balance (compact horizontal) */
.balance-pill {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 14px 8px 12px;
}
.balance-pill .balance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(56, 189, 248, 0.08));
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.balance-pill .balance-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.balance-pill .balance-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.balance-pill .balance-inner .balance-label {
  font-size: 10px;
  margin: 0;
}
.balance-pill .balance-inner .balance-value {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

/* Topbar: icon buttons (notifications, profile) */
.topbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--panel);
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.topbar-icon-btn:hover {
  background: var(--panel-hover);
  color: var(--text);
  border-color: var(--border);
}
.topbar-icon-btn svg {
  width: 20px;
  height: 20px;
}
.topbar-icon-btn.topbar-icon-btn--notify {
  position: relative;
}
.topbar-icon-btn .notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: var(--danger);
  border-radius: 999px;
  border: 2px solid var(--panel);
}
.topbar-actions {
  gap: 10px;
}

/* Hero strip */
.hero-strip {
  padding: 20px 22px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: var(--radius-xl);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.hero-copy {
  max-width: 640px;
}

.eyebrow.accent {
  color: #a5b4fc;
}

.hero-copy h2 {
  margin: 6px 0 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
}

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

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 20px;
  background: var(--panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition-fast);
}

.stat-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-trend {
  margin-top: 6px;
  font-size: 13px;
}

.positive { color: var(--success); }
.negative { color: var(--danger); }
.neutral { color: var(--text-muted); }

/* Dashboard (index.html) — thème pro */
.dashboard-page {
  gap: 24px;
}

.dashboard-topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 28px;
}

.dashboard-topbar .page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dashboard-balance {
  min-width: 180px;
}

.dashboard-welcome {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.dashboard-welcome::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.dashboard-welcome-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.dashboard-welcome-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 8px;
}

.dashboard-welcome-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 10px;
}

.dashboard-welcome-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px;
}

.dashboard-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dashboard-welcome-actions .primary-button {
  background: #fff;
  color: #0f172a;
}

.dashboard-welcome-actions .primary-button:hover {
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dashboard-welcome-actions .secondary-button {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.dashboard-welcome-actions .secondary-button:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.dashboard-welcome-actions .ghost-button {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

.dashboard-welcome-actions .ghost-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dashboard-kpi {
  background: var(--panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition-fast);
}

.dashboard-kpi:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: var(--border);
  transform: translateY(-2px);
}

.dashboard-kpi-inner {
  position: relative;
  z-index: 1;
}

.dashboard-kpi-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
}

.dashboard-kpi--calling .dashboard-kpi-accent {
  background: var(--primary);
}

.dashboard-kpi--done .dashboard-kpi-accent {
  background: var(--success);
}

.dashboard-kpi--pending .dashboard-kpi-accent {
  background: var(--warning);
}

.dashboard-kpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.dashboard-kpi-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

@media (max-width: 1024px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-welcome-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Call rates — minimalist pro dashboard */
.rates-dash-page.page-stack {
  gap: 20px;
}
.rates-dash-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 768px) {
  .rates-dash-strip {
    grid-template-columns: 1fr;
  }
}
.rates-dash-stat {
  background: var(--panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.rates-dash-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rates-dash-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rates-dash-stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.rates-dash-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.rates-dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rates-dash-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}
.rates-dash-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-soft);
  pointer-events: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.rates-dash-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.rates-dash-search input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.rates-dash-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.rates-dash-icon-btn:hover {
  background: var(--panel-hover);
  color: var(--text);
  border-color: var(--border);
}
.rates-dash-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rates-dash-icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rates-dash-panel {
  background: var(--panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.rates-dash-panel-hd {
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.rates-dash-panel-hd h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rates-dash-panel-hd p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 640px;
}
.rates-pro-region {
  border-bottom: 1px solid var(--border-subtle);
}
.rates-pro-region:last-child {
  border-bottom: 0;
}
.rates-pro-region-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 0;
  padding: 12px 24px 8px;
  background: var(--bg-subtle);
}
.rates-pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rates-pro-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--panel);
}
.rates-pro-table td {
  padding: 11px 24px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text);
}
.rates-pro-table tbody tr:last-child td {
  border-bottom: 0;
}
.rates-pro-table tbody tr:hover td {
  background: var(--panel-hover);
}
.rates-pro-code {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rates-pro-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rates-pro-flag-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rates-pro-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.rates-pro-empty,
.rates-pro-loading {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.dashboard-panel {
  padding: 24px;
}

.dashboard-panel-header {
  margin-bottom: 20px;
}

.dashboard-table-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.dashboard-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 14px 16px;
  background: #f8fafc;
}

.dashboard-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-table tbody tr:hover td {
  background: var(--panel-hover);
}

/* Panels */
.file-protocol-warning {
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--warning, #d97706);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--text);
}
.file-protocol-warning a { color: var(--accent); font-weight: 600; }
.file-protocol-warning code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.panel {
  background: var(--panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title {
  font-size: 17px;
  font-weight: 700;
}

.panel-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.panel-actions {
  display: flex;
  gap: 8px;
}

/* 3CX credentials */
.config-3cx-creds-title {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.config-3cx-creds {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.config-3cx-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
}
.config-3cx-label {
  font-size: 13px;
  color: var(--text-muted);
}
.config-3cx-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}
.config-3cx-link:hover {
  text-decoration: underline;
}
.config-3cx-value-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.config-3cx-value {
  font-size: 14px;
  font-family: ui-monospace, monospace;
  background: var(--bg-subtle);
  padding: 4px 8px;
  border-radius: 4px;
}
.config-3cx-copy-btn {
  padding: 4px 10px;
  font-size: 12px;
  background: var(--border);
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
}
.config-3cx-copy-btn:hover {
  background: var(--border-subtle);
}

/* 3CX user guide — pro documentation style */
.guide-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.guide-header {
  margin-bottom: 40px;
  max-width: 560px;
}
.guide-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
  letter-spacing: -0.02em;
}
.guide-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.guide-steps {
  position: relative;
  padding-left: 44px;
}
.guide-steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}
.guide-step {
  position: relative;
  padding-bottom: 48px;
}
.guide-step:last-child {
  padding-bottom: 0;
}
.guide-step:last-child .guide-step-body {
  margin-bottom: 0;
}
.guide-step-number {
  position: absolute;
  left: -44px;
  top: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
}
.guide-step-body {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 0;
}
.guide-step-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}
.guide-step-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.guide-step-content p {
  margin: 0 0 16px 0;
}
.guide-step-content p:last-of-type {
  margin-bottom: 0;
}
.guide-screenshot {
  margin: 24px 0;
}
.guide-screenshot:first-of-type {
  margin-top: 20px;
}
.guide-screenshot img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.guide-screenshot-caption {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.guide-step-content a {
  color: var(--accent);
  text-decoration: none;
}
.guide-step-content a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .guide-steps {
    padding-left: 0;
  }
  .guide-steps::before {
    display: none;
  }
  .guide-step {
    display: flex;
    flex-direction: column;
  }
  .guide-step-number {
    position: static;
    align-self: flex-start;
    margin-bottom: 12px;
  }
  .guide-step-body {
    padding: 20px;
  }
}

/* Configure 3CX — trunk notice (minimal, matches guide / panel theme) */
.config-3cx-notice {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  max-width: 880px;
}
.config-3cx-notice-head {
  margin-bottom: 20px;
}
.config-3cx-notice-title {
  margin: 4px 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.config-3cx-notice-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.config-3cx-notice-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.config-3cx-notice-layout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.config-3cx-notice-media {
  flex-shrink: 0;
}
.config-3cx-notice-img {
  display: block;
  width: 260px;
  height: auto;
  max-width: min(100%, 320px);
  max-height: 360px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  padding: 8px;
}
.config-3cx-notice-body {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.config-3cx-notice-body p {
  margin: 0 0 14px;
}
.config-3cx-notice-body p:last-child {
  margin-bottom: 0;
}
.config-3cx-notice-disclaimer {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .config-3cx-notice-card {
    padding: 20px;
  }
  .config-3cx-notice-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .config-3cx-notice-img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
}

/* Feature maintenance (invoke, quick-send, …): blurred content + overlay card */
.page-maint-host {
  position: relative;
  flex: 1;
  min-height: min(52vh, 440px);
}
.page-maint-blur {
  filter: blur(9px);
  -webkit-filter: blur(9px);
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
}
.page-maint-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(243, 244, 246, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.page-maint-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--panel) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(14, 165, 233, 0.06);
}
.page-maint-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #22c55e);
  opacity: 0.9;
}
.page-maint-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 28px auto 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.12), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--accent);
}
.page-maint-icon {
  width: 28px;
  height: 28px;
  display: block;
}
.page-maint-eyebrow {
  margin: 20px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.page-maint-title {
  margin: 8px 32px 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
}
.page-maint-text {
  margin: 16px 32px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: left;
}
.page-maint-sub {
  margin: 20px 32px 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
  text-align: left;
}
@media (max-width: 480px) {
  .page-maint-title,
  .page-maint-text,
  .page-maint-sub {
    margin-left: 22px;
    margin-right: 22px;
  }
  .page-maint-sub {
    margin-bottom: 26px;
  }
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* Admin: Manage users */
.admin-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-table-toolbar .left,
.admin-table-toolbar .right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-inline-control {
  padding: 8px 10px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
}
.admin-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
/* Manage users — barre d’actions compacte (icônes) */
.admin-table-th-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.admin-table td.admin-table-actions {
  text-align: right;
  vertical-align: middle;
}
.admin-actions-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
}
.admin-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.admin-icon-action:hover {
  border-color: var(--border);
  background: var(--panel-hover);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.admin-icon-action:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.admin-icon-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.admin-icon-action svg {
  flex-shrink: 0;
  pointer-events: none;
}
.admin-icon-action--primary {
  border-color: rgba(14, 165, 233, 0.35);
  background: var(--primary-soft);
  color: var(--primary);
}
.admin-icon-action--primary:hover {
  border-color: var(--primary);
  background: #bae6fd;
  color: var(--primary-hover);
}
.admin-icon-action--danger:hover {
  border-color: rgba(239, 68, 68, 0.45);
  background: var(--danger-soft);
  color: var(--danger);
}
@media (max-width: 1100px) {
  .admin-row-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 180px;
  }
}
.admin-actions-cell .admin-row-msg {
  display: block;
  max-width: 220px;
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
  word-break: break-word;
  margin: 0;
  color: var(--text-muted);
}
.admin-row-msg {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 2px;
}
.admin-kpi-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-elevated) 100%);
}
.admin-kpi-strip strong {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.admin-kpi-strip .muted {
  color: var(--text-muted);
  font-size: 13px;
}

/* Admin dashboard — pro aesthetic */
.admin-body .main-content {
  padding: 24px 32px;
}
.admin-main.page-stack {
  gap: 24px;
}
.admin-topbar {
  margin: -24px -32px 0 -32px;
  padding: 20px 32px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.admin-topbar .page-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.admin-welcome {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
.admin-welcome::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -15%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.15) 0%, transparent 55%);
  pointer-events: none;
}
.admin-welcome-content {
  position: relative;
  z-index: 1;
}
.admin-welcome-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 8px 0;
}
.admin-welcome-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px 0;
}
.admin-welcome-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px 0;
}
.admin-welcome-kpis {
  display: flex;
  gap: 32px;
}
.admin-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-kpi-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.admin-kpi-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.admin-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.admin-panel .panel-header {
  margin-bottom: 20px;
}
.admin-panel .panel-title {
  font-size: 16px;
  font-weight: 700;
}
.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.admin-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.admin-card-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}
.admin-card .form-group {
  margin-bottom: 14px;
}
.admin-card .form-group:last-of-type {
  margin-bottom: 16px;
}
.admin-card .form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.admin-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-card-actions--wrap {
  flex-wrap: wrap;
}
.admin-btn-primary {
  background: var(--nav-bg);
  color: #fff;
}
.admin-btn-primary:hover {
  background: #1e293b;
  color: #fff;
}
.admin-btn-ghost {
  border-color: var(--border);
}
.admin-btn-ghost:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.admin-form-msg {
  margin: 10px 0 0;
  font-size: 13px;
}
.admin-card-tip {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-subtle);
}
.admin-table tr:hover td {
  background: var(--panel-hover);
}
.admin-table--compact th,
.admin-table--compact td {
  padding: 10px 12px;
  font-size: 13px;
}
.admin-table--compact {
  min-width: 0;
}

/* Admin — profil utilisateur (dashboard minimaliste) */
.admin-profile-page .admin-topbar .topbar-actions {
  align-items: center;
  gap: 12px;
}
.admin-profile-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.admin-profile-back:hover {
  border-color: var(--border-focus);
  color: var(--text);
  background: var(--panel-hover);
}
.admin-profile-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}
.admin-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(14, 165, 233, 0.18), transparent 50%);
  pointer-events: none;
}
.admin-profile-hero-inner {
  position: relative;
  z-index: 1;
}
.admin-profile-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.admin-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-profile-avatar svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255, 255, 255, 0.9);
}
.admin-profile-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 6px 0;
}
.admin-profile-hero-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px 0;
  color: #fff;
}
.admin-profile-hero-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.5;
}
.admin-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.admin-profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.admin-profile-badge--role {
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.35);
}
.admin-profile-badge--ok {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.3);
}
.admin-profile-badge--off {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(252, 165, 165, 0.35);
}
.admin-profile-badge--muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.admin-profile-badge--warn {
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
  border: 1px solid rgba(252, 211, 77, 0.35);
}
.admin-profile-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1024px) {
  .admin-profile-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .admin-profile-kpis {
    grid-template-columns: 1fr;
  }
}
.admin-profile-kpi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.admin-profile-kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 4px 0;
}
.admin-profile-kpi-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.admin-profile-kpi-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  line-height: 1.25;
}
.admin-profile-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-profile-kpi-icon svg {
  width: 22px;
  height: 22px;
}
.admin-profile-kpi-icon--wallet {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
}
.admin-profile-kpi-icon--provider {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}
.admin-profile-kpi-icon--deposit {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}
.admin-profile-kpi-icon--call {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}
.admin-profile-kpi-icon--login {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}
.admin-profile-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .admin-profile-charts {
    grid-template-columns: 1fr;
  }
}
.admin-profile-chart-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.admin-profile-chart-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.admin-profile-chart-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.admin-profile-chart-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text);
}
.admin-profile-chart-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}
.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.admin-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-chart-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.admin-chart-dot--login {
  background: #6366f1;
}
.admin-chart-dot--call {
  background: var(--accent);
}
.admin-chart-wrap {
  width: 100%;
  min-height: 140px;
}
.admin-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 160px;
}
.admin-chart-empty {
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 0;
  text-align: center;
}
.admin-profile-panel .admin-profile-panel-head.panel-header {
  margin-bottom: 16px;
}
.admin-profile-panel-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.admin-profile-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.admin-profile-balances-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 4px;
}
@media (max-width: 640px) {
  .admin-profile-balances-dual {
    grid-template-columns: 1fr;
  }
}
.admin-profile-balance-block {
  padding: 16px 18px;
  background: var(--bg-subtle, rgba(0, 0, 0, 0.03));
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-subtle);
}
.admin-profile-balance-block-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.admin-profile-wallet-balance--secondary {
  font-size: 24px;
}
.admin-profile-wallet-adjust-label {
  width: 100%;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.admin-profile-wallet-row--adjust {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.admin-profile-wallet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.admin-profile-wallet-balance {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}
.admin-profile-wallet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.admin-profile-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-profile-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-profile-tool-btn {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.admin-profile-tool-btn:hover {
  border-color: var(--border);
  background: var(--panel-hover);
  box-shadow: var(--shadow-sm);
}
.admin-profile-tool-btn svg {
  color: var(--text-muted);
}
.admin-profile-tool-btn:hover svg {
  color: var(--accent);
}
.admin-profile-tool-btn-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.admin-profile-tool-btn-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.admin-profile-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .admin-profile-split {
    grid-template-columns: 1fr;
  }
}
.admin-profile-mini-card {
  margin: 0;
}
.admin-profile-inline-actions {
  margin-top: 12px;
}
/* --- Admin dashboard: charts + global search --- */
.admin-global-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}
.admin-global-search-input {
  min-width: 180px;
  max-width: min(280px, 36vw);
  padding: 8px 10px;
  font-size: 13px;
}
.admin-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: min(360px, 92vw);
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-elevated, var(--bg, #1a1b26));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  z-index: 200;
}
.admin-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-search-item:last-child {
  border-bottom: none;
}
.admin-search-item:hover {
  background: var(--surface-muted, rgba(255, 255, 255, 0.04));
}
.admin-search-type {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  min-width: 64px;
}
.admin-search-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.admin-dashboard-charts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
.admin-dashboard-charts-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.admin-chart-range-toggle {
  display: flex;
  gap: 4px;
}
.admin-chart-range-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}
.admin-dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) {
  .admin-dashboard-charts-grid {
    grid-template-columns: 1fr;
  }
}
.admin-dash-chart-card {
  margin: 0;
  padding: 16px;
}
.admin-dash-chart-head {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}
.admin-dash-chart-sub {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--text-muted);
  min-height: 2.6em;
}
.admin-dash-chart-wrap {
  min-height: 140px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}
.admin-dash-chart-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
.admin-trading-chart-bg {
  fill: rgba(0, 0, 0, 0.2);
}
.admin-trading-chart-frame {
  stroke: var(--border-subtle);
  opacity: 0.9;
}
.admin-trading-grid-line {
  stroke: var(--border-subtle);
  stroke-width: 1;
  stroke-dasharray: 5 7;
  opacity: 0.28;
}
.admin-trading-axis-line {
  stroke: var(--border-subtle);
  stroke-width: 1;
  opacity: 0.5;
}

tr.admin-session-highlight td {
  box-shadow: inset 0 0 0 2px var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.admin-profile-tables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .admin-profile-tables {
    grid-template-columns: 1fr;
  }
}
/* Sessions profil : tableau minimal */
.admin-profile-sessions-wrap {
  margin-top: 4px;
  border-radius: 8px;
  overflow-x: auto;
}
.admin-profile-sessions-table {
  font-size: 12px;
}
.admin-profile-sessions-table th,
.admin-profile-sessions-table td {
  padding: 8px 10px;
  vertical-align: middle;
}
.admin-profile-sessions-table thead th {
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.admin-profile-sessions-th-icon {
  width: 40px;
  padding-left: 12px !important;
  padding-right: 4px !important;
}
.admin-profile-sessions-icon-cell {
  width: 40px;
  text-align: center;
  padding-left: 12px !important;
  padding-right: 4px !important;
}
.admin-profile-sessions-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.85;
}
.admin-profile-sessions-icon svg {
  width: 16px;
  height: 16px;
}
.admin-profile-sessions-table tbody tr:hover td {
  background: var(--surface-muted, rgba(0, 0, 0, 0.03));
}
.admin-profile-btn-danger-ghost:hover {
  border-color: rgba(239, 68, 68, 0.45);
  color: var(--danger);
}
.admin-profile-grid-2 {
  display: grid;
  gap: 16px;
}
.admin-profile-page.page-stack.admin-main {
  gap: 20px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}
.admin-pagination-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.admin-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-pagination-controls label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}
.admin-pagination-controls select {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.admin-role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.admin-role-admin {
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent);
}
.admin-role-manager {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}
.admin-role-user {
  background: var(--bg-subtle);
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .admin-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin: user integrations modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.admin-modal-overlay[hidden] {
  display: none !important;
}
.admin-modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}
.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 0;
}
.admin-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.admin-modal-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.admin-modal-body {
  padding: 16px 22px 22px;
}
.admin-modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-modal-tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
}
.admin-modal-tab:hover {
  color: var(--text);
}
.admin-modal-tab.active {
  color: var(--nav-bg);
  border-bottom-color: var(--nav-bg);
}
.admin-integ-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.45;
}
.admin-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 4px;
  margin-bottom: 4px;
}
.admin-chip-ok {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}
.admin-chip-warn {
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
}
.admin-chip-err {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}
.admin-chip-muted {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* Client: configure 3CX — support / empty states */
.config-3cx-empty {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: var(--bg-subtle);
  margin-bottom: 16px;
}
.config-3cx-empty-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.config-3cx-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.config-3cx-provider-box {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--panel);
}
.config-3cx-provider-box h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}
.config-3cx-provider-box p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.config-3cx-provider-ok {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.06);
}

/* Simple bar chart */
.admin-chart {
  display: grid;
  gap: 10px;
}
.admin-bar {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  align-items: center;
  gap: 10px;
}
.admin-bar-label {
  color: var(--text-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.admin-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(14,165,233,0.85), rgba(2,132,199,0.85));
}
.admin-bar-value {
  text-align: right;
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: #f9fafb;
}

tr:hover td {
  background: var(--panel-hover);
}

td strong {
  display: block;
}

.table-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.table-muted {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 24px !important;
}

.history-table th,
.history-table td {
  font-size: 11px;
}

.history-table .table-link {
  font-size: 11px;
}

.campaigns-table th,
.campaigns-table td {
  font-size: 11px;
  padding: 8px 10px;
}

.campaigns-table .table-link {
  font-size: 11px;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.status-badge.running {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.status-badge.success {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.scheduled {
  background: #ede9fe;
  color: #6d28d9;
}

.status-badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-badge.negative {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-badge.neutral {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
}

/* Links */
.table-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.table-link + .table-link {
  margin-left: 8px;
}

/* Buttons */
.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.secondary-button {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.secondary-button:hover {
  background: rgba(99, 102, 241, 0.15);
}

.ghost-button {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}

.ghost-button:hover {
  background: var(--bg-subtle);
  border-color: var(--border-focus);
}

.small {
  padding: 8px 12px;
  font-size: 13px;
}

/* Chips / Tabs */
.chip,
.segment-tag {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.chip:hover,
.segment-tag:hover {
  color: var(--text);
  border-color: var(--border-focus);
}

.chip.active,
.segment-tag.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* Forms */
.campaign-form,
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Form sections (new-campaign) */
.form-section {
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.form-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.form-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.form-section-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px 16px;
}

@media (max-width: 860px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hint-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.seat-card {
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.7), rgba(255, 255, 255, 1));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-actions .primary-button {
  min-width: 220px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea,
input[type="text"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  font-size: 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-readonly {
  background: var(--bg-subtle) !important;
  color: var(--text);
  cursor: default;
  border-color: var(--border-subtle);
}
.input-readonly:focus {
  border-color: var(--border-subtle);
  box-shadow: none;
}

.form-hint,
.form-message {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Voice library — drag & drop file zone */
.file-dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--panel) 100%);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  outline: none;
}

.file-dropzone:hover,
.file-dropzone:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.file-dropzone.file-dropzone--dragover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.file-dropzone.has-file {
  border-style: solid;
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.35), var(--panel));
}

.file-dropzone.file-dropzone--error {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.file-dropzone-input-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.file-dropzone-body {
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.file-dropzone-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.15), rgba(34, 197, 94, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: var(--accent);
}

.file-dropzone-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.file-dropzone-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.file-dropzone-title strong {
  color: var(--accent-hover);
  font-weight: 700;
}

.file-dropzone-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.file-dropzone-filename {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  word-break: break-all;
}

.file-dropzone-filename.is-hidden,
.file-dropzone-clear.is-hidden {
  display: none;
}

.file-dropzone-clear {
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.file-dropzone-clear:hover {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
  background: var(--danger-soft);
}

/* Voice library — space under dropzone before Upload */
.voice-library-upload-actions {
  margin-top: 28px;
  padding-top: 8px;
}

/* New campaign — spacing before dropzones */
.new-campaign-dropzone-spaced {
  margin-top: 10px;
}

/* Filters row */
.filters-row label,
.filters-row input,
.filters-row select {
  font-size: 13px;
}

/* Info cards */
.info-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.info-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.info-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Lists */
.kpi-list,
.settings-list,
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kpi-list li,
.settings-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.kpi-list li:last-child,
.settings-list li:last-child {
  border-bottom: 0;
}

/* Billing summary */
.billing-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.summary-label {
  font-size: 13px;
  color: var(--text-muted);
}

.summary-value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
}

/* Billing page: hero balance card */
.billing-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 24px;
}
.billing-hero-card {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: #fff;
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.25);
}
.billing-hero-card.gift {
  background: linear-gradient(135deg, #0d9488, #2dd4bf);
  box-shadow: 0 10px 40px rgba(13, 148, 136, 0.25);
}
.billing-hero-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin: 0 0 6px;
}
.billing-hero-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.billing-hero-meta {
  font-size: 12px;
  opacity: 0.85;
  margin: 10px 0 0;
}
.billing-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.billing-table-muted {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 32px 16px !important;
}

/* Crypto deposit modal */
.modal-box--wide {
  max-width: 480px;
}
@media (min-width: 520px) {
  .modal-box--wide { max-width: 540px; }
}
.crypto-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.crypto-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.crypto-option:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-1px);
}
.crypto-option:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.crypto-option-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.crypto-option-icon svg {
  display: block;
  width: 32px;
  height: 32px;
}
.crypto-option-name {
  flex: 1;
}
.crypto-selected-label {
  margin: 8px 0 16px;
  font-size: 15px;
  color: var(--text);
}
.crypto-result-error {
  margin-top: 0;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid var(--danger, #dc2626);
  border-radius: var(--radius-lg);
  color: var(--danger, #dc2626);
  font-size: 14px;
  line-height: 1.45;
}

/* Carte de paiement crypto – popup esthétique */
.crypto-payment-card {
  margin-top: 8px;
  padding: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--panel-elevated) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.crypto-payment-header {
  text-align: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.crypto-payment-badge {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  margin-bottom: 4px;
}
.crypto-payment-subtitle {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}
.crypto-qr-block {
  text-align: center;
  padding: 24px 20px 16px;
}
.crypto-qr-frame {
  display: inline-block;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
}
.crypto-qr-img {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 8px;
}
.crypto-qr-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.crypto-address-block {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-subtle);
}
.crypto-address-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.crypto-address-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.crypto-address-field .crypto-result-address {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", "Consolas", monospace;
  word-break: break-all;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}
.crypto-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.crypto-copy-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.crypto-copy-btn:active {
  transform: translateY(0);
}
.crypto-copy-btn svg {
  flex-shrink: 0;
}
.crypto-payment-footer {
  padding: 16px 20px 20px;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border-subtle);
}
.crypto-payment-footer .crypto-result-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--warning, #b45309);
  margin: 0 0 10px;
  padding: 10px 12px;
  background: rgba(180, 83, 9, 0.08);
  border-radius: var(--radius-md);
  line-height: 1.45;
}
.crypto-warning-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--warning, #b45309);
}
.crypto-payment-footer .crypto-result-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.45;
}
.crypto-payment-footer .crypto-result-dev-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  line-height: 1.4;
}
.crypto-result-dev-note code {
  font-size: 11px;
  background: var(--panel-elevated);
  padding: 2px 5px;
  border-radius: 4px;
}
.crypto-payment-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* Layout grids */
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-grid,
.data-grid-2,
.data-grid-3 {
  display: grid;
  gap: 18px;
}

.data-grid-2 { grid-template-columns: repeat(2, 1fr); }
.data-grid-3 { grid-template-columns: repeat(3, 1fr); }
.settings-grid { grid-template-columns: 1.2fr 0.8fr; }

/* Progress bar */
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  width: 100px;
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--border);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

/* Page note */
.page-note {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: var(--accent-soft);
  color: #3730a3;
  font-size: 14px;
}

/* Code */
code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Chip group */
.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Pagination / filters */
.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.filters-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filters-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.filters-row input,
.filters-row select {
  padding: 8px 12px;
  font-size: 13px;
}

/* Quick form */
.quick-form {
  margin-top: 8px;
}

/* Modal de confirmation */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open {
  display: flex;
}
.modal-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  max-width: 420px;
  width: 100%;
}
.modal-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}
.modal-message {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* In-app notice modal (e.g. My Account maintenance) */
.fg-notice-modal.modal-overlay {
  z-index: 2000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fg-notice-modal-box.modal-box {
  position: relative;
  max-width: 420px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(14, 165, 233, 0.08);
}

.fg-notice-modal-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #22c55e);
}

.fg-notice-modal-inner {
  padding: 24px 24px 20px;
}

.fg-notice-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.14), rgba(34, 197, 94, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: var(--accent);
}

.fg-notice-modal-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.fg-notice-modal-title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.fg-notice-modal-message {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

.fg-notice-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.fg-notice-modal-actions .primary-button {
  min-width: 100px;
  padding: 10px 20px;
}

/* Mon compte (profil utilisateur) */
.account-page.page-stack {
  gap: 22px;
}

.account-hero.panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.55) 0%, var(--panel) 45%, var(--panel) 100%);
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: var(--shadow-sm);
}

.account-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.account-hero-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #22c55e);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.35);
  letter-spacing: -0.02em;
}

.account-hero-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.account-hero-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.account-hero-meta {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.account-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
}

.account-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-card.panel {
  margin: 0;
}

.account-form {
  margin-top: 4px;
}

.account-form .form-group input.admin-inline-control:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background: var(--bg-subtle);
}

.account-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-dl > div {
  display: grid;
  grid-template-columns: minmax(0, 160px) 1fr;
  gap: 12px 20px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.account-dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.account-dl dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.account-dl dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.account-banner {
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border);
}

.account-banner--warn {
  background: var(--warning-soft);
  border-color: rgba(245, 158, 11, 0.45);
  color: #92400e;
}

.account-banner--warn strong {
  display: block;
  margin-bottom: 4px;
  color: #78350f;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.account-badge--ok {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.account-badge--muted {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.account-badge--warn {
  background: var(--warning-soft);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.mono {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95em;
}

@media (max-width: 1024px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .account-hero.panel {
    padding: 18px 16px;
  }

  .account-hero-actions {
    width: 100%;
  }

  .account-hero-actions .primary-button,
  .account-hero-actions .secondary-button {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .data-grid-2, .data-grid-3, .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }

  .sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .brand { margin-bottom: 0; border-bottom: 0; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .topbar-actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .main-content { padding: 16px; }
  .topbar { margin: -16px -16px 0; padding: 14px 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-strip { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-actions { justify-content: center; }
  .billing-summary { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
}
