/* ==========================================================================
   Shared EV Charger Manager - Editorial Minimalist Design System
   Inspired by modern editorial portfolio aesthetics:
   Warm off-white background, organic large radii, bold typography,
   tactile pill buttons, and crisp rectangular stalls.
   ========================================================================== */

:root {
  /* Editorial Palette */
  --bg-viewport: #ededeb;
  --bg-canvas: #ffffff;
  --bg-section: #f8f8f6;
  --bg-section-card: #ffffff;
  --bg-pill-subtle: #f0f0ed;
  --bg-pill-hover: #e6e6e2;
  
  --border-canvas: rgba(0, 0, 0, 0.06);
  --border-section: #e8e8e4;
  --border-subtle: #eaeae6;
  --border-medium: #d4d4ce;
  --border-dark: #18181b;

  --text-primary: #121212;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --text-inverse: #ffffff;

  /* State Accents (Soft Light Pastel Blue from user palette) */
  --color-charging: #7cb9fc;
  --color-charging-bg: #e8f3fe;
  --color-charging-border: #bfdbfe;
  --color-charging-light: #93c5fd;
  --color-available: #059669;
  --color-available-bg: #d1fae5;
  --color-warning: #d97706;
  --color-warning-bg: #fef3c7;

  /* Organic Large Radii */
  --radius-canvas: 40px;
  --radius-section: 28px;
  --radius-card: 20px;
  --radius-pill: 9999px;
  --radius-sm: 8px;

  /* Typography */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;

  /* Shadows */
  --shadow-canvas: 0 25px 70px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-button: 0 4px 14px rgba(0, 0, 0, 0.12);
  --shadow-pill: 0 2px 6px rgba(0, 0, 0, 0.03);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Viewport Styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100vh;
  background-color: var(--bg-viewport);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 15px;
  touch-action: manipulation;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.25rem 0.85rem 3.5rem 0.85rem;
}

/* Outer Canvas (Floating Editorial Card) */
.editorial-canvas {
  width: 100%;
  max-width: 520px;
  background: var(--bg-canvas);
  border-radius: var(--radius-canvas);
  border: 1px solid var(--border-canvas);
  box-shadow: var(--shadow-canvas);
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  overflow: hidden;
  position: relative;
}

/* Top Minimalist Navigation Bar */
.canvas-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.25rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.topbar-badge {
  color: var(--text-primary);
  background: var(--bg-pill-subtle);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  border: 1px solid var(--border-subtle);
}

.topbar-dot {
  color: var(--text-muted);
}

.topbar-sub {
  color: var(--text-secondary);
}

.topbar-rotation {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* 1-Tap Driver Identity Switcher (Pill Bar) & Alert Toggle */
.identity-switcher-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.identity-switcher-pill {
  display: inline-flex;
  flex: 1;
  background: var(--bg-pill-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.notification-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-pill-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.notification-pill-btn:hover {
  background: #ffffff;
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.notification-pill-btn.granted {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.identity-pill-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.identity-pill-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-weight: 800;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
}

.pill-dot.kash {
  background: #d97706;
}

.pill-dot.ale {
  background: #111111;
}

/* Handover Warning Banner */
.handover-alert-pill {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-warning-bg);
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
}

.handover-alert-pill.active {
  display: flex;
}

/* Editorial Hero Section (Inspired by Design Reference) */
.editorial-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  gap: 0.75rem;
}

/* Central Flashing Energy Circle Indicator */
.hero-avatar-container {
  position: relative;
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: center;
}

.hero-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-pill);
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.15);
  border: 3px solid #ffffff;
  position: relative;
  transition: all var(--transition-fast);
}

/* Active Charging Flashing / Pulsing Energy Ring */
.hero-avatar-circle.charging {
  background: #111111;
  color: #93c5fd;
  animation: energyGlowPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-avatar-circle.charging svg {
  animation: energyIconFlash 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.85));
}

@keyframes energyGlowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(147, 197, 253, 0.6), 0 8px 24px -4px rgba(0, 0, 0, 0.2);
    border-color: #ffffff;
  }
  50% {
    box-shadow: 0 0 0 12px rgba(147, 197, 253, 0), 0 0 28px rgba(147, 197, 253, 0.5);
    border-color: #dbeafe;
  }
}

@keyframes energyIconFlash {
  0%, 100% {
    opacity: 0.85;
    transform: scale(1);
    color: #93c5fd;
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
    color: #bfdbfe;
  }
}

/* Available Early state */
.hero-avatar-circle.available {
  background: #111111;
  color: #34d399;
  animation: energyAvailablePulse 2s infinite;
}

.hero-avatar-circle.available svg {
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.7));
}

@keyframes energyAvailablePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
  }
}

/* Idle state */
.hero-avatar-circle.idle {
  background: #18181b;
  color: #a1a1aa;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.chip-check {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color-available);
}

/* Hero Typography */
.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  line-height: 1.18;
  max-width: 400px;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 380px;
}

/* Countdown Pill */
.countdown-pill-card {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-pill-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-top: 0.25rem;
}

.countdown-pill-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.countdown-pill-time {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

/* Primary Action CTA Slot */
.hero-action-slot {
  width: 100%;
  max-width: 360px;
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Black Pill Button (Iconic CTA from design) */
.btn-black-pill {
  width: 100%;
  min-height: 52px;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-black-pill:hover {
  background: #27272a;
  transform: translateY(-1px);
}

.btn-black-pill:active {
  transform: scale(0.98);
  background: #09090b;
}

/* Green Pill Button */
.btn-green-pill {
  width: 100%;
  min-height: 52px;
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
  transition: all var(--transition-fast);
}

.btn-green-pill:active {
  transform: scale(0.98);
  background: #047857;
}

/* White Pill Button */
.btn-white-pill {
  width: 100%;
  min-height: 50px;
  background: #ffffff;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-white-pill:active {
  background: var(--bg-pill-subtle);
  transform: scale(0.98);
}

/* Section Card Containers (Soft Rounded Inset Cards) */
.section-card {
  background: var(--bg-section);
  border: 1px solid var(--border-section);
  border-radius: var(--radius-section);
  padding: 1.4rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.section-badge-pill {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.section-card.parking-section {
  padding: 0.45rem;
}

/* Parking Stalls Grid (3-Column Layout) */
.stalls-grid {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 0.45rem;
  position: relative;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--border-section);
  border-radius: var(--radius-section);
  padding: 1.15rem 0.65rem;
  min-height: 240px;
}

/* Individual Parking Stall (Crisp Thin Rectangle) */
.stall-bay {
  border: 1px dashed #d4d4d8;
  border-radius: 4px;
  padding: 0.95rem 0.45rem;
  min-height: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: #fafaf9;
  transition: all var(--transition-smooth);
  text-align: center;
}

.stall-bay.active-charging {
  border-style: solid;
  border-width: 1px;
  border-color: var(--color-charging);
  background: var(--color-charging-bg);
  box-shadow: none;
}

.stall-bay.plug-claimed {
  border-style: solid;
  border-width: 1px;
  border-color: var(--color-available);
  background: #f0fdf4;
  box-shadow: none;
}

.stall-bay.your-stall {
  outline: 1px solid #111111;
  outline-offset: 2px;
}

.stall-bay-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stall-number-badge {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.stall-driver-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Vehicle Logo Emblem Container (Clean / Borderless) */
.stall-logo-container {
  width: 76px;
  height: 76px;
  margin: 0.35rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  transition: transform var(--transition-fast);
}

.stall-bay.active-charging .stall-logo-container {
  transform: scale(1.06);
}

.brand-logo-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-svg.tesla {
  color: #111111;
}

.stall-charge-indicator {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Center Column Pedestal */
.center-column-bay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.column-post {
  width: 44px;
  height: 100px;
  background: #111111;
  border: 2px solid #000000;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.4rem 0.2rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.column-post-label {
  font-size: 0.58rem;
  font-weight: 900;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.column-led-status {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-pill);
  background: #52525b;
  border: 1.5px solid #000000;
  transition: all var(--transition-fast);
}

.column-led-status.charging {
  background: #93c5fd;
  box-shadow: 0 0 10px #93c5fd;
}

.column-led-status.available {
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.column-plug-icon svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

/* Animated Charging Cable Connector (Spans Outside Stall Boxes) */
.cable-connector-overlay {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  pointer-events: none;
  z-index: 5;
  transform: translateY(-50%);
}

.cable-wire {
  height: 6px;
  position: absolute;
  top: 0;
  transition: all 300ms ease-out;
  opacity: 0;
  border-radius: 2px;
}

/* Connects Left: Outside Right Edge of Stall 93 to Center Post */
.cable-wire.connect-left {
  left: calc(50% - 40px);
  width: 18px;
  opacity: 1;
  background: #7cb9fc;
  box-shadow: 0 0 10px #93c5fd;
}

.cable-wire.connect-left::before {
  content: '';
  position: absolute;
  left: -2px;
  top: -3px;
  width: 5px;
  height: 12px;
  background: #111111;
  border-radius: 1.5px;
}

/* Connects Right: Center Post to Outside Left Edge of Stall 94 */
.cable-wire.connect-right {
  left: calc(50% + 22px);
  width: 18px;
  opacity: 1;
  background: #7cb9fc;
  box-shadow: 0 0 10px #93c5fd;
}

.cable-wire.connect-right::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 5px;
  height: 12px;
  background: #111111;
  border-radius: 1.5px;
}

/* 14-Day Schedule Forecast (Minimalist List) */
.forecast-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.forecast-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-section);
  border-radius: var(--radius-card);
  transition: background var(--transition-fast);
}

.forecast-item.is-today {
  border-color: #111111;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.forecast-date-col {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.forecast-date-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.forecast-date-timespan {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.forecast-driver-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.forecast-driver-badge.kash {
  background: #111111;
  color: #ffffff;
}

.forecast-driver-badge.away {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

/* Travel Section Styles */
.travel-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.travel-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.travel-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.btn-black-pill-sm {
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-black-pill-sm:hover {
  background: #000000;
  transform: translateY(-1px);
}

.btn-black-pill-sm:active {
  transform: scale(0.97);
}

.active-travel-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.active-travel-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.active-travel-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.active-travel-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.active-travel-dates {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-cancel-travel {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.btn-cancel-travel:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* Canvas Minimalist Footer */
.canvas-footer {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Toast Notifications (Floating Bottom Pill) */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: #111111;
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastSlideUp 200ms ease-out forwards;
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Custom Modal Overlay */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.custom-modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-section);
  border: 1px solid var(--border-section);
  padding: 1.5rem;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: modalScaleIn 200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-pill-subtle);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-pill-hover);
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Welcome Setup Modal */
.modal-card.welcome-card {
  max-width: 440px;
  text-align: center;
  align-items: center;
  padding: 1.85rem 1.4rem;
  gap: 1.15rem;
}

.welcome-badge {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-pill-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
}

.welcome-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.welcome-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 360px;
}

.welcome-profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.4rem;
}

.welcome-profile-card {
  background: #f8f8f6;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-card);
  padding: 1.45rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  font-family: inherit;
}

.welcome-profile-card:hover {
  background: #ffffff;
  border-color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.1);
}

.welcome-profile-card:active {
  transform: scale(0.97);
}

.welcome-profile-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.welcome-stall-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.welcome-vehicle-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.welcome-profile-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.welcome-profile-action {
  font-size: 0.75rem;
  font-weight: 800;
  background: #111111;
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast);
}

.welcome-profile-card:hover .welcome-profile-action {
  background: #000000;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border-medium);
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: #111111;
}
