/* ============================================
   ATC Practice Platform - Aviation Theme CSS
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111627;
  --bg-card: #1a1f2e;
  --bg-card-hover: #222840;
  --bg-panel: #0f1322;
  --bg-modal-overlay: rgba(0, 0, 0, 0.75);

  --text-primary: #e0e0e0;
  --text-secondary: #8a8fa0;
  --text-muted: #555a6e;

  --green: #00ff88;
  --green-dim: #00cc6a;
  --green-dark: #004d29;
  --amber: #ff9900;
  --amber-dim: #cc7a00;
  --blue: #00bfff;
  --blue-dim: #0099cc;
  --red: #ff3333;
  --red-dim: #cc2929;

  --border-color: #2a2f42;
  --border-highlight: #3a4060;

  --font-main: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-round: 50%;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* --- Layout Containers --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   INDEX PAGE
   ============================================ */

/* --- Header --- */
.site-header {
  text-align: center;
  padding: 60px 20px 40px;
}

.site-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.site-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 1px;
}

/* --- API Key Section --- */
.api-key-section {
  max-width: 560px;
  margin: 0 auto 48px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.api-key-section label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.api-key-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.api-key-row input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.api-key-row input:focus {
  border-color: var(--blue);
}

.api-key-row input::placeholder {
  color: var(--text-muted);
}

.btn-save-key {
  padding: 10px 20px;
  background: var(--blue-dim);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.btn-save-key:hover {
  background: var(--blue);
}

.api-key-status {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.api-key-status.visible {
  opacity: 1;
}

.api-key-status .checkmark {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--green);
  border-radius: var(--radius-round);
  position: relative;
}

.api-key-status .checkmark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--bg-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- Airport Selection --- */
.airport-section {
  margin-bottom: 60px;
}

.airport-section h2 {
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.airport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.airport-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.airport-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.airport-card:hover:not(.disabled) {
  background: var(--bg-card-hover);
  border-color: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.08);
}

.airport-card:hover:not(.disabled)::before {
  opacity: 1;
}

.airport-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.airport-card .icao-code {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.airport-card.disabled .icao-code {
  color: var(--text-muted);
}

.airport-card .airport-name {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.airport-card .airport-name-zh {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.airport-card .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-available {
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.badge-coming-soon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-modal-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 90%;
  max-width: 480px;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.modal h2 {
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* --- Form Controls --- */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.radio-group {
  display: flex;
  gap: 12px;
}

.radio-option {
  flex: 1;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option .radio-label {
  display: block;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.radio-option input[type="radio"]:checked + .radio-label {
  border-color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  color: var(--green);
}

.radio-option .radio-label:hover {
  border-color: var(--border-highlight);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--blue);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* --- Slider --- */
.slider-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-container input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  outline: none;
  border: 1px solid var(--border-color);
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--green);
  border-radius: var(--radius-round);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.slider-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--amber);
  min-width: 120px;
  text-align: right;
}

/* --- Buttons --- */
.btn-start {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--green-dim), var(--green-dark));
  color: #fff;
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 8px;
}

.btn-start:hover {
  background: linear-gradient(135deg, var(--green), var(--green-dim));
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.2);
}

.btn-start:active {
  transform: scale(0.98);
}

/* ============================================
   PRACTICE PAGE
   ============================================ */

/* --- Session Info Bar --- */
.session-info-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.session-info-bar .info-items {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.session-info-bar .info-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.session-info-bar .info-item span {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 600;
}

.session-info-bar .session-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 1px;
}

/* --- Main Practice Layout --- */
.practice-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 52px);
}

/* --- Map Section --- */
.map-container {
  overflow: auto;
  max-height: 40vh;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: grab;
  position: relative;
}

.map-container:active {
  cursor: grabbing;
}

.map-container img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- Swap Button --- */
.swap-container {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.swap-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--amber);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.swap-btn:hover {
  border-color: var(--amber);
  background: rgba(255, 153, 0, 0.1);
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.2);
}

/* --- ATIS Frequency Item --- */
.freq-atis .freq-value {
  color: var(--amber);
}

.freq-atis.active-freq .freq-led {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 153, 0, 0.6);
}

.atis-ready {
  color: var(--green) !important;
}

/* --- Transcript (updated for main.js) --- */
.transcript-panel {
  background: var(--bg-primary);
  overflow-y: auto;
}

.transcript-log {
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  max-height: 300px;
  overflow-y: auto;
}

.transcript-entry {
  padding: 4px 0;
}

.transcript-prefix {
  font-weight: 600;
}

.transcript-pilot .transcript-prefix { color: var(--green); }
.transcript-pilot .transcript-text { color: var(--green); }
.transcript-atc .transcript-prefix { color: var(--amber); }
.transcript-atc .transcript-text { color: var(--amber); }
.transcript-npc .transcript-prefix { color: var(--text-muted); }
.transcript-npc .transcript-text { color: var(--text-secondary); }

/* --- Status Bar (updated) --- */
.status-bar {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-align: center;
}

.status-bar.status-success { color: var(--green); }
.status-bar.status-info { color: var(--blue); }
.status-bar.status-warning { color: var(--amber); }
.status-bar.status-error { color: var(--red); }

/* --- Scoring Overlay --- */
.scoring-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-modal-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.scoring-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.scoring-modal h2 {
  color: var(--green);
  margin-bottom: 24px;
  text-align: center;
}

.scoring-modal h3 {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 20px 0 12px;
}

.scoring-total {
  text-align: center;
  margin-bottom: 28px;
}

.scoring-total-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.scoring-total-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
}

.scoring-category {
  margin-bottom: 14px;
}

.scoring-category-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: capitalize;
}

.scoring-progress-bar {
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
}

.scoring-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.scoring-suggestions {
  list-style: none;
  padding: 0;
}

.scoring-suggestions li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.scoring-suggestions li:last-child {
  border-bottom: none;
}

.scoring-back-btn {
  width: 100%;
  margin-top: 24px;
  padding: 12px;
  background: var(--blue-dim);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.scoring-back-btn:hover {
  background: var(--blue);
}

/* --- Middle Panel (Freq List + Radio) --- */
.middle-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--border-color);
  min-height: 0;
}

/* --- Frequency List --- */
.freq-list-panel {
  background: var(--bg-panel);
  border-right: 1px solid var(--border-color);
  padding: 16px;
}

.freq-list-panel h3 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.freq-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.freq-item:hover {
  background: rgba(0, 255, 136, 0.06);
}

.freq-item.active-freq {
  background: rgba(0, 255, 136, 0.1);
}

.freq-led {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background: var(--green-dark);
  box-shadow: 0 0 4px rgba(0, 255, 136, 0.3);
  flex-shrink: 0;
}

.freq-item.active-freq .freq-led {
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.freq-value {
  color: var(--green);
  min-width: 50px;
}

.freq-name {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* --- Radio Panel --- */
.radio-panel {
  background: var(--bg-panel);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.radio-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-control label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.radio-control select,
.radio-control input {
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.radio-control select:focus,
.radio-control input:focus {
  border-color: var(--green-dim);
}

.radio-control select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.squawk-input {
  width: 80px;
  text-align: center;
  letter-spacing: 4px;
}

.atis-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  align-self: flex-end;
}

.atis-indicator .atis-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-round);
  background: var(--text-muted);
}

.atis-indicator .atis-dot.received {
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.atis-indicator .atis-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* --- Transcript --- */
.transcript-section {
  border-bottom: 1px solid var(--border-color);
}

.transcript-toggle {
  width: 100%;
  padding: 10px 24px;
  background: var(--bg-secondary);
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-align: left;
}

.transcript-toggle:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.transcript-toggle .arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
  font-size: 0.7rem;
}

.transcript-toggle.expanded .arrow {
  transform: rotate(90deg);
}

/* transcript-panel visibility controlled by inline display style in JS */

.transcript-content {
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
}

.transcript-entry {
  padding: 4px 0;
  display: flex;
  gap: 12px;
}

.transcript-entry .timestamp {
  color: var(--text-muted);
  min-width: 60px;
  flex-shrink: 0;
}

.transcript-entry.user .message {
  color: var(--green);
}

.transcript-entry.atc .message {
  color: var(--amber);
}

.transcript-entry.npc .message {
  color: var(--text-secondary);
}

.transcript-entry .sender {
  font-weight: 600;
  min-width: 80px;
  flex-shrink: 0;
}

.transcript-entry.user .sender {
  color: var(--green);
}

.transcript-entry.atc .sender {
  color: var(--amber);
}

.transcript-entry.npc .sender {
  color: var(--text-muted);
}

/* --- Control Bar --- */
.control-bar {
  background: var(--bg-secondary);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

/* --- PTT Button --- */
.ptt-button {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-round);
  background: var(--bg-card);
  border: 3px solid var(--green-dim);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.ptt-button .ptt-icon {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.ptt-button:hover:not(:disabled) {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.ptt-button:active:not(:disabled),
.ptt-button.recording {
  background: rgba(0, 255, 136, 0.12);
  border-color: var(--green);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.25);
  transform: scale(0.96);
}

.ptt-button.recording {
  animation: ptt-pulse 1.2s ease-in-out infinite;
}

@keyframes ptt-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
  }
}

.ptt-button:disabled {
  border-color: var(--red-dim);
  color: var(--red);
  cursor: not-allowed;
  opacity: 0.6;
}

.ptt-button:disabled .ptt-icon {
  color: var(--red);
}

/* --- End Session Button --- */
.btn-end-session {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--red-dim);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-end-session:hover {
  background: rgba(255, 51, 51, 0.1);
  border-color: var(--red);
}

/* --- Status Bar --- */
.status-bar {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background: var(--text-muted);
  flex-shrink: 0;
}

.status-dot.ready {
  background: var(--green);
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.5);
}

.status-dot.recording {
  background: var(--red);
  box-shadow: 0 0 6px rgba(255, 51, 51, 0.5);
  animation: status-blink 0.8s ease-in-out infinite;
}

.status-dot.ai-speaking {
  background: var(--amber);
  box-shadow: 0 0 6px rgba(255, 153, 0, 0.5);
  animation: status-blink 1s ease-in-out infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 1.6rem;
  }

  .site-header .subtitle {
    font-size: 0.9rem;
  }

  .airport-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .modal {
    padding: 24px;
    width: 95%;
  }

  .middle-panel {
    grid-template-columns: 1fr;
  }

  .freq-list-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .radio-panel {
    padding: 16px;
  }

  .control-bar {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
  }

  .ptt-button {
    width: 100px;
    height: 100px;
  }

  .session-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .session-info-bar .info-items {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .radio-panel {
    flex-direction: column;
  }

  .radio-control {
    width: 100%;
  }

  .radio-control select,
  .radio-control input {
    width: 100%;
  }
}
