/* FORWRD Admin — App-matched design system (no brutalism) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Mirror constants/Colors.ts */
  --primary: #006FFD;
  --primary-secondary: #2897FF;
  --primary-tertiary: #6FBAFF;
  --primary-light: #B4DBFF;
  --primary-lighter: #D6E7FF;
  --primary-lightest: #EAF2FF;

  --bg: #F8F9FE;
  --surface: #FFFFFF;
  --text: #1F2024;
  --text-secondary: #2F3036;
  --text-muted: #71727A;
  --border: #E8E9F1;
  --border-secondary: #D4D6DD;

  --success: #02BA46;
  --success-bg: #E7F4E8;
  --danger: #ED3241;
  --danger-bg: #FFE2E5;
  --warning: #FFA726;

  --sidebar-w: 268px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(31, 32, 36, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 111, 253, 0.1);
  --transition: 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body.admin-v2 {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Phase switcher */
.phase-switcher {
  display: flex;
  gap: 4px;
  padding: 6px;
  margin: 0 14px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.phase-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
}

.phase-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.phase-btn.active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Sidebar — soft brand blue like app headers */
body.admin-v2 .sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #006FFD 0%, #0056CC 100%);
  border-right: none;
  box-shadow: 4px 0 24px rgba(0, 111, 253, 0.18);
}

body.admin-v2 .sidebar::before {
  content: none;
}

body.admin-v2 .sidebar-header {
  padding: 28px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body.admin-v2 .sidebar-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
}

body.admin-v2 .sidebar-header p {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.85;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

body.admin-v2 .nav-section-label {
  padding: 16px 20px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

body.admin-v2 .nav-item {
  margin: 2px 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border-left: none !important;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

body.admin-v2 .nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

body.admin-v2 .nav-item.active {
  background: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  border-left: none !important;
}

body.admin-v2 .sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.admin-v2 .admin-info {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
}

body.admin-v2 .logout-btn-sidebar {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

body.admin-v2 .logout-btn-sidebar:hover {
  background: #fff;
  color: var(--primary);
}

body.admin-v2 .main-content {
  margin-left: var(--sidebar-w);
  background: var(--bg);
  min-height: 100vh;
}

body.admin-v2 .top-bar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}

body.admin-v2 .top-bar h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

body.admin-v2 .menu-toggle {
  background: var(--primary-lightest);
  border: none;
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

body.admin-v2 .content-area {
  padding: 28px;
  animation: fadeInUp 0.35s ease;
}

/* Hub hero — app blue, not purple neon */
.hub-hero {
  position: relative;
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #006FFD 0%, #2897FF 55%, #6FBAFF 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.hub-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 65%);
  pointer-events: none;
}

.hub-hero h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  position: relative;
}

.hub-hero p {
  opacity: 0.92;
  font-size: 15px;
  max-width: 560px;
  line-height: 1.55;
  position: relative;
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
}

.section-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 28px 0 12px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.hub-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeInUp 0.4s ease both;
}

.hub-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hub-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.hub-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.hub-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.hub-card-arrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* Stats */
.live-stats,
.activity-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.live-stat,
.activity-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow);
}

.live-stat-icon { font-size: 18px; margin-bottom: 8px; }
.live-stat-value,
.activity-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.live-stat-label,
.activity-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}
.activity-stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.activity-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.activity-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.activity-panel-header h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.activity-panel-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.period-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.period-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-secondary);
}
.period-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.period-calendar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.period-calendar input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}
.apply-btn {
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.period-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.activity-feed {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  max-height: 280px;
  overflow: auto;
}
.activity-feed-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px 0;
}

/* Forms / tables polish */
body.admin-v2 input,
body.admin-v2 select,
body.admin-v2 textarea {
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid var(--border);
}

body.admin-v2 button:not(.phase-btn):not(.period-tab):not(.logout-btn-sidebar):not(.menu-toggle) {
  font-family: inherit;
}

/* Login page */
body.admin-login {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 111, 253, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(40, 151, 255, 0.14), transparent 45%),
    var(--bg);
  font-family: var(--font);
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 111, 253, 0.12);
  overflow: hidden;
}

.admin-login-head {
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, #006FFD, #2897FF);
  color: #fff;
}

.admin-login-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.admin-login-head p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
  font-weight: 500;
}

.admin-login-body { padding: 28px; }

.admin-login-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 6px;
}

.admin-login-body input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 16px;
  box-sizing: border-box;
  font-family: inherit;
}

.admin-login-body input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 111, 253, 0.15);
}

.admin-login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(0, 111, 253, 0.28);
}

.admin-login-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.admin-login-error {
  display: none;
  background: var(--danger-bg);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.admin-login-error.show { display: block; }

.admin-login-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.admin-login-pills span {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--primary-lightest);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 900px) {
  body.admin-v2 .sidebar { transform: translateX(-100%); }
  body.admin-v2 .sidebar.collapsed,
  body.admin-v2 .sidebar.open { transform: translateX(0); }
  body.admin-v2 .main-content { margin-left: 0; }
}

/* ── Analytics / Hub — product-grade surface ── */
.ax-page { max-width: 1120px; }

.ax-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 20px;
  margin-bottom: 28px;
  align-items: stretch;
}

.ax-hero-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ax-hero-main::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #006FFD, #2897FF);
}

.ax-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.ax-hero-main h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.2;
}

.ax-hero-main p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 520px;
}

.ax-hero-side {
  background: linear-gradient(160deg, #006FFD 0%, #0056CC 100%);
  border-radius: 18px;
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.ax-hero-side h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  opacity: 0.95;
}

.ax-hero-side p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.88;
}

.ax-team {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ax-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 10px;
}

.ax-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ax-team-row strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.ax-team-row span {
  font-size: 11px;
  opacity: 0.85;
}

.ax-lenses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.ax-lens {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.ax-lens:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ax-lens-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.ax-lens.corridor .ax-lens-tag {
  background: var(--primary-lightest);
  color: var(--primary);
}

.ax-lens.india .ax-lens-tag {
  background: #EEFBF3;
  color: #0A7A32;
}

.ax-lens h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
}

.ax-lens > p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 18px;
  min-height: 40px;
}

.ax-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.ax-metric {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border);
}

.ax-metric strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.ax-metric span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ax-live {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.ax-section {
  margin-bottom: 26px;
}

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

.ax-section-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ax-section-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.ax-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ax-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 128px;
}

.ax-link:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ax-link-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-lightest);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ax-link h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.ax-link p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}

.ax-link-go {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.ax-role-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.ax-role-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.ax-role-card .who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ax-role-card .who strong {
  font-size: 14px;
  display: block;
}

.ax-role-card .who em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ax-role-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .ax-hero,
  .ax-lenses,
  .ax-links,
  .ax-role-strip {
    grid-template-columns: 1fr;
  }
  .ax-metrics { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── App Control page ── */
.ac-page { max-width: 1180px; }

.ac-hero {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 20px;
  margin-bottom: 24px;
}

.ac-hero-copy {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ac-hero-copy::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #006FFD, #2897FF);
}

.ac-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.ac-hero-copy h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.ac-hero-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
}

.ac-hero-meta {
  background: linear-gradient(160deg, #006FFD, #0056CC);
  border-radius: 18px;
  padding: 22px;
  color: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.ac-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.ac-meta-row i { width: 16px; text-align: center; opacity: 0.95; }

.ac-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.ac-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.ac-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-lightest);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ac-kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ac-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.ac-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.ac-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ac-panel-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.ac-panel-head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 480px;
}

.ac-period-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.ac-period-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.ac-pstat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.ac-pstat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ac-pstat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.ac-pstat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ac-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.ac-feed-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ac-page .activity-feed {
  max-height: 340px;
  border-top: none;
  padding-top: 0;
  overflow: auto;
}

.ac-page .activity-feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.ac-page .activity-feed-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.ac-page .activity-feed-details {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.ac-page .activity-feed-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.ac-page .activity-feed-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-lightest);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  font-size: 14px;
}

.ac-feed-admin {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1F2024;
  color: #fff;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.ac-feed-phone { opacity: 0.7; }

.ac-section { margin-bottom: 28px; }

.ac-section-head {
  margin-bottom: 12px;
}

.ac-section-head h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ac-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ac-nav-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 148px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ac-nav-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ac-nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-lightest);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.ac-nav-card h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.ac-nav-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  flex: 1;
}

.ac-nav-go {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.admin-v2 .nav-icon {
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-right: 10px;
  opacity: 0.95;
}

@media (max-width: 1100px) {
  .ac-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .ac-period-stats { grid-template-columns: repeat(4, 1fr); }
  .ac-nav-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .ac-hero { grid-template-columns: 1fr; }
  .ac-kpi-grid,
  .ac-period-stats,
  .ac-nav-grid { grid-template-columns: 1fr 1fr; }
  .ac-period-wrap { align-items: stretch; }
}

/* ── Activity page ── */
.aa-page { max-width: 1180px; }

.aa-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.aa-hero-copy {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.aa-hero-copy::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #006FFD, #2897FF);
}

.aa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.aa-hero-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.25;
}

.aa-hero-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.aa-hero-actions {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.aa-hero-actions .period-calendar { margin-top: 0; }

.aa-refresh {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.aa-refresh:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.aa-period-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-lightest);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
}

.aa-kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.aa-kpi {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.aa-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-lightest);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.aa-kpi-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.aa-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 3px;
}

.aa-kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.aa-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.aa-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.aa-panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.aa-panel-head h3 i { color: var(--primary); font-size: 14px; }

.aa-chart-wrap { position: relative; min-height: 180px; }

.aa-feed-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aa-feed-controls select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  font-family: inherit;
}

.aa-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.aa-feed {
  max-height: 520px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.aa-page .activity-feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.aa-page .activity-feed-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-lightest);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  font-size: 14px;
}

.aa-page .activity-feed-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.aa-page .activity-feed-details {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.aa-page .activity-feed-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Shared board table scroll — always allow horizontal scroll so Actions aren't cut */
.admin-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.admin-v2 .content-area,
.admin-v2 .page-container {
  max-width: 100%;
  min-width: 0;
}

.pg-intro {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.pg-intro::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #006FFD, #2897FF);
}

.pg-intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.pg-intro h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pg-intro p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .aa-kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .aa-hero { grid-template-columns: 1fr; }
  .aa-kpi-grid { grid-template-columns: 1fr 1fr; }
}




/* ── Board pages (Live posts / Bids / Views) ── */
.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.board-field { display: flex; flex-direction: column; gap: 4px; min-width: 128px; }
.board-field label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}
.board-field select, .board-field input { min-height: 38px; font-family: inherit; }
.board-field.grow { flex: 1; min-width: 180px; }
.board-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.board-status { font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 0 0 10px; }
.board-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.board-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text);
}
.board-chip strong { color: var(--primary); }
.board-chip.warn { background: #FFF8E8; border-color: #FFE2A8; color: #9A6700; }
.board-chip.ok { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.board-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; color: var(--text); white-space: nowrap;
}
.board-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.board-btn.danger { background: #ED3241; color: #fff; border-color: #ED3241; }
.board-table th, .board-table td { white-space: nowrap; vertical-align: middle; }
.board-table td.route-cell {
  white-space: normal; min-width: 160px; max-width: 240px; line-height: 1.35;
}
.board-table .id-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--text-muted);
}
.board-table .user-cell .name { font-weight: 600; color: var(--text); font-size: 13px; }
.board-table .user-cell .phone { font-size: 11px; color: var(--text-muted); }
.board-table .actions-cell {
  position: sticky; right: 0; background: #fff;
  box-shadow: -6px 0 8px rgba(31,32,36,0.04);
}
.board-table thead th.actions-cell { background: var(--bg); }
.caller-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.caller-card:last-child { border-bottom: none; }
.caller-rank {
  width: 28px; height: 28px; border-radius: 8px; background: var(--primary-lightest);
  color: var(--primary); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.caller-meta { flex: 1; min-width: 0; }
.caller-meta .name { font-weight: 700; color: var(--text); font-size: 13px; }
.caller-meta .sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.caller-count { font-weight: 800; color: var(--primary); font-size: 14px; white-space: nowrap; }
.caller-link { font-size: 12px; font-weight: 700; color: var(--primary); text-decoration: none; }
.sched-past { color: #B42318; font-weight: 700; }
.sched-today { color: #B54708; font-weight: 700; }
.sched-soon { color: #067647; font-weight: 600; }

.source-cell { min-width: 110px; }
.source-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.source-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
}
.source-admin { background: #F4EBFF; color: #6941C6; border: 1px solid #D6BBFB; }
.source-user { background: #EAF2FF; color: #175CD3; border: 1px solid #B2DDFF; }
.source-engaged { background: #ECFDF3; color: #067647; border: 1px solid #ABEFC6; }
.source-cold { background: #FFF8E8; color: #B54708; border: 1px solid #FFE2A8; }
.source-done { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.source-hidden { background: #F2F4F7; color: #475467; border: 1px solid #D0D5DD; }

/* Board Live posts — page chrome */
.board-page { max-width: 100%; }
.board-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.board-hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #006FFD, #2897FF);
}
.board-hero-copy { min-width: 0; padding-left: 8px; }
.board-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.board-hero-copy h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.board-hero-copy p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 520px;
}
.board-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.board-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.board-tab:hover { color: var(--primary); background: rgba(0, 111, 253, 0.06); }
.board-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(31, 32, 36, 0.08);
}
.board-tab .tab-count {
  background: var(--primary-lightest);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.board-tab.active .tab-count {
  background: rgba(0, 111, 253, 0.14);
}

.board-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.board-kpi {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.board-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary-lightest);
  color: var(--primary);
  font-size: 14px;
}
.board-kpi.warn .board-kpi-icon { background: #FFF8E8; color: #B54708; }
.board-kpi.ok .board-kpi-icon { background: #ECFDF3; color: #067647; }
.board-kpi.admin .board-kpi-icon { background: #F4EBFF; color: #6941C6; }
.board-kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}
.board-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.board-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}
.board-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #FBFBFE);
}
.board-panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-panel-head h3 i { color: var(--primary); }
.board-panel-body { padding: 0; }
.board-panel .board-toolbar {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}
.board-panel .admin-table-scroll { border-radius: 0; }
.board-panel .orders-table,
.board-panel .board-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  background: #fff;
}
.board-panel .board-table th {
  background: var(--bg);
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}
.board-panel .board-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F0F1F5;
  font-size: 13px;
  color: var(--text);
}
.board-panel .board-table tbody tr:hover { background: #F8FAFF; }
.board-panel .board-table tbody tr:last-child td { border-bottom: none; }
.type-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.type-load { background: #EAF2FF; color: #175CD3; }
.type-fleet { background: #ECFDF3; color: #067647; }
.metric-zero { color: var(--text-muted); font-weight: 500; }
.metric-hot { color: var(--primary); font-weight: 800; }

.board-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.board-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 111, 253, 0.15);
}

@media (max-width: 1100px) {
  .board-hero { grid-template-columns: 1fr; }
  .board-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .board-tabs { width: 100%; overflow-x: auto; }
  .board-kpi-grid { grid-template-columns: 1fr 1fr; }
}

/* Order detail modal */
.od-modal.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  overflow-y: auto;
  padding: 24px 16px;
}
.od-modal.modal-overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.od-modal .modal-content {
  background: var(--bg);
  border-radius: 18px;
  width: 100%;
  max-width: 860px;
  margin: 12px auto 40px;
  max-height: none;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255,255,255,0.5);
  animation: fadeInUp 0.25s ease;
}
.od-modal .modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.od-modal-title-wrap { min-width: 0; }
.od-modal .modal-header h2 {
  color: var(--text);
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.od-modal-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.od-modal .modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--transition);
}
.od-modal .modal-close:hover {
  color: var(--text);
  border-color: var(--border-secondary);
  background: #fff;
}
.od-modal .modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(90vh - 72px);
  overflow-y: auto;
}
.od-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.od-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.od-panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.od-panel-head h3 i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-lightest);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.od-eng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.od-eng-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.od-eng-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.od-eng-icon.views { background: #EAF2FF; color: #175CD3; }
.od-eng-icon.calls { background: #ECFDF3; color: #067647; }
.od-eng-icon.rates { background: #FFF8E8; color: #B54708; }
.od-eng-val {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.od-eng-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.od-subhead {
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.od-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 12px;
}
.od-table th, .od-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.od-table th {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.od-table tbody tr:last-child td { border-bottom: none; }
.od-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 18px 12px !important;
  font-size: 13px;
}
.od-note {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}
.od-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px 16px;
}
.od-item { min-width: 0; }
.od-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.od-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.4;
}
.od-value .empty,
.od-value.empty {
  color: #98A2B3;
  font-style: normal;
  font-weight: 500;
}
.od-value .phone {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.od-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
}
.od-comment {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.od-route-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: linear-gradient(90deg, #EAF2FF, #F8F9FE);
  border: 1px solid #D6E7FF;
  border-radius: 12px;
  margin-bottom: 14px;
}
.od-route-city {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.od-route-arrow {
  color: var(--primary);
  font-size: 12px;
}
.badge-list { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-item {
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}
.status-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}
.status-active { background: #ECFDF3; color: #067647; }
.status-completed { background: #EAF2FF; color: #175CD3; }
.status-pending { background: #FFF8E8; color: #B54708; }
.bid-status {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}
.status-accepted { background: #ECFDF3; color: #067647; }
.status-rejected { background: #FFE2E5; color: #C01048; }

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

/* ── People pages (Users / Networks / Waitlist / Profile) ── */
.people-page { max-width: 100%; }
.people-banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; margin-bottom: 14px;
  background: var(--primary-lightest); border: 1px solid var(--primary-light);
  border-radius: 12px; font-size: 12px; color: var(--text-secondary); line-height: 1.45;
}
.people-banner i { color: var(--primary); margin-top: 2px; }
.people-banner code {
  font-size: 11px; background: #fff; padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--border);
}
.board-panel .users-table,
.board-panel .data-table,
.people-table {
  width: 100%; min-width: 1040px; border-collapse: collapse; background: #fff;
}
.board-panel .users-table th,
.board-panel .data-table th,
.people-table th {
  background: var(--bg); padding: 12px 14px; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.board-panel .users-table td,
.board-panel .data-table td,
.people-table td {
  padding: 12px 14px; border-bottom: 1px solid #F0F1F5; font-size: 13px;
  color: var(--text); vertical-align: middle;
}
.board-panel .users-table tbody tr:hover,
.board-panel .data-table tbody tr:hover { background: #F8FAFF; }
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; margin: 1px 2px; white-space: nowrap;
}
.badge-premium { background: #FFF8E8; color: #B54708; border: 1px solid #FFE2A8; }
.badge-verified { background: #ECFDF3; color: #067647; border: 1px solid #ABEFC6; }
.badge-free { background: #F2F4F7; color: #475467; border: 1px solid #D0D5DD; }
.people-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.people-actions .board-btn { padding: 6px 10px; }

/* Profile page */
.up-hero {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.up-hero::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #006FFD, #2897FF);
}
.up-photo {
  width: 88px; height: 88px; border-radius: 14px; overflow: hidden;
  border: 2px solid var(--primary-light); background: var(--primary-lightest);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.up-photo img { width: 100%; height: 100%; object-fit: cover; }
.up-photo .placeholder { font-size: 28px; color: var(--primary); }
.up-hero-copy { flex: 1; min-width: 180px; }
.up-hero-copy h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.up-hero-phone { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.up-eng-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 16px;
}
.up-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow);
}
.up-card-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.up-card-head h3 {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.up-card-head h3 i {
  width: 28px; height: 28px; border-radius: 8px; background: var(--primary-lightest);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.up-card .sub { margin: 0 0 12px; font-size: 12px; color: var(--text-muted); }
.up-form {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 8px 20px 20px; box-shadow: var(--shadow);
}
.up-form .form-section {
  margin: 0; padding: 22px 0; border-bottom: 1px solid var(--border);
}
.up-form .form-section:last-child { border-bottom: none; }
.up-form .form-section h3 {
  margin: 0 0 16px; font-size: 14px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.up-form .form-section h3 i {
  width: 28px; height: 28px; border-radius: 8px; background: var(--primary-lightest);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
@media (max-width: 900px) {
  .up-eng-grid { grid-template-columns: 1fr; }
}
