/* ============================================================
   MagNav Mission Planner — Tactical Display Theme v4
   Dark desaturated mil-spec aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #060a10;
  --bg-secondary: #0a1018;
  --bg-tertiary: #0e1620;
  --bg-card: #0c1420;
  --border: #142030;
  --border-bright: #1c3048;
  --accent-cyan: #00d4ee;
  --accent-cyan-dim: rgba(0, 212, 238, 0.12);
  --accent-cyan-glow: rgba(0, 212, 238, 0.25);
  --accent-green: #00b848;
  --accent-yellow: #e5c200;
  --accent-orange: #e56000;
  --accent-red: #cc0000;
  --text-primary: #a0b0c0;
  --text-secondary: #607080;
  --text-dim: #384858;
  --text-bright: #d0dce8;
  --font-mono: 'IBM Plex Mono', 'Consolas', 'Monaco', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 48px;
  --footer-height: 32px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */
#header {
  height: var(--header-height);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

#header .title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.4)); }
  50% { filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.7)); }
}

.title-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.title-main {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-bright);
}

.title-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-top: 2px;
}

#header .controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Main Layout ---- */
#main {
  display: flex;
  height: calc(100vh - var(--header-height) - var(--footer-height));
}

#left-pane {
  width: 380px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg-primary);
}

/* ---- Mission Workflow Panel ---- */
#mission-workflow {
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow-y: auto;
  max-height: 45%;
}

.workflow-section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.workflow-section:last-child {
  border-bottom: none;
}

.workflow-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-number {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.step-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---- Platform Grid ---- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.platform-card:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.platform-card.active {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  box-shadow: 0 0 10px rgba(0, 212, 238, 0.12), inset 0 0 20px rgba(0, 212, 238, 0.05);
}

.platform-icon {
  font-size: 18px;
  line-height: 1;
  opacity: 0.9;
}

.platform-card-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.2;
}

.platform-card.active .platform-card-label {
  color: var(--accent-cyan);
}

.platform-card-code {
  font-size: 7px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ---- Mission Tabs ---- */
.mission-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.mission-tab {
  flex: 1;
  padding: 6px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.mission-tab:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.mission-tab.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

/* ---- Standard Mission List ---- */
.mission-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mission-preset {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mission-preset:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.mission-preset.active {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.mission-preset-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.mission-preset-info {
  flex: 1;
  min-width: 0;
}

.mission-preset-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.mission-preset-desc {
  font-size: 8px;
  color: var(--text-dim);
  margin-top: 1px;
  letter-spacing: 0.2px;
}

.mission-preset-region {
  font-size: 7px;
  font-weight: 600;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* ---- Custom Mission / Waypoint List ---- */
.custom-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.custom-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dim);
  flex: 1;
}

.tool-btn.small {
  padding: 3px 8px;
  font-size: 9px;
}

.waypoint-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 160px;
  overflow-y: auto;
}

.waypoint-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
}

.wp-idx {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-cyan);
  min-width: 24px;
}

.wp-coords {
  flex: 1;
  color: var(--text-secondary);
  font-size: 9px;
}

.wp-alt-badge {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.wp-alt-badge:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.wp-delete {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-mono);
}

.wp-delete:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: rgba(213, 0, 0, 0.1);
}

/* ---- Map Pane ---- */
#map-pane {
  flex: 1;
  position: relative;
  min-height: 200px;
}

#map-container {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
}

/* ---- Right Pane ---- */
#right-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 400px;
  background: var(--bg-primary);
}

#three-pane {
  flex: 1;
  position: relative;
  min-height: 300px;
}

#three-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Pane Labels ---- */
.pane-label {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 50;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(6, 10, 16, 0.8);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  pointer-events: none;
}

/* ---- Strip Chart ---- */
#strip-chart-pane {
  height: 140px;
  min-height: 100px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.strip-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  flex-shrink: 0;
}

.strip-chart-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.strip-chart-legend {
  display: flex;
  gap: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.legend-dot {
  width: 8px;
  height: 3px;
  border-radius: 1px;
}

.legend-dot.cep {
  background: var(--accent-cyan);
  box-shadow: 0 0 4px var(--accent-cyan);
}

.legend-dot.gradient {
  background: var(--accent-green);
  box-shadow: 0 0 4px var(--accent-green);
}

#strip-chart-canvas {
  flex: 1;
  width: 100%;
  display: block;
}

/* ---- Altitude Selector (right edge of 3D pane) ---- */
#altitude-selector {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alt-btn {
  width: 72px;
  padding: 6px 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.5px;
}

.alt-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: var(--accent-cyan-dim);
}

.alt-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  box-shadow: 0 0 10px rgba(0, 212, 238, 0.2), inset 0 0 15px rgba(0, 212, 238, 0.06);
  text-shadow: 0 0 6px rgba(0, 212, 238, 0.4);
}

/* ---- Footer / Status Bar ---- */
#footer {
  height: var(--footer-height);
  background: linear-gradient(0deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 10px;
  color: var(--text-secondary);
}

#footer .status-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-item .label {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.8px;
}

.status-item .value {
  color: var(--text-primary);
}

/* ---- Gradient Legend ---- */
#gradient-legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

#gradient-legend .bar {
  width: 120px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(to right, #3c0f0a, #b45a0a, #285a50, #05b48c, #00d4ee);
  border: 1px solid var(--border);
}

#gradient-legend .labels {
  display: flex;
  justify-content: space-between;
  width: 120px;
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 1px;
}

/* ---- Info Panel (overlays on 3D pane) ---- */
#info-panel {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 50;
  background: rgba(6, 10, 16, 0.94);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  min-width: 240px;
  max-width: 320px;
  backdrop-filter: blur(12px);
  display: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#info-panel.visible {
  display: block;
}

#info-panel .panel-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

#info-panel .row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 11px;
}

#info-panel .row .key {
  color: var(--text-secondary);
}

#info-panel .row .val {
  color: var(--text-primary);
  font-weight: 500;
}

/* ---- Route Info Panel ---- */
#route-panel {
  position: absolute;
  top: 8px;
  right: 96px;
  z-index: 50;
  background: rgba(6, 10, 16, 0.94);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  min-width: 260px;
  max-width: 340px;
  backdrop-filter: blur(12px);
  display: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#route-panel.visible {
  display: block;
}

#route-panel .panel-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

#route-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

#route-panel th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 6px 3px 0;
  border-bottom: 1px solid var(--border);
}

#route-panel td {
  padding: 4px 6px 4px 0;
  color: var(--text-primary);
}

/* ---- Toolbar Buttons ---- */
.tool-btn {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.3px;
}

.tool-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.tool-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.tool-btn.danger {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.tool-btn.danger:hover {
  background: rgba(213, 0, 0, 0.15);
}

/* ---- Map Mode Indicator ---- */
#map-mode {
  position: absolute;
  bottom: 8px;
  left: 12px;
  z-index: 1000;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  pointer-events: none;
}

#map-mode.grid-mode {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

#map-mode.route-mode {
  color: var(--accent-green);
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.3);
}

/* ---- Leaflet Overrides (dark theme) ---- */
.leaflet-container {
  background: var(--bg-primary) !important;
  font-family: var(--font-mono) !important;
}

.leaflet-control-zoom a {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bg-secondary) !important;
  color: var(--accent-cyan) !important;
}

.leaflet-control-attribution {
  background: rgba(10, 14, 23, 0.8) !important;
  color: var(--text-dim) !important;
  font-size: 9px !important;
}

.leaflet-control-attribution a {
  color: var(--text-secondary) !important;
}

/* ---- Waypoint Markers ---- */
.waypoint-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border: 2px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 12px rgba(0, 212, 238, 0.6), 0 0 25px rgba(0, 212, 238, 0.2);
}

/* ---- Waypoint Altitude Popup ---- */
.wp-alt-popup {
  position: absolute;
  z-index: 2000;
  background: rgba(10, 14, 23, 0.95);
  border: 1px solid var(--accent-cyan);
  border-radius: 4px;
  padding: 10px 14px;
  min-width: 180px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 229, 255, 0.1);
}

.wp-alt-popup .popup-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.wp-alt-popup .popup-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.wp-alt-popup .alt-input {
  flex: 1;
  padding: 5px 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-bright);
  border-radius: 3px;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  width: 80px;
}

.wp-alt-popup .alt-input:focus {
  border-color: var(--accent-cyan);
}

.wp-alt-popup .popup-unit {
  color: var(--text-dim);
  font-size: 11px;
}

.wp-alt-popup .popup-range {
  font-size: 9px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.wp-alt-popup .popup-actions {
  display: flex;
  gap: 6px;
}

.wp-alt-popup .popup-ok {
  flex: 1;
  padding: 4px 8px;
  font-size: 10px;
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.wp-alt-popup .popup-cancel {
  padding: 4px 8px;
  font-size: 10px;
}

/* ---- Waypoint Tooltip ---- */
.wp-tooltip {
  background: rgba(10, 14, 23, 0.9) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  padding: 3px 8px !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}

.wp-tooltip::before {
  border-top-color: var(--border) !important;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ---- Resize Handle ---- */
#pane-divider {
  width: 4px;
  cursor: col-resize;
  background: var(--border);
  transition: background 0.15s ease;
  z-index: 60;
  flex-shrink: 0;
}

#pane-divider:hover,
#pane-divider.dragging {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* ---- No Route Message ---- */
.no-route-msg {
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.5px;
}

/* ---- Platform Select (hidden, replaced by cards) ---- */
.platform-select {
  display: none;
}

/* ---- Graticule Labels ---- */
.graticule-label {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.graticule-label span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: rgba(0, 212, 238, 0.35);
  letter-spacing: 0.3px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

/* ---- App Wrapper ---- */
#app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

/* ---- Access Gate ---- */
#access-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0a1018 0%, #040608 100%);
}

.gate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 48px 36px;
  background: rgba(10, 16, 24, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 238, 0.03);
  min-width: 320px;
}

.gate-logo {
  margin-bottom: 16px;
  animation: logo-pulse 3s ease-in-out infinite;
}

.gate-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--text-bright);
  margin-bottom: 2px;
}

.gate-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.gate-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.3;
  margin-bottom: 24px;
}

.gate-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 8px;
  align-self: flex-start;
}

.gate-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s;
}

.gate-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 238, 0.15);
}

.gate-input::placeholder {
  color: var(--text-dim);
  letter-spacing: 1px;
  font-size: 12px;
  text-transform: none;
}

.gate-error {
  display: none;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent-red);
}

.gate-btn {
  width: 100%;
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--accent-cyan-dim);
  border: 1px solid var(--accent-cyan);
  border-radius: 4px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.gate-btn:hover {
  background: rgba(0, 212, 238, 0.2);
  box-shadow: 0 0 15px rgba(0, 212, 238, 0.2);
}

.gate-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.gate-footer {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-dim);
  opacity: 0.5;
}
