/* CallSteer Admin Dashboard CSS */

@font-face {
  font-family: 'Tiempos Headline';
  src: url('../Tiempos Headline-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Acumin Pro';
  src: url('../Acumin-BdPro.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light theme tokens (Nov 2026) */
  --bg-primary: #FAFAF8;
  --bg-secondary: #F3F3EF;
  --bg-card: #FFFFFF;
  --bg-card-elevated: #FFFFFF;
  --bg-hover: #F5F5F2;
  --bg-glass: rgba(11, 12, 11, 0.02);
  --text-primary: #0B0C0B;
  --text-secondary: #5B5E58;
  --text-muted: #8A8C85;
  --border: #E7E6E1;
  --border-subtle: #EFEEEA;
  --accent: #0B0C0B;
  --accent-bright: #0B0C0B;
  --accent-hover: #262825;
  --accent-glow: rgba(11, 12, 11, 0.06);
  --accent-glow-strong: rgba(11, 12, 11, 0.12);
  --success: #047857;
  --success-glow: rgba(16, 185, 129, 0.14);
  --warning: #B45309;
  --warning-glow: rgba(217, 119, 6, 0.12);
  --danger: #DC2626;
  --danger-glow: rgba(220, 38, 38, 0.10);
  --purple: #7C3AED;
  --purple-glow: rgba(124, 58, 237, 0.12);
  --primary: #10B981;

  --ink: #0B0C0B;
  --line-strong: #D5D4CD;
  --emerald: #10B981;
  --emerald-ink: #047857;
  --emerald-tint: #E9F8F1;
  --display: 'Tiempos Headline', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Gradients (kept as names; flat now) */
  --gradient-primary: linear-gradient(0deg, #0B0C0B, #0B0C0B);
  --gradient-card: linear-gradient(0deg, #FFFFFF, #FFFFFF);
  --gradient-sidebar: linear-gradient(0deg, #F6F6F3, #F6F6F3);
  --gradient-page-bg: linear-gradient(0deg, #FAFAF8, #FAFAF8);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 20, 17, 0.06);
  --shadow-md: 0 1px 2px rgba(15, 20, 17, 0.05), 0 8px 24px -8px rgba(15, 20, 17, 0.12);
  --shadow-lg: 0 2px 4px rgba(15, 20, 17, 0.04), 0 32px 64px -24px rgba(15, 20, 17, 0.28);
  --shadow-glow: none;
  --shadow-card: 0 1px 2px rgba(15, 20, 17, 0.05);

  /* Bridge variables for pricing-slider.css compatibility */
  --brand: #0B0C0B;
  --brand-dark: #262825;
  --brand-light: #0B0C0B;
  --brand-rgb: 11, 12, 11;
  --text: #0B0C0B;
}

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

/* Critical: Prevent horizontal overflow on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gradient-page-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== LOGIN PAGE ==================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-container {
  width: 100%;
  max-width: 480px;
  padding: 20px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 40px 32px;
}

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

.brand-icon {
  margin-bottom: 16px;
}

.brand-text {
  font-family: 'Acumin Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-name {
  color: var(--text-primary);
  font-weight: 700;
}

.brand-ai {
  color: var(--accent);
  font-weight: 700;
}

.login-card h2 {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.login-footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-footer span {
  color: var(--text-muted);
  margin: 0 12px;
}

.error-message {
  display: none;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 0;
  margin-top: 16px;
  font-size: 13px;
  text-align: center;
}

.register-section {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.register-section a {
  color: var(--accent);
  text-decoration: none;
}

.rep-info-box {
  background: rgba(11, 12, 11, 0.05);
  border: 1px solid rgba(11, 12, 11, 0.2);
  border-radius: 0;
  padding: 14px 16px;
  margin-top: 20px;
  text-align: center;
}

.rep-info-box p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.rep-info-box strong {
  color: var(--accent);
}

/* ==================== ADMIN LAYOUT ==================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--gradient-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.sidebar-brand {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(11, 12, 11, 0.08) 0%, transparent 100%);
}

.brand-icon-small svg {
  display: block;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.sidebar-brand .brand-text {
  font-family: 'Acumin Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.admin-badge {
  background: var(--gradient-primary);
  color: #fff;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 0;
  margin-bottom: 4px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(11, 12, 11, 0.04);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(11, 12, 11, 0.15) 0%, rgba(11, 12, 11, 0.05) 100%);
  color: var(--accent);
  border-color: rgba(11, 12, 11, 0.3);
  box-shadow: 0 2px 12px rgba(11, 12, 11, 0.15);
}

.nav-item.active .nav-icon svg {
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.user-info {
  margin-bottom: 12px;
}

.user-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
}

.user-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-logout {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(255, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px 40px;
  min-height: 100vh;
  background: transparent;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.company-badge {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 0;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.company-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-export {
  padding: 10px 16px;
  font-size: 13px;
  gap: 6px;
}

.btn-export svg {
  flex-shrink: 0;
}

/* Filter buttons */
.filter-buttons {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 0;
  border: 1px solid var(--border);
}

.filter-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(11, 12, 11, 0.05);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeInContent 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(145deg, var(--bg-card-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(11, 12, 11, 0.2);
  border-radius: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(11, 12, 11, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 12, 11, 0.3), transparent);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px var(--accent-glow-strong), 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
}

.stat-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(11, 12, 11, 0.1) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 30px var(--accent-glow);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.stat-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(11, 12, 11, 0.1);
}

.stat-icon.blue {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
  color: #60a5fa;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}
.stat-icon.green {
  background: linear-gradient(145deg, rgba(0, 210, 106, 0.25), rgba(0, 210, 106, 0.1));
  color: #34d399;
  box-shadow: 0 4px 16px var(--success-glow);
}
.stat-icon.teal {
  background: linear-gradient(145deg, rgba(11, 12, 11, 0.25), rgba(11, 12, 11, 0.1));
  color: var(--accent-bright);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.stat-icon.purple {
  background: linear-gradient(145deg, rgba(156, 39, 176, 0.25), rgba(156, 39, 176, 0.1));
  color: #c77dff;
  box-shadow: 0 4px 16px var(--purple-glow);
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

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

/* Section Card */
.section-card {
  background: linear-gradient(145deg, var(--bg-card-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 12, 11, 0.06), transparent);
}

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

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 0;
}

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

/* Playbook Stats */
.playbook-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.playbook-stat {
  text-align: center;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 0;
}

.playbook-stat.highlight {
  background: var(--accent-glow);
}

.playbook-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.playbook-stat.highlight .playbook-stat-value {
  color: var(--accent);
}

.playbook-stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(11, 12, 11, 0.02);
}

.data-table td {
  font-size: 14px;
}

.data-table tbody tr {
  transition: all 0.2s ease;
}

.data-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(11, 12, 11, 0.05), transparent);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Role Badges */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.role-badge.owner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 183, 0, 0.1));
  color: #ffd700;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
}
.role-badge.admin {
  background: linear-gradient(135deg, rgba(11, 12, 11, 0.2), rgba(11, 12, 11, 0.1));
  color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}
.role-badge.team_lead {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(156, 39, 176, 0.1));
  color: #c77dff;
  box-shadow: 0 2px 8px var(--purple-glow);
}
.role-badge.rep {
  background: rgba(11, 12, 11, 0.06);
  color: var(--text-secondary);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.active {
  background: linear-gradient(135deg, rgba(0, 210, 106, 0.2), rgba(0, 210, 106, 0.1));
  color: #34d399;
}
.status-badge.inactive {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(255, 68, 68, 0.1));
  color: #f87171;
}

/* Action Buttons */
.btn-icon {
  width: 36px;
  height: 36px;
  background: rgba(11, 12, 11, 0.08);
  border: 1px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  transition: all 0.2s;
  color: var(--accent);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  color: var(--accent);
}

.btn-icon:hover {
  background: rgba(11, 12, 11, 0.15);
  border-color: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-icon.danger {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(255, 68, 68, 0.08);
}

.btn-icon.danger svg {
  stroke: var(--danger);
}

.btn-icon.danger:hover {
  background: rgba(255, 68, 68, 0.15);
  border-color: var(--danger);
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.btn-icon.warn {
  color: var(--warning, #f59e0b);
  border-color: var(--warning, #f59e0b);
  background: rgba(245, 158, 11, 0.08);
}

.btn-icon.warn svg {
  stroke: var(--warning, #f59e0b);
}

.btn-icon.warn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--warning, #f59e0b);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-icon.success {
  color: var(--success);
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.08);
}

.btn-icon.success svg {
  stroke: var(--success);
}

.btn-icon.success:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--success);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Action Button Group - flex container for table actions */
.action-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: var(--bg-hover);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.plan-info {
  margin-bottom: 20px;
}

.plan-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.plan-badge {
  display: inline-block;
  background: rgba(11, 12, 11, 0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 0;
  margin: 8px 0;
}

.plan-price {
  font-size: 18px;
  color: var(--text-secondary);
}

.plan-trial {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #059669;
}

.plan-total {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.subscription-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

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

.status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 0;
}

.status-badge.active {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
}

.status-badge.warning {
  background: rgba(255, 159, 10, 0.15);
  color: #ff9f0a;
}

.status-badge.inactive {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
}

.plan-usage {
  margin-bottom: 20px;
}

.usage-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 8px;
}

.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 0;
  transition: width 0.3s;
}

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

.billing-info {
  margin-bottom: 20px;
}

.billing-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

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

.billing-value {
  font-weight: 500;
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 28px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(11, 12, 11, 0.2);
}

.plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: scale(1.02);
}

.plan-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.plan-card.current {
  border-color: var(--success);
  background: rgba(0, 210, 106, 0.08);
}

.plan-card.current::after {
  content: '✓ Current Plan';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: #fff;
  padding: 4px 14px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
}

.plan-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.plan-card .plan-seats {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.plan-card .price-annual {
  font-size: 12px;
  color: var(--accent);
  margin-top: -12px;
  margin-bottom: 16px;
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.header-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.usage-note {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.btn-add-seats-cta {
  margin-top: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-add-seats-cta:hover {
  box-shadow: 0 6px 25px var(--accent-glow);
}

.upgrade-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.upgrade-hint .highlight {
  color: var(--success);
  font-weight: 600;
}

.plan-card .price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.plan-card .price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.plan-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.plan-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.plan-card li:last-child {
  border-bottom: none;
}

.btn-plan {
  width: 100%;
  padding: 12px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-plan:disabled {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Info Text */
.info-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Playbook Preview */
.playbook-preview {
  background: var(--bg-secondary);
  border-radius: 0;
  padding: 24px;
}

.playbook-preview h3 {
  font-size: 16px;
  margin-bottom: 20px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* When modal-overlay is a child of .modal, it's just the backdrop — don't block siblings */
.modal > .modal-overlay {
  z-index: 0;
}

.modal-content {
  position: relative;
  z-index: 1001;
  background: linear-gradient(145deg, var(--bg-card-elevated), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(11, 12, 11, 0.05);
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(11, 12, 11, 0.05), transparent);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  background: rgba(11, 12, 11, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.modal-body {
  padding: 28px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.modal-footer .btn-secondary {
  padding: 12px 24px;
}

.modal-footer .btn-primary {
  width: auto;
  padding: 12px 28px;
}

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

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

/* ==================== PLAYBOOK MANAGER ==================== */

.playbook-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card.mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 16px;
  text-align: center;
}

.stat-card.mini .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.stat-card.mini .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.playbook-filters {
  display: flex;
  gap: 12px;
}

.playbook-filters select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
}

.playbook-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.playbook-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 16px;
  transition: all 0.2s;
}

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

.playbook-card.inactive {
  opacity: 0.6;
}

.playbook-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.playbook-category {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 4px 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.playbook-status {
  font-size: 12px;
  font-weight: 500;
}

.playbook-status.active {
  color: var(--success);
}

.playbook-status.inactive {
  color: var(--text-muted);
}

.playbook-trigger {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.trigger-phrase {
  background: var(--bg-hover);
  padding: 4px 10px;
  border-radius: 0;
  font-style: italic;
  color: var(--text-secondary);
}

.trigger-type {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 0;
}

.playbook-response {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.playbook-stats-row-mini {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.playbook-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.playbook-actions button {
  padding: 6px 12px;
  border-radius: 0;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.playbook-actions .btn-edit {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.playbook-actions .btn-edit:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.playbook-actions .btn-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.playbook-actions .btn-toggle:hover {
  border-color: var(--warning);
  color: var(--warning);
}

.playbook-actions .btn-delete {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.playbook-actions .btn-delete:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ==================== MODAL (legacy block — merged with main modal rules above) ==================== */
/* Keeping only non-duplicate overrides here */

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

#nudge-form {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

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

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ==================== ADD SEATS MODAL ==================== */

.add-seats-modal .modal-content {
  max-width: 560px;
}

.seats-selector {
  background: linear-gradient(135deg, rgba(11, 12, 11, 0.1) 0%, rgba(11, 12, 11, 0.02) 100%);
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
}

.seats-selector-header {
  margin-bottom: 24px;
}

.seats-selector-header h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.seats-selector-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.seats-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.seats-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seats-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.seats-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.seats-display {
  min-width: 100px;
  text-align: center;
}

.seats-number {
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 40px var(--accent-glow);
}

.seats-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.seats-slider-container {
  margin-bottom: 24px;
}

.seats-slider {
  width: 100%;
  height: 8px;
  border-radius: 0;
  background: var(--bg-secondary);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.seats-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 15px var(--accent-glow);
  transition: transform 0.2s;
}

.seats-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.seats-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 15px var(--accent-glow);
}

.seats-tier-indicator {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.pricing-breakdown {
  background: var(--bg-secondary);
  border-radius: 0;
  padding: 20px;
  margin-bottom: 24px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.pricing-row.total {
  border-top: 2px solid var(--accent);
  margin-top: 8px;
  padding-top: 16px;
}

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

.pricing-label.highlight {
  color: var(--accent);
  font-weight: 600;
}

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

.pricing-value.large {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.pricing-value .old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 14px;
  margin-right: 8px;
}

.tier-upgrade-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--success) 0%, #00E676 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0;
  margin-left: 8px;
}

.savings-highlight {
  background: linear-gradient(135deg, rgba(0, 210, 106, 0.15) 0%, rgba(0, 210, 106, 0.05) 100%);
  border: 1px solid var(--success);
  border-radius: 0;
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.savings-highlight .amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--success);
}

.savings-highlight .text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.add-seats-cta {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.add-seats-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.add-seats-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==================== PRORATION BREAKDOWN ==================== */

.proration-breakdown {
  background: linear-gradient(135deg, rgba(11, 12, 11, 0.08) 0%, rgba(11, 12, 11, 0.03) 100%);
  border: 1px solid rgba(11, 12, 11, 0.2);
  border-radius: 0;
  padding: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.proration-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(11, 12, 11, 0.15);
}

.proration-header svg {
  stroke: var(--accent);
}

.proration-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proration-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.proration-row .proration-label {
  color: var(--text-secondary);
}

.proration-row .proration-value {
  color: var(--text-primary);
  font-weight: 500;
}

.proration-row.highlight {
  background: rgba(11, 12, 11, 0.1);
  padding: 10px 12px;
  border-radius: 0;
  margin-top: 6px;
}

.proration-row.highlight .proration-label {
  color: var(--text-primary);
  font-weight: 600;
}

.proration-row.highlight .proration-value {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.proration-note {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 12, 11, 0.1);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.proration-note svg {
  flex-shrink: 0;
  stroke: var(--text-muted);
  margin-top: 1px;
}

.annual-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 0;
}

.annual-toggle label {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.annual-toggle label.active {
  color: var(--accent);
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  background: var(--bg-hover);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-switch.active {
  background: var(--accent);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch.active::after {
  transform: translateX(28px);
}

.annual-savings-tag {
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 0;
}

/* Responsive styles moved to comprehensive media queries at end of file */

/* ==================== DNA STRENGTH ANALYZER ==================== */

.dna-strength-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(11, 12, 11, 0.05);
  border: 1px solid rgba(11, 12, 11, 0.1);
}

.dna-grade {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.dna-grade.grade-A { color: #10B981; }
.dna-grade.grade-B { color: #34D399; }
.dna-grade.grade-C { color: #F59E0B; }
.dna-grade.grade-D { color: #F97316; }
.dna-grade.grade-F { color: #EF4444; }

.dna-score-text {
  font-size: 12px;
  color: var(--text-muted);
}

.dna-strength-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(11, 12, 11, 0.08);
  border-radius: 3px;
  margin: 12px 0 8px;
  overflow: hidden;
}

.dna-strength-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease, background 0.3s ease;
}

.dna-strength-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.dna-strength-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dna-strength-stats .stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dna-suggestions-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  border-top: 1px solid rgba(11, 12, 11, 0.06);
}

.dna-suggestions-header .btn-sm {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 10px;
}

.dna-suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 0;
  background: rgba(11, 12, 11, 0.03);
  border: 1px solid rgba(11, 12, 11, 0.06);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.dna-suggestion-item:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.dna-suggestion-item .suggestion-field {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 0;
}

.dna-suggestion-item .suggestion-current {
  font-size: 12px;
  color: #EF4444;
  text-decoration: line-through;
  opacity: 0.6;
  margin-top: 2px;
}

.dna-suggestion-item .suggestion-new {
  font-size: 13px;
  color: #10B981;
  margin-top: 4px;
  line-height: 1.4;
}

.dna-suggestion-item .suggestion-body {
  flex: 1;
  min-width: 0;
}

.dna-suggestion-item .btn-accept {
  padding: 4px 12px;
  font-size: 11px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  align-self: center;
}

.dna-suggestion-item .btn-accept:hover {
  background: rgba(16, 185, 129, 0.25);
}

.dna-suggestion-item .btn-accept.accepted {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  pointer-events: none;
}

.btn-ghost {
  padding: 8px 16px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(11, 12, 11, 0.1);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: rgba(11, 12, 11, 0.05);
  color: var(--text-primary);
  border-color: rgba(11, 12, 11, 0.2);
}

/* ==================== DNA MODAL STYLES ==================== */

.dna-modal-content {
  display: flex;
  flex-direction: column;
}

.dna-progress {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 0;
  margin: 0 24px;
  overflow: hidden;
}

.dna-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 0;
  transition: width 0.3s ease;
  width: 16.67%;
}

.dna-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dna-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
  flex-shrink: 0;
}

.dna-tab:hover {
  background: var(--bg-hover);
}

.dna-tab.active {
  background: rgba(11, 12, 11, 0.1);
  border-color: var(--accent);
}

.dna-tab.completed .tab-num {
  background: var(--success);
}

.dna-tab .tab-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.dna-tab.active .tab-num {
  background: var(--accent);
  color: var(--bg-primary);
}

.dna-tab .tab-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.dna-tab.active .tab-label {
  color: var(--accent);
}

.dna-modal-body {
  padding: 20px 24px;
}

.dna-page {
  display: none;
}

.dna-page.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

.dna-page-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dna-page-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dna-page-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* DNA Tip Indicator - shows placeholder hint when field has value */
.dna-tip {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(11, 12, 11, 0.03);
  border-left: 3px solid var(--text-muted);
  border-radius: 0;
  line-height: 1.4;
  font-style: italic;
}

.dna-tip::before {
  content: 'Tip: ';
  font-weight: 600;
  font-style: normal;
  color: var(--text-muted);
}

.dna-tip.hidden {
  display: none;
}

.dna-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.dna-page-indicator {
  font-size: 13px;
  color: var(--text-muted);
}

.dna-page-indicator span {
  color: var(--accent);
  font-weight: 600;
}

.dna-modal-footer .btn-secondary,
.dna-modal-footer .btn-primary {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dna-modal-footer .btn-secondary svg,
.dna-modal-footer .btn-primary svg {
  flex-shrink: 0;
}

/* DNA Form Row for side-by-side fields */
.dna-page .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* DNA Modal responsive styles moved to comprehensive media queries at end of file */

/* Spinning animation for save button */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn-icon.spinning {
  animation: spin 1s linear infinite;
}

/* ============================================
   PLAYBOOK SUGGESTIONS INBOX
   ============================================ */

.suggestions-inbox {
  margin-bottom: 24px;
}

.suggestions-inbox .section-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestions-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: var(--warning);
  color: var(--bg-primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 0;
}

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestion-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 0;
  border-left: 3px solid var(--warning);
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-card:hover {
  background: var(--bg-hover);
  transform: translateX(4px);
}

.suggestion-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.suggestion-content {
  flex: 1;
  min-width: 0;
}

.suggestion-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.suggestion-rep-name {
  font-weight: 600;
  color: var(--text-primary);
}

.suggestion-time {
  font-size: 12px;
  color: var(--text-muted);
}

.suggestion-trigger {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.suggestion-response {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Review Modal */
.review-suggestion-details {
  background: var(--bg-secondary);
  border-radius: 0;
  padding: 16px;
  margin-bottom: 20px;
}

.review-field {
  margin-bottom: 16px;
}

.review-field:last-child {
  margin-bottom: 0;
}

.review-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.review-trigger {
  font-size: 15px;
  color: var(--text-primary);
  padding: 12px;
  background: var(--bg-card);
  border-radius: 0;
  border-left: 3px solid var(--warning);
}

.review-response {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 12px;
  background: var(--bg-card);
  border-radius: 0;
  font-style: italic;
  line-height: 1.5;
}

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

.review-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--success);
  color: var(--bg-primary);
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-success:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

/* ==================== ONBOARDING CHECKLIST ==================== */

.onboarding-card {
  background: linear-gradient(145deg, rgba(11, 12, 11, 0.12) 0%, rgba(11, 12, 11, 0.04) 100%);
  border: 1px solid rgba(11, 12, 11, 0.25);
  border-radius: 0;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(11, 12, 11, 0.1), inset 0 1px 0 rgba(11, 12, 11, 0.05);
  position: relative;
  overflow: hidden;
}

.onboarding-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 12, 11, 0.4), transparent);
}

.onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.onboarding-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.onboarding-title svg {
  color: var(--accent);
}

.onboarding-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.onboarding-dismiss {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 0;
  transition: all 0.2s ease;
}

.onboarding-dismiss:hover {
  color: var(--text-primary);
  background: rgba(11, 12, 11, 0.1);
}

.onboarding-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.onboarding-progress .progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(11, 12, 11, 0.1);
  border-radius: 0;
  overflow: hidden;
}

.onboarding-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 0;
  transition: width 0.3s ease;
}

.onboarding-progress .progress-text {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(11, 12, 11, 0.03);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.2s ease;
}

.onboarding-step:hover {
  background: rgba(11, 12, 11, 0.05);
  border-color: rgba(11, 12, 11, 0.15);
}

.onboarding-step.completed {
  opacity: 0.6;
}

.onboarding-step.completed .step-checkbox {
  background: var(--success);
  border-color: var(--success);
}

.onboarding-step.completed .step-checkbox svg {
  opacity: 1;
}

.onboarding-step.completed .step-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.step-checkbox {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.step-checkbox svg {
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.step-desc {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
}

.step-action {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.step-action:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.step-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.step-skip-link {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.step-skip-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.onboarding-step.completed .step-action,
.onboarding-step.completed .step-actions {
  display: none;
}

/* Onboarding responsive styles moved to comprehensive media queries at end of file */

/* ==================== SEAT INDICATOR ==================== */

.seat-indicator {
  margin-left: 8px;
  font-size: 14px;
  cursor: help;
}

/* ==================== OWNER DIALING BUTTONS ==================== */

.btn-action-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-action-small.enable-dialing {
  background: rgba(11, 12, 11, 0.15);
  color: var(--accent);
  border-color: rgba(11, 12, 11, 0.3);
}

.btn-action-small.enable-dialing:hover {
  background: rgba(11, 12, 11, 0.25);
  border-color: var(--accent);
}

.btn-action-small.stop-dialing {
  background: rgba(255, 184, 0, 0.15);
  color: var(--warning);
  border-color: rgba(255, 184, 0, 0.3);
}

.btn-action-small.stop-dialing:hover {
  background: rgba(255, 184, 0, 0.25);
  border-color: var(--warning);
}

/* ==================== MOBILE HEADER & NAVIGATION ==================== */

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, var(--bg-card-elevated) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border);
  z-index: 1001;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 12, 11, 0.3), transparent);
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(11, 12, 11, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  cursor: pointer;
  padding: 10px;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(11, 12, 11, 0.1);
  border-color: rgba(11, 12, 11, 0.3);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-brand {
  font-family: 'Acumin Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.admin-badge-mobile {
  font-size: 9px;
  font-weight: 700;
  padding: 5px 10px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 0;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
}

/* ==================== TABLET RESPONSIVE (1024px) ==================== */
@media (max-width: 1024px) {
  .main-content {
    padding: 24px;
  }

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

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

/* ==================== MOBILE RESPONSIVE (768px) ==================== */
@media (max-width: 768px) {
  /* Show mobile header */
  .mobile-header {
    display: flex;
  }

  /* Sidebar transforms to slide-out drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    transform: translateX(-100%);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    display: block;
  }

  /* Main content adjustments */
  .main-content {
    margin-left: 0;
    padding: 80px 14px 24px 14px;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Page header mobile */
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
  }

  .page-header h1 {
    font-size: 22px;
    text-align: center;
  }

  .company-badge {
    justify-content: center;
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Stats grid - single column on mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 18px;
    border-radius: 0;
  }

  .stat-icon {
    width: 46px;
    height: 46px;
  }

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

  /* Section cards mobile */
  .section-card {
    padding: 16px;
    border-radius: 0;
    margin-bottom: 16px;
    overflow: hidden;
    max-width: 100%;
  }

  .section-card::before {
    left: 14px;
    right: 14px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-header h2 {
    font-size: 16px;
  }

  /* Tables - card transformation removes need for horizontal scroll */
  .table-wrapper {
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .data-table {
    min-width: 0;
    width: 100%;
  }

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

  /* Note: Team table is now fully card-transformed - see #team-table styles below */

  /* Billing section mobile */
  .billing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .billing-card {
    padding: 20px;
  }

  /* Playbook mobile */
  .playbook-stats-grid {
    grid-template-columns: 1fr;
  }

  .playbook-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .nudge-card {
    padding: 16px;
    border-radius: 0;
  }

  .playbook-card {
    padding: 16px;
  }

  .playbook-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Modals mobile - full screen style */
  .modal-content {
    margin: 8px;
    max-height: calc(100vh - 16px);
    width: calc(100% - 16px);
    border-radius: 0;
  }

  /* Mobile modal close button - more prominent */
  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 22px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
    flex-shrink: 0;
  }

  .modal-close:active {
    background: rgba(255, 68, 68, 0.25);
    transform: scale(0.95);
  }

  .modal-header {
    padding: 18px 20px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .modal-header h2 {
    font-size: 17px;
    flex: 1;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .modal-footer .btn-secondary,
  .modal-footer .btn-primary {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  /* Header actions mobile */
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .filter-buttons {
    flex-wrap: wrap;
    padding: 3px;
  }

  .filter-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .btn-export .btn-text {
    display: none;
  }

  .btn-export {
    padding: 10px 12px;
  }

  /* DNA modal mobile */
  .dna-tabs {
    padding: 12px 12px 0;
    gap: 2px;
  }

  .dna-tab {
    padding: 8px 6px;
    min-width: 55px;
  }

  .dna-tab .tab-num {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .dna-tab .tab-label {
    font-size: 9px;
  }

  .dna-modal-body {
    padding: 16px;
  }

  .dna-modal-footer {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

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

  /* Onboarding card mobile */
  .onboarding-card {
    margin-bottom: 16px;
    border-radius: 0;
  }

  .onboarding-header {
    padding: 18px;
  }

  .onboarding-header h3 {
    font-size: 16px;
  }

  .onboarding-steps {
    padding: 0 14px 14px;
  }

  .onboarding-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 0;
  }

  .step-content {
    width: 100%;
  }

  .step-title {
    font-size: 14px;
  }

  .step-desc {
    font-size: 12px;
  }

  .step-action,
  .step-actions {
    width: 100%;
  }

  .step-action {
    text-align: center;
    padding: 10px 16px;
  }

  .step-actions {
    align-items: stretch;
  }

  /* Form elements mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 8px;
  }

  /* Buttons mobile */
  .btn {
    padding: 12px 18px;
    font-size: 14px;
  }

  .btn-primary {
    padding: 14px 24px;
  }

  .btn-lg {
    padding: 14px 24px;
  }

  .btn-secondary {
    padding: 12px 18px;
  }

  /* Note: Leaderboard is now fully card-transformed - see #leaderboard-table styles below */

  /* Settings form mobile */
  .settings-form .form-group {
    margin-bottom: 18px;
  }

  /* Role & status badges mobile */
  .role-badge,
  .status-badge {
    padding: 4px 10px;
    font-size: 10px;
  }

  /* Action buttons row mobile */
  .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn-action-small {
    padding: 8px 12px;
    font-size: 11px;
  }

  /* ========== MOBILE TABLE TRANSFORMATION ========== */
  /* Transform tables to card-based layout on mobile */

  /* Team table - card layout */
  #team-table {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  #team-table thead {
    display: none;
  }

  #team-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  #team-table tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 14px;
    gap: 0;
    width: 100%;
    overflow: hidden;
  }

  #team-table tbody tr:hover {
    background: var(--bg-card-elevated);
  }

  #team-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  #team-table tbody td > * {
    max-width: 60%;
    word-break: break-word;
  }

  #team-table tbody td:first-child {
    padding-top: 0;
  }

  /* Actions row - special handling */
  #team-table tbody td:last-child {
    border-bottom: none;
    padding-top: 14px;
    padding-bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  #team-table tbody td:last-child > * {
    max-width: 100%;
  }

  /* Action button group - responsive grid on mobile */
  #team-table .action-btn-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    padding: 4px 0;
  }

  #team-table .action-btn-group .btn-icon {
    width: 100%;
    height: 44px;
    min-width: 44px;
    margin: 0;
    font-size: 16px;
    border-radius: 0;
  }

  #team-table .action-btn-group .btn-icon svg {
    width: 18px;
    height: 18px;
  }

  /* 3 buttons: Edit, Deactivate, Delete - show in row */
  /* 4 buttons: Add Reset PIN */
  /* 5 buttons: Add Release Seat */
  /* Dynamic grid based on count - handled by auto-fit */
  @supports (grid-template-columns: repeat(auto-fit, minmax(0, 1fr))) {
    #team-table .action-btn-group {
      grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    }
  }

  #team-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    max-width: 35%;
  }

  #team-table tbody td:last-child::before {
    display: none;
  }

  /* Action buttons in team table */
  #team-table .btn-icon {
    padding: 10px 14px;
    font-size: 14px;
  }

  #team-table .btn-action-small {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }

  /* Leaderboard table - card layout */
  #leaderboard-table,
  #top-performers-table {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  #leaderboard-table thead,
  #top-performers-table thead {
    display: none;
  }

  #leaderboard-table tbody,
  #top-performers-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  #leaderboard-table tbody tr,
  #top-performers-table tbody tr {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 14px;
    width: 100%;
    overflow: hidden;
  }

  #leaderboard-table tbody td,
  #top-performers-table tbody td {
    padding: 0;
    border: none;
  }

  /* Rank column styling */
  #leaderboard-table tbody td:first-child,
  #top-performers-table tbody td:first-child {
    flex-shrink: 0;
    width: 36px;
    text-align: center;
  }

  #leaderboard-table tbody td:first-child .rank-badge,
  #top-performers-table tbody td:first-child .rank-badge {
    font-size: 16px;
  }

  /* Name column - takes remaining space */
  #leaderboard-table tbody td:nth-child(2),
  #top-performers-table tbody td:nth-child(2) {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Hide Team column on mobile */
  #leaderboard-table tbody td:nth-child(3),
  #top-performers-table tbody td:nth-child(3) {
    display: none;
  }

  /* Adoption rate - show as badge */
  #leaderboard-table tbody td:nth-child(4),
  #top-performers-table tbody td:nth-child(4) {
    flex-shrink: 0;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
  }

  /* Hide additional columns */
  #leaderboard-table tbody td:nth-child(5),
  #leaderboard-table tbody td:nth-child(6),
  #top-performers-table tbody td:nth-child(5) {
    display: none;
  }

  /* Audit log table - simplified */
  #audit-log-table {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  #audit-log-table thead {
    display: none;
  }

  #audit-log-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  #audit-log-table tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 14px;
    gap: 6px;
    width: 100%;
    overflow: hidden;
  }

  #audit-log-table tbody td {
    padding: 4px 0;
    border: none;
    font-size: 13px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  #audit-log-table tbody td:first-child {
    font-size: 11px;
    color: var(--text-muted);
    order: -1;
  }

  #audit-log-table tbody td:nth-child(2) {
    font-weight: 600;
    color: var(--accent);
    font-size: 14px;
  }

  #audit-log-table tbody td:nth-child(3) {
    background: rgba(11, 12, 11, 0.04);
    padding: 6px 10px;
    border-radius: 0;
    font-size: 12px;
  }

  #audit-log-table tbody td:nth-child(4) {
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
    margin-top: 4px;
  }

  #audit-log-table tbody td::before {
    display: none;
  }

  /* Playbook cards - already card-based but optimize */
  .playbook-card {
    padding: 14px;
  }

  .playbook-card-header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .playbook-trigger {
    flex-direction: column;
    align-items: flex-start;
  }

  .playbook-response {
    font-size: 13px;
  }

  .playbook-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .playbook-actions .btn-icon {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Playbook stats row - 2x2 grid */
  .playbook-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card.mini {
    padding: 14px;
  }

  .stat-card.mini .stat-value {
    font-size: 22px;
  }

  .stat-card.mini .stat-label {
    font-size: 10px;
  }

  /* Suggestions section */
  .suggestions-inbox {
    padding: 16px;
  }

  .suggestion-card {
    padding: 14px;
  }

  .suggestion-actions {
    flex-direction: column;
    gap: 8px;
  }

  .suggestion-actions button {
    width: 100%;
    justify-content: center;
  }

  /* Page header on mobile */
  .page-header {
    gap: 16px;
  }

  .page-header .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Filter buttons mobile */
  .filter-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Playbook filters mobile - stack them */
  .playbook-filters {
    flex-direction: column;
    gap: 10px;
  }

  .playbook-filters select {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  /* Playbook stats mini row */
  .playbook-stats-row-mini {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }

  .playbook-stats-row-mini span {
    background: rgba(11, 12, 11, 0.04);
    padding: 4px 8px;
    border-radius: 0;
  }

  /* Playbook trigger styling */
  .playbook-trigger {
    flex-wrap: wrap;
    gap: 6px;
  }

  .trigger-phrase {
    word-break: break-word;
    max-width: 100%;
  }

  .trigger-type {
    font-size: 10px;
  }

  /* Playbook action buttons - full width on mobile */
  .playbook-actions {
    flex-direction: column;
    gap: 8px;
  }

  .playbook-actions button {
    width: 100%;
    padding: 10px 16px;
    justify-content: center;
  }

  /* Billing section mobile */
  .billing-card {
    padding: 18px;
  }

  .plan-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .seats-bar-container {
    width: 100%;
  }

  .billing-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Settings section mobile */
  .settings-section {
    padding: 18px;
  }

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

  /* Proration breakdown mobile */
  .proration-breakdown {
    padding: 14px;
    margin-top: 12px;
  }

  .proration-header {
    font-size: 13px;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .proration-row {
    font-size: 12px;
    flex-wrap: wrap;
  }

  .proration-row.highlight {
    padding: 8px 10px;
  }

  .proration-row.highlight .proration-value {
    font-size: 15px;
  }

  .proration-note {
    font-size: 10px;
    margin-top: 12px;
    padding-top: 10px;
  }

  /* Add seats modal mobile optimizations */
  .add-seats-modal .modal-content {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }

  .add-seats-modal .modal-body {
    padding: 16px;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
  }

  .pricing-slider-container.admin-mode {
    padding: 16px 0;
  }

  .tier-labels {
    gap: 4px;
  }

  .tier-label {
    font-size: 11px;
    padding: 6px 8px;
  }

  .tier-label small {
    font-size: 9px;
  }

  .current-seats-info {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 13px;
  }

  .billing-toggle {
    gap: 0;
  }

  .billing-toggle .toggle-btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .pricing-breakdown {
    padding: 14px;
  }

  .pricing-row {
    font-size: 13px;
  }

  .pricing-row.total {
    padding: 12px;
  }

  .add-seats-cta {
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* ==================== SMALL MOBILE (480px) ==================== */
@media (max-width: 480px) {
  .main-content {
    padding: 72px 10px 20px 10px;
  }

  .page-header h1 {
    font-size: 18px;
  }

  .stat-card {
    padding: 14px;
  }

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

  .stat-label {
    font-size: 11px;
  }

  .section-card {
    padding: 14px;
    border-radius: 0;
  }

  .section-header h2 {
    font-size: 15px;
  }

  /* Team cards tighter on small phones */
  #team-table tbody tr {
    padding: 12px;
  }

  #team-table tbody td {
    font-size: 12px;
    padding: 6px 0;
  }

  #team-table tbody td::before {
    font-size: 9px;
  }

  /* Leaderboard cards tighter */
  #leaderboard-table tbody tr,
  #top-performers-table tbody tr {
    padding: 12px;
    gap: 10px;
  }

  #leaderboard-table tbody td:nth-child(2),
  #top-performers-table tbody td:nth-child(2) {
    font-size: 13px;
  }

  #leaderboard-table tbody td:nth-child(4),
  #top-performers-table tbody td:nth-child(4) {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Audit log cards */
  #audit-log-table tbody tr {
    padding: 12px;
  }

  #audit-log-table tbody td {
    font-size: 12px;
  }

  .modal-content {
    margin: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  /* Mobile modal close button - larger touch target */
  .modal-close {
    width: 44px;
    height: 44px;
    font-size: 24px;
    background: rgba(255, 68, 68, 0.15);
    border: 2px solid rgba(255, 68, 68, 0.4);
    color: #ff6b6b;
    border-radius: 0;
    position: relative;
    z-index: 10;
  }

  .modal-close:active {
    background: rgba(255, 68, 68, 0.3);
    transform: scale(0.95);
  }

  .modal-header {
    padding: 16px;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 5;
    border-bottom: 1px solid var(--border);
  }

  .modal-header h2 {
    font-size: 16px;
    padding-right: 50px;
  }

  .dna-tabs {
    padding: 10px 8px 0;
  }

  .dna-tab {
    min-width: 48px;
    padding: 6px 4px;
  }

  .dna-tab .tab-label {
    display: none;
  }

  /* Single column stats on very small screens */
  .playbook-stats-row {
    grid-template-columns: 1fr;
  }

  /* Stack buttons vertically */
  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn-secondary,
  .modal-footer .btn-primary {
    width: 100%;
  }

  .dna-modal-footer {
    flex-direction: column;
  }

  .dna-modal-footer .btn-secondary,
  .dna-modal-footer .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Action buttons - keep them tappable on small screens */
  .btn-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 0;
  }

  .btn-icon svg {
    width: 16px;
    height: 16px;
  }

  /* Action group - stack 3 per row on very small screens */
  #team-table .action-btn-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  #team-table .action-btn-group .btn-icon {
    height: 40px;
  }

  .btn-action-small {
    padding: 10px 14px;
    font-size: 12px;
  }

  /* Playbook cards */
  .playbook-card {
    padding: 12px;
  }

  .playbook-response {
    font-size: 12px;
  }

  .playbook-stats-row-mini {
    font-size: 11px;
  }

  /* Billing pricing */
  .plan-info {
    padding: 12px;
  }

  .plan-name {
    font-size: 18px;
  }

  .plan-price {
    font-size: 14px;
  }

  /* Proration on very small screens */
  .proration-breakdown {
    padding: 12px;
  }

  .proration-header {
    font-size: 12px;
  }

  .proration-row {
    font-size: 11px;
  }

  .proration-row.highlight .proration-value {
    font-size: 14px;
  }

  .proration-note {
    font-size: 9px;
  }
}

/* ==================== MOBILE BOTTOM NAVIGATION ==================== */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(180deg, var(--bg-card-elevated) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 12, 11, 0.3), transparent);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  /* Adjust main content for bottom nav */
  .main-content {
    padding-bottom: 90px !important;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg {
  stroke: var(--text-muted);
  transition: all 0.2s ease;
}

.bottom-nav-item.active {
  color: var(--accent);
}

.bottom-nav-item.active svg {
  stroke: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.bottom-nav-item:active {
  transform: scale(0.95);
}

/* ==================== FLOATING SEAT WIDGET ==================== */

.mobile-seat-widget {
  display: none;
  position: fixed;
  top: 80px;
  right: 14px;
  z-index: 999;
}

@media (max-width: 768px) {
  .mobile-seat-widget {
    display: block;
  }
}

.seat-widget-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--bg-card-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.seat-widget-inner:active {
  transform: scale(0.95);
  border-color: var(--accent);
}

.seat-widget-icon {
  font-size: 14px;
}

.seat-widget-text {
  color: var(--accent);
}

/* ==================== OFFLINE INDICATOR ==================== */

.offline-indicator {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: slideDown 0.3s ease;
}

.offline-indicator.visible {
  display: flex;
}

.offline-indicator svg {
  stroke: white;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ==================== PULL TO REFRESH ==================== */

.pull-to-refresh {
  display: none;
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  padding: 12px 20px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.pull-to-refresh.visible {
  display: flex;
  transform: translateX(-50%) translateY(0);
}

.pull-to-refresh.refreshing .ptr-spinner {
  animation: spin 0.8s linear infinite;
}

.ptr-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
}

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

/* ==================== SKELETON LOADING ==================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    var(--bg-hover) 50%,
    var(--bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 0;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 80px;
  margin-bottom: 12px;
}

.skeleton-row {
  height: 48px;
  margin-bottom: 8px;
}

.skeleton-text {
  height: 16px;
  width: 60%;
}

.skeleton-text.short {
  width: 30%;
}

.skeleton-text.full {
  width: 100%;
}

/* ==================== TEAM SEARCH BAR ==================== */

.team-search-container {
  display: none;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .team-search-container {
    display: block;
  }
}

.team-search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.2s ease;
}

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

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

.team-search-wrapper {
  position: relative;
}

.team-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ==================== BULK ACTIONS ==================== */

.bulk-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(11, 12, 11, 0.1) 0%, rgba(11, 12, 11, 0.05) 100%);
  border: 1px solid rgba(11, 12, 11, 0.3);
  border-radius: 0;
  margin-bottom: 16px;
  animation: slideDown 0.2s ease;
}

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

.bulk-info {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

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

.btn-bulk {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(11, 12, 11, 0.05);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-bulk:hover {
  background: rgba(11, 12, 11, 0.1);
  border-color: var(--accent);
}

.btn-bulk.btn-bulk-danger:hover {
  background: rgba(255, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.btn-bulk svg {
  flex-shrink: 0;
}

/* Checkboxes - Cyan themed */
.th-checkbox,
.td-checkbox {
  width: 40px;
  text-align: center;
}

.th-checkbox input[type="checkbox"],
.td-checkbox input[type="checkbox"],
.rep-checkbox,
#select-all-reps {
  width: 18px;
  height: 18px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 0;
  position: relative;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.th-checkbox input[type="checkbox"]:hover,
.td-checkbox input[type="checkbox"]:hover,
.rep-checkbox:hover,
#select-all-reps:hover {
  border-color: var(--accent);
  background: rgba(11, 12, 11, 0.1);
}

.th-checkbox input[type="checkbox"]:checked,
.td-checkbox input[type="checkbox"]:checked,
.rep-checkbox:checked,
#select-all-reps:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.th-checkbox input[type="checkbox"]:checked::after,
.td-checkbox input[type="checkbox"]:checked::after,
.rep-checkbox:checked::after,
#select-all-reps:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Mobile bulk actions */
@media (max-width: 768px) {
  .bulk-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .bulk-info {
    text-align: center;
  }

  .bulk-buttons {
    justify-content: center;
  }

  .btn-bulk {
    padding: 10px 12px;
    font-size: 12px;
  }

  .th-checkbox,
  .td-checkbox {
    display: none !important;
  }
}

/* ==================== HAPTIC FEEDBACK STYLES ==================== */

@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary,
  .btn-icon,
  .btn-action-small,
  .bottom-nav-item,
  .nav-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .btn-primary:active,
  .btn-secondary:active {
    transform: scale(0.97);
  }
}

/* ==================== QUICK ACTIONS FAB (Future) ==================== */

.mobile-fab {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 16px;
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-glow-strong);
  z-index: 999;
  transition: all 0.2s ease;
}

.mobile-fab:active {
  transform: scale(0.9);
}

@media (max-width: 768px) {
  .mobile-fab {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Tab Guide Cards ─────────────────────────────────────── */

.tab-guide {
  background: linear-gradient(135deg, rgba(11, 12, 11, 0.03), rgba(11, 12, 11, 0.01));
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 24px;
  margin-bottom: 20px;
  position: relative;
}

.tab-guide-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tab-guide-header svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.tab-guide-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.tab-guide-dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-size: 16px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.tab-guide-dismiss:hover {
  opacity: 1;
}

.tab-guide-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tab-guide-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tab-guide-item .guide-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(11, 12, 11, 0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 1px;
}

.tab-guide-item .guide-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tab-guide-item .guide-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.tab-guide-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.tab-guide-footer strong {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .tab-guide-body {
    grid-template-columns: 1fr;
  }
}

/* ==================== CALL INTELLIGENCE TAB ==================== */

.ci-connection-card {
  position: relative;
}

.ci-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(11, 12, 11, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.ci-status-badge.connected {
  background: rgba(0, 210, 106, 0.1);
  color: var(--success);
  border-color: rgba(0, 210, 106, 0.2);
}

.ci-status-badge.connected::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.ci-platform-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.ci-platform-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(11, 12, 11, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ci-platform-btn:hover {
  background: rgba(11, 12, 11, 0.08);
  color: var(--text-primary);
}

.ci-platform-btn.active {
  background: rgba(11, 12, 11, 0.1);
  border-color: rgba(11, 12, 11, 0.2);
  color: var(--text-primary);
}

.ci-platform-icon {
  display: flex;
  align-items: center;
}

.ci-credentials {
  animation: ciFadeIn 0.2s ease;
}

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

.ci-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  border: 2px dashed rgba(11, 12, 11, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.ci-upload-zone:hover {
  border-color: rgba(11, 12, 11, 0.2);
  background: rgba(11, 12, 11, 0.02);
}

.ci-upload-zone.drag-over {
  border-color: var(--success);
  background: rgba(0, 210, 106, 0.04);
}

.ci-connected-info {
  display: flex;
  gap: 32px;
  padding: 16px 0;
}

.ci-connected-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ci-connected-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

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

.ci-connected-value.ci-active {
  color: var(--success);
}

.ci-import-config {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.ci-import-row {
  display: flex;
  gap: 16px;
}

.ci-date-input { color-scheme: light;
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(11, 12, 11, 0.1);
  background: rgba(11, 12, 11, 0.05);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
}

.ci-date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.5;
}

.ci-privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 14px;
  background: rgba(11, 12, 11, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.ci-privacy-note svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* Job cards */
.ci-job-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(11, 12, 11, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: border-color 0.2s ease;
}

.ci-job-card:hover {
  border-color: rgba(11, 12, 11, 0.12);
}

.ci-job-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ci-job-icon.pending {
  background: rgba(255, 184, 0, 0.1);
  color: var(--warning);
}

.ci-job-icon.processing {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.ci-job-icon.complete {
  background: rgba(0, 210, 106, 0.1);
  color: var(--success);
}

.ci-job-icon.failed {
  background: rgba(255, 68, 68, 0.1);
  color: var(--danger);
}

.ci-job-body {
  flex: 1;
  min-width: 0;
}

.ci-job-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ci-job-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.ci-job-stats {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.ci-job-stat {
  text-align: center;
}

.ci-job-stat-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.ci-job-stat-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Progress bar for active jobs */
.ci-job-progress {
  margin-top: 8px;
  height: 3px;
  background: rgba(11, 12, 11, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.ci-job-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, var(--success));
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* DNA suggestion cards */
.ci-dna-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(11, 12, 11, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: border-color 0.2s ease;
}

.ci-dna-card:hover {
  border-color: rgba(11, 12, 11, 0.12);
}

.ci-dna-card input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--success);
  flex-shrink: 0;
}

.ci-dna-card-body {
  flex: 1;
  min-width: 0;
}

.ci-dna-field {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}

.ci-dna-value {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

.ci-dna-current {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

.ci-coming-soon {
  padding: 32px 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .ci-platform-selector {
    flex-direction: column;
  }

  .ci-import-row {
    flex-direction: column;
  }

  .ci-connected-info {
    flex-direction: column;
    gap: 12px;
  }

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

  .ci-job-stats {
    width: 100%;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
  }
}

/* ==================== PREMIUM OVERHAUL ==================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(11, 12, 11, 0.06); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: rgba(11, 12, 11, 0.12); }

input:focus, select:focus, textarea:focus {
  outline: 1px solid rgba(11, 12, 11, 0.2);
  outline-offset: 0;
}

.launch-check { margin: 16px 24px; padding: 16px; background: var(--bg-card, #161922); border: 1px solid #475569; border-radius: 12px; color: var(--text-primary, #f8fafc); }
.launch-check summary { cursor: pointer; font-weight: 600; }
.launch-check p, .launch-check li { margin: 10px 0; line-height: 1.5; }
.launch-check textarea { display: block; width: 100%; margin: 8px 0; padding: 10px; background: #111827; color: #fff; border: 1px solid #64748b; border-radius: 6px; }
.launch-check button { padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.launch-check [data-response] { white-space: pre-wrap; line-height: 1.6; max-height: 320px; overflow-y: auto; }
.launch-check fieldset { margin: 16px 0; padding: 16px; border: 1px solid var(--border-color, #d1d5db); border-radius: 8px; }
.launch-check legend { padding: 0 6px; font-weight: 600; }
.launch-check input, .launch-check select { width: 100%; padding: 10px; color: inherit; background: var(--bg-secondary, #fff); border: 1px solid var(--border-color, #d1d5db); border-radius: 6px; }
.launch-check [data-results] p, .launch-check [data-examples] p { white-space: pre-wrap; overflow-wrap: anywhere; }
.launch-check button:disabled { opacity: .55; cursor: not-allowed; }

/* ===== Coaching status (manager surface: live / paused / try / undo) ===== */
.coaching-status { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.cs-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cs-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(11, 12, 11, 0.05); }
.coaching-status[data-state="live"] .cs-dot { background: var(--success); box-shadow: 0 0 0 4px var(--success-glow); }
.coaching-status[data-state="paused"] .cs-dot { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-glow); }
.coaching-status[data-state="not_live"] .cs-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-glow); }
.coaching-status[data-state="blocked"] { border-color: var(--warning); }
.coaching-status[data-state="blocked"] .cs-dot { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-glow); }
.cs-detail-blocked { color: var(--warning); font-weight: 600; }
.cs-words { flex: 1 1 260px; min-width: 0; }
.cs-headline { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.cs-detail { font-size: 13px; color: var(--text-secondary); margin-top: 2px; line-height: 1.45; }
.cs-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-btn { border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--bg-card-elevated); color: var(--text-primary); }
.cs-btn:disabled { opacity: 0.6; cursor: default; }
.cs-btn[hidden] { display: none; }
.cs-pause { border-color: var(--danger); color: var(--danger); }
.cs-pause:hover { background: var(--danger); color: #fff; }
.cs-resume { border-color: var(--success); color: var(--success); }
.cs-resume:hover { background: var(--success); color: #fff; }
.cs-undo:hover, .cs-try-btn:hover { background: var(--bg-hover); }
.cs-only { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--text-secondary); cursor: pointer; }
.cs-only input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--success); cursor: pointer; }
.cs-only strong { color: var(--text-primary); }
.cs-try { display: flex; gap: 8px; margin-top: 14px; }
.cs-try input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font-size: 14px; }
.cs-try-out { margin-top: 10px; font-size: 14px; }
.cs-try-out:empty { display: none; }
.cs-try-label { color: var(--text-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.cs-try-text { margin-top: 4px; padding: 10px 12px; border-left: 3px solid var(--success); background: var(--bg-secondary); border-radius: 8px; color: var(--text-primary); line-height: 1.5; }
.cs-try-source { margin-top: 6px; color: var(--text-muted); font-size: 12px; }
@media (max-width: 720px) { .cs-actions { width: 100%; } .cs-btn { flex: 1; } }
.cs-try { align-items: center; }
.cs-try-label-inline { font-size: 13px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; }
.sidebar-help { display: block; font-size: 12px; color: var(--text-secondary); text-decoration: none; margin: 0 0 10px; }
.sidebar-help:hover { color: var(--text-primary); }
a.btn-add-seats-cta { display: inline-block; text-decoration: none; text-align: center; }

/* What your reps heard and could not answer - sits at the top of the Playbook tab */
.unanswered {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.unanswered-head h2 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.unanswered-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
.unanswered-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(11, 12, 11, 0.07);
  flex-wrap: wrap;
}
.unanswered-words { flex: 1 1 260px; font-size: 14px; }
.unanswered-count { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.unanswered-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.unanswered-actions .btn-sm { padding: 6px 12px; font-size: 12px; }
@media (max-width: 640px) {
  .unanswered-row { align-items: flex-start; }
  .unanswered-actions { width: 100%; }
}

/* Today on the floor: what fired for one rep */
.fired-table { margin: 6px 0 10px; font-size: 13px; }
.fired-table th { font-size: 11px; }
.fired-table td { vertical-align: top; padding-top: 8px; padding-bottom: 8px; }

/* Shorter version of a long line, offered under the card; the manager chooses */
.shorter-panel { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(11, 12, 11, 0.08); }
.shorter-panel .shorter-line { margin: 6px 0 8px; }
.coaching-mode-select { font: inherit; font-size: 12px; padding: 4px 8px; background: rgba(11, 12, 11, 0.06); color: inherit; border: 1px solid rgba(11, 12, 11, 0.12); border-radius: 4px; max-width: 200px; }

/* A rep whose app is too old to be coached. Same amber the blocked-save bar uses. */
.needs-update-bar {
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 159, 10, 0.4);
  background: rgba(255, 159, 10, 0.08);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
}

/* A trigger too long to match anything but its exact words. */
.trigger-too-long {
  color: var(--warning);
  margin: 6px 0 0;
}


/* Sidebar: what a manager needs to get a rep signed in, on every tab (Sep 28) */
.sidebar-setup { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sidebar-code-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.sidebar-code-row code { background: rgba(11, 12, 11, 0.1); padding: 4px 10px; border-radius: 4px; font-size: 15px;
  letter-spacing: 2px; color: var(--text-primary); }
.sidebar-copy, .rep-copy-login, .rep-show-pin { background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
  font-size: 12px; padding: 4px 10px; cursor: pointer; border-radius: 0; }
.sidebar-copy:hover, .rep-copy-login:hover, .rep-show-pin:hover { color: var(--text-primary); border-color: #10B981; }
a.sidebar-download { text-decoration: none; color: var(--text-primary); }
a.sidebar-download:hover { background: rgba(16, 185, 129, 0.1); border-color: #10B981; color: #10B981; }
.rep-pin-value { background: rgba(11, 12, 11, 0.1); padding: 4px 8px; border-radius: 4px; font-size: 13px;
  letter-spacing: 2px; color: var(--text-primary); margin-right: 8px; }

/* Sep 28: a wide table (Team) kept the main column from shrinking, so the whole tab ran off the
   right edge. A flex child needs min-width: 0 to let its content scroll instead. */
.main-content { min-width: 0; }


/* =====================================================================================
   PREMIUM REFINEMENT (Nov 2026): one design language with www.callsteer.com.
   Light, quiet, precise. Later rules here win over the older ones above on purpose.
   ===================================================================================== */

:root { --primary-rgb: 16, 185, 129; --red: #DC2626; --green: #047857; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-feature-settings: "cv11", "ss01";
  background: var(--bg-primary);
  background-attachment: scroll;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
}
::selection { background: var(--emerald-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { outline: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(11, 12, 11, 0.12); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(11, 12, 11, 0.22); background-clip: padding-box; }
code, .mono { font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace; }
.data-table, .stat-value, .playbook-stat-value, .plan-price, .plan-total, .billing-value, .usage-text { font-variant-numeric: tabular-nums; }

/* ---------- sign-in ---------- */
.login-page { background: var(--bg-primary); min-height: 100vh; padding: 48px 16px; }
.login-container { width: 100%; max-width: 420px; }
.login-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 40px 36px 32px;
}
.login-card .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 28px; }
.login-card .brand img.wordmark { height: 22px; width: auto; }
.login-card h2 { font-family: var(--display); font-weight: 300; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); text-align: left; margin: 0 0 6px; }
.login-card .login-sub { color: var(--text-secondary); font-size: 14px; margin: 0 0 24px; }
.login-card .form-group { margin-bottom: 16px; }
.login-card .btn-primary { margin-top: 8px; height: 44px; }
.login-footer { border-top: 0; padding-top: 0; margin-top: 18px; text-align: center; }
.login-footer a { color: var(--emerald-ink); font-weight: 500; font-size: 14px; }
.login-footer a:hover { color: var(--ink); }
.rep-info-box { background: var(--bg-secondary); border: 0; border-radius: 10px; padding: 12px 14px; margin-top: 20px; text-align: left; }
.rep-info-box p { color: var(--text-secondary); font-size: 13px; }
.rep-info-box strong { color: var(--ink); }
.register-section { margin-top: 18px; font-size: 13px; color: var(--text-secondary); text-align: center; }
.register-section a { color: var(--emerald-ink); font-weight: 500; }
.error-message { border-radius: 8px; font-size: 13px; }
.reset-card .brand { margin-bottom: 18px; }

/* ---------- forms ---------- */
.form-group label { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; letter-spacing: 0; text-transform: none; }
.form-group input, .form-group select, .form-group textarea,
.modal input[type="text"], .modal input[type="email"], .modal input[type="password"], .modal input[type="number"], .modal select, .modal textarea {
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink);
  font-family: var(--sans); font-size: 14px; padding: 10px 12px; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder, .modal input::placeholder, .modal textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .modal input:focus, .modal select:focus, .modal textarea:focus {
  border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); outline: none;
}
.form-group small, .form-hint { color: var(--text-muted); font-size: 12px; }
select { color-scheme: light; }

/* ---------- buttons ---------- */
.btn-primary {
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 8px;
  padding: 10px 16px; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; box-shadow: var(--shadow-sm);
  transition: background .15s ease, border-color .15s ease; transform: none;
}
.btn-primary:hover { background: #262825; border-color: #262825; transform: none; box-shadow: var(--shadow-sm); }
.btn-primary:disabled, .btn-secondary:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary {
  background: var(--bg-card); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 9px 14px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-muted); }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--text-secondary); border-radius: 8px; font-weight: 500; }
.btn-ghost:hover { background: var(--bg-hover); color: var(--ink); border-color: transparent; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 6px; }
.btn-danger { background: var(--bg-card); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.3); border-radius: 8px; }
.btn-danger:hover { background: #FEF2F2; color: var(--danger); border-color: rgba(220, 38, 38, 0.5); }
.btn-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); }
.btn-icon:hover { background: var(--bg-hover); color: var(--ink); border-color: var(--line-strong); transform: none; box-shadow: none; }
.btn-icon.danger:hover { background: #FEF2F2; color: var(--danger); border-color: rgba(220, 38, 38, 0.35); }
.btn-icon.success:hover { background: var(--emerald-tint); color: var(--emerald-ink); border-color: rgba(16, 185, 129, 0.35); }
.btn-export { color: var(--text-secondary); }
.filter-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.filter-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--bg-card); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }

/* ---------- shell ---------- */
.sidebar { width: 248px; background: #F6F6F3; border-right: 1px solid var(--border); box-shadow: none; }
.sidebar-brand { padding: 22px 20px 18px; border-bottom: 0; background: none; }
.sidebar-brand img { height: 20px; width: auto; }
.admin-badge, .admin-badge-mobile { display: none; }
.sidebar-nav { padding: 4px 12px 12px; }
.nav-item {
  gap: 10px; padding: 8px 10px; margin-bottom: 2px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: rgba(11, 12, 11, 0.04); color: var(--ink); border-color: transparent; }
.nav-item.active { background: var(--bg-card); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-item.active .nav-icon svg, .brand-icon-small svg { filter: none; }
.nav-icon { width: 18px; color: inherit; }
.nav-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
.nav-item.active .nav-icon { color: var(--emerald-ink); }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }
.sidebar-setup { border-bottom: 1px solid var(--border); }
.sidebar-code-row code {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--ink);
  font-size: 13px; letter-spacing: .14em; padding: 5px 9px; box-shadow: var(--shadow-sm);
}
.sidebar-copy, .rep-copy-login, .rep-show-pin {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary);
  font-size: 12px; font-weight: 500; padding: 5px 10px;
}
.sidebar-copy:hover, .rep-copy-login:hover, .rep-show-pin:hover { color: var(--ink); border-color: var(--line-strong); }
.btn-logout {
  border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
  font-size: 13px; font-weight: 500; padding: 8px 10px;
}
.btn-logout:hover { background: var(--bg-card); color: var(--ink); border-color: var(--line-strong); }
a.sidebar-download { color: var(--ink); }
a.sidebar-download:hover { background: var(--emerald-tint); border-color: rgba(16, 185, 129, 0.4); color: var(--emerald-ink); }
.user-info { margin-bottom: 8px; }
.user-name { font-size: 14px; color: var(--ink); }
.user-role { font-size: 12px; color: var(--text-muted); }
.sidebar-help { font-size: 12px; color: var(--text-muted); }
.sidebar-help:hover { color: var(--ink); }

.main-content { margin-left: 248px; padding: 28px 40px 72px; background: transparent; }
.main-content > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.page-header { margin: 8px 0 24px; gap: 12px; }
.page-header h1 {
  font-family: var(--display); font-weight: 300; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink);
  background: none; -webkit-background-clip: initial; background-clip: initial; -webkit-text-fill-color: currentColor;
}
.company-badge {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary); box-shadow: var(--shadow-sm);
}
.company-badge::before { background: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-tint); width: 6px; height: 6px; }
.header-actions { gap: 8px; }

/* ---------- cards, stats, tables ---------- */
.section-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 24px; margin-bottom: 20px;
}
.section-card::before, .stat-card::before, .stat-icon::after, .onboarding-card::before { display: none; }
.section-header { margin-bottom: 16px; gap: 12px; }
.section-header h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); padding-left: 0; }
.section-header h2::before { display: none; }
.info-text, .table-hint { color: var(--text-secondary); font-size: 13px; }
.stats-grid { gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 18px 20px; gap: 14px; transform: none;
}
.stat-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }
.stat-card.highlight { background: var(--bg-card); border-color: var(--border); }
.stat-card.highlight .stat-value { color: var(--emerald-ink); }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-secondary); color: var(--text-secondary); box-shadow: none; }
.stat-icon svg { width: 18px; height: 18px; }
.stat-icon.blue { background: #EEF2FF; color: #4338CA; }
.stat-icon.green { background: var(--emerald-tint); color: var(--emerald-ink); }
.stat-icon.teal { background: var(--emerald-tint); color: var(--emerald-ink); }
.stat-icon.purple { background: #F3EEFF; color: #6D28D9; }
.stat-value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; background: none; -webkit-text-fill-color: currentColor; }
.stat-label { font-size: 13px; color: var(--text-secondary); text-transform: none; letter-spacing: 0; }
.playbook-stats-grid { gap: 12px; }
.playbook-stat { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.playbook-stat.highlight { background: var(--emerald-tint); border-color: rgba(16, 185, 129, 0.25); }
.playbook-stat-value { font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.playbook-stat.highlight .playbook-stat-value { color: var(--emerald-ink); }
.playbook-stat-label { color: var(--text-secondary); font-size: 13px; text-transform: none; letter-spacing: 0; }

.data-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.data-table th {
  background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 500; letter-spacing: .01em;
  text-transform: none; padding: 0 12px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap;
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--border-subtle); color: var(--text-primary); font-size: 14px; background: transparent; }
.data-table tbody tr { background: transparent; }
.data-table tbody tr:hover { background: var(--bg-primary); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong, .data-table td b { font-weight: 600; color: var(--ink); }
.role-badge, .status-badge {
  border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none;
  border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-secondary); box-shadow: none;
}
.role-badge.owner { background: var(--ink); color: #fff; border-color: var(--ink); }
.role-badge.admin { background: #F3EEFF; color: #6D28D9; border-color: transparent; }
.status-badge.active { background: var(--emerald-tint); color: var(--emerald-ink); border-color: transparent; }
.status-badge.warning { background: #FFF7ED; color: var(--warning); border-color: transparent; }
.status-badge.inactive { background: var(--bg-secondary); color: var(--text-muted); border-color: transparent; }
.status-badge::before { width: 6px; height: 6px; }
.empty-state { color: var(--text-muted); font-size: 14px; padding: 32px 16px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--bg-primary); }
.coaching-mode-select { background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); padding: 5px 8px; }

/* ---------- guides and the first-run checklist ---------- */
.tab-guide { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 18px 20px; }
.tab-guide-header h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.tab-guide-header svg { color: var(--emerald-ink); }
.guide-num { background: var(--bg-secondary); color: var(--ink); border: 0; border-radius: 999px; font-weight: 600; }
.guide-text { color: var(--text-secondary); font-size: 13px; }
.guide-text strong { color: var(--ink); }
.tab-guide-footer { background: var(--bg-primary); border: 0; border-top: 1px solid var(--border); color: var(--text-secondary); border-radius: 0 0 12px 12px; }
.tab-guide-dismiss { color: var(--text-muted); }
.tab-guide-dismiss:hover { color: var(--ink); }

.onboarding-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 20px 22px; margin-bottom: 20px;
}
.onboarding-title h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.onboarding-title svg { color: var(--emerald-ink); }
.onboarding-progress .progress-bar, .progress-bar { background: var(--bg-secondary); height: 6px; border-radius: 999px; overflow: hidden; }
.progress-fill { background: var(--emerald); border-radius: 999px; box-shadow: none; }
.progress-text { color: var(--text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.onboarding-steps { gap: 0; }
.onboarding-step {
  background: transparent; border: 0; border-top: 1px solid var(--border-subtle); border-radius: 0; padding: 12px 0;
}
.onboarding-step:first-child { border-top: 0; }
.onboarding-step:hover { background: transparent; border-color: var(--border-subtle); transform: none; }
.step-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.step-desc { font-size: 13px; color: var(--text-secondary); }
.step-checkbox { border: 1.5px solid var(--line-strong); background: var(--bg-card); }
.onboarding-step.completed { padding: 8px 0; opacity: 1; background: transparent; }
.onboarding-step.completed .step-title { text-decoration: none; color: var(--text-muted); font-weight: 400; }
.onboarding-step.completed .step-desc { display: none; }
.onboarding-step.completed .step-checkbox { background: var(--emerald); border-color: var(--emerald); box-shadow: none; }
.step-action, .step-actions .step-action { border-radius: 8px; }

/* ---------- playbook ---------- */
.playbook-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 18px 20px; transition: border-color .15s ease;
}
.playbook-card:hover { border-color: var(--line-strong); transform: none; box-shadow: var(--shadow-sm); }
.playbook-card.inactive { opacity: .6; }
.playbook-category {
  background: var(--bg-secondary); color: var(--text-secondary); border: 0; border-radius: 999px; padding: 3px 9px;
  font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0;
}
.playbook-status.active { color: var(--emerald-ink); }
.playbook-status.inactive { color: var(--text-muted); }
.trigger-label { color: var(--text-muted); font-size: 12px; text-transform: none; letter-spacing: 0; }
.trigger-phrase { background: var(--bg-primary); border: 1px solid var(--border); color: var(--ink); border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.trigger-type { color: var(--text-muted); background: transparent; border: 0; font-size: 12px; }
.playbook-response { color: var(--ink); font-size: 15px; line-height: 1.55; }
.playbook-stats-row-mini { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.playbook-actions button { border-radius: 6px; font-size: 13px; font-weight: 500; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); }
.playbook-actions button:hover { color: var(--ink); border-color: var(--line-strong); background: var(--bg-card); }
.playbook-actions .btn-delete:hover { color: var(--danger); border-color: rgba(220, 38, 38, 0.35); background: #FEF2F2; }
.playbook-filters select { background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); }
.shorter-panel { border-top: 1px solid var(--border-subtle); }
.trigger-too-long { color: var(--warning); font-size: 13px; }

.unanswered {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 18px 20px 6px; position: relative;
}
.unanswered::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: #F59E0B; }
.unanswered-head h2 { font-size: 15px; font-weight: 600; color: var(--ink); }
.unanswered-sub { color: var(--text-secondary); font-size: 13px; }
.unanswered-row { border-top: 1px solid var(--border-subtle); padding: 12px 0; }
.unanswered-words { color: var(--ink); font-size: 14px; }
.unanswered-count { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ---------- billing ---------- */
.plan-name { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.plan-badge { background: var(--emerald-tint); color: var(--emerald-ink); border: 0; border-radius: 999px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.plan-price { color: var(--text-secondary); }
.plan-total { font-family: var(--display); font-weight: 300; color: var(--ink); letter-spacing: -0.02em; }
.usage-bar { background: var(--bg-secondary); border-radius: 999px; height: 6px; overflow: hidden; }
.usage-fill { background: var(--emerald); border-radius: 999px; box-shadow: none; }
.billing-row { border-bottom: 1px solid var(--border-subtle); }
.billing-label { color: var(--text-secondary); }
.billing-value { color: var(--ink); font-weight: 500; }

/* ---------- modals and toasts ---------- */
.modal-overlay, .modal > .modal-overlay { background: rgba(15, 20, 17, 0.42); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.modal-content {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.modal-header { border-bottom: 1px solid var(--border); padding: 18px 22px; background: transparent; }
.modal-header h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--text-muted); font-size: 22px; line-height: 1; }
.modal-close:hover { background: var(--bg-hover); color: var(--ink); border-color: transparent; transform: none; }
.modal-body { padding: 20px 22px; }
.modal-footer { border-top: 1px solid var(--border); padding: 14px 22px; background: var(--bg-primary); border-radius: 0 0 16px 16px; gap: 8px; }
.modal-footer .btn-primary, .modal-footer .btn-secondary { width: auto; }
.pricing-toast {
  background: var(--ink) !important; color: #fff !important; font-weight: 500 !important; font-size: 14px !important;
  padding: 12px 18px !important; border-radius: 10px !important; box-shadow: var(--shadow-lg) !important;
  top: auto !important; bottom: 28px !important; max-width: calc(100vw - 32px); text-align: center;
}
.toggle-switch { background: var(--line-strong); }

/* ---------- the status bar: on/off, test it, two settings ---------- */
.coaching-status {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 0; margin-bottom: 24px; overflow: hidden;
}
.cs-top { padding: 14px 18px; gap: 12px; flex-wrap: nowrap; }
.cs-dot { width: 8px; height: 8px; box-shadow: 0 0 0 4px var(--bg-secondary); background: var(--text-muted); }
.coaching-status[data-state="live"] .cs-dot { background: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-tint); }
.coaching-status[data-state="paused"] .cs-dot, .coaching-status[data-state="blocked"] .cs-dot { background: #F59E0B; box-shadow: 0 0 0 4px #FEF3C7; }
.coaching-status[data-state="not_live"] .cs-dot { background: var(--danger); box-shadow: 0 0 0 4px #FEE2E2; }
.coaching-status[data-state="blocked"] { border-color: #FCD34D; }
.cs-words { flex: 1 1 auto; min-width: 0; }
.cs-headline { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.cs-detail { font-size: 13px; color: var(--text-secondary); margin-top: 1px; }
.cs-detail-blocked { color: var(--warning); font-weight: 500; }
.cs-actions { gap: 8px; flex-wrap: nowrap; flex-shrink: 0; }
.cs-btn {
  height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap;
  background: var(--bg-card); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
}
.cs-btn:hover { background: var(--bg-card); border-color: var(--text-muted); }
.cs-pause { color: var(--danger); border-color: rgba(220, 38, 38, 0.28); }
.cs-pause:hover { background: #FEF2F2; color: var(--danger); border-color: rgba(220, 38, 38, 0.45); }
.cs-resume { background: var(--ink); color: #fff; border-color: var(--ink); }
.cs-resume:hover { background: #262825; color: #fff; border-color: #262825; }
.cs-try { margin: 0; padding: 12px 18px; gap: 8px; border-top: 1px solid var(--border-subtle); background: var(--bg-primary); align-items: center; }
.cs-try-label-inline { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.cs-try input {
  height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg-card);
  color: var(--ink); font-size: 14px; box-shadow: var(--shadow-sm);
}
.cs-try input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.cs-try-btn { background: var(--ink); color: #fff; border-color: var(--ink); height: 36px; }
.cs-try-btn:hover { background: #262825; border-color: #262825; }
.cs-try-out { margin: 0; padding: 0 18px 14px; background: var(--bg-primary); }
.cs-try-label { color: var(--text-muted); font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.cs-try-text {
  margin-top: 6px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--emerald);
  background: var(--bg-card); border-radius: 8px; color: var(--ink); font-size: 15px; line-height: 1.5;
}
.cs-try-source { margin-top: 6px; color: var(--text-muted); font-size: 12px; }
.cs-options { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border-subtle); }
.cs-only { margin: 0; padding: 12px 18px; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.cs-options .cs-only + .cs-only { border-left: 1px solid var(--border-subtle); }
.cs-only strong { color: var(--ink); font-weight: 600; display: block; }
.cs-only-status:empty { display: none; }
.cs-only-status { display: block; color: var(--warning); margin-top: 2px; }
.cs-only br { display: none; }
.cs-only input[type="checkbox"], .switch-input {
  appearance: none; -webkit-appearance: none; flex: none; width: 34px; height: 20px; margin: 1px 0 0; border-radius: 999px;
  background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s ease;
}
.cs-only input[type="checkbox"]::after, .switch-input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 20, 17, 0.25); transition: transform .15s ease;
}
.cs-only input[type="checkbox"]:checked, .switch-input:checked { background: var(--emerald); }
.cs-only input[type="checkbox"]:checked::after, .switch-input:checked::after { transform: translateX(14px); }
.cs-only input[type="checkbox"]:disabled { opacity: .5; }

/* ---------- Monday summary email (Settings) ---------- */
.weekly-email-card .weekly-row { display: flex; align-items: flex-start; gap: 12px; }
.weekly-email-card .weekly-row strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.weekly-email-card .weekly-row span { color: var(--text-secondary); font-size: 13px; }
.weekly-email-card .weekly-recipients { display: flex; gap: 8px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.weekly-email-card .weekly-recipients input {
  flex: 1 1 260px; min-width: 0; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--bg-card); color: var(--ink); font-size: 14px; box-shadow: var(--shadow-sm);
}
.weekly-email-card .weekly-recipients input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); outline: none; }
.weekly-email-card .weekly-hint { margin-top: 8px; color: var(--text-muted); font-size: 12px; }

/* ---------- inline notices ---------- */
.needs-update-bar { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px; color: #92400E; }
.offline-indicator { border-radius: 999px; }

/* ---------- mobile ---------- */
.mobile-header { background: rgba(250, 250, 248, 0.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); box-shadow: none; height: 56px; border-bottom: 1px solid var(--border); }
.mobile-header::after { display: none; }
.mobile-menu-toggle { width: 40px; height: 40px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); padding: 11px 9px; gap: 4px; }
.mobile-menu-toggle span { width: 20px; height: 1.5px; border-radius: 2px; }
.sidebar-overlay { background: rgba(15, 20, 17, 0.35); }
.mobile-bottom-nav { background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-top: 1px solid var(--border); box-shadow: none; }
.bottom-nav-item { color: var(--text-muted); }
.bottom-nav-item.active { color: var(--ink); }
.bottom-nav-item.active::before, .bottom-nav-item::after { background: var(--emerald); box-shadow: none; }
.mobile-seat-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); color: var(--ink); }

@media (max-width: 1024px) {
  .main-content { padding: 24px 28px 72px; }
}
@media (max-width: 768px) {
  .main-content { margin-left: 0; padding: 72px 16px 96px; }
  .main-content > * { max-width: none; }
  .sidebar { box-shadow: var(--shadow-lg); }
  .page-header h1 { font-size: 28px; }
  .section-card { padding: 18px 16px; border-radius: 12px; }
  .stat-card { padding: 14px 16px; }
  .cs-top { flex-wrap: wrap; }
  .cs-actions { width: 100%; }
  .cs-actions .cs-btn { flex: 1 1 auto; }
  .cs-try { flex-wrap: wrap; }
  .cs-try-label-inline { width: 100%; }
  .cs-try input { flex: 1 1 160px; }
  .cs-options { grid-template-columns: 1fr; }
  .cs-options .cs-only + .cs-only { border-left: 0; border-top: 1px solid var(--border-subtle); }
  .modal-content { border-radius: 14px; }
  .data-table { font-size: 13px; }
}

/* ---------- refinement, pass two ---------- */
.onboarding-progress .progress-fill { background: var(--emerald); box-shadow: none; }
.page-header .btn-primary, .header-actions .btn-primary, .section-header .btn-primary,
.unanswered-actions button, .unanswered-actions .btn-primary, .empty-state .btn-primary, .tab-guide .btn-primary { width: auto; }
.page-header > div p { margin-top: 6px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card.mini { display: flex; align-items: baseline; gap: 10px; text-align: left; border-radius: 12px; padding: 16px 18px; }
.stat-card.mini .stat-value { font-size: 24px; font-weight: 600; color: var(--ink); margin: 0; display: inline; }
.stat-card.mini .stat-label { font-size: 13px; color: var(--text-secondary); text-transform: none; letter-spacing: 0; }
.playbook-stats-row { gap: 16px; }
.plan-total { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--ink); }
.plan-price { font-size: 15px; }
.main-content a:not([class]), .modal a:not([class]) { color: var(--emerald-ink); text-decoration: none; font-weight: 500; }
.main-content a:not([class]):hover, .modal a:not([class]):hover { color: var(--ink); }
.modal.show { background: rgba(15, 20, 17, 0.38); }
.modal > .modal-overlay { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (min-width: 769px) {
  #team-table td { white-space: nowrap; vertical-align: middle; }
  #team-table td:nth-child(5) { white-space: normal; min-width: 150px; }
  #team-table .action-btn-group { flex-wrap: nowrap; gap: 4px; }
  #team-table td code { font-size: 12px; }
}
@media (max-width: 768px) {
  #floor-day-table, #audit-log-table, .fired-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* Seats badge lives in the phone top bar, not over the page */
.mobile-seat-widget { top: 12px; left: 66px; right: auto; z-index: 1002; }
.seat-widget-inner { height: 32px; padding: 0 10px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border) !important; box-shadow: none; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.seat-widget-icon { font-size: 12px; }
@media (min-width: 769px) {
  #team-table th, #team-table td { padding-left: 8px; padding-right: 8px; }
  #team-table td:nth-child(4), #team-table td:nth-child(10) { white-space: normal; }
  #team-table td:nth-child(4) .rep-copy-login, #team-table td:nth-child(4) .rep-show-pin { margin-top: 4px; }
  #team-table .coaching-mode-select { max-width: 132px; }
}
@media (min-width: 769px) {
  #team-table td:nth-child(3) code { display: inline-block; max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
  #team-table td:nth-child(5) { word-break: break-all; min-width: 140px; max-width: 170px; }
  #team-table .action-btn-group .btn-icon { width: 28px; height: 28px; }
  #team-table .coaching-mode-select { max-width: 124px; }
  #team-table th:last-child, #team-table td:last-child { position: sticky; right: 0; background: var(--bg-card); box-shadow: -10px 0 10px -10px rgba(15, 20, 17, 0.18); }
  #team-table tbody tr:hover td:last-child { background: var(--bg-primary); }
}
#team-table .rep-copy-login, #team-table .rep-show-pin { white-space: nowrap; }
.btn-icon.warn, .btn-icon.danger, .btn-icon.success { background: var(--bg-card); border-color: var(--border); }
.btn-icon.warn svg { stroke: var(--warning); }
.btn-icon.danger svg { stroke: var(--danger); }
.btn-icon.success svg { stroke: var(--emerald-ink); }
.btn-icon.warn:hover { background: #FFF7ED; border-color: rgba(217, 119, 6, 0.35); }
