/* =========================================================
   ENEV CHARGEOPS & ENEV CHARGING NETWORK DESIGN SYSTEM
   Master Brand Guidelines Deck v2.0 Conformant
   Palette: Grid Black (#070B14), Deep Navy (#0F172A), Electric Cyan (#00E5FF)
   ========================================================= */

@import url('tokens.css');

:root {
  /* Official Core Brand Palette (Slide 04) */
  --enev-grid-black: #070B14;     /* Primary Canvas Background */
  --enev-deep-navy: #0F172A;      /* Cards, Panels, Navigation */
  --enev-electric-cyan: #00E5FF;  /* Signature Action & Highlight */
  --enev-white: #FFFFFF;          /* Headings on Dark, Light Accents */
  --enev-cool-mist: #94A3B8;      /* Supporting & Body Subtext */
  --enev-slate-line: #1E293B;     /* Borders, Dividers & Outlines */

  /* Secondary Accents (Slide 02, 07, 08, 09, 11) */
  --enev-emerald: #10B981;        /* Managed End-to-End / Renewable Energy */
  --enev-purple: #8B5CF6;         /* Transparent Returns / Telemetry */
  --enev-amber: #F59E0B;          /* Company Accent / Statutory Holds */
  --enev-rose: #F43F5E;           /* Avoidance Warnings / Faults */
  --enev-blue: #3B82F6;           /* Implementation Standards */
  --enev-slate-dim: #64748B;      /* Subtle Metadata & Counters */

  /* System Semantics mapped to Brand Tokens */
  --bg-base: #070B14;
  --bg-sidebar: #0F172A;
  --bg-card: #0F172A;
  --bg-card-hover: #1E293B;
  --bg-elevated: #1E293B;
  --border-subtle: #1E293B;
  --border-glow: rgba(0, 229, 255, 0.25);

  --accent-cyan: #00E5FF;
  --accent-cyan-glow: rgba(0, 229, 255, 0.25);
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;

  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Typography Standard (Slide 05: Universal Segoe UI stack) */
  --font-display: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(0, 229, 255, 0.25);
}

/* 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(0, 229, 255, 0.2);

  --accent-cyan: #00E5FF;
  --accent-cyan-glow: rgba(0, 229, 255, 0.25);
  --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(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
}

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

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.92) !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 #E2E8F0 !important;
  padding: 1rem 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

[data-theme="light"] .data-table td {
  border-bottom: 1px solid #F1F5F9 !important;
  padding: 1.1rem 1.25rem !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 {
  background: #F1F5F9 !important;
  color: #008DA8 !important;
}

[data-theme="light"] .nav-item.active {
  background: #E0F2FE !important;
  color: #008DA8 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .hardware-pill {
  background: #F1F5F9 !important;
  color: #008DA8 !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;
}

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  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;
}

/* Specific Portal Viewport Pinning (Eliminates Double Scrollbars) */
body.portal-body,
body:has(.app-layout) {
  height: 100%;
  max-height: 100vh;
  overflow: hidden !important;
}

.portal-body .app-layout,
.app-layout {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* 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;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 280px;
  height: 100vh;
  max-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.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-mark-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.25));
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.logo-mark-img:hover {
  transform: scale(1.06);
}

.logo-bolt {
  width: 40px;
  height: 40px;
  background: var(--accent-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
}

.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;
  font-weight: 800;
}

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

.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.4rem;
  flex: 1;
}

.nav-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.85rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 12px;
  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(2, 132, 199, 0.05);
  color: var(--text-main);
}

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

.nav-item.active {
  background: rgba(2, 132, 199, 0.1);
  color: 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;
  overflow-x: hidden;
  height: 100vh;
  max-height: 100vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 2.5rem;
  gap: 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;
}

.topbar-left {
  flex: 1;
  min-width: 0;
  margin-right: 1.5rem;
}

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

.page-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 650px;
}

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

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

.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: var(--enev-electric-cyan, #00E5FF);
  color: var(--enev-grid-black, #070B14) !important;
  font-weight: 700;
  border: 1px solid var(--enev-electric-cyan, #00E5FF);
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  background: #33EBFF;
  color: #070B14 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.btn-emerald,
.btn-success {
  background: var(--enev-emerald, #10B981);
  color: var(--enev-grid-black, #070B14) !important;
  font-weight: 700;
  border: 1px solid var(--enev-emerald, #10B981);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.btn-emerald:hover,
.btn-success:hover {
  background: #34D399;
  color: #070B14 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: var(--enev-rose, #F43F5E);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.25);
}

.btn-danger:hover {
  background: #E11D48;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}

.btn-outline {
  background: var(--enev-deep-navy, #0F172A);
  border: 1px solid var(--enev-electric-cyan, #00E5FF);
  color: var(--enev-electric-cyan, #00E5FF);
  font-weight: 600;
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: #33EBFF;
  color: #FFFFFF;
}

.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 2.5rem 3.5rem;
  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 (Slide 08) */
.card,
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

/* Master Brand Guidelines (Slide 08) — Content Cards 4px Left Accent Stripes */
.card-accent-cyan,
.card-stripe-cyan {
  border-left: 4px solid var(--enev-electric-cyan, #00E5FF) !important;
}

.card-accent-emerald,
.card-stripe-emerald {
  border-left: 4px solid var(--enev-emerald, #10B981) !important;
}

.card-accent-purple,
.card-stripe-purple {
  border-left: 4px solid var(--enev-purple, #8B5CF6) !important;
}

.card-accent-amber,
.card-stripe-amber {
  border-left: 4px solid var(--enev-amber, #F59E0B) !important;
}

.card-accent-rose,
.card-stripe-rose {
  border-left: 4px solid var(--enev-rose, #F43F5E) !important;
}

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

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

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

.card-body {
  padding: 1.75rem;
}

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

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.6rem 1.75rem;
  display: flex;
  gap: 1.25rem;
  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: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  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.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

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

.metric-trend {
  font-size: 0.78rem;
  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.88rem;
}

.data-table th {
  padding: 1rem 1.25rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

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

.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.75rem;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.1rem;
  width: 340px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.toolbar-search:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

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

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  pointer-events: none;
  font-size: 0.9rem;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.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: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  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.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.ch-serial {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.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.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

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

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

.ch-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.ch-primary-actions {
  display: flex;
  gap: 0.65rem;
}

.ch-primary-actions .btn {
  flex: 1;
}

.ch-secondary-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

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

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

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

.site-address {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

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

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

.ss-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

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

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

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

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

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

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

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

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

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

.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.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.annual-projection {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  text-align: center;
  margin-top: 1.25rem;
}

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

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

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

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

.tariff-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.45rem;
}

.tariff-pill {
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  color: var(--text-muted);
}

.tariff-pill strong {
  color: var(--text-main);
  font-weight: 700;
}

.t-name {
  font-weight: 700;
  font-size: 1.05rem;
  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: #10B981;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.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;
}


/* Forms & Input Controls */
form {
  padding: 0;
}

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

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

.form-group input, 
.form-group select, 
.form-group textarea,
.form-control,
.form-select,
.form-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus,
.form-control:focus,
.form-select:focus,
.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.form-row > * {
  flex: 1 1 200px;
  min-width: 0;
}

.form-row .flex-1 { flex: 1 1 200px; }
.form-row .flex-1-2 { flex: 1.2 1 220px; }
.form-row .flex-1-5 { flex: 1.5 1 240px; }
.form-row .flex-2 { flex: 2 1 300px; }
.form-row .flex-3 { flex: 3 1 400px; }

/* Responsive Form Grids */
.form-grid {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.form-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

@media (max-width: 900px) {
  .form-grid-4, .form-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 600px) {
  .form-grid-2, .form-grid-3, .form-grid-4, .form-grid-5 {
    grid-template-columns: 1fr;
  }
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  padding-bottom: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.form-section-title:first-child {
  margin-top: 0;
}

/* Nominal Code Styling */
.nominal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.2s ease;
  min-width: 0;
}

.nominal-card:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
  background: var(--bg-card);
}

.nominal-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.nominal-tag {
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  border-right: 1px solid var(--border-subtle);
  text-transform: uppercase;
  user-select: none;
}

.nominal-input {
  border: none !important;
  background: transparent !important;
  padding: 0.45rem 0.65rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--accent-cyan) !important;
  width: 100% !important;
  outline: none !important;
  box-shadow: none !important;
}

.nominal-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.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: var(--text-main);
  margin-bottom: 0.75rem;
}

.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.3fr 1.1fr 1fr 1fr;
  gap: 1.25rem;
  align-items: flex-end;
}

.finder-submit-col {
  display: flex;
  align-items: flex-end;
}

.finder-submit-col .btn {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

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

@media (max-width: 600px) {
  .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,
.modal-backdrop {
  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,
.modal-backdrop.active {
  display: flex !important;
}

.modal-dialog,
.modal-card {
  background: #0C1322;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  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,
[data-theme="light"] .modal-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.15) !important;
  color: var(--text-main) !important;
}

.modal-dialog-lg {
  max-width: 820px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  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: 1rem;
  padding: 1.25rem 2rem;
  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: 4rem 1rem 2.5rem;
}

.public-hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0 3.5rem;
  text-align: left;
}

.public-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.public-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.public-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.public-hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(2, 132, 199, 0.25);
  box-shadow: 0 20px 45px -10px rgba(2, 132, 199, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  background: var(--bg-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.public-hero-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -10px rgba(2, 132, 199, 0.22);
}

.public-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.public-hero-visual-card:hover .public-hero-img {
  transform: scale(1.02);
}

.public-hero-floating-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.badge-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  display: inline-block;
  animation: pulse-live 1.8s infinite ease-in-out;
}

@keyframes pulse-live {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.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 {
  color: var(--accent-cyan);
}

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

.public-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   How It Works & Visual Showcase Sections
   ========================================================================== */
.public-showcase-section {
  padding: 3.5rem 0;
}

.public-steps-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 3.5rem;
  margin-top: 2rem;
}

.public-showcase-img-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
}

.public-showcase-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.public-step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.public-step-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.15);
}

.public-step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #00E5FF 0%, #10B981 100%);
  color: #070B14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.3);
}

.public-step-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.25rem;
}

.public-step-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Wide Hub Destination Banner */
.public-hub-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.12);
  margin: 2rem 0 4.5rem;
}

.public-hub-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.public-hub-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.88) 75%, rgba(15, 23, 42, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: #FFFFFF;
}

.public-hub-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #FFFFFF;
}

.public-hub-overlay p {
  color: #CBD5E1;
  font-size: 0.95rem;
  max-width: 650px;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.public-hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.public-hub-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 992px) {
  .public-hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .public-hero-content {
    align-items: center;
  }
  .public-hero-actions {
    justify-content: center;
  }
  .public-hero-pills {
    justify-content: center;
  }
  .public-steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .public-hero-img {
    height: 320px;
  }
  .public-showcase-img {
    height: 300px;
  }
}

.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-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.public-feat-card:nth-child(1) {
  border-left: 4px solid var(--accent-cyan, #00E5FF);
}

.public-feat-card:nth-child(2) {
  border-left: 4px solid var(--accent-emerald, #10B981);
}

.public-feat-card:nth-child(3) {
  border-left: 4px solid var(--accent-purple, #8B5CF6);
}

.public-feat-card:nth-child(4) {
  border-left: 4px solid var(--accent-amber, #F59E0B);
}

.public-feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px -5px rgba(0, 229, 255, 0.15);
}

.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: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  width: 100%;
}

.public-station-card,
.station-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.08);
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}

[data-theme="light"] .public-station-card,
[data-theme="light"] .station-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
}

.public-station-card:hover,
.station-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: 0 18px 40px -10px rgba(2, 132, 199, 0.16);
}

.station-card-top,
.station-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.station-card-title,
.station-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.4rem 0 0.25rem;
  letter-spacing: -0.01em;
}

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

.station-power-badge {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.power-kw {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
  display: block;
}

.power-unit {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.station-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .station-card-meta {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}

.meta-val {
  font-size: 1.05rem;
  color: var(--text-main);
}

/* Interactive Station Pricing Button */
.meta-item-pricing {
  position: relative;
}

.pricing-hint {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  animation: pulseCyan 2s infinite ease-in-out;
}

@keyframes pulseCyan {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; transform: scale(1.02); }
}

.station-pricing-btn {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.station-pricing-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 229, 255, 0.18);
}

.station-pricing-btn:active {
  transform: translateY(0);
}

.pricing-rate-pence {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.pricing-btn-footer {
  padding-top: 0.2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .station-pricing-btn {
  background: #F0FDF4;
  border-color: #86EFAC;
}

[data-theme="light"] .station-pricing-btn:hover {
  background: #DCFCE7;
  border-color: #22C55E;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.2);
}

[data-theme="light"] .pricing-rate-pence {
  color: #047857 !important;
}

[data-theme="light"] .pricing-btn-footer {
  border-top-color: #CBD5E1;
  color: #64748B !important;
}

/* Pricing Details Modal */
.pricing-dialog {
  max-height: 90vh;
  overflow-y: auto;
}

.pricing-modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pricing-station-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.pricing-card-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card-stat .stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.pricing-card-stat .stat-main {
  font-size: 1.35rem;
  margin: 0.35rem 0 0.2rem 0;
  letter-spacing: -0.01em;
}

.pricing-card-stat .stat-sub {
  font-size: 0.72rem;
  line-height: 1.3;
}

.pricing-breakdown-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

[data-theme="light"] .pricing-station-banner,
[data-theme="light"] .pricing-card-stat,
[data-theme="light"] .pricing-breakdown-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .pricing-modal-icon-badge {
  background: #E0F2FE;
}

[data-theme="light"] .pricing-modal-icon-badge i {
  color: #008DA8 !important;
}

[data-theme="light"] .pricing-card-stat .stat-main.text-cyan {
  color: #008DA8 !important;
}

.site-amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.site-amenity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
}

[data-theme="light"] .site-amenity-pill {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
}

.btn-maps-directions,
.btn-maps-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-maps-directions {
  background: var(--accent-cyan);
  color: #0F172A;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

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

.btn-maps-pin {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

[data-theme="light"] .btn-maps-pin {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.btn-maps-pin:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.station-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

/* ==========================================================================
   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;
}

.commissioning-key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 165, 233, 0.08);
  border: 2px dashed #0EA5E9;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.commissioning-key-text {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #38BDF8;
}

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

[data-theme="light"] .commissioning-key-box {
  background: #F0F9FF;
  border-color: #008DA8;
}

[data-theme="light"] .commissioning-key-text {
  color: #006478;
}

.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: #F0FDF4;
  border: 1px solid #BBF7D0;
  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: #F0F9FF;
  border: 1px solid #BAE6FD;
  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;
}

/* ==========================================================================
   Network Building Out / Rollout Status Card
   ========================================================================== */
.network-building-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}

[data-theme="light"] .network-building-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.08);
}

.network-building-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.network-pulse-icon {
  font-size: 2rem;
  color: var(--accent-cyan);
  animation: pulse-beacon 2s infinite ease-in-out;
}

@keyframes pulse-beacon {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(2, 132, 199, 0.6));
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.network-building-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.network-building-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.network-building-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
}

/* Station Editor Modal & Amenity / Port Management */
.modal-dialog-lg {
  max-width: 780px !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-body-scroll {
  overflow-y: auto;
  padding: 1.75rem 2rem;
  flex: 1;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.form-section-title:first-child {
  margin-top: 0;
}

.amenity-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.amenity-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  color: var(--text-main);
}

.amenity-checkbox-label:hover {
  background: var(--bg-hover);
  border-color: #0ea5e9;
}

.amenity-checkbox-label input[type="checkbox"] {
  accent-color: #0ea5e9;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.connectors-editor-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.connector-edit-row {
  display: grid;
  grid-template-columns: 75px 1.4fr 1fr 1fr 36px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.connector-bay-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg-elevated);
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-remove-connector {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-connector:hover {
  color: #f43f5e;
}

.site-amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0;
}

.site-amenity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
}

.site-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.site-card-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.site-action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-visibility-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.site-visibility-box label {
  cursor: pointer;
  margin-bottom: 0;
}

/* ==========================================================================
   Global Footer Version Badge Styling
   ========================================================================== */
.footer-version-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.65rem;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition-fast);
}

.version-pill i {
  color: var(--color-cyan, #0EA5E9);
  font-size: 0.7rem;
}

.version-pill:hover {
  color: var(--color-cyan, #0EA5E9);
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.08);
}

[data-theme="light"] .version-pill {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #64748B;
}

[data-theme="light"] .version-pill:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: #0EA5E9;
  color: #0369A1;
}

.portal-main-footer {
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Customer CRM, Contract Lifecycle & GPS Pinpoint Styling
   ========================================================================== */
.crm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.crm-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.crm-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.4);
}

.crm-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-cyan);
}

.crm-kpi-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
}

.crm-kpi-icon.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.crm-kpi-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
}

.crm-kpi-meta h4 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.crm-kpi-meta span {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* 90-Day Renewal Pulsing Badge */
.badge-renewal-alert {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  animation: pulse-amber 2s infinite ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@keyframes pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Map Pinpoint Button */
.btn-maps-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-maps-pin:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #EF4444;
  color: #FECACA;
  transform: translateY(-1px);
}

.btn-maps-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #00E5FF 0%, #00B4D8 100%);
  color: #070B14;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.3);
  transition: all 0.2s ease;
}

.btn-maps-directions:hover {
  background: #33EBFF;
  color: #070B14;
  transform: translateY(-1px);
}

/* Customer 360 Profile Modal */
.customer-profile-hero {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: gap-3;
}

.customer-detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.customer-detail-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.profile-kv-item .kv-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-kv-item .kv-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Contract Countdown Widget */
.contract-progress-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.contract-progress-bar-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.contract-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.contract-progress-fill.active {
  background: linear-gradient(90deg, #10B981, #0EA5E9);
}

.contract-progress-fill.warning {
  background: linear-gradient(90deg, #F59E0B, #EF4444);
}

/* Documents Table in CRM */
.docs-table {
  width: 100%;
  border-collapse: collapse;
}

.docs-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.docs-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-main);
}

/* ==========================================================================
   Core Layout, Justification & Alignment Utilities
   ========================================================================== */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.w-100 { width: 100% !important; }

/* Light Theme Card Polish for Features & Steps */
[data-theme="light"] .public-feat-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .public-feat-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .public-step-item {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .public-step-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.08);
}

[data-theme="light"] .finder-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 14px 35px -8px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .input-with-prefix {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

[data-theme="light"] .input-prefix {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #64748B;
}

/* ==========================================================================
   Modern Smart Footer & Corporate Information
   ========================================================================== */
.public-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

[data-theme="light"] .public-footer {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
  text-align: left;
}

@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
}

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

.footer-logo-img {
  width: 32px;
  height: 32px;
}

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

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 1;
}

.footer-brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-top: 2px;
}

.footer-mission-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 360px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: #10B981;
  width: fit-content;
}

.status-live-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulse-live 1.8s infinite ease-in-out;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.company-info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[data-theme="light"] .company-info-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.company-info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.company-info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}

.company-info-value {
  font-size: 0.88rem;
  color: var(--text-main);
}

.company-info-link {
  font-size: 0.88rem;
  color: var(--accent-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.company-info-link:hover {
  text-decoration: underline;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-copy-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-bottom-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

[data-theme="light"] .footer-badge-item {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
}

/* =========================================================
   CHARGER SCREEN & BRANDING CUSTOMIZER STYLES
   ========================================================= */

.screen-customizer-grid {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 920px) {
  .screen-customizer-grid {
    grid-template-columns: 1fr;
  }
}

/* Hardware Bezel & Enclosure */
.autel-bezel-frame {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border: 3px solid #334155;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(14, 165, 233, 0.12);
  position: relative;
}

.autel-bezel-led-bar {
  height: 4px;
  width: 70px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: #10B981;
  box-shadow: 0 0 10px #10B981, 0 0 20px rgba(16, 185, 129, 0.5);
  transition: all 0.3s ease;
}

/* High-resolution Touchscreen Display */
.autel-lcd-screen {
  background: radial-gradient(circle at 50% 15%, #172554 0%, #0B1120 65%, #020617 100%);
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 14px;
  color: #F8FAFC;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
}

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

.lcd-brand-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #F8FAFC;
  display: flex;
  align-items: center;
}

.lcd-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lcd-clock {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  color: #94A3B8;
}

.lcd-icons {
  font-size: 0.7rem;
  color: #38BDF8;
}

.lcd-headline {
  font-size: 0.7rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
}

.lcd-banner-notice {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Statutory Tariff Card */
.lcd-tariff-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 10px;
  padding: 10px 10px 8px;
  text-align: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  transition: border-color 0.3s ease;
}

.lcd-tariff-label {
  font-size: 0.6rem;
  color: #38BDF8;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 2px;
}

.lcd-tariff-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.lcd-price-huge {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #38BDF8;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.lcd-price-unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: #94A3B8;
  margin-left: 4px;
}

.lcd-tariff-sub {
  font-size: 0.68rem;
  color: #94A3B8;
  margin-top: 2px;
  margin-bottom: 6px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.lcd-fees-row {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  margin-top: 4px;
}

.lcd-fee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lcd-fee-label {
  font-size: 0.55rem;
  color: #64748B;
  text-transform: uppercase;
  font-weight: 600;
}

.lcd-fee-val {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: #F1F5F9;
}

/* Standby Operating Guide Banner */
.lcd-guide-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 0.66rem;
  font-weight: 600;
  color: #34D399;
  text-align: center;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* QR Code Section */
.lcd-qr-section {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
}

.lcd-qr-code-graphic {
  background: #ffffff;
  padding: 3px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lcd-qr-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  text-align: left;
}

.lcd-qr-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #F8FAFC;
}

.lcd-qr-url {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.58rem;
  color: #38BDF8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lcd-qr-sub {
  font-size: 0.55rem;
  color: #64748B;
}

.lcd-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.58rem;
  color: #64748B;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

.lcd-lang-tags {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.55rem;
  color: #94A3B8;
}

.theme-color-chip {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-color-chip:hover {
  transform: scale(1.15);
}

.theme-color-chip.active {
  transform: scale(1.25);
  box-shadow: 0 0 8px currentColor;
  border-color: #ffffff !important;
}

/* ==========================================================================
   Core Layout Utilities & Form Components
   ========================================================================== */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }

.gap-1 { gap: 0.35rem !important; }
.gap-2 { gap: 0.75rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }

.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.ml-2 { margin-left: 0.5rem !important; }

.w-full { width: 100% !important; }

.form-select,
.form-control {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.form-select {
  cursor: pointer;
}

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

/* Contact Us Modal & HubSpot Embed */
.contact-modal-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-cyan);
}

.contact-modal-body {
  min-height: 480px;
  background: var(--bg-card);
  border-radius: 0 0 20px 20px;
}

#hubspot-form-container {
  min-height: 460px;
  width: 100%;
}

.hs-form-frame {
  min-height: 460px;
  width: 100%;
  display: block;
}

.hs-form-frame iframe {
  width: 100% !important;
  min-height: 460px !important;
  border: none !important;
  display: block !important;
}

/* Autel SmartBox DLM Diagnostics & Live Grid Telemetry Styles */
.smartbox-headroom-card {
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.2);
}

.smartbox-progress-container {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .smartbox-progress-container {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.smartbox-gauge-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.smartbox-gauge-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.btn-site-smartbox-dlm {
  border-color: rgba(5, 150, 105, 0.4);
  color: #059669;
}

.btn-site-smartbox-dlm:hover {
  background: rgba(5, 150, 105, 0.15);
  border-color: #059669;
  color: #10b981;
}

[data-theme="dark"] .btn-site-smartbox-dlm {
  color: #34d399;
}

[data-theme="dark"] .btn-site-smartbox-dlm:hover {
  color: #6ee7b7;
}

/* =========================================================
   CARBON INTENSITY & LANDOWNER DYNAMIC TARIFFS STYLING
   ========================================================= */

.carbon-intensity-badge {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.carbon-intensity-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.benchmark-widget-card {
  transition: all 0.2s ease;
}

[data-theme="light"] .benchmark-widget-card {
  background: rgba(240, 249, 255, 0.7) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .benchmark-stat-pill {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

.tariff-mode-radio-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tariff-mode-radio-card:hover {
  border-color: var(--accent-cyan) !important;
  transform: translateY(-1px);
}

[data-theme="light"] .tariff-mode-radio-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .tariff-mode-radio-card:has(input:checked) {
  border-color: var(--accent-cyan) !important;
  background: rgba(2, 132, 199, 0.04) !important;
}

.surge-pricing-card {
  transition: all 0.25s ease;
}

[data-theme="light"] .surge-pricing-card {
  background: rgba(254, 243, 199, 0.4) !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
}

[data-theme="light"] #modal-fair-pricing-notice .tariff-summary-box {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

/* ==========================================================================
   CUSTOMER SELF-ONBOARDING & DIGITAL CONTRACT SIGNING WIZARD STYLES
   ========================================================================== */

.onboarding-dialog {
  max-width: 960px !important;
  width: 95% !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.onboarding-dialog .modal-body-scroll {
  overflow-y: auto;
  max-height: calc(90vh - 150px);
  padding: 1.5rem 2rem;
}

/* Steps Progress Bar */
.onboard-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.onboard-step-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.55;
  transition: all 0.25s ease;
}

.onboard-step-indicator.active {
  opacity: 1;
}

.onboard-step-indicator.completed {
  opacity: 0.9;
}

.onboard-step-indicator .step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: all 0.25s ease;
}

.onboard-step-indicator.active .step-num {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #0F172A;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.4);
}

.onboard-step-indicator.completed .step-num {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #FFFFFF;
}

.onboard-step-indicator.completed .step-num::after {
  content: '✓';
  position: absolute;
}

.onboard-step-indicator .step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.onboard-step-indicator.active .step-label {
  color: var(--text-main);
  font-weight: 700;
}

.onboard-step-line {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 1rem;
  min-width: 20px;
}

/* Step 1: Decision Cards Grid */
.onboard-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.onboard-decision-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.onboard-decision-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.15);
}

.onboard-decision-card.selected {
  border-color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.04);
  box-shadow: 0 0 0 2px var(--accent-cyan), 0 16px 36px -8px rgba(2, 132, 199, 0.25);
}

#card-choice-rfid-yes.selected {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.04);
  box-shadow: 0 0 0 2px var(--accent-emerald), 0 16px 36px -8px rgba(16, 185, 129, 0.25);
}

.decision-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.decision-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

#card-choice-rfid-yes .decision-card-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
}

.decision-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.decision-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.decision-card-pricing {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.decision-card-pricing .price-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.decision-card-pricing .price-period {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.decision-card-pricing .price-sub {
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.decision-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

.decision-features-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1.4;
}

.decision-card-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.onboard-decision-card.selected .decision-card-select-btn {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #0F172A;
  font-weight: 700;
}

#card-choice-rfid-yes.selected .decision-card-select-btn {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #FFFFFF;
}

/* Step 3: Contract Scroll Viewer */
.contract-scroll-container {
  max-height: 380px;
  overflow-y: auto;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-main);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contract-scroll-container {
  background: #FCFDFE;
  border-color: #E2E8F0;
}

.contract-scroll-container h1,
.contract-scroll-container h2,
.contract-scroll-container h3,
.contract-scroll-container h4 {
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.contract-scroll-container h1 {
  font-size: 1.35rem;
  border-bottom: 2px solid var(--accent-cyan);
  padding-bottom: 0.4rem;
  margin-top: 0;
}

.contract-scroll-container h2 {
  font-size: 1.15rem;
  color: var(--accent-cyan);
}

.contract-scroll-container h3 {
  font-size: 0.98rem;
}

.contract-scroll-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.8rem;
}

.contract-scroll-container th,
.contract-scroll-container td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-subtle);
}

.contract-scroll-container th {
  background: var(--bg-surface);
  font-weight: 700;
  text-align: left;
}

/* Digital Signature Canvas Container */
.signature-box-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}

.signature-canvas-container {
  position: relative;
  background: #FFFFFF;
  border: 2px dashed rgba(2, 132, 199, 0.4);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 140px;
  cursor: crosshair;
}

[data-theme="dark"] .signature-canvas-container {
  background: #0F172A;
  border-color: rgba(2, 132, 199, 0.5);
}

#signature-canvas {
  width: 100%;
  height: 140px;
  display: block;
}

.signature-line-guide {
  position: absolute;
  bottom: 28px;
  left: 5%;
  right: 5%;
  height: 1px;
  border-bottom: 1px dashed rgba(2, 132, 199, 0.35);
  pointer-events: none;
}

.signature-canvas-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  color: #94A3B8;
  pointer-events: none;
  font-weight: 500;
  opacity: 0.6;
}

.onboard-terms-checkboxes .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.onboard-terms-checkboxes .checkbox-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-cyan);
}

/* Admin Portal Onboarding Approval Alert Banner */
.onboarding-pending-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(2, 132, 199, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: pulse-border 3s infinite ease-in-out;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(245, 158, 11, 0.35); }
  50% { border-color: rgba(245, 158, 11, 0.7); }
}

/* ==========================================================================
   PUBLIC LANDING PAGE - CMS DYNAMIC SECTIONS (STATS, FAQ, CTA)
   ========================================================================== */
.public-stats-section {
  padding: 3rem 0;
}
.public-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.public-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.public-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}
.public-stat-icon {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}
.public-stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.public-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* FAQ Accordion */
.public-faq-section {
  padding: 3.5rem 0;
}
.public-faq-accordion {
  max-width: 840px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.public-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.public-faq-item.active {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
}
.public-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}
.public-faq-question i {
  color: var(--accent-cyan);
  transition: transform 0.25s ease;
}
.public-faq-item.active .public-faq-question i {
  transform: rotate(180deg);
}
.public-faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: -0.25rem;
  padding-top: 1rem;
}
.public-faq-item.active .public-faq-answer {
  display: block;
}

/* CTA Banner Card */
.public-cta-banner-section {
  padding: 2rem 0 4rem;
}
.public-cta-banner-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.public-cta-content {
  max-width: 720px;
  margin: 0 auto;
}
.public-cta-content h2 {
  font-size: 2.1rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.public-cta-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   ELEMENTOR-STYLE HOMEPAGE CMS BUILDER STYLES
   ========================================================================== */
.elementor-builder-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  min-height: 750px;
  background: #151520;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.elementor-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: #1b1b28;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
  z-index: 10;
  flex-wrap: wrap;
}

.elementor-branding {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.elementor-brand-badge {
  background: linear-gradient(135deg, #e2498a, #93003c);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.elementor-device-toggles {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px;
}

.elementor-device-btn {
  background: none;
  border: none;
  color: #94a3b8;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.elementor-device-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.elementor-device-btn.active {
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.15);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

.elementor-top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.elementor-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.elementor-sidebar {
  width: 380px;
  min-width: 340px;
  max-width: 440px;
  background: #1b1b28;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 5;
}

.elementor-sidebar-tabs {
  display: flex;
  background: #151522;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.elementor-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.75rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.elementor-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.elementor-tab-btn.active {
  color: #00d2ff;
  border-bottom-color: #00d2ff;
  background: rgba(0, 210, 255, 0.05);
}

.elementor-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

/* Widgets Grid in Elements Tab */
.elementor-widgets-category-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 1.25rem 0 0.6rem;
}
.elementor-widgets-category-title:first-child {
  margin-top: 0;
}

.elementor-widgets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.elementor-widget-card {
  background: #232334;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.9rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.elementor-widget-card:hover {
  background: #2a2a3e;
  border-color: #00d2ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.15);
}

.elementor-widget-card i {
  font-size: 1.4rem;
  color: #00d2ff;
  margin-bottom: 0.45rem;
}

.elementor-widget-card .widget-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

.elementor-widget-card .widget-status {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 0.2rem;
}

/* Navigator Tree */
.elementor-nav-tree {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.elementor-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #232334;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.elementor-tree-item:hover {
  background: #2a2a3e;
  border-color: rgba(0, 210, 255, 0.3);
}

.elementor-tree-item.active {
  border-color: #00d2ff;
  background: rgba(0, 210, 255, 0.1);
}

.elementor-tree-drag {
  cursor: grab;
  color: #64748b;
  margin-right: 0.6rem;
}

.elementor-tree-drag:active {
  cursor: grabbing;
}

.elementor-tree-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  flex: 1;
}

.elementor-tree-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Canvas Area */
.elementor-canvas-wrapper {
  flex: 1;
  background: #0d0d16;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.elementor-canvas-viewport {
  width: 100%;
  max-width: 100%;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
}

.elementor-canvas-viewport.viewport-tablet {
  max-width: 768px;
  box-shadow: 0 0 0 12px #232334, 0 20px 50px rgba(0, 0, 0, 0.8);
  border-radius: 20px;
}

.elementor-canvas-viewport.viewport-mobile {
  max-width: 380px;
  box-shadow: 0 0 0 12px #232334, 0 20px 50px rgba(0, 0, 0, 0.8);
  border-radius: 28px;
}

.elementor-canvas-frame {
  background: var(--bg-main, #ffffff);
  color: var(--text-main, #0f172a);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  min-height: 600px;
  padding: 1.5rem;
}

/* Elementor Section Hover & Interactive Overlay */
.elementor-section-block {
  position: relative;
  transition: outline 0.15s ease, opacity 0.2s ease;
  outline: 2px solid transparent;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.elementor-section-block:hover {
  outline: 2px solid #00d2ff;
}

.elementor-section-block.is-active-section {
  outline: 2px solid #00d2ff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

.elementor-section-block.is-disabled {
  opacity: 0.35;
  filter: grayscale(0.8);
}

.elementor-section-toolbar {
  position: absolute;
  top: -12px;
  right: 12px;
  display: none;
  align-items: center;
  gap: 2px;
  background: #00d2ff;
  color: #04121e;
  border-radius: 4px;
  padding: 2px 6px;
  z-index: 50;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.elementor-section-block:hover .elementor-section-toolbar,
.elementor-section-block.is-active-section .elementor-section-toolbar {
  display: flex;
}

.elementor-toolbar-btn {
  background: none;
  border: none;
  color: #04121e;
  padding: 3px 5px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s ease;
  font-size: 0.75rem;
}

.elementor-toolbar-btn:hover {
  background: rgba(0, 0, 0, 0.15);
}

.elementor-add-section-zone {
  margin: 2rem auto;
  max-width: 600px;
  padding: 2.5rem 1rem;
  border: 2px dashed rgba(2, 132, 199, 0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(2, 132, 199, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.elementor-add-section-zone:hover {
  border-color: #00E5FF;
  background: rgba(0, 229, 255, 0.08);
  transform: scale(1.01);
}

.elementor-add-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00E5FF, #00B4D8);
  color: #070B14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.4);
  margin-bottom: 0.6rem;
}

.elementor-input-group {
  margin-bottom: 1.1rem;
}

.elementor-input-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.elementor-input-group input[type="text"],
.elementor-input-group input[type="number"],
.elementor-input-group textarea,
.elementor-input-group select {
  width: 100%;
  background: #151522;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: border-color 0.2s ease;
}

.elementor-input-group input:focus,
.elementor-input-group textarea:focus,
.elementor-input-group select:focus {
  border-color: #00d2ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
}

/* =========================================================
   EMAIL TEMPLATE STUDIO (RESPONSIVE HTML ENGINE)
   ========================================================= */

.email-studio-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  min-height: 720px;
  background: var(--bg-base, #070B14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 1. Studio Top Control Bar */
.email-studio-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #0F172A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 10;
}

.email-studio-branding {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.email-studio-branding i {
  font-size: 1.4rem;
}

.email-studio-selector-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 420px;
}

.email-studio-select {
  background: #1E293B !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
}

/* Device Viewport Buttons */
.email-device-toggles {
  display: flex;
  align-items: center;
  background: #1E293B;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 2px;
}

.email-device-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.email-device-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.email-device-btn.active {
  background: #0EA5E9;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.email-studio-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 2. Subject & Merge Tags Bar */
.email-studio-meta-bar {
  background: #151F32;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.meta-inputs-grid {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-field {
  flex: 1;
  min-width: 260px;
}

.meta-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94A3B8;
  margin-bottom: 0.3rem;
}

.meta-input {
  background: #0B1120 !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px;
  font-size: 0.85rem;
}

.meta-input:focus {
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2) !important;
}

.meta-field-toggle {
  padding-bottom: 0.45rem;
}

/* Merge Tag Chips */
.email-merge-tags-drawer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.merge-tags-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-pill {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #C4B5FD;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-pill:hover {
  background: rgba(139, 92, 246, 0.28);
  border-color: #8B5CF6;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* 3. Three-Panel Studio Layout */
.email-studio-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebars (Palette on Left, Inspector on Right) */
.email-studio-sidebar {
  width: 290px;
  background: #0F172A;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 5;
}

.email-inspector-dock {
  width: 320px;
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.email-sidebar-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #111C35;
}

.email-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.email-tab-btn:hover {
  color: #FFFFFF;
}

.email-tab-btn.active {
  color: #F59E0B;
  border-bottom-color: #F59E0B;
  background: rgba(245, 158, 11, 0.06);
}

.email-sidebar-content {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.palette-category-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  margin-bottom: 0.5rem;
}

.email-palette-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.email-block-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.email-block-card i {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.email-block-card .block-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #F8FAFC;
}

.email-block-card .block-desc {
  font-size: 0.65rem;
  color: #94A3B8;
  margin-top: 0.15rem;
  line-height: 1.2;
}

.email-block-card:hover {
  background: #27354E;
  border-color: #F59E0B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.email-block-card:active {
  transform: translateY(0);
}

/* Center Canvas & Viewport Simulation */
.email-canvas-wrapper {
  flex: 1;
  background: #070B14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow-y: auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.email-canvas-viewport {
  width: 100%;
  max-width: 680px;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
}

.email-canvas-viewport.viewport-tablet {
  max-width: 520px;
}

.email-canvas-viewport.viewport-tablet .email-device-chrome {
  border: 14px solid #1E293B;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #1E293B;
  padding-top: 10px;
  padding-bottom: 10px;
}

.email-canvas-viewport.viewport-tablet .email-device-speaker {
  width: 50px;
  height: 4px;
  background: #334155;
  border-radius: 9999px;
  margin: 0 auto 8px auto;
}

.email-canvas-viewport.viewport-mobile {
  max-width: 385px;
}

.email-canvas-viewport.viewport-mobile .email-device-chrome {
  border: 12px solid #1E293B;
  border-radius: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #1E293B;
  padding-top: 12px;
  padding-bottom: 12px;
}

.email-canvas-viewport.viewport-mobile .email-device-speaker {
  width: 60px;
  height: 5px;
  background: #334155;
  border-radius: 9999px;
  margin: 0 auto 10px auto;
}

.email-canvas-viewport.viewport-mobile .email-device-home-bar {
  width: 120px;
  height: 4px;
  background: #475569;
  border-radius: 9999px;
  margin: 10px auto 0 auto;
}

.email-device-screen {
  background: #F8FAFC;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Interactive Canvas Blocks */
.email-interactive-canvas {
  width: 100%;
}

.email-canvas-block {
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.email-canvas-block:hover {
  outline: 2px dashed rgba(245, 158, 11, 0.6);
}

.email-canvas-block.selected {
  outline: 2px solid #F59E0B !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
  z-index: 2;
}

/* Floating Block Action Toolbar */
.block-hover-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 2px 4px;
  display: none;
  align-items: center;
  gap: 2px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.email-canvas-block:hover .block-hover-actions,
.email-canvas-block.selected .block-hover-actions {
  display: flex;
}

.block-action-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.72rem;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.block-action-btn:hover {
  color: #FFFFFF;
  background: #1E293B;
}

.block-action-btn.btn-delete:hover {
  color: #F43F5E;
}

/* Add Block Button Zone */
.email-add-block-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  margin: 1.25rem;
  border: 2px dashed rgba(15, 23, 42, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.email-add-block-zone:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: #F59E0B;
}

.add-block-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F59E0B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* Right Inspector Dock */
.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #111C35;
}

.inspector-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  padding: 1.5rem;
}

.empty-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.inspector-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.inspector-group {
  margin-bottom: 1rem;
}

.inspector-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94A3B8;
  margin-bottom: 0.35rem;
}

.inspector-group input[type="text"],
.inspector-group input[type="number"],
.inspector-group input[type="url"],
.inspector-group textarea,
.inspector-group select {
  width: 100%;
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.inspector-group input:focus,
.inspector-group textarea:focus,
.inspector-group select:focus {
  border-color: #F59E0B;
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.color-picker-input {
  width: 36px;
  height: 34px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: #1E293B;
  cursor: pointer;
}

/* Terms & Invoice Table Rows in Inspector */
.inspector-row-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.inspector-row-item input {
  font-size: 0.78rem !important;
  padding: 0.4rem 0.5rem !important;
}

/* 4. Mode Toggles: Visual Designer vs HTML Source */
.email-mode-toggles {
  display: flex;
  align-items: center;
  background: #1E293B;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 2px;
}

.email-mode-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.email-mode-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.email-mode-btn.active {
  background: #F59E0B;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* 5. In-Canvas Inline Rich Text Formatting Floating Toolbar */
.email-inline-toolbar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 100;
  animation: fadeInDown 0.15s ease-out;
}

.inline-tool-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.inline-tool-btn:hover {
  background: #1E293B;
  color: #FFFFFF;
}

.inline-tool-btn.active {
  background: #F59E0B;
  color: #000000;
}

.inline-tool-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
}

/* In-canvas inline-editable element indicator */
.email-inline-editable {
  outline: 1px dashed transparent;
  outline-offset: 2px;
  transition: outline 0.15s ease;
  min-height: 1.2em;
}

.email-inline-editable:hover {
  outline-color: rgba(245, 158, 11, 0.5);
  cursor: text;
}

.email-inline-editable:focus {
  outline: 2px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 4px;
}

/* 6. Raw HTML Code Editor View */
.email-html-editor-view {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 580px;
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.html-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: #111C35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.email-code-textarea {
  flex: 1;
  width: 100%;
  min-height: 520px;
  background: #070B14;
  color: #38BDF8;
  font-family: var(--font-mono, 'Fira Code', 'Courier New', monospace);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 1.25rem;
  border: none;
  resize: none;
  outline: none;
  white-space: pre;
  tab-size: 2;
}

.email-code-textarea:focus {
  outline: none;
}

/* =========================================================
   FULL-WORKSPACE POP-OUT / MAXIMIZE MODE (CMS & EMAIL)
   ========================================================= */

body.editor-popped-out {
  overflow: hidden !important;
}

.elementor-builder-wrapper.is-popped-out,
.email-studio-wrapper.is-popped-out {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 999999 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #070B14 !important;
}

/* CMS Popped Out Heights */
.elementor-builder-wrapper.is-popped-out .elementor-workspace {
  height: calc(100vh - 58px) !important;
  max-height: calc(100vh - 58px) !important;
}

.elementor-builder-wrapper.is-popped-out .elementor-sidebar {
  height: calc(100vh - 58px) !important;
  max-height: calc(100vh - 58px) !important;
}

.elementor-builder-wrapper.is-popped-out .elementor-sidebar-content {
  height: calc(100vh - 110px) !important;
  max-height: calc(100vh - 110px) !important;
}

.elementor-builder-wrapper.is-popped-out .elementor-canvas-wrapper {
  height: calc(100vh - 58px) !important;
  max-height: calc(100vh - 58px) !important;
}

/* Email Studio Popped Out Heights */
.email-studio-wrapper.is-popped-out .email-studio-workspace {
  height: calc(100vh - 138px) !important;
  max-height: calc(100vh - 138px) !important;
}

.email-studio-wrapper.is-popped-out .email-studio-palette,
.email-studio-wrapper.is-popped-out .email-studio-inspector {
  height: calc(100vh - 138px) !important;
  max-height: calc(100vh - 138px) !important;
}

.email-studio-wrapper.is-popped-out .email-palette-content,
.email-studio-wrapper.is-popped-out .email-inspector-content {
  height: calc(100vh - 190px) !important;
  max-height: calc(100vh - 190px) !important;
}

.email-studio-wrapper.is-popped-out .email-canvas-wrapper {
  height: calc(100vh - 138px) !important;
  max-height: calc(100vh - 138px) !important;
}

.email-studio-wrapper.is-popped-out .email-html-editor-view {
  height: calc(100vh - 138px) !important;
  max-height: calc(100vh - 138px) !important;
}

.email-studio-wrapper.is-popped-out .email-code-textarea {
  height: calc(100vh - 200px) !important;
}

/* Pop-out Action Button Indicators */
.btn-popout-active {
  background: rgba(0, 210, 255, 0.2) !important;
  color: #00d2ff !important;
  border-color: #00d2ff !important;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3) !important;
}

.btn-email-popout-active {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #F59E0B !important;
  border-color: #F59E0B !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3) !important;
}
