/* ============================================================
   Theme System — dark (default) & light via [data-theme="light"]
   ============================================================ */
:root {
  --bg-body: #0a0e1a;
  --bg-sidebar: rgba(13, 18, 33, 0.85);
  --bg-topbar: rgba(10, 14, 26, 0.75);
  --bg-card: rgba(17, 24, 39, 0.7);
  --surface-1: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.1);
  --bg-input: rgba(255, 255, 255, 0.05);

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #6366f1;
  --accent-primary-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.2);
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.2);
  --accent-kameleo: #8b5cf6;

  --page-glow:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.07), transparent);

  --sidebar-w: 240px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.45);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-body: #f3f5fb;
  --bg-sidebar: rgba(255, 255, 255, 0.85);
  --bg-topbar: rgba(243, 245, 251, 0.8);
  --bg-card: rgba(255, 255, 255, 0.9);
  --surface-1: rgba(15, 23, 42, 0.03);
  --surface-2: rgba(15, 23, 42, 0.05);
  --surface-3: rgba(15, 23, 42, 0.08);
  --bg-input: rgba(15, 23, 42, 0.04);

  --border-glass: rgba(15, 23, 42, 0.09);
  --border-glass-hover: rgba(15, 23, 42, 0.18);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #7c8aa0;

  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-glow: rgba(79, 70, 229, 0.18);
  --accent-green: #059669;
  --accent-amber: #d97706;
  --accent-red: #dc2626;
  --accent-kameleo: #7c3aed;

  --page-glow:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.05), transparent);

  --shadow-card: 0 6px 24px rgba(15, 23, 42, 0.06);
  --shadow-pop: 0 16px 48px rgba(15, 23, 42, 0.14);
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   Login Screen
   ============================================================ */
.login-screen {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 32px;
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}

.login-brand {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  width: 56px;
  height: 56px;
  font-size: 28px;
  margin: 0 auto 16px;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-primary-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form .form-group {
  gap: 6px;
}

.login-error {
  display: none;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-xs);
  color: var(--accent-red);
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.95rem;
}

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: var(--page-glow);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--border-glass-hover); }

/* ============================================================
   App Shell
   ============================================================ */
.app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  background: var(--bg-sidebar);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-glass);
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 22px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 18px;
}

.logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-kameleo));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  box-shadow: 0 4px 16px var(--accent-glow);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Sidebar nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-align: left;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-kameleo));
  transition: transform 0.25s ease;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}

.nav-item.active {
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  border: 1px solid var(--border-glass);
  font-weight: 600;
}

.nav-item.active::before {
  transform: translateY(-50%) scaleY(1);
}

.nav-item.active .nav-icon {
  color: var(--accent-primary-hover);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Sidebar footer */
.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-kameleo));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.user-email {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.2s ease;
}

.user-logout:hover {
  color: var(--accent-red);
}

.sync-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green-glow);
  animation: syncPulse 2.4s ease-in-out infinite;
}

@keyframes syncPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ===== Main column ===== */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  background: var(--bg-topbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.topbar-titles h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-primary-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topbar-titles p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Theme toggle */
.theme-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
  background: var(--surface-3);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.theme-toggle:hover svg { transform: rotate(20deg); }

/* Content area */
.content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}

@media (max-width: 1200px) {
  .content { padding: 28px 32px 70px; }
}

/* ===== Pages ===== */
.page {
  display: none;
  animation: fadeIn 0.35s ease;
}

.page.active {
  display: block;
}

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

/* ============================================================
   Cards
   ============================================================ */
.card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass-hover), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.card-icon {
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  border: 1px solid var(--border-glass);
}

.badge {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-kameleo));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-left: auto;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ============================================================
   Forms
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

@media (min-width: 1100px) {
  .form-grid.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input, textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}

input:hover, textarea:hover {
  background: var(--surface-2);
}

input:focus, textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-input);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  padding: 10px 24px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-kameleo));
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-red), #dc2626);
  color: white;
  box-shadow: 0 4px 16px var(--accent-red-glow);
}

.btn-danger:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

.btn-ghost:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}

/* ============================================================
   Status Page
   ============================================================ */
.status-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}

.stat-box {
  position: relative;
  background: linear-gradient(135deg, var(--surface-1), transparent);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.stat-box:hover::before { opacity: 0.6; }

.stat-box:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.stat-value {
  position: relative;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.stat-value.purple { color: var(--accent-primary-hover); }
.stat-value.green { color: var(--accent-green); }
.stat-value.amber { color: var(--accent-amber); }
.stat-value.red { color: var(--accent-red); }

.stat-label {
  position: relative;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.status-review-item {
  background: var(--surface-1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.status-review-item:hover {
  border-color: var(--border-glass-hover);
  background: var(--surface-2);
}

.status-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
  gap: 10px;
}
.status-review-header:hover .status-review-name {
  color: var(--accent-primary-hover);
}
.status-review-header:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.status-chevron {
  width: 12px;
  height: 8px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  transform: rotate(-90deg); /* points right by default */
}
.status-review-item.is-expanded .status-chevron {
  transform: rotate(0deg);   /* points down when expanded */
  color: var(--accent-primary-hover);
}

.status-review-name {
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
  min-width: 0;
  transition: color 0.2s;
}

/* Expanded profile-breakdown section */
.status-expanded {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.status-profile-group.live + .status-profile-group.notlive {
  padding-top: 12px;
  border-top: 1px dashed var(--border-glass);
}
.status-profile-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-profile-count {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--bg-body);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
}
.status-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.status-profile-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  cursor: default;
}
.status-profile-chip.live {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.35);
}
.status-profile-chip.notlive {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.35);
}

/* Themed tooltip above the chip on hover — shows date + agent from data-tip */
.status-profile-chip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 7px 12px;
  background: var(--bg-body);
  border: 1px solid var(--border-glass-hover);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  letter-spacing: 0;
}
.status-profile-chip[data-tip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--border-glass-hover);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 201;
}
.status-profile-chip[data-tip]:hover::after,
.status-profile-chip[data-tip]:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.status-profile-chip[data-tip]:hover::before,
.status-profile-chip[data-tip]:focus::before {
  opacity: 1;
}
[data-theme="light"] .status-profile-chip[data-tip]::after {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}
.status-none {
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================================
   Profile Coverage card (Status page)
   ============================================================ */
.coverage-filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.coverage-filters .form-group {
  margin-bottom: 0;
  min-width: 220px;
}
.coverage-preset-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.coverage-preset-row .btn {
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.4;
}
.coverage-summary {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 14px;
  padding-bottom: 12px;
}
.coverage-summary strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.coverage-section {
  margin-bottom: 18px;
}
.coverage-section-heading {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.coverage-unused-heading { color: var(--accent-red); }
.coverage-used-heading   { color: var(--accent-green); }
.coverage-count {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0;
}
.coverage-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.coverage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  cursor: default;
  user-select: none;
}
.coverage-chip.used {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.35);
}
.coverage-chip.unused {
  background: rgba(239, 68, 68, 0.10);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.35);
}
.coverage-chip-count {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  font-weight: 700;
}
.coverage-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================================
   Per-business cooldown button + override modal
   ============================================================ */
.biz-cooldown-btn {
  font-variant-numeric: tabular-nums;
}
.biz-cooldown-btn.custom {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  font-weight: 700;
}
.biz-cooldown-btn.custom:hover {
  background: rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.7);
}

.cooldown-mode-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 18px;
}
.cooldown-mode-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 14px 12px 46px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-glass);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  color: var(--text-secondary);
  font-size: 13.5px;
  user-select: none;
}
.cooldown-mode-option:hover {
  border-color: var(--border-glass-hover);
}
/* Hide native radio; use ::before / ::after to draw a themed one */
.cooldown-mode-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.cooldown-mode-option::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-glass-hover);
  background: transparent;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}
.cooldown-mode-option::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s cubic-bezier(0.34, 1.4, 0.5, 1);
  pointer-events: none;
}
.cooldown-mode-option:has(input:checked) {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-primary);
}
.cooldown-mode-option:has(input:checked)::before {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.cooldown-mode-option:has(input:checked)::after {
  transform: translateY(-50%) scale(1);
}
.cooldown-mode-option:focus-within {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
#cooldownInput:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#cooldownModal code {
  background: var(--bg-body);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
}

/* ============================================================
   Category chip + filter row (Status + Saved Businesses pages)
   ============================================================ */
.business-filters-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.business-filters-row .business-search-wrap {
  margin-bottom: 0;
  min-width: 220px;
}
.business-filters-row .cds-wrap,
.business-filters-row > select {
  flex: 0 0 260px;
  min-width: 220px;
}
@media (max-width: 720px) {
  .business-filters-row .cds-wrap,
  .business-filters-row > select {
    flex: 1 1 100%;
  }
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  margin-left: 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
  background: hsla(var(--chip-hue, 240), 70%, 60%, 0.15);
  color: hsl(var(--chip-hue, 240), 75%, 68%);
  border: 1px solid hsla(var(--chip-hue, 240), 70%, 60%, 0.4);
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="light"] .category-chip {
  background: hsla(var(--chip-hue, 240), 65%, 45%, 0.12);
  color: hsl(var(--chip-hue, 240), 55%, 40%);
  border-color: hsla(var(--chip-hue, 240), 65%, 45%, 0.4);
}

/* ============================================================
   Agent Stats page
   ============================================================ */
.agent-stats-filters {
  display: grid;
  grid-template-columns: 200px 200px 220px 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}
.agent-stats-threshold-group input[type="number"] {
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.agent-stats-threshold-group input[type="number"]:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.agent-stats-timing-note strong {
  color: var(--text-primary);
  font-weight: 700;
}
.agent-stats-filters .form-group {
  margin-bottom: 0;
}
/* Native date input is hidden — the wrapper .dp-wrap renders the visible UI */
.agent-stats-filters input[type="date"] {
  display: none;
}

/* ── Custom date picker ── */
.dp-wrap {
  position: relative;
  width: 100%;
}
.dp-trigger {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
}
.dp-trigger:hover {
  border-color: var(--border-glass-hover);
}
.dp-wrap.dp-open .dp-trigger {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.dp-value {
  font-weight: 500;
  color: var(--text-primary);
}
.dp-trigger:not(.dp-has-value) .dp-value {
  color: var(--text-muted);
  font-weight: 400;
}
.dp-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.15s;
}
.dp-wrap.dp-open .dp-icon {
  color: var(--accent-primary-hover);
}

.dp-popup {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
  z-index: 1000;
  min-width: 280px;
  backdrop-filter: blur(20px);
  animation: dp-fade-in 0.15s ease-out;
}
@keyframes dp-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-theme="light"] .dp-popup {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.dp-month {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.dp-nav {
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dp-nav svg { width: 14px; height: 14px; }
.dp-nav:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary-hover);
  border-color: rgba(99, 102, 241, 0.4);
}

.dp-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.dp-dow span {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 0;
  text-transform: uppercase;
}

.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.dp-day {
  aspect-ratio: 1;
  min-height: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.08s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dp-day:hover:not(.dp-blank):not(.is-selected) {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-primary);
}
.dp-day:active:not(.dp-blank) {
  transform: scale(0.94);
}
.dp-day.is-today {
  color: var(--accent-primary-hover);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(99, 102, 241, 0.5);
}
.dp-day.is-selected {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.dp-day.dp-blank {
  cursor: default;
  pointer-events: none;
}

.dp-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--border-glass);
}
.dp-today-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--accent-primary-hover);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.dp-today-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
}
.agent-stats-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}
.agent-stats-preset-row .btn {
  padding: 8px 14px;
}
@media (max-width: 900px) {
  .agent-stats-filters {
    grid-template-columns: 1fr 1fr;
  }
  .agent-stats-threshold-group {
    grid-column: 1 / -1;
  }
  .agent-stats-preset-row {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.agent-stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}
.agent-stat-tile {
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
}
.agent-stat-tile-label {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.agent-stat-tile-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.agent-stat-tile.live .agent-stat-tile-value    { color: var(--accent-green); }
.agent-stat-tile.notlive .agent-stat-tile-value { color: var(--accent-red); }
.agent-stat-tile.total .agent-stat-tile-value   { color: var(--accent-primary-hover); }
.agent-stat-tile.positives .agent-stat-tile-value { color: #fbbf24; }
.agent-stat-tile.biz .agent-stat-tile-value     { color: var(--text-primary); }

.agent-stats-range {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 0;
}
.agent-stats-loading {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
}
.agent-stats-err {
  padding: 12px;
  color: var(--accent-red);
  font-size: 13px;
}

.agent-stats-table .agent-stats-name {
  font-weight: 600;
  color: var(--text-primary);
}
.agent-stats-table .agent-stats-live    { color: var(--accent-green); font-weight: 600; }
.agent-stats-table .agent-stats-notlive { color: var(--accent-red);   font-weight: 600; }
.agent-stats-table .agent-stats-total   { color: var(--text-primary); font-weight: 700; }
.agent-stats-table .agent-stats-positives { color: #fbbf24; font-weight: 600; }
.agent-stats-table .agent-stats-biz     { color: var(--text-secondary); }
.agent-stats-table .agent-stats-last    { color: var(--text-muted); font-size: 12px; }
.agent-stats-table .agent-stats-session { color: var(--text-secondary); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.agent-stats-table .agent-stats-arrow   { color: var(--text-muted); margin: 0 4px; }

/* Expandable rows */
.agent-stats-row {
  cursor: pointer;
  transition: background 0.15s;
}
.agent-stats-row:hover {
  background: rgba(99, 102, 241, 0.06);
}
.agent-stats-row:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: -2px;
}
.agent-stats-chevron-cell {
  width: 34px;
  padding-right: 0 !important;
  padding-left: 12px !important;
}
.agent-stats-chevron {
  width: 12px;
  height: 8px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  transform: rotate(-90deg);
  display: block;
}
.agent-stats-row.is-expanded .agent-stats-chevron {
  transform: rotate(0deg);
  color: var(--accent-primary-hover);
}
.agent-stats-row.is-expanded {
  background: rgba(99, 102, 241, 0.09);
}

.agent-stats-detail-row td {
  padding: 0 !important;
  border-top: none !important;
  background: var(--bg-input);
}
.agent-stats-timing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px 18px;
}
.agent-stats-timing-tile {
  padding: 12px 14px;
  background: var(--bg-body);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
}
.agent-stats-timing-label {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.agent-stats-timing-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.agent-stats-timing-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.agent-stats-timing-tile.tone-session .agent-stats-timing-value { color: var(--accent-primary-hover); }
.agent-stats-timing-tile.tone-neg .agent-stats-timing-value     { color: var(--accent-red); }
.agent-stats-timing-tile.tone-pos .agent-stats-timing-value     { color: #fbbf24; }
.agent-stats-timing-note {
  padding: 0 18px 14px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.completion-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.completion-badge.done {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.completion-badge.in-progress {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-bar-fill.green { background: linear-gradient(90deg, var(--accent-green), #34d399); }
.progress-bar-fill.amber { background: linear-gradient(90deg, var(--accent-amber), #fbbf24); }

.progress-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.status-date {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.status-date.completed-date {
  color: var(--accent-green);
}

.reported-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.reported-profile-chip {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.reported-profile-chip.kameleo {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-kameleo);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Reason summary chips */
.reason-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.reason-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}

.reason-summary-chip strong {
  font-weight: 700;
}

/* ============================================================
   Empty States
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.88rem;
}

/* ============================================================
   Excluded Profiles
   ============================================================ */
.card-subtitle {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

.excluded-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.excluded-search-icon {
  position: absolute;
  left: 13px;
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0.5;
}

.excluded-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  padding: 10px 14px 10px 38px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.excluded-search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.excluded-search-input::placeholder {
  color: var(--text-muted);
}

.excluded-profiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.excluded-search-results {
  margin-bottom: 4px;
}

.excluded-no-match {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 2px;
}

.excluded-profiles-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 8px 0;
}

.profile-exclude-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.profile-exclude-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: var(--surface-2);
}

.profile-exclude-chip:hover::before { opacity: 1; }

.profile-exclude-chip.kameleo {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-kameleo);
}

.profile-exclude-chip.kameleo.excluded {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
  opacity: 0.75;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.chip-status {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
  min-width: 12px;
  text-align: center;
  text-decoration: none !important;
}

/* ============================================================
   Users Page
   ============================================================ */
.user-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.user-row:hover {
  border-color: var(--border-glass-hover);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.user-row-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-kameleo));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.user-row-info {
  flex: 1;
  min-width: 0;
}

.user-row-email {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.user-row-self {
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent-primary-hover);
  margin-left: 6px;
  font-weight: 600;
}

.user-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  align-items: center;
}

.user-role-badge {
  font-size: 0.68rem;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-role-badge.badge-admin {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-kameleo);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.user-role-badge.badge-agent {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-row-actions {
  flex-shrink: 0;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

.btn-delete {
  background: rgba(239, 68, 68, 0.08);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ============================================================
   Settings: Profile Groups
   ============================================================ */
.profile-groups-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-group-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px auto;
  gap: 12px;
  align-items: end;
  padding: 12px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

.pg-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pg-field label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.pg-remove {
  width: 34px;
  height: 38px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}

.pg-remove:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
}

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

.settings-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 2px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .profile-group-row {
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas: 'init init remove' 'start end end';
  }
}

/* ============================================================
   Campaigns Page
   ============================================================ */
.campaigns-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

/* Single-card mode: the container holds ONE .agent-focus-wrap. Switch to a
   centered flex layout so the card sits in the middle of the page instead of
   pinning to the leftmost grid column. */
.campaigns-list.single-card-mode {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.campaigns-list.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.campaigns-empty-card {
  max-width: 480px;
  width: 100%;
}

/* Agent single-card view — card on the left, AI review on the right */
.agent-focus-wrap {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  min-height: 60vh;
  width: 100%;
}

.agent-focus-card {
  max-width: 560px;
  width: 100%;
  flex: 0 1 560px;
}

/* When paired with the AI review block, stack vertically on narrower screens */
@media (max-width: 1200px) {
  .agent-focus-wrap {
    flex-direction: column;
    align-items: center;
  }
}

.agent-focus-card .camp-body {
  padding: 28px 32px 32px;
  gap: 20px;
}

.agent-focus-card .camp-title {
  font-size: 1.5rem;
}

.camp-address-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.camp-address-row .camp-address {
  flex: 1;
  min-width: 0;
}

.camp-link-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-kameleo)) !important;
  color: white !important;
  border-color: transparent !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.camp-link-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Assigned badge on admin grid */
.camp-assigned-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.camp-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-card);
}

.camp-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.camp-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.camp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camp-photo.no-photo,
.camp-photo:has(.camp-photo-fallback) {
  background: linear-gradient(135deg, var(--accent-glow), transparent);
}

.camp-photo-fallback {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-primary-hover);
  opacity: 0.4;
}

.camp-photo-loading {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.camp-photo-loading::before {
  content: '⏳ Loading photo...';
}

.camp-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.camp-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.camp-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.camp-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.camp-copy {
  background: rgba(99, 102, 241, 0.15);
  border: 1.5px solid rgba(99, 102, 241, 0.45);
  color: var(--accent-primary-hover);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

.camp-copy:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(99, 102, 241, 0.75);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.camp-copy:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .camp-copy {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.4);
  color: var(--accent-primary);
}
[data-theme="light"] .camp-copy:hover {
  background: rgba(79, 70, 229, 0.2);
  border-color: rgba(79, 70, 229, 0.7);
  color: var(--accent-primary);
}

/* Live / Not Live button glyphs — use plain characters that inherit
   the button text color (white) instead of emoji ❌/✅ which have their
   own intrinsic color that blends into the red/green button background. */
.btn-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  margin-right: 4px;
  flex-shrink: 0;
}

.camp-city-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.camp-city {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary-hover);
}

.camp-address {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.camp-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.camp-link {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  transition: var(--transition);
}

.camp-link:hover {
  background: var(--surface-3);
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
}

.camp-profile-block {
  padding: 18px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.camp-profile-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.camp-profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-sm);
  color: var(--accent-kameleo);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
  align-self: center;
}

.camp-profile-progress {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.camp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.btn-live {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
  padding: 12px 20px;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-live:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.btn-not-live {
  background: linear-gradient(135deg, var(--accent-red), #dc2626);
  color: white;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
  padding: 12px 20px;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-not-live:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.camp-cooldown, .camp-done {
  text-align: center;
  padding: 24px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

.camp-cooldown-icon, .camp-done-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.camp-cooldown-icon {
  animation: pulse 2s ease-in-out infinite;
}

.camp-cooldown-msg, .camp-done-msg {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.camp-cooldown-time {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-amber);
}

/* ============================================================
   Businesses Page
   ============================================================ */
.import-skip-group {
  max-width: 360px;
  margin-top: 22px;
  margin-bottom: 18px;
}
.import-skip-group input[type="number"] {
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.import-skip-group input[type="number"]:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.import-skip-group code {
  background: var(--bg-body);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
}

.import-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.fetch-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.fetch-status.success { color: var(--accent-green); }
.fetch-status.error { color: var(--accent-red); }

.business-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--surface-1), transparent);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.bulk-info {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-left: 4px;
  font-weight: 500;
}

.business-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
}

.business-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface-1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

/* ============================================================
   Custom Select — professional themed dropdowns
   ============================================================ */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 8px 36px 8px 14px;
  background-color: var(--bg-input);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23818cf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
}

select:hover {
  border-color: var(--border-glass-hover);
  background-color: var(--surface-2);
}

select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background-color: var(--bg-input);
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Style the dropdown option list (limited browser support, best effort) */
select option {
  background: #1a2036;
  color: var(--text-primary);
  padding: 8px 12px;
  font-weight: 500;
}

select option:checked,
select option:hover {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-kameleo));
  color: white;
}

[data-theme="light"] select option {
  background: #ffffff;
  color: var(--text-primary);
}

.biz-assign-select, .bulk-select {
  min-width: 160px;
  font-size: 0.82rem;
  padding: 7px 32px 7px 12px;
}

.bulk-select {
  min-width: 180px;
}

/* ============================================================
   Custom Dropdown (enhances <select>)
   ============================================================ */
.cds-wrap {
  position: relative;
  display: inline-flex;
  min-width: 180px;
  font-family: var(--font);
}

.cds-wrap.cds-biz-assign-select { min-width: 170px; }
.cds-wrap.cds-bulk-select       { min-width: 200px; }

.cds-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px 9px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  outline: none;
}

.cds-trigger:hover {
  border-color: var(--border-glass-hover);
  background: var(--surface-2);
}

.cds-wrap.open .cds-trigger,
.cds-trigger:focus-visible {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-input);
}

.cds-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cds-trigger[data-has-value=""] .cds-label {
  color: var(--text-muted);
}

.cds-chevron {
  width: 12px;
  height: 8px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cds-wrap.open .cds-chevron {
  transform: rotate(180deg);
  color: var(--accent-primary-hover);
}

.cds-popup {
  position: fixed;
  max-height: 320px;
  overflow-y: auto;
  z-index: 2500;
  padding: 6px;
  background: #141a2e;
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  display: none;
  animation: cdsSlide 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .cds-popup {
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}

.cds-wrap.open .cds-popup,
.cds-popup.open {
  display: block;
}

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

.cds-option {
  display: block;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  outline: none;
}

.cds-option:hover,
.cds-option:focus-visible {
  background: var(--surface-2);
  color: var(--text-primary);
}

.cds-option.selected {
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
}

.cds-option.selected::after {
  content: '✓';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary-hover);
  font-weight: 800;
}

.cds-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Custom scrollbar for popup */
.cds-popup::-webkit-scrollbar { width: 8px; }
.cds-popup::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 4px;
}

.bulk-assign {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

@media (max-width: 700px) {
  .business-row {
    grid-template-columns: auto 1fr auto;
  }
  .biz-assign-select {
    grid-column: 1 / -1;
    min-width: 100%;
  }
}

.business-row:hover {
  border-color: var(--border-glass-hover);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.biz-check-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.biz-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.biz-check-visual {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border-glass-hover);
  background: var(--surface-2);
  display: inline-block;
  position: relative;
  transition: var(--transition);
}

.biz-check-label:hover .biz-check-visual {
  border-color: var(--accent-primary);
}

.biz-checkbox:checked + .biz-check-visual {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-kameleo));
  border-color: transparent;
}

.biz-checkbox:checked + .biz-check-visual::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}

.business-row-info {
  flex: 1;
  min-width: 0;
}

.business-row-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.business-row-address {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biz-phone {
  margin-left: 4px;
  opacity: 0.85;
}

.business-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.business-row-actions .btn {
  text-decoration: none;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + var(--sidebar-w) / 2);
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Confirm Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 15, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 24px;
  text-align: center;
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  transform: translateY(14px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.5, 1);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border-radius: 50%;
}

.modal-icon.danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-icon.info {
  background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.modal-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-message {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-actions .btn {
  min-width: 128px;
  justify-content: center;
}

/* ============================================================
   Form modals (larger, left-aligned, with header + close X)
   ============================================================ */
.modal-dialog-form {
  max-width: 480px;
  text-align: left;
  padding: 22px 24px 20px;
}
.modal-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-form-header .modal-title {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border-glass);
  background: var(--bg-input);
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.modal-close svg {
  width: 16px;
  height: 16px;
  display: block;
}
.modal-close:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--accent-red);
}
.modal-dialog-form .settings-help {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 14px;
}
.modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}
.modal-form-actions .btn {
  min-width: 100px;
  justify-content: center;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Medium — collapse sidebar to icon rail */
@media (max-width: 900px) {
  :root { --sidebar-w: 72px; }

  .sidebar { padding: 18px 10px 14px; }

  .sidebar-brand {
    justify-content: center;
    padding: 0 0 18px;
  }

  .brand-text { display: none; }

  .nav-item {
    justify-content: center;
    padding: 12px;
  }

  .nav-label { display: none; }

  .sync-pill { justify-content: center; padding: 9px; }
  .sync-text { display: none; }
}

/* Large screens */
@media (min-width: 1200px) {
  .status-overview {
    gap: 20px;
  }
  .stat-value {
    font-size: 2.8rem;
  }
}

/* Status page — count chips */
.status-counts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.count-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.count-chip.live {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.count-chip.notlive {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.last-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.last-chip.live {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.last-chip.notlive {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  margin-top: -2px;
}

.status-dates strong {
  color: var(--text-secondary);
}

/* Small — sidebar becomes bottom nav */
@media (max-width: 640px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 66px;
    flex-direction: row;
    align-items: center;
    padding: 8px 14px;
    border-right: none;
    border-top: 1px solid var(--border-glass);
  }

  .sidebar-brand, .sidebar-footer { display: none; }

  .sidebar-nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 6px;
  }

  .nav-item {
    flex-direction: column;
    gap: 3px;
    padding: 8px 16px;
    font-size: 0.65rem;
  }

  .nav-item::before { display: none; }

  .nav-label { display: block; }

  .main { margin-left: 0; }

  .topbar { padding: 14px 18px; }

  .content { padding: 20px 16px 100px; }

  .toast {
    left: 50%;
    bottom: 84px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .status-overview {
    grid-template-columns: 1fr;
  }

  .excluded-profiles-grid {
    gap: 6px;
  }
}

/* ============================================================
   Agent Mode toolbar (admin only, above Campaigns list)
   ============================================================ */
.agent-mode-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  flex-wrap: wrap;
}

.agent-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.agent-mode-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.agent-mode-slider {
  position: relative;
  width: 42px;
  height: 24px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
  flex: 0 0 auto;
}
.agent-mode-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.agent-mode-toggle input:checked ~ .agent-mode-slider {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.agent-mode-toggle input:checked ~ .agent-mode-slider::after {
  transform: translateX(18px);
  background: #fff;
}
.agent-mode-label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}
.agent-mode-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  flex: 1;
}
.agent-mode-picker-label {
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}
.agent-mode-picker .cds-wrap,
.agent-mode-picker select {
  flex: 1;
  min-width: 180px;
}

/* Test Mode variant of the toggle — amber tint to distinguish from Agent Mode */
.test-mode-toggle input:checked ~ .agent-mode-slider {
  background: #f59e0b;
  border-color: #f59e0b;
}
.test-mode-toggle .agent-mode-label {
  color: #fbbf24;
}

/* TEST MODE banner shown above the campaigns list when active */
.test-mode-banner {
  padding: 12px 18px;
  margin-bottom: 14px;
  background: rgba(251, 191, 36, 0.12);
  border: 1.5px dashed rgba(251, 191, 36, 0.55);
  border-radius: 10px;
  color: #fbbf24;
  font-size: 13px;
  text-align: center;
}
.test-mode-banner strong {
  color: #fde68a;
  letter-spacing: 0.06em;
}

/* Warmup queue prompt (shown when all businesses done + profiles pending) */
.warmup-queue-card {
  border-color: rgba(251, 191, 36, 0.5);
}
.warmup-queue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 16px 0 20px;
  max-width: 420px;
}
.warmup-queue-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
}
.warmup-queue-chip em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Warmup mode UI (Campaigns page — replaces business card after Live/Not Live)
   ============================================================ */
@keyframes cf-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes cf-warmup-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(251, 191, 36, 0); }
  50% { box-shadow: 0 0 18px rgba(251, 191, 36, 0.5); }
}
.blinking {
  animation: cf-blink 1.2s ease-in-out infinite;
}

/* Small badge shown in AI review header when this profile will need warmup */
.warmup-mini-tag {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 4px 10px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Two-column wrap: warmup info (left) + generator (right), matching agent-focus layout */
.warmup-wrap {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  min-height: 60vh;
  width: 100%;
}

.warmup-side-info {
  flex: 0 1 320px;
  max-width: 380px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1.5px solid rgba(251, 191, 36, 0.5);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cf-warmup-glow 2.4s ease-in-out infinite;
}

.warmup-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(251, 191, 36, 0.2);
  border: 1.5px solid rgba(251, 191, 36, 0.7);
  color: #fbbf24;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.warmup-profile-block,
.warmup-progress-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.warmup-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.warmup-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  color: var(--accent-primary-hover);
  font-weight: 700;
  font-size: 1.05rem;
  align-self: flex-start;
}
.warmup-progress-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.warmup-progress-track {
  height: 8px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}
.warmup-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transition: width 0.3s ease;
}
.warmup-tips {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--bg-input);
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

/* Warmup generator card (right column) */
.warmup-card {
  flex: 1 1 380px;
  min-width: 320px;
  max-width: 480px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.warmup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.warmup-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.warmup-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  min-width: 0;
}
.warmup-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Currently-reviewing badge — replaces the input row while a review is on screen */
.warmup-current-biz {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
}
.warmup-current-biz-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.warmup-current-biz-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-primary-hover);
}
.warmup-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}
.warmup-actions .warmup-done-btn {
  margin-left: auto;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 1200px) {
  .warmup-wrap {
    flex-direction: column;
    align-items: center;
  }
  .warmup-side-info,
  .warmup-card {
    max-width: 560px;
    width: 100%;
    flex: 0 1 560px;
  }
}

/* ============================================================
   AI 1★ review block (sibling of the agent card — right column)
   ============================================================ */
.ai-review-block {
  flex: 1 1 380px;
  min-width: 320px;
  max-width: 480px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
@media (max-width: 1200px) {
  .ai-review-block {
    max-width: 560px;
    width: 100%;
    flex: 0 1 560px;
    align-self: center;
  }
}
.ai-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ai-review-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.ai-review-icon { font-size: 16px; }
.ai-review-variance {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.ai-review-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ai-review-body {
  flex: 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
}
.ai-review-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px 16px;
  background: var(--bg-input);
  border-radius: 10px;
  border: 1px solid var(--border-glass);
}
.ai-review-status {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 4px;
}
.ai-review-err {
  color: var(--accent-red);
}

/* ============================================================
   Check Frequency page
   ============================================================ */

/* Spinner (used on Check Frequency + Settings test button) */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-glass-hover);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: cf-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes cf-spin { to { transform: rotate(360deg); } }

.cf-loading-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cf-loading-inner .spinner {
  width: 24px;
  height: 24px;
  border-width: 3px;
  margin: 0;
}
.cf-loading-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cf-loading-msg {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Stat card grids */
.cf-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.cf-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.cf-stat-card,
.cf-detail-card {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px 14px;
}
.cf-stat-label,
.cf-detail-label {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cf-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}
.cf-detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.cf-detail-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.cf-tone-ok .cf-stat-value,
.cf-tone-ok .cf-detail-value    { color: var(--accent-green); }
.cf-tone-danger .cf-stat-value,
.cf-tone-danger .cf-detail-value { color: var(--accent-red); }
.cf-tone-muted .cf-stat-value    { color: var(--text-muted); }
.cf-tone-primary .cf-stat-value  { color: var(--accent-primary-hover); }

/* By-year table */
.cf-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
}
.cf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cf-table th,
.cf-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-glass);
  text-align: left;
}
.cf-table thead th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-input);
}
.cf-table tbody tr:last-child td { border-bottom: none; }
.cf-table .cf-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cf-table .cf-year {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-primary);
  font-weight: 500;
}
.cf-table .cf-total { color: var(--text-primary); font-weight: 600; }
.cf-table .cf-pos   { color: var(--accent-green); }
.cf-table .cf-neg   { color: var(--accent-red); }
.cf-table .cf-neu   { color: var(--text-muted); }
.cf-table .cf-table-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Review list */
.cf-review-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cf-review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cf-review-row {
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
}
.cf-review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.cf-review-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cf-review-stars { font-size: 13px; letter-spacing: 1px; }
.cf-r-pos { color: var(--accent-green); }
.cf-r-neg { color: var(--accent-red); }
.cf-r-neu { color: #eab308; }
.cf-review-date {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.cf-review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.cf-review-notext {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}
.cf-review-more {
  text-align: center;
  padding: 8px;
  color: var(--text-muted);
  font-size: 12px;
}
.cf-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* DeepSeek analysis body */
.cf-analysis-body {
  margin-top: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 16px 20px;
  min-height: 60px;
}
.cf-analysis-hint {
  color: var(--text-muted);
  font-size: 13px;
}
.cf-analysis-error {
  color: var(--accent-red);
  font-size: 13px;
}
.cf-md-h3, .cf-md-h4, .cf-md-h5, .cf-md-h6 {
  font-weight: 600;
  color: var(--text-primary);
  margin: 14px 0 6px;
}
.cf-md-h3 { font-size: 16px; }
.cf-md-h4 { font-size: 15px; }
.cf-md-h5 { font-size: 14px; }
.cf-md-h6 { font-size: 13px; }
.cf-md-p {
  margin: 6px 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}
.cf-md-ul {
  margin: 4px 0 8px 22px;
  padding: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}
.cf-md-ul li { margin: 3px 0; }
.cf-md-gap { height: 6px; }
.cf-analysis-body code {
  background: var(--bg-body);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Proxies list in Settings */
.proxy-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.proxy-row {
  display: grid;
  /* type | host | port | user | pass | label | test | remove */
  grid-template-columns: 110px minmax(160px, 1fr) 90px minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
}
.proxy-row > input[type="text"] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 13px;
  min-width: 0;
}
.proxy-row > input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.proxy-row .proxy-test-status {
  grid-column: 1 / -1;
  font-size: 12px;
  min-height: 0;
}
.proxy-row .proxy-test-status:empty { display: none; }
.proxy-test-ok   { color: var(--accent-green); }
.proxy-test-err  { color: var(--accent-red); }
.proxy-test-info { color: var(--text-muted); }
.proxy-test-ok code {
  background: var(--bg-body);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--text-primary);
}
/* Themed dropdown INSIDE a proxy row — cds-wrap gets the same width as any other cell */
.proxy-row .cds-wrap {
  width: 100%;
  min-width: 0;
}
.proxy-empty {
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-input);
  border: 1px dashed var(--border-glass);
  border-radius: 10px;
}
@media (max-width: 1100px) {
  .proxy-row {
    grid-template-columns: 110px 1fr 90px;
  }
  .proxy-row .proxy-username,
  .proxy-row .proxy-password,
  .proxy-row .proxy-label { grid-column: span 3; }
  .proxy-row .proxy-test,
  .proxy-row .proxy-remove { grid-column: span 1; }
}
@media (max-width: 640px) {
  .proxy-row { grid-template-columns: 1fr; }
  .proxy-row > * { grid-column: 1 / -1; }
}

