/* =========================================================
   IONARA CHARGEOPS DESIGN SYSTEM & STYLESHEET
   ========================================================= */

:root {
  --bg-base: #F8FAFC;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-elevated: #F1F5F9;
  --border-subtle: #E2E8F0;
  --border-glow: rgba(2, 132, 199, 0.2);

  --accent-cyan: #0284C7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.2);
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.2);
  --accent-amber: #D97706;
  --accent-rose: #E11D48;
  --accent-blue: #2563EB;
  --accent-purple: #8B5CF6;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.07);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.15);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-base: #F8FAFC;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-elevated: #F1F5F9;
  --border-subtle: #E2E8F0;
  --border-glow: rgba(2, 132, 199, 0.2);

  --accent-cyan: #0284C7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.2);
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.2);
  --accent-amber: #D97706;
  --accent-rose: #E11D48;
  --accent-blue: #2563EB;
  --accent-purple: #8B5CF6;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .glass-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .sidebar {
  background: #FFFFFF !important;
  border-right: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .data-table th {
  background: #F8FAFC !important;
  color: #475569 !important;
  border-bottom: 1px solid #CBD5E1 !important;
}

[data-theme="light"] .data-table td {
  border-bottom: 1px solid #F1F5F9 !important;
}

[data-theme="light"] .data-table tr:hover td {
  background: #F8FAFC !important;
}

[data-theme="light"] input, 
[data-theme="light"] select {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
}

[data-theme="light"] .nav-item {
  color: #475569 !important;
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
  background: #F1F5F9 !important;
  color: #0284C7 !important;
}

[data-theme="light"] .hardware-pill {
  background: #F1F5F9 !important;
  color: #0284C7 !important;
  border: 1px solid #CBD5E1 !important;
}

[data-theme="light"] .calc-results-box,
[data-theme="light"] .sim-live-ledger,
[data-theme="light"] .modal-dialog {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .finder-card {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .finder-result-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .input-with-prefix {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
}

[data-theme="light"] .input-prefix {
  background: #E2E8F0 !important;
  color: #475569 !important;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 15% 15%, rgba(0, 229, 255, 0.05) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(16, 185, 129, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Typography Helpers */
h1, h2, h3, h4, .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-rose { color: var(--accent-rose); }
.text-blue { color: var(--accent-blue); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }

/* App Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  z-index: 10;
}

.brand-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.logo-bolt {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00E5FF, #3B82F6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080C14;
  font-size: 1.25rem;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  font-weight: 600;
}

.hardware-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  padding-left: 0.75rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
  width: 100%;
}

.nav-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.nav-item:hover i {
  color: var(--accent-cyan);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.02));
  color: var(--accent-cyan);
  border-left: 3px solid var(--accent-cyan);
  font-weight: 600;
}

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

.nav-item-highlight {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-accent {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Sidebar Footer */
.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.pulse-green {
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-label {
  font-weight: 600;
  color: var(--text-main);
}

.status-sub {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  height: 100vh;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(12, 18, 30, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 9;
}

.page-title {
  font-size: 1.5rem;
  color: var(--text-main);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-dropdown {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.site-dropdown option {
  background: var(--bg-sidebar);
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0284C7);
  color: #080C14;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #080C14;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-rose), #BE123C);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.25);
}

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

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-cyan);
}

.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.08);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

/* Views Management */
.content-view {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

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

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

/* Cards & Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

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

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-body {
  padding: 1.5rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1.1rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.icon-cyan {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.metric-data {
  flex: 1;
  min-width: 0;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-value .unit {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-trend {
  font-size: 0.75rem;
  font-weight: 500;
}

/* 2-Column Grid */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1080px) {
  .grid-2-col {
    grid-template-columns: 1fr;
  }
}

/* Economics Summary Box */
.economics-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.econ-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.econ-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.econ-val {
  font-weight: 600;
  font-size: 0.95rem;
}

.econ-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.25rem 0;
}

.econ-total {
  font-size: 1.1rem;
}

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

.econ-total .econ-val {
  font-size: 1.3rem;
}

/* Margin Bar */
.margin-bar-container {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.margin-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.margin-bar {
  height: 14px;
  background: var(--bg-elevated);
  border-radius: 999px;
  display: flex;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.margin-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.seg-cost { background: var(--accent-amber); }
.seg-vat { background: #64748B; }
.seg-fee { background: #94A3B8; }
.seg-profit { background: var(--accent-emerald); }

.margin-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.3rem;
}

.dot-cost { background: var(--accent-amber); }
.dot-vat { background: #64748B; }
.dot-fee { background: #94A3B8; }
.dot-profit { background: var(--accent-emerald); }

/* Live Chargers List in Dashboard */
.live-chargers-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.live-ch-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.live-ch-item:hover {
  transform: translateX(4px);
  border-color: rgba(0, 229, 255, 0.3);
}

.live-ch-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ch-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ch-id {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

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

.live-ch-connectors {
  display: flex;
  gap: 0.5rem;
}

.connector-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}

.con-available {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.con-charging {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
  animation: pulseCyan 2s infinite;
}

@keyframes pulseCyan {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.con-preparing {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

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

.data-table th {
  padding: 0.85rem 1rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Section Toolbars */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  width: 320px;
  color: var(--text-muted);
}

.toolbar-search input {
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  font-size: 0.85rem;
  font-family: var(--font-body);
  width: 100%;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Chargers Grid */
.chargers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.charger-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
}

.charger-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.ch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ch-model-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.ch-serial {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.ch-terminal-box {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.ch-connectors-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ch-connector-row {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Sites Grid */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.site-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow-card);
}

.site-name {
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 700;
}

.site-address {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--bg-elevated);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.site-stat-item {
  display: flex;
  flex-direction: column;
}

.ss-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.ss-val {
  font-size: 1rem;
  font-weight: 700;
}

/* Sliders & Calculator Controls */
.calc-control-group {
  margin-bottom: 1.25rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-elevated);
  outline: none;
  transition: opacity 0.2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.calc-results-box {
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.calc-result-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.calc-stat {
  display: flex;
  flex-direction: column;
}

.c-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.c-value {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.annual-projection {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  text-align: center;
}

.ann-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.ann-val {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Tariffs List */
.tariffs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tariff-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.t-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.t-details {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   AUTEL MAXICHARGER INTERACTIVE TERMINAL SIMULATOR
   ========================================================= */

.sim-container {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .sim-container {
    grid-template-columns: 1fr;
  }
}

/* Virtual Hardware Enclosure */
.autel-hardware-frame {
  display: flex;
  justify-content: center;
}

.autel-unit {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border: 2px solid #334155;
  border-radius: 28px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 255, 0.1);
  position: relative;
}

.autel-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.autel-logo {
  display: flex;
  flex-direction: column;
}

.autel-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #F8FAFC;
}

.model-badge {
  font-size: 0.65rem;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.autel-status-led {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.led-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

/* 8-Inch Screen */
.autel-screen {
  background: #020617;
  border: 2px solid #1E293B;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 4px 15px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
}

.autel-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 40%);
  pointer-events: none;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
}

.screen-brand {
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.screen-clock {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.screen-body {
  margin: 1.25rem 0;
  text-align: center;
}

.screen-state {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.25s ease;
}

.screen-state.active {
  display: flex;
}

.screen-icon-pulse {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  animation: floatIcon 2s ease-in-out infinite alternate;
}

@keyframes floatIcon {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

.screen-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #FFF;
}

.screen-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.screen-tariff-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-top: 1rem;
}

.screen-instruction {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

/* Charging Metrics on Screen */
.charging-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
}

.ch-metric {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ch-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 700;
}

.ch-value {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.sim-battery-bar {
  width: 100%;
  height: 10px;
  background: #1E293B;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.sim-battery-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.screen-qr-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  margin-top: 0.85rem;
}

.qr-mock {
  font-size: 2rem;
  color: var(--accent-cyan);
}

.qr-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: left;
}

.screen-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dedicated Nayax VPOS Touch Terminal Physical Casing */
.nayax-terminal-frame {
  background: linear-gradient(180deg, #111827 0%, #030712 100%);
  border: 2px solid #F59E0B;
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  text-align: center;
  margin-top: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.2);
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nayax-terminal-frame:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.nayax-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nayax-badge-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nayax-brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #F59E0B;
}

.nayax-model-tag {
  font-size: 0.65rem;
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nayax-sim-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--accent-emerald);
  font-weight: 600;
  font-family: var(--font-mono);
}

.sim-dot-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.nayax-touch-screen {
  background: #000;
  border: 1px solid #374151;
  border-radius: var(--radius-md);
  padding: 0.95rem 0.5rem;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.9);
}

.rfid-wave-nayax {
  font-size: 1.6rem;
  color: #F59E0B;
  margin-bottom: 0.2rem;
  animation: pulseAmber 2s infinite;
}

@keyframes pulseAmber {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.nayax-prompt {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFF;
  letter-spacing: 0.08em;
}

.nayax-sub-prompt {
  font-size: 0.68rem;
  color: #9CA3AF;
  margin-top: 0.15rem;
}

.nayax-footer-schemes {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  font-size: 1.35rem;
  color: #94A3B8;
}

/* Fallback Contactless Reader Zone */
.contactless-reader-zone {
  background: #0B1120;
  border: 2px dashed rgba(0, 229, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  margin-top: 1.25rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.contactless-reader-zone:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.rfid-wave {
  font-size: 1.75rem;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.reader-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FFF;
  margin-bottom: 0.5rem;
}

.accepted-schemes {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  font-size: 1.4rem;
  color: var(--text-muted);
}

/* Sockets Row */
.autel-sockets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.socket-col {
  background: #0B1120;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s ease;
}

.socket-col.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.socket-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 auto 0.5rem auto;
}

.led-green {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.socket-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem auto;
  font-size: 1.3rem;
  color: var(--text-muted);
}

.socket-col.active .socket-circle {
  color: var(--accent-cyan);
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.3);
}

.socket-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Step Sequence in Simulator Controls */
.sim-step-sequence {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sim-step-card {
  display: flex;
  gap: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s ease;
}

.sim-step-card.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.sim-step-card.active-step {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.step-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sim-select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: var(--font-body);
  outline: none;
}

/* Live Session Margin Ledger */
.sim-live-ledger {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.ledger-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.ledger-row.highlight {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.95rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

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

.modal-dialog {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  overflow: hidden;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.btn-close:hover {
  color: #FFF;
}

/* Forms */
form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input, .form-group select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}

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

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* VAT Receipt Styling */
.receipt-dialog {
  max-width: 440px;
  background: #FFF;
  color: #1E293B;
  border-radius: var(--radius-md);
}

.receipt-paper {
  padding: 2rem;
  font-family: var(--font-body);
}

.receipt-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.receipt-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0F172A;
}

.receipt-sub {
  font-size: 0.75rem;
  color: #64748B;
}

.receipt-vat {
  font-size: 0.7rem;
  color: #94A3B8;
  font-family: var(--font-mono);
}

.receipt-divider {
  height: 1px;
  border-top: 1px dashed #CBD5E1;
  margin: 1rem 0;
}

.receipt-meta {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.r-row {
  display: flex;
  justify-content: space-between;
}

.receipt-table {
  width: 100%;
  font-size: 0.8rem;
  margin: 0.75rem 0;
}

.receipt-table th {
  text-align: left;
  font-size: 0.7rem;
  color: #64748B;
  padding-bottom: 0.4rem;
}

.receipt-table td {
  padding: 0.35rem 0;
}

.text-right {
  text-align: right;
}

.receipt-totals {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.r-total {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid #E2E8F0;
  color: #0F172A;
}

.receipt-hold-box {
  background: #F1F5F9;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin: 1rem 0;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.receipt-qr-center {
  text-align: center;
  margin-top: 1.25rem;
}

.receipt-qr-code {
  font-size: 3rem;
  color: #0F172A;
  margin-bottom: 0.35rem;
}

.receipt-footer-text {
  font-size: 0.7rem;
  color: #94A3B8;
  line-height: 1.3;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}

/* ==========================================================================
   Receipt Finder Driver Portal
   ========================================================================== */
.receipt-finder-hero {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.finder-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.finder-hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #FFF 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.finder-hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.finder-card {
  text-align: left;
  padding: 1.75rem;
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 229, 255, 0.08);
}

.finder-input-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .finder-input-grid {
    grid-template-columns: 1fr;
  }
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.input-with-prefix:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.input-prefix {
  padding: 0.75rem 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid var(--border-subtle);
  user-select: none;
}

.input-with-prefix input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
}

.finder-submit-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 1.7rem;
}

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

.finder-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.finder-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.2s ease;
}

.finder-result-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.result-main-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.result-card-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.result-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.result-stats-col {
  display: flex;
  gap: 2rem;
  text-align: right;
}

.r-stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.r-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
}

.result-actions-col {
  display: flex;
  gap: 0.65rem;
}

.empty-results-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.empty-results-state .empty-icon {
  font-size: 3rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Modals & Overlays
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-dialog {
  background: #0C1322;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .modal-dialog {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15) !important;
}

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

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s;
}

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

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

/* ==========================================================================
   Header Controls: Theme Toggle & Mode Switcher
   ========================================================================== */
.btn-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-theme-toggle:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.mode-switcher-pill {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  cursor: pointer;
  user-select: none;
}

[data-theme="light"] .mode-switcher-pill {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

.mode-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mode-btn.active.mode-demo {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.mode-btn.active.mode-live {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.operator-badge-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.operator-badge-btn:hover {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

/* ==========================================================================
   Public Holding Page & Station Finder
   ========================================================================== */
.public-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.public-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.public-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  cursor: pointer;
}

.public-nav-link:hover {
  color: var(--accent-cyan);
}

.public-hero {
  text-align: center;
  padding: 5rem 1rem 3.5rem;
}

.public-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.public-hero-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.public-hero-highlight {
  background: linear-gradient(135deg, #00E5FF 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.public-hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.public-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.public-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 4.5rem;
}

@media (max-width: 992px) {
  .public-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .public-hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 576px) {
  .public-features-grid {
    grid-template-columns: 1fr;
  }
}

.public-feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.public-feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.public-feat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.public-feat-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.public-feat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.section-heading-center {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading-center h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.public-stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.station-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.station-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.station-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.station-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.station-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.station-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.station-spec-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.station-tariff-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="light"] .station-tariff-box {
  background: #F1F5F9;
}

.station-tariff-rate {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   Hardware Connection Wizard Modal
   ========================================================================== */
.hardware-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.copyable-url-box {
  display: flex;
  align-items: center;
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

[data-theme="light"] .copyable-url-box {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.copyable-url-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  flex: 1;
  word-break: break-all;
}

.btn-copy {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s;
}

.btn-copy:hover {
  background: var(--accent-cyan);
  color: #000;
}

.live-terminal-log {
  background: #020617;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #10B981;
  max-height: 180px;
  overflow-y: auto;
  line-height: 1.6;
}

/* ==========================================================================
   Multi-Tenant Role Selector & Login Tabs
   ========================================================================== */
.role-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.role-card-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.6rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

[data-theme="light"] .role-card-btn {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.role-card-btn:hover,
.role-card-btn.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  transform: translateY(-1px);
}

.role-btn-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.role-btn-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Land Owner Portal Styles
   ========================================================================== */
.host-banner-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.host-rate-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.locked-fee-field {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
}

[data-theme="light"] .locked-fee-field {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.locked-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.locked-notice-banner {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #F59E0B;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}

/* ==========================================================================
   Fleet Owner Portal Styles
   ========================================================================== */
.rfid-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-pill-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-pill-suspended {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ==========================================================================
   Driver Account Portal Styles
   ========================================================================== */
.driver-hero-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.driver-vehicle-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

[data-theme="light"] .driver-vehicle-badge {
  background: #FFFFFF;
  border-color: #E2E8F0;
}


