:root{color-scheme:dark;--panel:rgba(7,14,28,.72);--border:rgba(123,240,255,.18);--border-strong:rgba(123,240,255,.30);--accent:#7bf0ff;--accent2:#ff36d0;--text:#eef6ff;--muted:#8fa9c2;--shadow:0 24px 80px rgba(0,0,0,.45)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}
body{font-family:'Space Grotesk',sans-serif;color:var(--text);background:radial-gradient(circle at 15% 10%, rgba(123,240,255,.13), transparent 18%),radial-gradient(circle at 85% 12%, rgba(255,54,208,.10), transparent 14%),radial-gradient(circle at 50% 100%, rgba(0,255,191,.08), transparent 26%),linear-gradient(180deg,#02050d 0%,#01040a 100%)}
.noise,.scanlines{position:fixed;inset:0;pointer-events:none}.noise{opacity:.13;background:linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.01)),repeating-linear-gradient(180deg, rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px, transparent 1px, transparent 4px)}.scanlines{opacity:.07;background:repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 2px 4px)}
.terminal-frame{max-width:1540px;margin:20px auto;border:1px solid var(--border);border-radius:30px;overflow:hidden;background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), rgba(2,6,14,.90);box-shadow:0 0 0 1px rgba(123,240,255,.06),0 0 36px rgba(123,240,255,.08),0 0 120px rgba(255,54,208,.06)}
.terminal-topbar{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid rgba(123,240,255,.10)}
.term-dot{width:11px;height:11px;border-radius:50%;display:inline-block;box-shadow:0 0 12px currentColor}.dot-red{color:#ff6b8b;background:#ff6b8b}.dot-amber{color:#ffd36a;background:#ffd36a}.dot-green{color:#63ffbf;background:#63ffbf}
.term-title{margin-left:10px;font-family:'Orbitron',sans-serif;font-size:.82rem;letter-spacing:.22em;color:var(--accent);text-transform:uppercase}
.page-shell{max-width:1500px;margin:0 auto;padding:28px 22px 40px}
.hero-card,.card,.hud-pill{position:relative;background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018)), var(--panel);border:1px solid var(--border);border-radius:30px;backdrop-filter:blur(16px);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 0 0 1px rgba(123,240,255,.04),0 0 26px rgba(123,240,255,.07),0 0 100px rgba(255,54,208,.05),var(--shadow)}
.hero-card::before,.card::before,.hud-pill::before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:radial-gradient(circle at top left, rgba(123,240,255,.13), transparent 24%),radial-gradient(circle at bottom right, rgba(255,56,205,.10), transparent 20%)}
.hero-card,.card{padding:22px}.eyebrow{margin:0 0 10px;color:var(--accent);letter-spacing:.24em;text-transform:uppercase;font-size:.82rem}
h1{margin:0;font-family:'Orbitron',sans-serif;font-size:clamp(2.6rem,5vw,4.8rem);line-height:1;text-transform:uppercase;text-shadow:0 0 16px rgba(123,240,255,.18)}.subtitle{margin:14px 0 0;color:var(--muted);line-height:1.7;max-width:860px}
.hero-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.hero-tag,.chip{padding:8px 12px;border-radius:999px;border:1px solid var(--border-strong);background:rgba(255,255,255,.04);color:var(--accent);font-size:.78rem;text-transform:uppercase;box-shadow:inset 0 0 14px rgba(123,240,255,.04),0 0 16px rgba(123,240,255,.03)}
.hero-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.status-pill,.hud-pill,.info-box,.weather-mini,.terminal-log,.detail-list,.map-box,.glass-subpanel{background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)), rgba(255,255,255,.02);border:1px solid rgba(123,240,255,.10);border-radius:22px;backdrop-filter:blur(12px);box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 0 16px rgba(123,240,255,.03)}
.status-pill{padding:16px 18px;display:grid;gap:8px}.status-pill span{font-family:'Orbitron',sans-serif;font-size:1.5rem}.status-pill strong{color:var(--muted);font-size:.82rem}
.hud-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-top:18px}.hud-pill{padding:16px}.hud-label{display:block;margin-bottom:10px;color:var(--muted);font-size:.74rem;letter-spacing:.14em;text-transform:uppercase}.hud-pill strong{display:block;font-family:'Orbitron',sans-serif;font-size:1.05rem;line-height:1.25;word-break:break-word}.hud-pill-clickable{cursor:pointer}.hud-hint{display:block;margin-top:8px;color:var(--muted);font-size:.72rem;text-transform:uppercase}
.dashboard-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;margin-top:18px;align-items:start}
.card-wide{grid-column:span 12}.card-two-thirds{grid-column:span 8}.card-third{grid-column:span 4}
.card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}.card-header span:first-child{font-family:'Orbitron',sans-serif;text-transform:uppercase;letter-spacing:.05em;line-height:1.2}
.card-content{display:grid;gap:16px;min-width:0}.weather-hero{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;align-items:center}.weather-temp{font-family:'Orbitron',sans-serif;font-size:clamp(3rem,6vw,5.2rem);line-height:1}.weather-desc{margin-top:8px;color:var(--accent);font-size:1.05rem}
.weather-mini,.info-box,.glass-subpanel{padding:16px 18px}.compact-box{margin-top:12px}
.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric-grid div,.weather-mini div{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;min-width:0}.metric-grid strong,.weather-mini strong{line-height:1.25}.metric-grid span,.weather-mini span,.info-box{color:var(--muted);text-align:right;overflow-wrap:anywhere}
.profile-radar-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.subheading{font-family:'Orbitron',sans-serif;color:var(--accent);margin-bottom:12px}
.map-box{min-height:320px;overflow:hidden;background:#050913}.leaflet-container{background:#050913;filter:saturate(.92) contrast(1.04) brightness(.92)}
.detail-list{display:grid;gap:10px;padding:14px;max-height:340px;overflow:auto}.compact-list{max-height:300px}.flight-list{max-height:320px}
.empty-row{display:block;padding:12px 14px;border-radius:16px;color:var(--muted);background:rgba(255,255,255,.03);border:1px solid rgba(123,240,255,.08)}.autobahn-row{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(123,240,255,.08)}.flight-row{display:grid;grid-template-columns:92px minmax(0,1fr) 92px 92px;gap:10px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(123,240,255,.08)}.news-row{display:grid;grid-template-columns:1fr;gap:8px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(123,240,255,.08)}.autobahn-road,.flight-call,.news-title{font-family:'Orbitron',sans-serif;color:var(--accent)}.autobahn-title,.flight-country,.flight-alt,.flight-vel,.news-date,.news-text{min-width:0;overflow-wrap:anywhere}.news-date,.news-text{color:var(--muted)}
.terminal-log{min-height:220px;max-height:320px;overflow:auto;padding:16px 18px}.terminal-log div{padding:6px 0;color:#98f7ff;border-bottom:1px solid rgba(123,240,255,.06);font-size:.93rem}
.overlay{position:fixed;inset:0;background:rgba(1,4,10,.72);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;padding:20px;z-index:50}.hidden{display:none}.overlay-card{width:min(760px,95vw);position:relative;background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018)), rgba(7,14,28,.90);border:1px solid rgba(123,240,255,.20);border-radius:28px;padding:24px;box-shadow:0 0 0 1px rgba(123,240,255,.05),0 0 26px rgba(123,240,255,.07),0 0 100px rgba(255,54,208,.05),0 24px 80px rgba(0,0,0,.45)}.overlay-title{font-family:'Orbitron',sans-serif;color:var(--accent);font-size:1.25rem;margin-bottom:18px}.overlay-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.overlay-content div{display:flex;justify-content:space-between;gap:16px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(123,240,255,.08)}.overlay-content span{color:var(--muted);text-align:right}.overlay-note{margin-top:16px;color:var(--muted)}.overlay-close{position:absolute;right:14px;top:10px;background:none;border:none;color:var(--accent);font-size:2rem;cursor:pointer}
@media (max-width:1320px){.hud-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1100px){.hero-status{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card-wide,.card-two-thirds,.card-third{grid-column:span 2}.weather-hero,.profile-radar-grid,.overlay-content{grid-template-columns:1fr}}
@media (max-width:760px){.page-shell{padding:18px 14px 28px}.hud-strip,.dashboard-grid,.metric-grid{grid-template-columns:1fr}.card-wide,.card-two-thirds,.card-third{grid-column:span 1}.dashboard-grid{grid-template-columns:1fr}.autobahn-row,.flight-row{grid-template-columns:1fr}.overlay-content div{flex-direction:column}.overlay-content span{text-align:left}}

.hud-pill-clickable{cursor:pointer}
.hud-hint{display:block;margin-top:8px;color:var(--muted);font-size:.72rem;text-transform:uppercase}
.overlay{position:fixed;inset:0;background:rgba(1,4,10,.72);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;padding:20px;z-index:50}
.hidden{display:none}
.overlay-card{width:min(760px,95vw);position:relative;background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018)), rgba(7,14,28,.90);border:1px solid rgba(123,240,255,.20);border-radius:28px;padding:24px;box-shadow:0 0 0 1px rgba(123,240,255,.05),0 0 26px rgba(123,240,255,.07),0 0 100px rgba(255,54,208,.05),0 24px 80px rgba(0,0,0,.45)}
.overlay-title{font-family:'Orbitron',sans-serif;color:var(--accent);font-size:1.25rem;margin-bottom:18px}
.overlay-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.overlay-content div{display:flex;justify-content:space-between;gap:16px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(123,240,255,.08)}
.overlay-content span{color:var(--muted);text-align:right}
.overlay-note{margin-top:16px;color:var(--muted);white-space:pre-wrap}
.overlay-close{position:absolute;right:14px;top:10px;background:none;border:none;color:var(--accent);font-size:2rem;cursor:pointer}
.overlay-links{margin-top:16px}
.overlay-links a{color:var(--accent);text-decoration:none;border:1px solid rgba(123,240,255,.18);padding:10px 14px;border-radius:14px;display:inline-block;background:rgba(255,255,255,.03)}
.news-row{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(123,240,255,.08);cursor:pointer}
.flight-row{cursor:pointer}
.dashboard-grid{grid-auto-flow:row dense}
@media (max-width:760px){.news-row{grid-template-columns:1fr}.overlay-content{grid-template-columns:1fr}.overlay-content div{flex-direction:column}.overlay-content span{text-align:left}}

.hidden{display:none !important}
.overlay-close{z-index:2}


/* ===== V20 FUI / HUD theme ===== */
.fui-theme .overlay-card{
  width:min(860px,96vw);
  background:
    linear-gradient(180deg, rgba(14,22,42,.96), rgba(9,14,30,.96)),
    radial-gradient(circle at top left, rgba(74,234,255,.08), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255,94,214,.08), transparent 28%);
  border:1px solid rgba(132,235,255,.18);
  border-radius:18px;
  padding:24px 26px 22px;
  box-shadow:
    0 0 0 1px rgba(132,235,255,.08),
    0 0 22px rgba(74,234,255,.09),
    0 0 90px rgba(255,94,214,.07),
    0 26px 80px rgba(0,0,0,.55);
  position:relative;
  overflow:hidden;
}
.fui-theme .overlay-card::before,
.fui-theme .overlay-card::after{
  content:"";
  position:absolute;
  inset:10px;
  border:1px solid rgba(164,224,255,.16);
  pointer-events:none;
}
.fui-theme .overlay-card::before{
  clip-path: polygon(0 14px, 14px 0, calc(100% - 34px) 0, 100% 34px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 16px 100%, 0 calc(100% - 16px));
}
.fui-theme .overlay-card::after{
  inset:18px;
  border-color: rgba(255,120,224,.12);
  clip-path: polygon(0 10px, 10px 0, calc(100% - 26px) 0, 100% 26px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 12px 100%, 0 calc(100% - 12px));
}
.fui-theme .overlay-title{
  font-family:'Orbitron',sans-serif;
  font-size:1.28rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#d9f8ff;
  text-shadow:0 0 16px rgba(90,241,255,.18);
  margin-bottom:16px;
  padding-right:56px;
}
.fui-theme .overlay-note{
  color:#b9d4ef;
  line-height:1.65;
  position:relative;
  z-index:1;
}
.fui-theme .overlay-content{
  position:relative;
  z-index:1;
}
.fui-theme .overlay-content div{
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border:1px solid rgba(132,235,255,.12);
  border-radius:12px;
}
.fui-theme .overlay-close{
  width:38px;
  height:38px;
  top:16px;
  right:16px;
  border:1px solid rgba(132,235,255,.18);
  border-radius:10px;
  background:rgba(255,255,255,.035);
  display:grid;
  place-items:center;
  font-size:1.5rem;
  line-height:1;
  box-shadow:0 0 12px rgba(74,234,255,.07);
}
.fui-theme .overlay-links a{
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow:0 0 14px rgba(74,234,255,.05);
}
.fui-theme .news-row,
.fui-theme .autobahn-row,
.fui-theme .flight-row{
  border-radius:14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.022)),
    rgba(255,255,255,.018);
  border:1px solid rgba(132,235,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 0 16px rgba(74,234,255,.025);
}
.fui-theme .news-row:hover,
.fui-theme .flight-row:hover{
  border-color: rgba(132,235,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 0 20px rgba(74,234,255,.05), 0 0 24px rgba(255,94,214,.04);
  transform: translateY(-1px);
}
.fui-theme .card-header span:first-child{
  text-shadow:0 0 12px rgba(74,234,255,.1);
}
.fui-theme .glass-subpanel{
  position:relative;
  border-radius:18px;
  overflow:hidden;
}
.fui-theme .glass-subpanel::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(74,234,255,.05), transparent 25%, transparent 75%, rgba(255,94,214,.05));
}


/* ===== V21 full HUD card treatment ===== */
.fui-theme .hero-card,
.fui-theme .card,
.fui-theme .hud-pill{
  border-radius:18px;
  overflow:hidden;
}

.fui-theme .hero-card::after,
.fui-theme .card::after,
.fui-theme .hud-pill::after{
  content:"";
  position:absolute;
  inset:10px;
  pointer-events:none;
  border:1px solid rgba(128,235,255,.14);
  clip-path: polygon(
    0 14px,
    14px 0,
    calc(100% - 34px) 0,
    100% 34px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
}

.fui-theme .card-header{
  position:relative;
  padding-bottom:10px;
  margin-bottom:16px;
}

.fui-theme .card-header::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg, rgba(74,234,255,.35), rgba(74,234,255,.08) 40%, rgba(255,94,214,.18));
}

.fui-theme .card-header span:first-child{
  position:relative;
  padding-left:16px;
}

.fui-theme .card-header span:first-child::before{
  content:"";
  position:absolute;
  left:0;
  top:.35em;
  width:8px;
  height:8px;
  border-radius:2px;
  background:linear-gradient(180deg, rgba(74,234,255,.9), rgba(74,234,255,.35));
  box-shadow:0 0 10px rgba(74,234,255,.35);
}

.fui-theme .chip,
.fui-theme .hero-tag{
  border-radius:12px;
  position:relative;
  overflow:hidden;
}

.fui-theme .chip::after,
.fui-theme .hero-tag::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(74,234,255,.04), transparent 50%, rgba(255,94,214,.04));
}

.fui-theme .status-pill,
.fui-theme .glass-subpanel,
.fui-theme .info-box,
.fui-theme .weather-mini,
.fui-theme .terminal-log,
.fui-theme .detail-list,
.fui-theme .map-box{
  border-radius:14px;
}

.fui-theme .status-pill,
.fui-theme .glass-subpanel{
  position:relative;
  overflow:hidden;
}

.fui-theme .status-pill::after,
.fui-theme .glass-subpanel::after{
  content:"";
  position:absolute;
  inset:8px;
  border:1px solid rgba(128,235,255,.10);
  pointer-events:none;
  clip-path: polygon(
    0 10px,
    10px 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    12px 100%,
    0 calc(100% - 12px)
  );
}

.fui-theme .metric-grid div{
  border-radius:10px;
  padding:10px 12px;
  background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  border:1px solid rgba(128,235,255,.06);
}

.fui-theme .weather-temp{
  text-shadow:0 0 18px rgba(74,234,255,.16), 0 0 32px rgba(255,94,214,.05);
}

.fui-theme .terminal-frame{
  border-radius:22px;
}

.fui-theme .terminal-topbar{
  background:
    linear-gradient(90deg, rgba(74,234,255,.03), transparent 40%, rgba(255,94,214,.03)),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

.fui-theme .dashboard-grid{
  gap:16px;
}

.fui-theme .news-row,
.fui-theme .autobahn-row,
.fui-theme .flight-row{
  position:relative;
  overflow:hidden;
}

.fui-theme .news-row::after,
.fui-theme .autobahn-row::after,
.fui-theme .flight-row::after{
  content:"";
  position:absolute;
  inset:6px;
  border:1px solid rgba(128,235,255,.08);
  pointer-events:none;
  border-radius:10px;
}

.fui-theme .news-title,
.fui-theme .flight-call,
.fui-theme .autobahn-road{
  letter-spacing:.03em;
}

.fui-theme .page-shell{
  position:relative;
}

.fui-theme .page-shell::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(74,234,255,.03) 0, transparent 12%, transparent 88%, rgba(255,94,214,.03) 100%);
  mix-blend-mode:screen;
}

@media (max-width:760px){
  .fui-theme .hero-card::after,
  .fui-theme .card::after,
  .fui-theme .hud-pill::after{
    inset:6px;
  }
}


/* ===== V22 stronger terminal / neon treatment ===== */
:root{
  --fui-cyan:#66f7ff;
  --fui-pink:#ff8be8;
  --fui-violet:#9f6bff;
  --fui-panel-dark:rgba(9,13,28,.90);
}

body.fui-theme{
  background:
    linear-gradient(90deg, rgba(102,247,255,.03) 0, transparent 12%, transparent 88%, rgba(255,139,232,.03) 100%),
    radial-gradient(circle at 12% 8%, rgba(102,247,255,.10), transparent 18%),
    radial-gradient(circle at 86% 14%, rgba(255,139,232,.09), transparent 16%),
    radial-gradient(circle at 50% 100%, rgba(159,107,255,.08), transparent 26%),
    linear-gradient(180deg,#040611 0%, #02040b 100%);
}

.fui-theme .terminal-frame{
  box-shadow:
    0 0 0 1px rgba(102,247,255,.09),
    0 0 34px rgba(102,247,255,.10),
    0 0 120px rgba(255,139,232,.08);
}

.fui-theme .card,
.fui-theme .hero-card,
.fui-theme .hud-pill{
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    linear-gradient(135deg, rgba(102,247,255,.03), transparent 28%, transparent 72%, rgba(255,139,232,.03)),
    var(--fui-panel-dark);
}

.fui-theme .card::before,
.fui-theme .hero-card::before,
.fui-theme .hud-pill::before{
  background:
    linear-gradient(90deg, rgba(102,247,255,.04), transparent 18%, transparent 82%, rgba(255,139,232,.04)),
    radial-gradient(circle at top left, rgba(102,247,255,.10), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255,139,232,.08), transparent 20%);
}

.fui-theme .microbar{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:0 2px 12px;
  margin-top:-4px;
  margin-bottom:6px;
  color:#8fbad0;
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  border-bottom:1px dashed rgba(102,247,255,.10);
}
.fui-theme .microbar span{
  white-space:nowrap;
}

.fui-theme .chip,
.fui-theme .hero-tag{
  color:var(--fui-cyan);
  border-color:rgba(102,247,255,.22);
  box-shadow:
    inset 0 0 14px rgba(102,247,255,.04),
    0 0 12px rgba(102,247,255,.04),
    0 0 16px rgba(255,139,232,.02);
}

.fui-theme .card-header span:first-child,
.fui-theme .overlay-title,
.fui-theme .term-title{
  color:#e9fbff;
  text-shadow:0 0 14px rgba(102,247,255,.14), 0 0 20px rgba(255,139,232,.05);
}

.fui-theme .weather-desc,
.fui-theme .subheading,
.fui-theme .news-title,
.fui-theme .flight-call,
.fui-theme .autobahn-road{
  color:var(--fui-cyan);
  text-shadow:0 0 10px rgba(102,247,255,.10);
}

.fui-theme .metric-grid strong,
.fui-theme .weather-mini strong{
  color:#f5fbff;
}
.fui-theme .metric-grid span,
.fui-theme .weather-mini span,
.fui-theme .info-box,
.fui-theme .news-date,
.fui-theme .news-text,
.fui-theme .flight-country,
.fui-theme .flight-alt,
.fui-theme .flight-vel,
.fui-theme .autobahn-title{
  color:#a7bfd7;
}

.fui-theme .map-box{
  border:1px solid rgba(102,247,255,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 0 20px rgba(102,247,255,.05);
  position:relative;
}
.fui-theme .map-box::before,
.fui-theme .map-box::after{
  content:"";
  position:absolute;
  width:18px;height:18px;
  border-color:rgba(102,247,255,.28);
  border-style:solid;
  pointer-events:none;
  z-index:400;
}
.fui-theme .map-box::before{
  top:8px;left:8px;
  border-width:2px 0 0 2px;
}
.fui-theme .map-box::after{
  right:8px;bottom:8px;
  border-width:0 2px 2px 0;
}
.fui-theme .leaflet-container{
  filter:saturate(.92) contrast(1.08) brightness(.82) hue-rotate(6deg);
}

.fui-theme .detail-list{
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012)),
    rgba(255,255,255,.012);
}

.fui-theme .news-row,
.fui-theme .autobahn-row,
.fui-theme .flight-row{
  border:1px solid rgba(102,247,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(255,255,255,.014);
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.fui-theme .news-row:hover,
.fui-theme .autobahn-row:hover,
.fui-theme .flight-row:hover{
  transform:translateY(-1px);
  border-color:rgba(102,247,255,.18);
  box-shadow:
    0 0 16px rgba(102,247,255,.05),
    0 0 18px rgba(255,139,232,.03);
}

.fui-theme .terminal-log{
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012)),
    rgba(8,12,24,.88);
}
.fui-theme .terminal-log div{
  color:#9cf7ff;
  font-family:'Space Grotesk',sans-serif;
}
.fui-theme .terminal-log div:nth-child(odd){
  background:linear-gradient(90deg, rgba(102,247,255,.015), transparent);
}

.fui-theme .status-pill span{
  color:#f2fcff;
  text-shadow:0 0 16px rgba(102,247,255,.12);
}

.fui-theme .overlay-card{
  background:
    linear-gradient(180deg, rgba(19,24,46,.96), rgba(8,12,26,.97)),
    linear-gradient(135deg, rgba(102,247,255,.04), transparent 34%, transparent 66%, rgba(255,139,232,.04));
}


/* ===== V23 emphasis / stat prominence ===== */
.fui-theme .card-emphasis{
  box-shadow:
    0 0 0 1px rgba(102,247,255,.10),
    0 0 28px rgba(102,247,255,.10),
    0 0 100px rgba(255,139,232,.08),
    0 28px 90px rgba(0,0,0,.55);
}

.fui-theme .card-stats{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.014)),
    linear-gradient(135deg, rgba(102,247,255,.05), transparent 30%, transparent 70%, rgba(255,139,232,.05)),
    rgba(7,12,25,.94);
}

.fui-theme .card-stats .profile-radar-grid{
  grid-template-columns: 1.25fr 1fr;
  gap:18px;
}

.fui-theme .card-stats .glass-subpanel{
  padding:18px 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 20px rgba(102,247,255,.04);
}

.fui-theme .card-stats .subheading{
  font-size:1.25rem;
  margin-bottom:14px;
  text-shadow:0 0 12px rgba(102,247,255,.12);
}

.fui-theme .card-stats .metric-grid{
  gap:14px;
}

.fui-theme .card-stats .metric-grid div{
  padding:14px 14px;
  min-height:58px;
  align-items:center;
}

.fui-theme .card-stats .metric-grid strong{
  font-size:1.02rem;
}

.fui-theme .card-stats .metric-grid span{
  font-size:1.08rem;
  color:#d6eaff;
}

.fui-theme .card-stats #qbPopulation,
.fui-theme .card-stats #qbArea,
.fui-theme .card-stats #qbDensity,
.fui-theme .card-stats #qbMale,
.fui-theme .card-stats #qbFemale{
  text-shadow:0 0 12px rgba(102,247,255,.10);
}

.fui-theme .card-stats .compact-box{
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:1rem;
}

.fui-theme .news-row,
.fui-theme .autobahn-row,
.fui-theme .flight-row{
  backdrop-filter: blur(10px);
}

.fui-theme .detail-list{
  padding:12px;
}

.fui-theme .card-third .detail-list{
  max-height:300px;
}

.fui-theme .chip{
  min-width:132px;
  text-align:center;
}

.fui-theme .overlay-note{
  font-size:1rem;
}

@media (max-width:1100px){
  .fui-theme .card-stats .profile-radar-grid{
    grid-template-columns:1fr;
  }
}


/* ===== v24.1 footer + layout/weather fixes ===== */
.legal-footer{
  margin-top:20px;
  padding:18px 20px;
  display:grid;
  gap:10px;
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.footer-links a{
  color:var(--accent);
  text-decoration:none;
  padding:8px 12px;
  border:1px solid rgba(102,247,255,.16);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
}
.footer-note{
  color:var(--muted);
  font-size:.92rem;
}
.hidden{display:none !important}
.overlay-close{z-index:2}

.news-row{
  align-items:start !important;
  grid-template-columns: 170px minmax(0,1fr) !important;
  min-height: 88px;
}
.news-row > div:first-child,
.news-date{
  white-space: normal !important;
  line-height: 1.35;
}
.news-row > div:last-child{
  min-width:0;
}
.news-title{
  display:block;
  line-height:1.22;
  margin-bottom:6px;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.news-text{
  display:block;
  line-height:1.42;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.detail-list{overflow:auto}
.card-third .detail-list{max-height:420px}
#localNewsList{max-height:420px}
#localNewsList .news-row{padding:16px 18px}
#localNewsList .news-text{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
#localNewsList .news-date{color:#c2d5e8}
@media (max-width:980px){
  .news-row{grid-template-columns:1fr !important}
}

/* legal pages */
.legal-shell{max-width:1100px;margin:20px auto;padding:22px}
.legal-panel{
  position:relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018)),
    linear-gradient(135deg, rgba(102,247,255,.03), transparent 28%, transparent 72%, rgba(255,139,232,.03)),
    rgba(9,13,28,.92);
  border:1px solid rgba(102,247,255,.18);
  border-radius:18px;
  padding:24px 24px 22px;
  box-shadow:
    0 0 0 1px rgba(102,247,255,.06),
    0 0 26px rgba(102,247,255,.08),
    0 0 90px rgba(255,139,232,.05),
    0 26px 80px rgba(0,0,0,.55);
  overflow:hidden;
}
.legal-panel::after{
  content:"";
  position:absolute;
  inset:10px;
  border:1px solid rgba(128,235,255,.14);
  clip-path: polygon(0 14px,14px 0,calc(100% - 34px) 0,100% 34px,100% calc(100% - 14px),calc(100% - 14px) 100%,18px 100%,0 calc(100% - 18px));
  pointer-events:none;
}
.legal-topnav{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.legal-topnav a{
  color:var(--accent);
  text-decoration:none;
  border:1px solid rgba(102,247,255,.16);
  border-radius:10px;
  padding:8px 12px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
}
.legal-eyebrow{color:var(--accent);font-size:.8rem;text-transform:uppercase;letter-spacing:.22em;margin:0 0 10px}
.legal-panel h1{margin:0 0 18px;font-family:'Orbitron',sans-serif;text-transform:uppercase;letter-spacing:.06em}
.legal-panel h2{margin:22px 0 10px;color:#d9f8ff;font-family:'Orbitron',sans-serif;font-size:1rem}
.legal-panel p,.legal-panel li{color:#b8cee5;line-height:1.7}
.legal-panel ul{margin:8px 0 0 18px}
.legal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.legal-grid .info-box{min-height:84px}
.data-source-card{padding:16px 18px}
.data-source-card strong{display:block;color:#e8fbff;margin-bottom:8px}
.legal-disclaimer{
  margin-top:16px;padding:14px 16px;border:1px solid rgba(255,139,232,.14);border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));color:#c7d4e4
}
@media (max-width:760px){.legal-grid{grid-template-columns:1fr}}


/* ===== v24.2 stronger local-news layout ===== */
#localNewsList .news-row{
  grid-template-columns: 1fr !important;
  min-height: auto !important;
  gap: 10px !important;
  padding: 18px 18px !important;
}
#localNewsList .news-date{
  display:block;
  font-size: .98rem;
  line-height: 1.35;
  margin: 0;
  color:#c9d9ea !important;
}
#localNewsList .news-title{
  display:block;
  width:100%;
  font-size: 1rem;
  line-height: 1.25;
  margin:0;
  white-space: normal !important;
  overflow-wrap:anywhere;
  word-break:break-word;
}
#localNewsList .news-text{
  display:block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  overflow: visible !important;
  font-size: .95rem;
  line-height:1.45;
  margin-top: 2px;
}
#localNewsList{
  max-height: 520px !important;
}
#localNewsList .news-row::after{
  inset:8px;
}


/* ===== v24.3 flight list layout fix ===== */
#flightList{
  max-height: 520px !important;
}
#flightList .flight-row{
  grid-template-columns: 1fr !important;
  min-height: auto !important;
  gap: 10px !important;
  padding: 18px 18px !important;
  align-items: start !important;
}
#flightList .flight-row::after{
  inset:8px;
}
#flightList .flight-call{
  display:block;
  font-size: 1.08rem;
  line-height: 1.2;
  margin: 0;
  white-space: normal !important;
  overflow-wrap:anywhere;
  word-break:break-word;
}
#flightList .flight-country,
#flightList .flight-alt,
#flightList .flight-vel{
  display:block;
  margin:0;
  font-size: .98rem;
  line-height:1.35;
  white-space: normal !important;
  overflow-wrap:anywhere;
  word-break:break-word;
  color:#c2d5e8;
}
#flightList .flight-meta{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
#flightList .flight-meta span{
  display:block;
  padding: 10px 12px;
  border-radius: 10px;
  border:1px solid rgba(102,247,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
}
@media (max-width:980px){
  #flightList .flight-meta{
    grid-template-columns: 1fr;
  }
}


/* ===== v24.5 production-ready ===== */
.weather-source{
  color:#9bb7cf;
  font-size:.85rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:0 4px;
}
.news-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border:1px solid rgba(102,247,255,.14);
  border-radius:999px;
  font-size:.74rem;
  color:var(--accent);
  margin-bottom:6px;
  width:max-content;
  background:rgba(255,255,255,.025);
}
#localNewsList .news-title{
  font-size:1.04rem;
}
#localNewsList .news-row{
  border-color:rgba(102,247,255,.12);
}


/* ===== v24.6 local news polish ===== */
#localNewsList .news-row{
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  padding: 16px 18px 18px !important;
  min-height: auto !important;
}
#localNewsList .news-row::after{
  inset: 10px;
}
#localNewsList .news-date{
  display:block;
  font-size: 1rem;
  line-height: 1.35;
  margin:0;
  color:#d8e5f2 !important;
}
#localNewsList .news-body{
  display:grid;
  gap:10px;
  min-width:0;
}
#localNewsList .news-headline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
#localNewsList .news-badge{
  margin:0;
  flex:0 0 auto;
}
#localNewsList .news-title{
  display:block;
  width:100%;
  margin:0;
  font-size:1.08rem;
  line-height:1.28;
  color:var(--accent);
  white-space:normal !important;
  overflow-wrap:anywhere;
  word-break:break-word;
}
#localNewsList .news-text{
  display:block !important;
  margin:0;
  font-size:.96rem;
  line-height:1.5;
  color:#b8cee5;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  overflow: visible !important;
}
#localNewsList{
  max-height: 560px !important;
}


/* ===== v24.7 local title readability ===== */
#localNewsList .news-row{
  padding: 16px 18px 16px !important;
}
#localNewsList .news-body{
  display:grid;
  gap:8px;
  min-width:0;
}
#localNewsList .news-title{
  display:-webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  margin:0 !important;
  font-size:1.12rem !important;
  line-height:1.22 !important;
  color:var(--accent) !important;
  text-shadow:0 0 10px rgba(102,247,255,.08);
}
#localNewsList .news-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
#localNewsList .news-badge{
  margin:0 !important;
}
#localNewsList .news-text{
  display:-webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  margin:0 !important;
}

/* ===== v24.10 local news final fix ===== */
#localNewsList .news-row{grid-template-columns:1fr !important;gap:12px !important;padding:18px 20px !important;min-height:auto !important}
#localNewsList .news-date{display:block;margin:0;font-size:1rem;line-height:1.35;color:#dbe8f5 !important}
#localNewsList .news-body{display:grid;gap:10px;min-width:0}
#localNewsList .news-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#localNewsList .news-title{display:block !important;margin:0 !important;font-size:1.08rem !important;line-height:1.28 !important;color:var(--accent) !important;white-space:normal !important;overflow:visible !important;text-overflow:unset !important;-webkit-line-clamp:unset !important;-webkit-box-orient:initial !important;max-height:none !important;word-break:break-word;overflow-wrap:anywhere}
#localNewsList .news-text{display:-webkit-box !important;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden !important;margin:0 !important;color:#afc6dc !important;line-height:1.45 !important}
#localNewsList .news-body::before{content:"";display:block;width:100%;height:1px;background:linear-gradient(90deg, rgba(102,247,255,.16), rgba(102,247,255,.03) 45%, rgba(255,139,232,.12));margin-bottom:2px}

/* ===== V27 next level ===== */
:root{
  --ui-border: rgba(110,220,255,.12);
  --ui-border-strong: rgba(110,220,255,.18);
  --ui-text-strong: #eef7ff;
  --ui-text: #c7d7e7;
  --ui-text-soft: #97aec4;
}
body.theme-clean{ --accent:#9ae8ff; --accent2:#b98cff; }
body.compact-mode .dashboard-grid{gap:12px !important}
body.compact-mode .card{padding:16px !important}
body.compact-mode .detail-list{max-height:280px !important}

.control-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin:18px 0 0;}
.control-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.control-btn,.control-pill{border:1px solid var(--ui-border);background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));color:var(--ui-text);border-radius:10px;padding:8px 12px;font:inherit;}
.control-btn{cursor:pointer;}
.control-btn:hover{border-color:var(--ui-border-strong);}
.control-label{color:var(--ui-text-soft);font-size:.86rem;text-transform:uppercase;letter-spacing:.08em;}

.dashboard-grid{grid-template-columns:repeat(12,minmax(0,1fr)) !important;gap:16px !important;}
.card-two-thirds{grid-column:span 8 !important;}
.card-third{grid-column:span 4 !important;}
.card-wide{grid-column:span 12 !important;}

.card[data-module]{transition:transform .15s ease,border-color .15s ease,opacity .15s ease;}
.card[data-module].dragging{opacity:.55;transform:scale(.99);}
.card.drop-target{border-color:rgba(255,139,232,.28) !important;box-shadow:0 0 0 1px rgba(255,139,232,.08),0 0 30px rgba(255,139,232,.08) !important;}
.module-toolbar{display:flex;justify-content:flex-end;gap:8px;margin:-6px 0 10px;}
.module-btn{border:1px solid var(--ui-border);background:rgba(255,255,255,.02);color:var(--ui-text-soft);border-radius:8px;width:30px;height:30px;cursor:pointer;font:inherit;}
.module-btn:hover{border-color:var(--ui-border-strong);color:var(--ui-text);}
.module-grip{cursor:grab;}
.card.collapsed .card-content,.card.collapsed .microbar,.card.collapsed .weather-source,.card.collapsed .debug-panel{display:none !important;}
.card.collapsed{min-height:auto !important;}

#localNewsList,#flightList{max-height:520px !important;}
#localNewsList .news-row,#flightList .flight-row{
  padding:14px 16px !important;border-radius:16px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.015)), rgba(10,16,30,.52) !important;
  border:1px solid var(--ui-border) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.03);overflow:visible !important;
}
#localNewsList .news-row::after,#flightList .flight-row::after{display:none !important;}
#localNewsList .news-date{display:block;margin:0 0 6px 0 !important;font-size:.90rem !important;line-height:1.35 !important;color:var(--ui-text-soft) !important;}
#localNewsList .news-body{display:grid;gap:8px !important;min-width:0;}
#localNewsList .news-title{display:block !important;font-size:1rem !important;line-height:1.32 !important;font-weight:600 !important;color:var(--ui-text-strong) !important;margin:0 !important;white-space:normal !important;overflow:visible !important;text-overflow:unset !important;max-height:none !important;word-break:break-word;overflow-wrap:anywhere;text-shadow:none !important;}
#localNewsList .news-meta{display:flex !important;align-items:center !important;gap:8px !important;flex-wrap:wrap !important;margin:0 !important;overflow:visible !important;}
#localNewsList .news-badge{display:inline-flex !important;width:max-content !important;max-width:100%;font-size:.76rem !important;line-height:1.1 !important;padding:4px 9px !important;border-radius:999px !important;background:rgba(255,255,255,.03) !important;border:1px solid var(--ui-border) !important;color:var(--accent) !important;position:relative;z-index:2;margin:0 !important;}
#localNewsList .news-text{display:-webkit-box !important;-webkit-line-clamp:2 !important;-webkit-box-orient:vertical !important;overflow:hidden !important;font-size:.88rem !important;line-height:1.42 !important;color:var(--ui-text-soft) !important;margin:0 !important;}

#flightList .flight-row{grid-template-columns:1fr !important;gap:10px !important;}
#flightList .flight-call{font-size:.96rem !important;line-height:1.25 !important;color:var(--ui-text-strong) !important;text-shadow:none !important;}
#flightList .flight-meta{display:flex !important;flex-wrap:wrap !important;gap:8px !important;overflow:visible !important;}
#flightList .flight-meta span{display:inline-flex !important;width:max-content !important;max-width:100%;padding:7px 10px !important;font-size:.84rem !important;line-height:1.2 !important;border:1px solid var(--ui-border) !important;background:rgba(255,255,255,.022) !important;border-radius:10px !important;color:var(--ui-text-soft) !important;position:relative;z-index:2;}

@media (max-width:1100px){
  .card-two-thirds,.card-third,.card-wide{grid-column:span 12 !important;}
}

/* ===== V27.1 weather/system status fix ===== */
.status-strip .card,
.status-grid .card,
.status-tile{
  min-height: 120px;
}
