/* Callzy — Apple-inspired design system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-secondary: #e8e8ed;
  --bg-tertiary: #d2d2d7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);
  --accent: #534AB7;
  --accent-hover: #453da0;
  --accent-light: rgba(83, 74, 183, 0.1);
  --accent-glow: rgba(83, 74, 183, 0.18);
  --success: #1d9e75;
  --success-light: rgba(29, 158, 117, 0.12);
  --warning: #bf5f00;
  --warning-light: rgba(191, 95, 0, 0.1);
  --error: #d70015;
  --error-light: rgba(215, 0, 21, 0.08);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --blur: saturate(180%) blur(20px);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

/* Typography */
h1, .h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
h2, .h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
h3, .h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; letter-spacing: 0.02em; }

/* Glass card */
.card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover { box-shadow: var(--shadow); }
.card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 980px;
  border: none;
  background: var(--bg-secondary);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover { background: var(--bg-tertiary); transform: scale(1.01); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

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

.btn-ghost {
  background: transparent;
  border: 0.5px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(0, 0, 0, 0.03); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-full { width: 100%; }
.btn-gmail { background: #ea4335; color: #fff; }
.btn-gmail:hover { background: #d33426; }

/* Form elements */
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 0.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
  transition: all 0.2s var(--ease);
  box-shadow: inset 0 0 0 0.5px var(--border-strong);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  background: var(--bg-elevated);
  box-shadow: inset 0 0 0 2px var(--accent);
}

textarea { resize: vertical; line-height: 1.6; min-height: 120px; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 980px;
  letter-spacing: 0.01em;
}

.b-purple { background: var(--accent-light); color: var(--accent); }
.b-teal { background: var(--success-light); color: var(--success); }
.b-amber { background: var(--warning-light); color: var(--warning); }
.b-green { background: var(--success-light); color: var(--success); }
.b-gray { background: rgba(0,0,0,0.05); color: var(--text-secondary); }
.b-coral { background: rgba(215, 80, 50, 0.1); color: #c44; }

/* Alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  border: 0.5px solid transparent;
}

.alert i { margin-top: 2px; flex-shrink: 0; font-size: 18px; }
.alert-info { background: var(--accent-light); color: var(--accent); border-color: rgba(83,74,183,0.15); }
.alert-success { background: var(--success-light); color: #0a6e50; border-color: rgba(29,158,117,0.2); }
.alert-warn { background: var(--warning-light); color: var(--warning); border-color: rgba(191,95,0,0.15); }
.alert-error { background: var(--error-light); color: var(--error); border-color: rgba(215,0,21,0.12); }

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(83, 74, 183, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: cz-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes cz-spin { to { transform: rotate(360deg); } }

/* Live pulse */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: cz-pulse 2s ease infinite;
}

@keyframes cz-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Fade-in animation */
@keyframes cz-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: cz-fade-up 0.5s var(--ease) both; }
.animate-in-delay-1 { animation-delay: 0.08s; }
.animate-in-delay-2 { animation-delay: 0.16s; }
.animate-in-delay-3 { animation-delay: 0.24s; }

/* Divider */
.divider { border: none; border-top: 0.5px solid var(--border); margin: 16px 0; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--text-secondary);
}
.empty-state i { font-size: 36px; color: var(--text-tertiary); display: block; margin-bottom: 12px; opacity: 0.6; }

/* ─── Login page ─── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(83, 74, 183, 0.08), transparent),
    var(--bg);
}

.login-wrap { width: 100%; max-width: 400px; }

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.login-logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent) 0%, #7b6fd4 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
  margin-bottom: 14px;
}

.login-logo-text {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.login-logo-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.login-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.login-card h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-error {
  background: var(--error-light);
  border: 0.5px solid rgba(215, 0, 21, 0.15);
  color: var(--error);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

.login-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 1.75rem;
}

/* ─── Portal layout ─── */
.portal-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 240px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-right: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-logo {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
}

.sidebar-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), #7b6fd4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-logo-text { font-size: 17px; font-weight: 600; letter-spacing: -0.03em; }
.sidebar-logo-domain { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 10px 5px;
  margin-top: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s var(--ease);
}

.nav-item:hover { background: rgba(0, 0, 0, 0.04); color: var(--text); }
.nav-item.active { background: var(--accent-light); color: var(--accent); }
.nav-item i { font-size: 18px; flex-shrink: 0; }
.nav-item.disabled { opacity: 0.4; cursor: default; pointer-events: none; }

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 980px;
  background: var(--accent-light);
  color: var(--accent);
}

.nav-badge.live { background: var(--success-light); color: var(--success); }

.sidebar-user {
  padding: 1rem 1.25rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7b6fd4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.user-name { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.user-role { font-size: 11px; color: var(--text-tertiary); }

.logout-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.15s var(--ease);
  display: flex;
  align-items: center;
}

.logout-btn:hover { color: var(--text); background: rgba(0,0,0,0.04); }

.portal-main {
  margin-left: 240px;
  min-height: 100vh;
}

.portal-topbar {
  padding: 1.5rem 2.5rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.page-sub { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }

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

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-light);
  padding: 5px 12px;
  border-radius: 980px;
}

.portal-content { padding: 2rem 2.5rem; max-width: 1280px; }

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

.stat-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
}

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

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.stat-icon.purple { background: var(--accent-light); color: var(--accent); }
.stat-icon.teal { background: var(--success-light); color: var(--success); }
.stat-icon.amber { background: var(--warning-light); color: var(--warning); }
.stat-icon.green { background: var(--success-light); color: var(--success); }

.stat-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

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

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}

.quick-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--blur);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.quick-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.quick-card.disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.quick-card i { font-size: 22px; color: var(--accent); }
.quick-label { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.quick-sub { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

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

.section-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

/* Agent cards */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.agent-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--blur);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-sm);
}

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

.agent-card.featured { border-color: rgba(83, 74, 183, 0.25); }

.agent-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.agent-card-name { font-size: 15px; font-weight: 600; margin-bottom: 5px; letter-spacing: -0.01em; }
.agent-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }

.agent-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 980px;
}

.status-live { background: var(--success-light); color: var(--success); }
.status-soon { background: rgba(0,0,0,0.05); color: var(--text-tertiary); }
.status-building { background: var(--warning-light); color: var(--warning); }

.agent-runs { font-size: 12px; color: var(--text-tertiary); }
.agent-card.coming-soon { opacity: 0.55; cursor: default; }
.agent-card.coming-soon:hover { transform: none; box-shadow: var(--shadow-sm); }

/* Activity */
.activity-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--blur);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.activity-header {
  padding: 1rem 1.25rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-list { max-height: 440px; overflow-y: auto; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 1.25rem;
  border-bottom: 0.5px solid var(--border);
  font-size: 13px;
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.dot-purple { background: var(--accent); }
.dot-teal { background: var(--success); }
.dot-amber { background: var(--warning); }
.dot-gray { background: var(--text-tertiary); }

.activity-user { font-weight: 600; }
.activity-action { color: var(--text-secondary); }
.activity-time { color: var(--text-tertiary); margin-left: auto; flex-shrink: 0; white-space: nowrap; font-size: 12px; }

.empty-activity {
  padding: 2.5rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ─── Agent page ─── */
.agent-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 0.5px solid var(--border);
  padding: 0 2rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.back-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s var(--ease);
}

.back-link:hover { background: var(--accent-light); }

.agent-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.agent-title-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent), #7b6fd4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
}

.header-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 5px;
}

.keys-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 5px;
}

.keys-badge.missing { background: var(--error-light); color: var(--error); }

.agent-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.step-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--blur);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.step {
  flex: 1;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-right: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.2s var(--ease);
}

.step:last-child { border-right: none; }
.step.active { color: var(--accent); background: var(--accent-light); }
.step.done { color: var(--success); }
.step.done .step-num { background: var(--success-light); color: var(--success); }

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.step.active .step-num { background: var(--accent); color: #fff; }

.panel { display: none; }
.panel.active { display: block; animation: cz-fade-up 0.4s var(--ease); }

.profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
}

.profile-bar-info { color: var(--text-secondary); }
.profile-bar-info strong { color: var(--text); font-weight: 600; }

/* Lead cards */
.lead-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.lead-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 2px; }
.lead-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0;
}

.info-row i { font-size: 15px; color: var(--text-tertiary); }
.info-row a { color: var(--accent); text-decoration: none; }
.info-row a:hover { text-decoration: underline; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.score-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.score-label { font-size: 12px; color: var(--text-secondary); min-width: 100px; }
.score-bg { flex: 1; height: 5px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.6s var(--ease); }
.score-val { font-size: 12px; font-weight: 600; min-width: 28px; text-align: right; }

.pain-row { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.dot-green { background: var(--success); }
.dot-amber { background: var(--warning); }

.email-preview {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--text);
  width: 100%;
  margin-bottom: 10px;
}

.channels { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.lead-select-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.follow-up-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 16px;
  border: 0.5px solid var(--border);
}

.follow-up-box strong { color: var(--text); font-weight: 600; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stats-row .stat-card {
  text-align: center;
  padding: 14px;
}

.stats-row .stat-num { font-size: 26px; }

/* Responsive */
@media (max-width: 900px) {
  .portal-sidebar { display: none; }
  .portal-main { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .portal-content { padding: 1.25rem; }
  .portal-topbar { padding: 1.25rem; }
  .row { flex-direction: column; }
}
