:root,
[data-theme="light"],
body.theme-light {
  --bg-space: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-hover: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-surface: #ffffff;
  --bg-top-bar: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 80%, rgba(255, 255, 255, 0) 100%);
  --bg-bottom-dock: linear-gradient(0deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0) 100%);
  --bg-drawer: #ffffff;
  --bg-modal: #ffffff;
  --bg-input: #ffffff;
  --bg-dropdown-hover: rgba(2, 132, 199, 0.08);
  --bg-chip: #ffffff;
  --bg-tag: #ffffff;
  --bg-table-header: #ffffff;
  --bg-table-hover: rgba(2, 132, 199, 0.04);
  --bg-overlay: rgba(0, 0, 0, 0.25);
  
  --border-subtle: rgba(203, 213, 225, 0.85);
  --border-glow: rgba(2, 132, 199, 0.35);
  --border-divider: rgba(226, 232, 240, 0.9);
  --box-shadow-main: 0 10px 30px rgba(0, 0, 0, 0.06);
  --box-shadow-modal: 0 25px 60px rgba(15, 23, 42, 0.18), 0 0 25px rgba(2, 132, 199, 0.12);
  --box-shadow-drawer: 0 20px 50px rgba(15, 23, 42, 0.15), 0 0 20px rgba(2, 132, 199, 0.08);
  
  --primary: #0284c7;
  --primary-glow: rgba(2, 132, 199, 0.25);
  --btn-active-bg: rgba(2, 132, 199, 0.15);
  --btn-active-color: #0284c7;
  
  --costa-red: #e11d48;
  --costa-glow: rgba(225, 29, 72, 0.25);
  --emerald: #059669;
  --amber: #d97706;
  --violet: #7c3aed;
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --touch-target: 48px;
}

[data-theme="dark"],
body.theme-dark {
  --bg-space: #070a13;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(30, 41, 59, 0.88);
  --bg-card-solid: #0d1323;
  --bg-glass: rgba(11, 17, 33, 0.72);
  --bg-surface: rgba(15, 23, 42, 0.65);
  --bg-top-bar: linear-gradient(180deg, rgba(7, 10, 19, 0.95) 0%, rgba(7, 10, 19, 0.4) 80%, transparent 100%);
  --bg-bottom-dock: linear-gradient(0deg, rgba(7, 10, 19, 0.95) 0%, rgba(7, 10, 19, 0.4) 70%, transparent 100%);
  --bg-drawer: rgba(11, 17, 33, 0.94);
  --bg-modal: rgba(15, 23, 42, 0.96);
  --bg-input: rgba(7, 10, 19, 0.7);
  --bg-dropdown-hover: rgba(255, 255, 255, 0.08);
  --bg-chip: rgba(7, 10, 19, 0.7);
  --bg-tag: rgba(7, 10, 19, 0.92);
  --bg-table-header: rgba(255, 255, 255, 0.03);
  --bg-table-hover: rgba(255, 255, 255, 0.02);
  --bg-overlay: rgba(3, 7, 18, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.35);
  --border-divider: rgba(255, 255, 255, 0.04);
  --box-shadow-main: 0 20px 40px rgba(0, 0, 0, 0.5);
  --box-shadow-modal: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(6, 182, 212, 0.25);
  --box-shadow-drawer: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.15);
  
  --primary: #06b6d4;
  --primary-glow: rgba(6, 182, 212, 0.4);
  --btn-active-bg: rgba(6, 182, 212, 0.2);
  --btn-active-color: #ffffff;
  
  --costa-red: #e11d48;
  --costa-glow: rgba(225, 29, 72, 0.4);
  --emerald: #10b981;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

body.theme-costa {
  --primary: #e11d48;
  --primary-glow: rgba(225, 29, 72, 0.4);
  --border-glow: rgba(225, 29, 72, 0.45);
}

body.theme-emerald {
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.4);
  --border-glow: rgba(16, 185, 129, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-space);
  color: var(--text-main);
  font-family: var(--font-body);
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 3D Globe Container */
#globe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  cursor: grab;
}

#globe-container:active {
  cursor: grabbing;
}

/* Executive HUD Glass Wrapper */
.hud-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-interactive {
  pointer-events: auto;
}

/* TOP STATUS BAR */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  height: 64px;
  box-sizing: border-box;
  background: var(--bg-top-bar);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  gap: 14px;
  transition: background 0.3s ease, border-color 0.3s ease;
  z-index: 50;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-icon-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.65);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.brand-titles h1 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-titles .badge-ceo {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--border-glow);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.brand-titles p {
  font-size: 9.5px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  font-weight: 600;
  margin: 2px 0 0 0;
  line-height: 1;
  white-space: nowrap;
}

/* Telemetry Stats Ticker */
.telemetry-ticker {
  display: inline-flex;
  align-items: center;
  height: 40px;
  box-sizing: border-box;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0 16px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  white-space: nowrap;
}

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

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

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ticker-divider {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
}

/* Touch Search Bar */
.search-container {
  position: relative;
  width: 200px;
  flex-shrink: 1;
  min-width: 140px;
}

.search-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  height: 40px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.search-input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.search-input-box i {
  color: var(--text-dim);
  margin-right: 10px;
  font-size: 13px;
}

.search-input-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 12.5px;
  width: 100%;
  font-family: inherit;
}

.search-input-box input::placeholder {
  color: var(--text-dim);
}

.search-dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  background: var(--bg-modal);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow-modal);
  display: none;
  z-index: 100;
}

.search-dropdown.active {
  display: block;
}

.search-result-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-divider);
  transition: background 0.15s ease;
}

.search-result-item:hover, .search-result-item:active {
  background: var(--bg-dropdown-hover);
}

.result-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.result-info h4 {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
}

.result-info p {
  font-size: 11px;
  color: var(--text-muted);
}

/* Top Action Controls */
.top-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.hud-btn {
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  box-sizing: border-box;
}

.hud-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.hud-btn:active {
  transform: scale(0.97);
}

.hud-btn.active {
  background: var(--btn-active-bg);
  border-color: var(--primary);
  color: var(--btn-active-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

.hud-btn.primary {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.hud-btn.costa-btn {
  background: rgba(225, 29, 72, 0.15);
  border-color: var(--costa-red);
  color: var(--costa-red);
}

.hud-btn.theme-toggle-btn {
  border-color: var(--border-glow);
}

.hud-btn.theme-toggle-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.hud-btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
}

/* User Pill */
.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0 12px 0 5px;
  height: 40px;
  box-sizing: border-box;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.user-profile-pill:hover {
  border-color: var(--primary);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.user-meta {
  text-align: left;
}

.user-meta .user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.user-meta .user-role {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* LEFT FEEDS SIDEBAR (API ENDPOINTS) */
.feeds-panel {
  position: absolute;
  top: 88px;
  left: 24px;
  width: 340px;
  max-height: calc(100vh - 190px);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--box-shadow-main);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 20;
}

.feeds-panel.collapsed {
  transform: translateX(-380px);
  opacity: 0;
  pointer-events: none;
}

.feeds-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-divider);
}

.feeds-header h2 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feeds-list {
  padding: 12px 14px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.feed-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

.feed-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.feed-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.feed-details {
  min-width: 0;
}

.feed-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-sub {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-count-chip {
  background: var(--bg-chip);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

/* Custom Touch Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(148, 163, 184, 0.3);
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.feeds-footer {
  padding: 14px;
  border-top: 1px solid var(--border-divider);
  display: flex;
  gap: 8px;
}

.feeds-footer .hud-btn {
  flex: 1;
  justify-content: center;
}

/* Toggle feeds tab trigger when collapsed */
.feeds-tab-trigger {
  position: absolute;
  top: 88px;
  left: 24px;
  z-index: 15;
  box-shadow: var(--box-shadow-main);
}

/* BOTTOM QUICK-FLY TOUCH CAROUSEL */
.bottom-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px 24px;
  background: var(--bg-bottom-dock);
  gap: 12px;
  transition: background 0.3s ease;
}

.quick-fly-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px);
  overflow-x: auto;
  max-width: 90vw;
  box-shadow: var(--box-shadow-main);
}

.region-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.region-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.region-btn:active {
  transform: scale(0.96);
}

.region-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.dock-secondary-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* RIGHT ASSET DETAILS DRAWER (EXECUTIVE DOSSIER) */
.asset-drawer {
  position: absolute;
  top: 88px;
  right: 24px;
  width: 440px;
  max-height: calc(100vh - 190px);
  background: var(--bg-drawer);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--box-shadow-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(500px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 30;
  overflow: hidden;
}

.asset-drawer.open {
  transform: translateX(0);
  opacity: 1;
}

.drawer-header {
  padding: 20px 60px 20px 20px;
  border-bottom: 1px solid var(--border-divider);
  position: relative;
  background: transparent;
}

.drawer-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.category-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
}

.drawer-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.drawer-header .asset-address {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 100;
  pointer-events: auto;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.drawer-close-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: scale(1.08);
}

.drawer-close-btn:active {
  transform: scale(0.95);
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* KPI Metric Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.kpi-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.kpi-card .kpi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.kpi-card .kpi-value {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-main);
}

.kpi-card .kpi-trend {
  font-size: 11px;
  color: var(--emerald);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Chart Container */
.chart-container-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

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

.chart-header h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.chart-header span {
  font-size: 10px;
  color: var(--text-dim);
}

.chart-canvas-wrapper {
  position: relative;
  height: 140px;
  width: 100%;
}

/* Operations & Telemetry Details List */
.telemetry-list {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px solid var(--border-divider);
  padding-bottom: 8px;
}

.telemetry-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.telemetry-row .tel-label {
  color: var(--text-muted);
}

.telemetry-row .tel-value {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

/* Drawer Footer Actions */
.drawer-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-divider);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  box-sizing: border-box;
}

.drawer-footer .hud-btn {
  height: 36px;
  padding: 0 6px;
  font-size: 11px;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3D GLOBE CUSTOM HTML MARKERS */
.globe-marker-wrapper {
  position: relative;
  transform: translate(-50%, -100%);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.globe-marker-wrapper:hover {
  transform: translate(-50%, -115%) scale(1.15);
  z-index: 999;
}

.globe-marker-pin {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  border: 2px solid #fff;
  transition: all 0.2s ease;
}

.globe-marker-pin i {
  transform: rotate(45deg);
  color: #fff;
  font-size: 15px;
}

.globe-marker-pulse {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  animation: radar-wave 2.2s infinite ease-out;
}

@keyframes radar-wave {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.9;
  }
  100% {
    width: 70px;
    height: 70px;
    opacity: 0;
  }
}

.globe-marker-tag {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-tag);
  border: 1px solid var(--border-glow);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--box-shadow-main);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.globe-marker-wrapper:hover .globe-marker-tag {
  opacity: 1;
}

/* MODAL WINDOWS (General) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  background: var(--bg-modal);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: var(--box-shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-box form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-divider);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  box-sizing: border-box;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* FORM STYLES */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

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

/* Tables in User Management Modal */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.styled-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-table-header);
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.styled-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-divider);
  color: var(--text-muted);
}

.styled-table tr:hover td {
  background: transparent;
  color: inherit;
}

/* Responsive adjustments */
@media (max-width: 1550px) {
  .telemetry-ticker {
    display: none;
  }
}

@media (max-width: 1180px) {
  .top-controls .hud-btn span {
    display: none;
  }
  .top-controls .hud-btn {
    padding: 0 10px;
  }
  .user-profile-pill .user-meta {
    display: none;
  }
}

@media (max-width: 1024px) {
  .feeds-panel {
    width: 300px;
  }
  .asset-drawer {
    width: 380px;
  }
  .search-container {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 10px 14px;
  }
  .telemetry-ticker {
    display: none;
  }
  .search-container {
    display: none;
  }
  .feeds-panel {
    left: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    top: 70px;
  }
  .asset-drawer {
    left: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    top: 70px;
    max-height: calc(100vh - 90px);
  }
}

/* Print Media Styling for Executive Briefing Reports */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  #globe-container, .top-bar, .feeds-panel, .bottom-dock, .modal-overlay, .feeds-tab-trigger, .floating-fullscreen-btn {
    display: none !important;
  }
  .asset-drawer {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    transform: none !important;
    opacity: 1 !important;
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  .drawer-close-btn, .drawer-footer {
    display: none !important;
  }
  .drawer-header h3, .kpi-card .kpi-value, .telemetry-row .tel-value {
    color: #000 !important;
  }
  .kpi-card, .chart-container-box, .telemetry-list {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
  }
  .kpi-card .kpi-label, .telemetry-row .tel-label {
    color: #475569 !important;
  }
}

/* ========================================================
   GOOGLE EARTH 3D ENGINE & SETUP MODAL STYLES
   ======================================================== */
.hud-btn.engine-btn {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 700;
}

.hud-btn.engine-btn:hover {
  background: rgba(14, 165, 233, 0.3);
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.hud-btn.highlight {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.hud-btn.highlight:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #fbbf24;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.hud-btn.highlight.active-key {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.earth-status-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.status-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.setup-step-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.setup-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.setup-step-content {
  flex: 1;
}

.setup-step-content strong {
  color: var(--text-main);
  font-size: 13px;
  display: block;
  margin-bottom: 3px;
}

.setup-step-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}


/* ========================================================
   ROLE-BASED USER MANAGEMENT & AUTHENTICATION STYLES
   ======================================================== */

.user-profile-wrapper {
  position: relative;
  display: inline-block;
}

.user-profile-pill {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.user-profile-pill:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background: var(--bg-modal);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow-modal);
  padding: 10px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  backdrop-filter: blur(20px);
  animation: dropdownSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-menu.active {
  display: flex;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border-radius: 8px;
}

.dropdown-avatar {
  font-size: 26px;
  color: var(--primary);
}

.dropdown-meta {
  flex: 1;
  overflow: hidden;
}

.dropdown-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-email {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.role-badge.role-admin {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.5);
}

.role-badge.role-executive {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.role-badge.role-analyst {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-divider);
  margin: 6px 0;
}

.dropdown-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
}

.dropdown-item:hover {
  background: var(--bg-dropdown-hover);
  color: var(--text-main);
  transform: translateX(2px);
}

.dropdown-item.admin-highlight {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.dropdown-item.admin-highlight:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}

.dropdown-item.text-danger {
  color: #f87171;
}

.dropdown-item.text-danger:hover {
  background: rgba(225, 29, 72, 0.15);
  color: #fda4af;
}

.quick-switcher-row {
  display: flex;
  gap: 6px;
  padding: 4px 6px;
}

.btn-quick-switch {
  flex: 1;
  padding: 6px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-quick-switch:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--text-main);
}

/* ========================================================
   AUTH MODAL & RECAPTCHA
   ======================================================== */

.auth-tabs-strip {
  display: flex;
  border-bottom: 1px solid var(--border-divider);
  background: var(--bg-surface);
}

.auth-tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.auth-tab:hover {
  color: var(--text-main);
  background: var(--bg-dropdown-hover);
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(2, 132, 199, 0.08);
}

.auth-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: 14px;
}

.auth-alert.error {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid #e11d48;
  color: #fda4af;
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.recaptcha-widget-container {
  min-height: 78px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  padding: 10px;
}

/* ========================================================
   FEEDS PANEL USER ACTIONS & ENHANCEMENTS
   ======================================================== */

.feeds-section-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 10px 8px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.feed-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
}

.btn-feed-action {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-feed-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-feed-action.delete:hover {
  background: rgba(225, 29, 72, 0.2);
  border-color: #e11d48;
  color: #f87171;
}

/* ========================================================
   ADMIN USER CONSOLE & SETTINGS INSPECTOR
   ======================================================== */

.admin-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.admin-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.admin-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.user-inspect-box {
  background: var(--bg-surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 0 20px var(--primary-glow);
  animation: fadeIn 0.2s ease-in-out;
}

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

.user-inspect-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-divider);
}

.settings-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.settings-chip {
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
}

.settings-chip-key {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.settings-chip-val {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

/* ========================================================
   EXECUTIVE SUBSCRIPTION & PAYPAL BILLING STYLES
   ======================================================== */

.subscription-pill-btn {
  height: 40px;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(2, 132, 199, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: var(--text-main);
  font-weight: 700;
  padding: 0 13px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.subscription-pill-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(2, 132, 199, 0.22) 100%);
  border-color: #f59e0b !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.subscription-pill-btn i {
  color: #f59e0b;
}

.sub-tier-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  letter-spacing: 0.5px;
}

.sub-tier-pill.tier-enterprise {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.4);
}

.sub-tier-pill.tier-executive {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
}

.sub-tier-pill.tier-analyst {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.4);
}

.sub-tier-pill.tier-free {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.35);
}

/* Active Status Overview Banner */
.sub-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sub-status-pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.sub-plan-badge {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.sub-state-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sub-state-tag.status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}

.sub-state-tag.status-trial {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
}

.sub-status-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.sub-meta-sep {
  color: var(--text-dim);
  opacity: 0.5;
}

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

.sub-cancel-btn {
  background: transparent;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  font-size: 12px;
  height: 38px;
  padding: 0 14px;
}

.sub-cancel-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444 !important;
}

/* Billing Cycle Switcher */
.billing-switcher-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.billing-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-chip);
  padding: 5px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-period {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-period.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.discount-pill {
  font-size: 10px;
  font-weight: 700;
  background: #10b981;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 4px;
}

.btn-period.active .discount-pill {
  background: #ffffff;
  color: #059669;
}

/* 3-Tier Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
  background: var(--bg-card-hover);
  border: 2px solid #f59e0b;
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.15);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-3px);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.22);
}

.card-popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pricing-card-header {
  border-bottom: 1px solid var(--border-divider);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.tier-badge-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.tier-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.tier-tagline {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 16px 0;
  min-height: 34px;
  line-height: 1.4;
}

.tier-price-box {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}

.currency-symbol {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.price-val {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.price-period {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 4px;
}

.tier-subtext {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

/* Features checklist */
.tier-features-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.35;
}

.feature-item i {
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-item.disabled {
  opacity: 0.45;
  color: var(--text-dim);
}

.feature-item.disabled span {
  text-decoration: line-through;
}

/* Card CTA Box */
.tier-cta-box {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paypal-button-container {
  min-height: 42px;
  margin-bottom: 4px;
}

.btn-tier-select {
  width: 100%;
  height: 44px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pricing-card.current-active-plan {
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.current-plan-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* PayPal Trust Strip */
.paypal-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Demo Simulator Strip */
.demo-simulator-strip {
  background: rgba(168, 85, 247, 0.06);
  border: 1px dashed rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sim-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-main);
}

.sim-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-sim {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sim:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  color: #a855f7;
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-3px);
  }
  .sub-status-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   NEW EXECUTIVE FEATURE SUITE STYLES
   - Autopilot Briefing Tour
   - Incident & Telemetry Alerts Center
   - Operational Weather & Local Time Strip
   - Multi-Asset Comparison Matrix
   - Executive Dossier Export Studio
   ========================================================================== */

/* --- 1. Autopilot Briefing Tour --- */
.tour-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.2)) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #10b981 !important;
}

.tour-btn.active {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
}

.tour-controller-hud {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 25px rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  min-width: 460px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideUpTour 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpTour {
  from { opacity: 0; transform: translate(-50%, 25px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

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

.tour-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 1.4s infinite ease-in-out;
}

.tour-badge-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #10b981;
}

.tour-stop-counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-chip);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

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

.tour-asset-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-asset-location {
  font-size: 12px;
  color: var(--text-dim);
}

.tour-progress-track {
  width: 100%;
  height: 4px;
  background: var(--bg-chip);
  border-radius: 2px;
  overflow: hidden;
}

.tour-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  transition: width 0.2s linear;
}

.tour-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

/* --- 2. Incident & Telemetry Alerts Center --- */
.alerts-wrapper {
  position: relative;
  display: inline-block;
}

.alerts-bell-btn {
  position: relative;
}

.alerts-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e11d48;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  padding: 0 4px;
  border: 2px solid var(--bg-space);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.6);
}

.alerts-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glow);
  box-shadow: var(--box-shadow-modal);
  border-radius: var(--radius-md);
  padding: 0;
  display: none;
  flex-direction: column;
  z-index: 2500;
  animation: dropdownIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.alerts-dropdown.active {
  display: flex;
}

.alerts-header {
  padding: 14px 18px;
  background: var(--bg-chip);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alerts-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.btn-alerts-reset {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-alerts-reset:hover {
  background: var(--bg-dropdown-hover);
  color: var(--text-main);
}

.alerts-list {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
}

.alert-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.alert-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.alert-card.critical {
  border-left: 4px solid #e11d48;
}

.alert-card.warning {
  border-left: 4px solid #f59e0b;
}

.alert-card.milestone {
  border-left: 4px solid #10b981;
}

.alert-card.info {
  border-left: 4px solid #06b6d4;
}

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

.alert-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.alert-badge.critical { background: rgba(225, 29, 72, 0.15); color: #e11d48; }
.alert-badge.warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.alert-badge.milestone { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.alert-badge.info { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

.alert-time {
  font-size: 11px;
  color: var(--text-dim);
}

.alert-title-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.alert-msg {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.alert-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.alert-delta {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

.alert-btns {
  display: flex;
  gap: 6px;
}

.btn-alert-fly, .btn-alert-ack {
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-alert-fly:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-alert-ack:hover {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

/* --- 3. Operational Weather & Local Time Strip --- */
.drawer-weather-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.weather-pill {
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- 4. Multi-Asset Comparison Matrix --- */
.compare-selectors-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: var(--bg-chip);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.compare-selector-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-selector-box label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.compare-divider-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--costa-red));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.compare-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-matrix-table th {
  background: var(--bg-chip);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-glow);
  color: var(--text-main);
  font-family: var(--font-heading);
}

.compare-matrix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.compare-matrix-table tr:hover td {
  background: var(--bg-dropdown-hover);
}

.compare-metric-name {
  font-weight: 600;
  color: var(--text-main);
}

.compare-win {
  color: #10b981;
  font-weight: 700;
}

/* --- 5. Executive Intelligence Dossier Export Studio --- */
.dossier-report-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.dossier-watermark {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.dossier-report-header h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dossier-report-header p {
  font-size: 13px;
  color: var(--text-dim);
}

.dossier-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dossier-kpi-item {
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dossier-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}

.dossier-kpi-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.dossier-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dossier-section-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #modal-dossier-export, #modal-dossier-export * {
    visibility: visible;
  }
  #modal-dossier-export {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: #ffffff !important;
    color: #000000 !important;
  }
  .modal-box {
    box-shadow: none !important;
    border: none !important;
  }
  .modal-header, .modal-footer {
    display: none !important;
  }
}

/* ========================================================
   OPTIONS POPUP & FLOATING FULLSCREEN BUTTON
   ======================================================== */
.options-wrapper {
  position: relative;
  display: inline-block;
}

.options-toggle-btn .options-chevron {
  font-size: 9px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.options-toggle-btn.open .options-chevron {
  transform: rotate(180deg);
}

.options-popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: 92vw;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glow);
  box-shadow: var(--box-shadow-modal);
  border-radius: var(--radius-md);
  display: none;
  flex-direction: column;
  z-index: 2500;
  animation: dropdownIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.options-popup.active {
  display: flex;
}

.options-popup-header {
  padding: 12px 16px;
  background: var(--bg-chip);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.options-popup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--text-main);
}

.options-popup-close {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
}

.options-popup-close:hover {
  background: var(--bg-dropdown-hover);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.options-popup-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.options-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-dim);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.option-tile {
  width: 100%;
  height: 42px;
  justify-content: flex-start;
  padding: 0 12px;
  gap: 8px;
  font-size: 11px;
  border-radius: 8px;
}

.option-tile i {
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.options-divider {
  height: 1px;
  background: var(--border-divider);
  margin: 2px 0;
}

/* Floating Fullscreen Button (Lower Right) */
.floating-fullscreen-btn {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--box-shadow-main);
  z-index: 35;
  font-size: 15px;
}

.floating-fullscreen-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 20px var(--primary-glow);
}

@media (max-width: 768px) {
  .floating-fullscreen-btn {
    right: 16px;
    bottom: 84px;
    width: 42px;
    height: 42px;
  }
}




