/* ==========================================================================
   504sites Master Command Center 2.0 - Official Brand Stylesheet
   Brand Colors:
   - #ba02ff (Electric Neon Purple)
   - #00ff19 (Electric Toxic / Lime Green)
   - #2D3748 (Dark Slate Gray)
   - #0cc    (Vibrant Cyan)
   ========================================================================== */

:root {
  /* 504sites Official Core Brand Tokens */
  --brand-purple: #ba02ff;
  --brand-green: #00ff19;
  --brand-slate: #2D3748;
  --brand-cyan: #00cccc;
  --brand-cyan-glow: #00ffff;

  /* Surfaces & Dark Contrast */
  --bg-dark: #090D15;
  --bg-surface: #101623;
  --bg-card: rgba(26, 36, 52, 0.75);
  --bg-card-hover: rgba(36, 49, 70, 0.88);
  --border-subtle: #2D3748;
  --border-green: rgba(0, 255, 25, 0.35);
  --border-purple: rgba(186, 2, 255, 0.35);
  --border-cyan: rgba(0, 204, 204, 0.35);

  --accent-rose: #FF2A5F;
  --accent-amber: #F59E0B;
  --accent-emerald: var(--brand-green);

  --text-main: #FFFFFF;
  --text-muted: #CBD5E1;
  --text-subtle: #8A99AD;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.8);
  --shadow-glow-green: 0 0 25px rgba(0, 255, 25, 0.35);
  --shadow-glow-purple: 0 0 25px rgba(186, 2, 255, 0.4);
  --shadow-glow-cyan: 0 0 25px rgba(0, 204, 204, 0.35);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  background: rgba(16, 22, 35, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--brand-green);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow-green);
  pointer-events: auto;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes slideToast {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Ambient Glow Orbs in Brand Colors */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  top: -100px;
  left: 20%;
  width: 550px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 255, 25, 0.12), transparent 70%);
}

.glow-orb-2 {
  bottom: -150px;
  right: 10%;
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, rgba(186, 2, 255, 0.14), transparent 70%);
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Top Navigation Bar */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(16, 22, 35, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 20px;
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 255, 25, 0.4));
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.05);
}

.app-subtitle {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-cyan);
  font-weight: 800;
  padding-left: 12px;
  border-left: 1px solid var(--border-subtle);
}

/* Race to 504 Topbar Widget */
.race-tracker-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 255, 25, 0.04);
  border: 1px solid var(--border-green);
  padding: 6px 16px;
  border-radius: 30px;
}

.race-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.race-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--brand-green);
}

.race-counts {
  font-size: 0.85rem;
  color: var(--text-main);
}

.race-bar-track {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.race-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan), var(--brand-purple));
  border-radius: 10px;
  transition: width 0.6s ease;
  box-shadow: 0 0 10px var(--brand-green);
}

.mrr-pill {
  background: rgba(0, 255, 25, 0.15);
  color: var(--brand-green);
  border: 1px solid var(--brand-green);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* App Shell Layout */
.app-layout {
  display: flex;
  min-height: calc(100vh - 65px);
  position: relative;
  z-index: 1;
}

/* Sidebar */
.app-sidebar {
  width: 260px;
  background: rgba(13, 19, 30, 0.95);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 12px;
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(45, 55, 72, 0.8);
}

.nav-item.active {
  background: rgba(0, 255, 25, 0.08);
  border-color: var(--border-green);
  color: var(--brand-green);
}

.nav-icon {
  font-size: 1.15rem;
}

.nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

.live-badge {
  background: rgba(0, 255, 25, 0.2);
  color: var(--brand-green);
  border: 1px solid var(--brand-green);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.nav-item.active .nav-badge:not(.live-badge) {
  background: var(--brand-green);
  color: #000;
}

/* Sidebar Footer */
.agency-status-card {
  background: rgba(45, 55, 72, 0.25);
  border: 1px solid var(--border-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--brand-green);
  font-weight: 800;
  margin-bottom: 4px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-green);
}

.plan-summary {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.safeguard-tag {
  font-size: 0.72rem;
  color: var(--brand-purple);
  font-weight: 600;
}

/* Main Content Area */
.app-main {
  flex-grow: 1;
  padding: 28px 36px;
  max-width: 1350px;
  margin: 0 auto;
  width: 100%;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

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

.view-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.view-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.view-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons in Brand Accents */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-xs { padding: 4px 8px; font-size: 0.75rem; }

/* Primary: Green to Cyan Gradient with Black Text */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-cyan) 100%);
  color: #000;
  font-weight: 800;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-green);
}

/* Stripe Button: Neon Purple to Violet Gradient */
.btn-stripe {
  background: linear-gradient(135deg, var(--brand-purple) 0%, #7928CA 100%);
  color: #FFF;
  font-weight: 700;
  border: none;
}

.btn-stripe:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-purple);
}

.btn-secondary {
  background: var(--brand-slate);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(45, 55, 72, 0.85);
  border-color: var(--brand-cyan);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.btn-block { width: 100%; }

/* 504 Milestone Mega Banner */
.milestone-hero-card {
  padding: 30px 34px;
  margin-bottom: 24px;
  border-color: var(--border-green);
  background: linear-gradient(135deg, rgba(26, 36, 52, 0.9), rgba(16, 22, 35, 0.95));
}

.milestone-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-green);
  background: rgba(0, 255, 25, 0.1);
  border: 1px solid var(--border-green);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.milestone-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.milestone-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 750px;
  margin-bottom: 24px;
}

.glow-cyan {
  color: var(--brand-cyan-glow);
  text-shadow: 0 0 15px rgba(0, 204, 204, 0.6);
}

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

.m-stat {
  background: rgba(45, 55, 72, 0.35);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.m-label {
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.m-val {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 3px 0;
}

.m-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mega-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(45, 55, 72, 0.6);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mega-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-cyan) 50%, var(--brand-purple) 100%);
  border-radius: 20px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px rgba(0, 255, 25, 0.5);
}

.milestone-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 600;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.kpi-card {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-green);
}

.kpi-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  background: rgba(45, 55, 72, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-meta { display: flex; flex-direction: column; }
.kpi-label { font-size: 0.78rem; color: var(--text-muted); }
.kpi-val { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; line-height: 1.1; margin: 2px 0; }
.kpi-delta { font-size: 0.72rem; color: var(--text-subtle); }
.kpi-delta.positive { color: var(--brand-green); font-weight: 700; }

/* ==========================================================================
   VIEW 2: MAP LEAD RADAR STYLES
   ========================================================================== */
.radar-controls-card {
  padding: 18px 24px;
}

.radar-filters-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1.6fr;
  gap: 20px;
  align-items: flex-end;
}

.radar-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(13, 19, 30, 0.8);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.legend-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-cyan);
  text-transform: uppercase;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dot-red, .dot-amber, .dot-green {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: var(--brand-purple); box-shadow: 0 0 8px var(--brand-purple); }
.dot-amber { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }
.dot-green { background: var(--brand-green); box-shadow: 0 0 8px var(--brand-green); }

.map-wrapper {
  position: relative;
  height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.radar-leaflet-map {
  width: 100%;
  height: 100%;
  background: #090D15;
}

/* Custom glowing Leaflet markers */
.custom-radar-pin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.custom-radar-pin:hover {
  transform: scale(1.3);
}

.pin-red {
  background: var(--brand-purple);
  color: #FFF;
  box-shadow: 0 0 16px var(--brand-purple);
  border: 2px solid #FFF;
}

.pin-amber {
  background: var(--accent-amber);
  color: #000;
  box-shadow: 0 0 14px var(--accent-amber);
  border: 2px solid #FFF;
}

.pin-green {
  background: var(--brand-green);
  color: #000;
  box-shadow: 0 0 14px var(--brand-green);
  border: 2px solid #FFF;
}

/* Radar Sweep Overlay Animation */
.radar-sweep-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 13, 21, 0.5);
  pointer-events: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-sweep-center {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 25, 0.4);
  position: absolute;
}

.radar-sweep-line {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  transform-origin: top left;
  background: linear-gradient(45deg, rgba(0, 255, 25, 0.5), transparent 70%);
  animation: rotateSweep 2s linear infinite;
  border-radius: 0 100% 0 0;
}

@keyframes rotateSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-scanning-badge {
  position: absolute;
  bottom: 30px;
  background: rgba(16, 22, 35, 0.95);
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: var(--shadow-glow-green);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Slide-out Lead Inspector Drawer */
.map-inspector-drawer {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 340px;
  background: rgba(16, 22, 35, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  padding: 22px;
  z-index: 1100;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 1.1rem;
  cursor: pointer;
}

.drawer-header { margin-bottom: 16px; }

.drawer-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand-purple);
  background: rgba(186, 2, 255, 0.15);
  border: 1px solid var(--border-purple);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.drawer-bname {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.drawer-url {
  font-size: 0.82rem;
  color: var(--brand-cyan);
  text-decoration: none;
}

.drawer-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  font-size: 0.82rem;
}

.d-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.d-metric-row span { color: var(--text-subtle); }

.drawer-flaw-box {
  background: rgba(45, 55, 72, 0.35);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border-left: 3px solid var(--brand-purple);
}

.drawer-flaw-box strong { font-size: 0.78rem; color: var(--text-main); display: block; margin-bottom: 2px; }
.drawer-flaw-box p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.35; }

/* ==========================================================================
   VIEW 5: OUTBOUND CAMPAIGNS STYLES
   ========================================================================== */
.campaign-cadence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cadence-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

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

.step-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 204, 204, 0.15);
  color: var(--brand-cyan);
  padding: 2px 8px;
  border-radius: 4px;
}

.timing-badge {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.cadence-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cadence-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
  flex-grow: 1;
}

.email-preview-box {
  background: rgba(9, 13, 21, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.email-preview-box code {
  display: block;
  color: var(--brand-green);
  margin-bottom: 6px;
  font-weight: 700;
}

/* ==========================================================================
   VIEW 7: 504 HIRING & SCALING ROADMAP STYLES
   ========================================================================== */
.scaling-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.stage-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.stage-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.current-stage {
  border-color: var(--border-green);
  background: rgba(0, 255, 25, 0.03);
}

.current-stage .stage-tag {
  color: var(--brand-green);
}

.goal-stage {
  border-color: var(--border-purple);
  background: rgba(186, 2, 255, 0.05);
}

.gold-tag { color: var(--brand-purple); font-weight: 900; }
.gold-mrr { color: var(--brand-purple) !important; text-shadow: 0 0 12px rgba(186, 2, 255, 0.4); }
.gold-arr { font-size: 0.8rem; color: var(--text-main); font-weight: 700; margin-bottom: 10px; }

.stage-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stage-mrr {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-green);
  margin-bottom: 8px;
}

.stage-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
  flex-grow: 1;
}

.stage-team-box {
  background: rgba(9, 13, 21, 0.8);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stage-team-box strong { color: var(--text-main); display: block; margin-bottom: 4px; }
.stage-team-box p { line-height: 1.4; }

.stage-profit {
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

/* ==========================================================================
   EXISTING CORE MODULE STYLES (CRM, AUDITOR, CONTRACT)
   ========================================================================== */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.card { padding: 24px; }
.card-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }

.tactic-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.tactic-list li { padding: 12px; background: rgba(45, 55, 72, 0.25); border-radius: var(--radius-sm); border-left: 3px solid var(--brand-green); }
.tactic-list strong { display: block; font-size: 0.92rem; margin-bottom: 4px; color: var(--text-main); }
.tactic-list p { font-size: 0.85rem; color: var(--text-muted); }
.tactic-list code { background: rgba(0, 0, 0, 0.4); padding: 2px 6px; border-radius: 4px; color: var(--brand-green); }

.mini-post-list { display: flex; flex-direction: column; gap: 10px; }
.mini-post-item { padding: 12px; background: rgba(45, 55, 72, 0.25); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 4px; }
.mini-post-platform { font-size: 0.72rem; font-weight: 800; color: var(--brand-green); text-transform: uppercase; }
.mini-post-title { font-size: 0.88rem; font-weight: 600; color: var(--text-main); }

/* Kanban CRM & Pipeline Tabs */
.pipeline-tab-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; gap: 14px; flex-wrap: wrap; }
.pipeline-tabs { display: flex; gap: 8px; }
.pipeline-tab { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle); color: var(--text-muted); padding: 7px 16px; border-radius: 20px; font-family: var(--font-heading); font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.pipeline-tab:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-main); }
.pipeline-tab.active { background: rgba(0, 255, 25, 0.12); border-color: var(--brand-green); color: var(--brand-green); box-shadow: 0 0 14px rgba(0, 255, 25, 0.25); }
.pipeline-tab-hint { font-size: 0.8rem; }

.kanban-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: start; }
.kanban-col { background: rgba(16, 22, 35, 0.8); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px; min-height: 500px; display: flex; flex-direction: column; }
.col-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
.col-title { font-family: var(--font-heading); font-size: 0.84rem; font-weight: 700; color: var(--text-muted); }
.col-count { font-size: 0.75rem; font-weight: 700; background: var(--brand-slate); padding: 2px 8px; border-radius: 10px; }
.col-cards { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }

.lead-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; gap: 8px; }
.lead-card:hover { transform: translateY(-2px); border-color: var(--brand-green); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }
.lead-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.lead-bname { font-weight: 700; font-size: 0.92rem; color: var(--text-main); word-break: break-word; }
.lead-card-actions { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.lead-action-btn { background: transparent; border: 1px solid transparent; border-radius: 4px; color: var(--text-subtle); font-size: 0.72rem; padding: 2px 5px; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; }
.lead-action-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-main); border-color: var(--border-subtle); }
.lead-action-btn.btn-delete-lead:hover { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); border-color: var(--accent-rose); }
.lead-action-btn.btn-archive-lead:hover { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border-color: var(--accent-amber); }
.lead-flaws-tag { font-size: 0.72rem; color: var(--accent-amber); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); padding: 3px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-website { font-size: 0.78rem; color: var(--brand-cyan); text-decoration: none; }
.lead-phone { font-size: 0.78rem; color: var(--text-muted); }
.lead-stage-select { background: rgba(9, 13, 21, 0.85); border: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 0.72rem; padding: 4px 6px; border-radius: 4px; margin-top: 4px; }

.archived-header-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); background: rgba(16, 22, 35, 0.95); flex-wrap: wrap; gap: 12px; }
.badge-archive-reason { font-size: 0.72rem; font-weight: 700; color: var(--text-subtle); background: rgba(45, 55, 72, 0.6); padding: 3px 8px; border-radius: 12px; display: inline-block; margin-top: 3px; }

/* Auditor View */
.audit-status-box { display: flex; align-items: center; gap: 12px; padding: 14px; background: rgba(0, 255, 25, 0.05); border: 1px solid var(--border-green); border-radius: var(--radius-md); color: var(--brand-green); font-size: 0.9rem; }
.spinner-inline { width: 18px; height: 18px; border: 2px solid var(--brand-green); border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; text-align: center; color: var(--text-subtle); }
.placeholder-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; }
.audit-result-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.result-bname { font-size: 1.2rem; font-weight: 700; }
.result-url { font-size: 0.82rem; color: var(--text-muted); }
.result-score-badge { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; background: rgba(186, 2, 255, 0.15); color: var(--brand-purple); border: 1px solid var(--border-purple); padding: 4px 12px; border-radius: 20px; }
.mini-metrics-row { display: flex; gap: 8px; flex-wrap: wrap; }
.m-pill { font-size: 0.75rem; background: var(--brand-slate); padding: 4px 10px; border-radius: 12px; color: var(--text-muted); }
.pitch-box { background: rgba(9, 13, 21, 0.85); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 12px; }
.pitch-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.pitch-textarea { width: 100%; background: transparent; border: none; color: var(--text-main); font-family: var(--font-body); font-size: 0.88rem; resize: vertical; line-height: 1.4; outline: none; }

/* Social Media Hub */
.templates-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.strip-label { font-size: 0.82rem; font-weight: 800; color: var(--brand-green); }
.queue-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.platform-filters { display: flex; gap: 6px; }
.filter-btn { background: rgba(45, 55, 72, 0.5); border: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; cursor: pointer; transition: var(--transition); }
.filter-btn.active { background: var(--brand-green); color: #000; font-weight: 800; border-color: var(--brand-green); }

.posts-list { display: flex; flex-direction: column; gap: 14px; }
.post-card { background: rgba(45, 55, 72, 0.25); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.post-meta-row { display: flex; justify-content: space-between; align-items: center; }
.post-platform-badge { font-size: 0.75rem; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.platform-google { background: rgba(0, 204, 204, 0.2); color: var(--brand-cyan); border: 1px solid var(--brand-cyan); }
.platform-linkedin { background: rgba(186, 2, 255, 0.2); color: var(--brand-purple); border: 1px solid var(--brand-purple); }
.platform-facebook { background: rgba(0, 255, 25, 0.15); color: var(--brand-green); border: 1px solid var(--brand-green); }
.platform-instagram { background: rgba(186, 2, 255, 0.25); color: #FF2A5F; border: 1px solid #FF2A5F; }
.post-date-tag { font-size: 0.78rem; color: var(--text-subtle); }
.post-headline { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; }
.post-body-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; white-space: pre-line; }
.post-actions-row { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border-subtle); padding-top: 10px; }

/* Contract View */
.safeguard-alert { background: rgba(186, 2, 255, 0.08); border: 1px solid var(--border-purple); border-radius: var(--radius-md); padding: 16px; color: var(--brand-purple); font-size: 0.85rem; line-height: 1.4; }
.safeguard-alert strong { display: block; margin-bottom: 4px; color: #FFF; }
.contract-preview-box { background: #080C14; padding: 32px; max-height: 650px; overflow-y: auto; }
.contract-doc { font-size: 0.88rem; color: #D1D5DB; line-height: 1.6; }
.doc-header h2 { font-size: 1.15rem; font-weight: 800; color: #FFF; margin-bottom: 4px; }
.doc-divider { border: 0; height: 1px; background: rgba(255, 255, 255, 0.15); margin: 16px 0; }
.contract-doc h4 { font-size: 0.92rem; color: var(--brand-green); margin-top: 16px; margin-bottom: 4px; }
.doc-signatures { display: flex; justify-content: space-between; margin-top: 36px; gap: 30px; }
.sig-col { flex: 1; }
.sig-line { border-bottom: 1px solid rgba(255, 255, 255, 0.3); margin: 30px 0 8px; }

/* Forms & Modals */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group select, .input-search { background: rgba(9, 13, 21, 0.85); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 9px 12px; color: var(--text-main); font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .input-search:focus { border-color: var(--brand-green); box-shadow: 0 0 0 2px rgba(0, 255, 25, 0.2); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.modal-dialog { width: 100%; max-width: 500px; padding: 28px; border-color: var(--border-green); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; color: var(--brand-green); }
.modal-close { background: transparent; border: none; color: var(--text-subtle); font-size: 1.2rem; cursor: pointer; }
.modal-close:hover { color: var(--text-main); }
.form-actions-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

/* ==========================================================================
   Client Directory & Retainer Management Styles
   ========================================================================== */
.client-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.client-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: rgba(0, 255, 25, 0.12);
  border-color: var(--brand-green);
  color: var(--brand-green);
  box-shadow: 0 0 14px rgba(0, 255, 25, 0.25);
}

.client-search-wrap {
  flex-grow: 1;
  max-width: 380px;
}

.client-search-wrap .search-input {
  width: 100%;
  background: rgba(9, 13, 21, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.client-search-wrap .search-input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 2px rgba(0, 255, 25, 0.2);
}

/* Data Table */
.table-card {
  padding: 0;
  overflow: hidden;
  border-color: var(--border-subtle);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table thead th {
  background: rgba(16, 22, 35, 0.95);
  color: var(--brand-cyan);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(45, 55, 72, 0.4);
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: rgba(0, 255, 25, 0.03);
}

.data-table tbody tr.row-past {
  opacity: 0.65;
  background: rgba(0, 0, 0, 0.15);
}

.data-table tbody td {
  padding: 14px 18px;
  vertical-align: middle;
}

.client-brand-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.client-name-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}

.client-url-link {
  color: var(--brand-cyan);
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.client-url-link:hover {
  text-decoration: underline;
  color: #FFF;
}

.client-contact-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.client-owner-name {
  font-weight: 700;
  color: var(--text-main);
}

.client-contact-meta {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge-status-active {
  background: rgba(0, 255, 25, 0.12);
  color: var(--brand-green);
  border: 1px solid var(--brand-green);
  box-shadow: 0 0 10px rgba(0, 255, 25, 0.2);
}

.badge-status-past {
  background: rgba(138, 153, 173, 0.12);
  color: var(--text-subtle);
  border: 1px solid rgba(138, 153, 173, 0.3);
}

.badge-safeguard {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-safeguard-active {
  background: rgba(186, 2, 255, 0.12);
  color: #D946EF;
  border: 1px solid var(--brand-purple);
}

.badge-safeguard-m2m {
  background: rgba(0, 204, 204, 0.12);
  color: var(--brand-cyan);
  border: 1px solid var(--brand-cyan);
}

.badge-safeguard-bought {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
}

.client-table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.empty-state-box {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.95rem;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .scaling-roadmap-grid { grid-template-columns: repeat(3, 1fr); }
  .campaign-cadence-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .radar-filters-grid { grid-template-columns: 1fr 1fr; }
  .kanban-board { grid-template-columns: repeat(3, 1fr); }
  .milestone-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .app-layout { flex-direction: column; }
  .app-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .grid-2col { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kanban-board { grid-template-columns: 1fr; }
  .scaling-roadmap-grid { grid-template-columns: 1fr; }
  .campaign-cadence-grid { grid-template-columns: 1fr; }
  .map-inspector-drawer { width: calc(100% - 32px); }
}

/* ==============================================================================
   SUPABASE CLOUD DATABASE & AUTHENTICATION STYLES
   ============================================================================== */
.btn-cloud-pill {
  background: rgba(45, 55, 72, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cloud-pill:hover {
  background: rgba(45, 55, 72, 0.85);
  border-color: var(--brand-green);
  box-shadow: 0 0 12px rgba(0, 255, 25, 0.2);
}

.cloud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.cloud-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.cloud-dot.connecting {
  background: var(--brand-cyan);
  box-shadow: 0 0 10px rgba(0, 204, 204, 0.8);
  animation: pulseCloud 1.2s infinite ease-in-out;
}

.cloud-dot.connected {
  background: var(--brand-green);
  box-shadow: 0 0 12px rgba(0, 255, 25, 0.9);
}

@keyframes pulseCloud {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.user-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(186, 2, 255, 0.12);
  border: 1px solid rgba(186, 2, 255, 0.35);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.user-email-text {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent-cyan);
}

.btn-topbar-signout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 2px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.btn-topbar-signout:hover {
  color: var(--accent-rose);
}

.cloud-tabs .cloud-tab.active {
  background: rgba(0, 255, 25, 0.12);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

/* ==============================================================================
   AUTH GATE SCREEN & GOOGLE SSO STYLES
   ============================================================================== */
.auth-gate-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at top right, rgba(186, 2, 255, 0.28), transparent 60%),
              radial-gradient(circle at bottom left, rgba(0, 255, 25, 0.22), transparent 50%),
              #080c14;
  backdrop-filter: blur(32px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeInGate 0.4s ease-out;
}

@keyframes fadeInGate {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.auth-gate-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 44px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 22, 35, 0.85);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 32px rgba(186, 2, 255, 0.25);
  position: relative;
}

.auth-brand-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-green);
  background: rgba(0, 255, 25, 0.08);
  border: 1px solid rgba(0, 255, 25, 0.28);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.auth-logo-wrap {
  margin-bottom: 16px;
}

.auth-gate-logo {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(0, 255, 25, 0.5));
}

.auth-gate-title {
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #ffffff 40%, var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.auth-gate-desc {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0 0 28px 0;
}

.btn-google-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-google-sso:hover {
  background: #f9fafb;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.22), 0 0 16px rgba(66, 133, 244, 0.45);
  transform: translateY(-1px);
}

.btn-google-sso:active {
  transform: translateY(1px);
}

.google-icon {
  flex-shrink: 0;
}

.auth-sso-footnote {
  font-size: 0.74rem;
  color: var(--text-subtle);
  margin-top: 10px;
  margin-bottom: 0;
}

.auth-gate-divider {
  display: flex;
  align-items: center;
  margin: 22px 0 18px;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.auth-gate-divider::before,
.auth-gate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-gate-divider span {
  padding: 0 12px;
}

.auth-gate-secondary-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.gate-config-drawer {
  margin-top: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-align: left;
  animation: fadeInGate 0.25s ease-out;
}

.gate-input {
  background: rgba(16, 22, 35, 0.95);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.gate-input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 8px rgba(0, 255, 25, 0.25);
}

.user-avatar-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--brand-green);
  display: inline-block;
  vertical-align: middle;
}


