/* ========================================
   VMG AI CLIENT DASHBOARD
   ======================================== */
/* Self-hosted Inter (variable font) — bypasses Yandex/Phoenix Google blocking */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter.woff2') format('woff2-variations'),
       url('/assets/fonts/inter.woff2') format('woff2');
}

:root {
  --purple: #8b5cf6;
  --purple-deep: #6d28d9;
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --border: rgba(139, 92, 246, 0.22);
  --border-hover: rgba(139, 92, 246, 0.45);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.65);
  --text-dimmer: rgba(255, 255, 255, 0.45);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* AUTH PAGES (Login/Signup) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.22), 0 0 32px rgba(139, 92, 246, 0.12), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  text-decoration: none;
}

.auth-logo img {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
}

.auth-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 32px;
}

.auth-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.3s;
}

.auth-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

.auth-input::placeholder { color: var(--text-dimmer); }

.auth-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--purple);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 4px;
}

.auth-btn:hover {
  background: var(--purple-deep);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-dimmer);
  font-size: 12px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-google {
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-google:hover {
  border-color: var(--border-hover);
  background: rgba(139, 92, 246, 0.05);
}

.auth-magic {
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--purple);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.auth-magic:hover {
  border-color: var(--border-hover);
  background: rgba(139, 92, 246, 0.05);
}

.auth-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-dim);
}

.auth-link a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}

.auth-link a:hover { text-decoration: underline; }

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

.auth-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */
.dash-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.dash-sidebar {
  width: 240px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.dash-sidebar-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  font-size: 20px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}
.dash-sidebar-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.dash-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 32px;
  text-decoration: none;
}

.dash-sidebar-logo img {
  width: 32px;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

.dash-sidebar-logo span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.dash-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s;
}

.dash-nav-item:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--text);
}

.dash-nav-item.active {
  background: rgba(139, 92, 246, 0.12);
  color: var(--text);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.dash-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.dash-nav-bottom {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.dash-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
}

.dash-logout {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dimmer);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  width: 100%;
  text-align: left;
}

.dash-logout:hover {
  color: var(--red);
  background: rgba(239, 68, 68, 0.08);
}

/* MAIN CONTENT */
.dash-main {
  flex: 1;
  margin-left: 240px;
  padding: 32px;
  min-height: 100vh;
}

.dash-header {
  margin-bottom: 32px;
}

.dash-welcome {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dash-welcome-sub {
  font-size: 14px;
  color: var(--text-dim);
}

/* STATUS BADGE */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.status-live {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-setup {
  background: rgba(245, 158, 11, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-paused {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* TRIAL BANNER */
.trial-banner {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-dim);
}

.trial-days {
  color: var(--purple);
  font-weight: 700;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: all 0.3s;
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.16);
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.08);
}

.stat-label {
  font-size: 12px;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
}

.stat-change {
  font-size: 12px;
  margin-top: 6px;
  color: var(--green);
}

/* TIME TOGGLE */
.time-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 4px;
  display: inline-flex;
}

.time-btn {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.time-btn.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--text);
}

/* CALLS TABLE */
.calls-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calls-filters {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.calls-search {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}

.calls-search:focus { border-color: var(--purple); }
.calls-search::placeholder { color: var(--text-dimmer); }

.calls-date {
  padding: 9px 14px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

tr:hover td {
  background: rgba(139, 92, 246, 0.03);
}

.call-link {
  color: var(--purple);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

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

/* BILLING */
.billing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 20px;
}

.billing-plan {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.billing-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--purple);
}

.billing-price span {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 400;
}

.billing-detail {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 8px;
}

.billing-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--purple);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  margin-top: 16px;
}

.billing-btn:hover {
  background: var(--purple-deep);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.billing-btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.billing-btn-outline:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: none;
}

/* SETTINGS */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.14);
}

.settings-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.settings-row:last-child { border-bottom: none; }

.settings-label {
  font-size: 14px;
  color: var(--text-dim);
}

.settings-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.settings-input {
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  width: 240px;
}

.settings-input:focus { border-color: var(--purple); }

.settings-save {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--purple);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 16px;
}

.settings-save:hover {
  background: var(--purple-deep);
}

/* TOGGLE SWITCH */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle.on { background: var(--purple); }

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle.on::after { transform: translateX(20px); }

/* SERVICE CARDS (Overview) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.08), inset 0 0 20px rgba(139, 92, 246, 0.03);
}

.service-card:hover {
  border-color: rgba(139, 92, 246, 0.6);
  background: var(--bg-card-hover);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.25), inset 0 0 30px rgba(139, 92, 246, 0.05);
  transform: translateY(-4px);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.service-stat {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-stat.is-active {
  color: var(--green);
}

.dot-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.dot-inactive {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  flex-shrink: 0;
}

.dot-setup {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: dotPulseYellow 1.8s infinite;
}

@keyframes dotPulseYellow {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.service-stat.is-setup { color: var(--yellow); }
.service-card.is-setup-card { border-color: rgba(245, 158, 11, 0.3); }

.service-card.is-active-card {
  border-color: rgba(34, 197, 94, 0.3);
}

/* CTA — solid purple button, no glow */
.cta-glow {
  display: inline-block;
  padding: 14px 32px;
  background: #8b5cf6;
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background 0.3s ease;
}

.cta-glow:hover {
  background: #6d28d9;
}

.service-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* AGENT TILES (clickable name list) */
.agent-tile {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.14);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.agent-tile:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.12);
  transform: translateX(4px);
}

.agent-tile-status { display: flex; align-items: center; }
.agent-tile-name { font-size: 15px; font-weight: 600; color: #fff; }
.agent-tile-meta { font-size: 12px; color: var(--text-dim); }
.agent-tile-arrow { font-size: 18px; color: var(--purple); opacity: 0.6; transition: opacity 0.3s; }
.agent-tile:hover .agent-tile-arrow { opacity: 1; }

/* AGENT CARDS (per-service list) */
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.agent-card:hover {
  border-color: var(--border-hover);
}

.agent-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.agent-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  transition: all 0.3s;
}

.agent-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--purple);
}

/* ========================================
   MOBILE
   ======================================== */
.mobile-header {
  display: none;
}

@media (max-width: 768px) {
  .dash-sidebar {
    display: none;
  }

  .dash-sidebar.open {
    display: flex;
    width: 100%;
    position: fixed;
    z-index: 200;
  }

  .dash-sidebar.open .dash-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .mobile-header img {
    width: 28px;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
  }

  .mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
  }

  .dash-main {
    margin-left: 0;
    padding: 20px 16px;
    min-width: 0; /* flex item must not grow wider than viewport to allow table scroll */
  }

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

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

  .agent-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-value {
    font-size: 24px;
  }

  .auth-card {
    padding: 32px 20px;
  }

  .calls-filters {
    flex-direction: column;
  }

  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .settings-input {
    width: 100%;
  }

  /* Hide columns on mobile */
  .hide-mobile { display: none; }

  /* Calls table — hide Number + Duration on narrow screens, tighten cell padding */
  .calls-table-wrap table th:nth-child(3),
  .calls-table-wrap table td:nth-child(3),
  .calls-table-wrap table th:nth-child(4),
  .calls-table-wrap table td:nth-child(4) {
    display: none;
  }

  .calls-table-wrap th,
  .calls-table-wrap td {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Filters stack vertically on mobile */
  .calls-table-wrap .calls-filters {
    flex-direction: column;
  }
}
