/* ═══════════════════════════════════════════════════════════════
   space.css — StarInvasion UI Theme
   Dark Space · Neon Cyan · Glass Panels
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --space-bg:          #030610;
  --panel-bg:          rgba(4, 12, 38, 0.82);
  --panel-bg-hover:    rgba(6, 18, 55, 0.90);
  --panel-border:      rgba(0, 160, 255, 0.20);
  --panel-border-glow: rgba(0, 180, 255, 0.45);

  --accent:            #00aaff;
  --accent-glow:       rgba(0, 170, 255, 0.35);
  --accent-2:          #7b2fff;
  --accent-2-glow:     rgba(123, 47, 255, 0.30);
  --accent-green:      #00ff88;
  --accent-green-glow: rgba(0, 255, 136, 0.25);
  --accent-orange:     #ff9000;
  --accent-red:        #ff3355;
  --accent-gold:       #ffd700;

  --text-primary:  #c8e6ff;
  --text-secondary:#8ab4d8;
  --text-muted:    #3d6080;
  --text-label:    #2a4a6a;

  --res-roheisen: #c07840;
  --res-metall:   #8899bb;
  --res-kryptonit:#44ee88;
  --res-spice:    #ffaa22;
  --res-energie:  #00d4ff;

  --topnav-h:   56px;
  --sidebar-w:  220px;
  --bottom-h:   40px;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;

  --glass-blur: blur(16px);
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }

body {
  background: var(--space-bg);
  font-family: 'Exo 2', 'Inter', sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ── Starfield Canvas ── */
#starfield-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Scan-line overlay ── */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
}

/* ── Parallax Space Background ── */
#space-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #04060f;
}
.space-layer {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-repeat: repeat;
  will-change: transform;
  image-rendering: auto;
}
#layer-nebula {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  background-image: url('/nebula.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  opacity: 1.0;
  will-change: transform;
  animation: driftNebula 120s ease-in-out infinite alternate;
}
#layer-stars-mid {
  background-image: url('/stars1.jpg');
  background-size: 600px 600px;
  opacity: 0.18;
  animation: scrollMid 55s linear infinite;
}
#layer-stars-fg {
  background-image: url('/stars2.jpg');
  background-size: 400px 400px;
  opacity: 0.12;
  animation: scrollFg 28s linear infinite;
}
#layer-color {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 25%, rgba(80,0,180,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 70%, rgba(0,60,160,0.18) 0%, transparent 70%);
  pointer-events: none;
}
#layer-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(0,5,20,0.70) 100%);
  pointer-events: none;
}
@keyframes scrollMid {
  0%   { transform: translate(0px, 0px);   }
  100% { transform: translate(0px, 600px); }
}
@keyframes scrollFg {
  0%   { transform: translate(0px, 0px);   }
  100% { transform: translate(0px, 400px); }
}
@keyframes driftNebula {
  0%   { transform: translate(0px,  0px) scale(1.00); }
  50%  { transform: translate(6px,  8px) scale(1.01); }
  100% { transform: translate(-6px, 14px) scale(1.01); }
}

/* ── App Grid ── */
.space-app {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topnav-h) 1fr var(--bottom-h);
  grid-template-areas:
    "topnav  topnav"
    "sidebar main"
    "bottom  bottom";
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ════════════════════════════════════════
   TOP NAV
   ════════════════════════════════════════ */
.space-topnav {
  grid-area: topnav;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: rgba(2, 6, 22, 0.92);
  border-bottom: 1px solid var(--panel-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 24px rgba(0,150,255,0.10);
}

/* Logo */
.topnav-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  width: var(--sidebar-w);
}

.game-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--text-primary);
  user-select: none;
}
.logo-icon {
  font-size: 1.1rem;
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent-glow));
  animation: logoRotate 8s linear infinite;
}
@keyframes logoRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.logo-accent { color: var(--accent); }

/* Server Clock */
.clock-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
}
.clock-item { display: flex; flex-direction: column; align-items: center; }
.clock-label { color: var(--text-muted); font-size: 0.55rem; letter-spacing: 0.5px; }
.clock-value { color: var(--accent); font-size: 0.78rem; font-weight: 600; }
.clock-divider { color: var(--text-muted); margin: 0 2px; }

/* Center Nav */
.topnav-center {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-item i { font-size: 1rem; }
.nav-item:hover {
  background: rgba(0,160,255,0.08);
  border-color: rgba(0,160,255,0.25);
  color: var(--text-primary);
}
.nav-item.active {
  background: rgba(0,160,255,0.12);
  border-color: var(--panel-border-glow);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0,160,255,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent);
}

.nav-separator {
  width: 1px;
  height: 28px;
  background: var(--panel-border);
  margin: 0 6px;
}

.nav-icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.nav-icon-btn:hover {
  color: var(--accent);
  border-color: var(--panel-border);
  background: rgba(0,160,255,0.06);
}

/* Right Nav */
.topnav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.messages-btn, .notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,160,255,0.06);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.messages-btn:hover, .notif-btn:hover {
  color: var(--accent);
  border-color: var(--panel-border-glow);
  box-shadow: 0 0 10px var(--accent-glow);
}
.msg-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
}
.msg-badge.danger { background: var(--accent-red); color: #fff; }

.logout-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255,50,80,0.08);
  border: 1px solid rgba(255,50,80,0.25);
  border-radius: var(--radius-sm);
  color: #ff8090;
  font-size: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Exo 2', sans-serif;
}
.logout-btn:hover {
  background: rgba(255,50,80,0.18);
  border-color: rgba(255,50,80,0.5);
  color: #fff;
}

/* ════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════ */
.space-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(0,20,60,0.50);
  border-right: 1px solid var(--panel-border);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-border) transparent;
}
.space-sidebar::-webkit-scrollbar { width: 4px; }
.space-sidebar::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 2px; }

/* Section Labels */
.section-label {
  padding: 8px 12px 4px;
  font-family: 'Orbitron', monospace;
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--text-label);
  text-transform: uppercase;
}

/* Pilot Card */
.pilot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 10px;
  background: rgba(0,30,70,0.50);
  border-bottom: 1px solid var(--panel-border);
}
.pilot-avatar-wrap { position: relative; flex-shrink: 0; }
.pilot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,100,200,0.4), rgba(100,0,255,0.4));
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.pilot-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--space-bg);
}
.pilot-status.online { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green-glow); }

.pilot-info { flex: 1; min-width: 0; }
.pilot-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pilot-rank {
  font-size: 0.65rem;
  color: var(--accent);
  margin-top: 1px;
}
.pilot-pts {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pilot-pts i { color: var(--accent-gold); font-size: 0.65rem; }
.pilot-rank-num {
  margin-left: auto;
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Planet Selector */
.planet-selector-wrap {
  padding: 0 12px 8px;
  border-bottom: 1px solid rgba(0,160,255,0.1);
}
.planet-selector {
  position: relative;
  display: flex;
  align-items: center;
}
.selector-icon {
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 1;
}
.selector-arrow {
  position: absolute;
  right: 8px;
  color: var(--text-muted);
  font-size: 0.65rem;
  pointer-events: none;
}
.planet-select {
  width: 100%;
  padding: 7px 24px 7px 26px;
  background: rgba(0,30,80,0.60);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  appearance: none;
  transition: var(--transition);
  outline: none;
}
.planet-select:hover, .planet-select:focus {
  border-color: var(--panel-border-glow);
  background: rgba(0,40,100,0.7);
}
.planet-select option { background: #050f28; }

/* Resources */
.resources-wrap {
  padding: 0 12px 8px;
  border-bottom: 1px solid rgba(0,160,255,0.1);
}
.resource-row {
  margin-bottom: 10px;
}
.resource-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}
.res-icon-wrap {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.res-icon-wrap.roheisen  { background: rgba(192,120, 64,0.15); color: var(--res-roheisen); }
.res-icon-wrap.metall    { background: rgba(136,153,187,0.15); color: var(--res-metall); }
.res-icon-wrap.kryptonit { background: rgba( 68,238,136,0.12); color: var(--res-kryptonit); }
.res-icon-wrap.spice     { background: rgba(255,170, 34,0.12); color: var(--res-spice); }
.res-icon-wrap.energie   { background: rgba(  0,212,255,0.12); color: var(--res-energie); }

.res-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  flex: 1;
}
.res-value {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}
.res-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2px;
}
.res-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.2s ease;
}
.res-bar-fill.roheisen  { background: var(--res-roheisen);  box-shadow: 0 0 6px rgba(192,120, 64,0.6); }
.res-bar-fill.metall    { background: var(--res-metall);    box-shadow: 0 0 6px rgba(136,153,187,0.6); }
.res-bar-fill.kryptonit { background: var(--res-kryptonit); box-shadow: 0 0 6px rgba( 68,238,136,0.6); }
.res-bar-fill.spice     { background: var(--res-spice);     box-shadow: 0 0 6px rgba(255,170, 34,0.6); }
.res-bar-fill.energie   { background: var(--res-energie);   box-shadow: 0 0 6px rgba(  0,212,255,0.6); }

.res-rate {
  font-size: 0.62rem;
  color: var(--text-muted);
}
.res-rate i { color: var(--accent-green); font-size: 0.55rem; }

/* Pilot Stats */
.pilot-stats-wrap {
  padding: 0 12px 8px;
  border-bottom: 1px solid rgba(0,160,255,0.1);
}
.stat-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.stat-row:last-child { border-bottom: none; }
.stat-icon { width: 18px; text-align: center; font-size: 0.75rem; color: var(--text-muted); }
.stat-name { flex: 1; font-size: 0.72rem; color: var(--text-secondary); }
.stat-val {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  color: var(--text-primary);
}

/* Speed Bonus */
.speed-bonus-wrap {
  padding: 8px 12px;
  margin-top: auto;
}
.speed-bonus-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.20);
  border-radius: var(--radius-md);
  font-size: 0.68rem;
  color: var(--accent-green);
}
.speed-bonus-badge i { flex-shrink: 0; }
.speed-timer {
  margin-left: auto;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  color: var(--accent-green);
  font-weight: 600;
}

/* ════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════ */
.space-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Notification Banner */
.notice-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0,200,100,0.08);
  border-bottom: 1px solid rgba(0,200,100,0.25);
  font-size: 0.8rem;
  color: var(--accent-green);
  flex-shrink: 0;
}
.notice-banner i { flex-shrink: 0; }
.notice-btn {
  margin-left: auto;
  padding: 4px 12px;
  background: rgba(0,200,100,0.12);
  border: 1px solid rgba(0,200,100,0.30);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.notice-btn:hover { background: rgba(0,200,100,0.20); }
.notice-close {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}
.notice-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* Content Sections */
.content-section {
  flex: 1;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-border) transparent;
}
.content-section::-webkit-scrollbar { width: 5px; }
.content-section::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 3px; }
.content-section.active { display: block; }

/* Zentrale Grid Layout */
.zentrale-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: 1fr auto;
  gap: 12px;
  min-height: 100%;
}
.news-panel  { grid-column: 1; grid-row: 1; }
.planet-card { grid-column: 2; grid-row: 1 / 3; }
.astro-panel { grid-column: 1; grid-row: 2; }

/* Glass Panel Base */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
  transition: border-color var(--transition);
}
.glass-panel:hover {
  border-color: rgba(0,160,255,0.30);
}

/* Panel Header */
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(0,20,60,0.30);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.panel-title i { color: var(--accent); font-size: 0.85rem; }

.panel-actions { margin-left: auto; display: flex; gap: 4px; }
.panel-icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.panel-icon-btn:hover {
  color: var(--accent);
  border-color: var(--panel-border);
  background: rgba(0,160,255,0.06);
}

/* News Tabs */
.news-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.news-tab {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.68rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Exo 2', sans-serif;
}
.news-tab:hover { color: var(--text-secondary); border-color: var(--panel-border); }
.news-tab.active {
  background: rgba(0,160,255,0.12);
  border-color: var(--panel-border-glow);
  color: var(--accent);
}

/* News Content */
.news-content {
  padding: 8px 0;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-border) transparent;
}
.news-content::-webkit-scrollbar { width: 4px; }
.news-content::-webkit-scrollbar-thumb { background: var(--panel-border); }

.news-item {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,160,255,0.06);
  transition: background var(--transition);
  cursor: pointer;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: rgba(0,60,120,0.20); }
.news-item.unread { border-left: 3px solid var(--accent); }

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.news-date { font-size: 0.65rem; color: var(--text-muted); font-family: 'Orbitron', monospace; }
.news-tag {
  padding: 2px 7px;
  background: rgba(0,160,255,0.12);
  border: 1px solid rgba(0,160,255,0.25);
  border-radius: 20px;
  font-size: 0.6rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-tag-event {
  background: rgba(255,144,0,0.12);
  border-color: rgba(255,144,0,0.25);
  color: var(--accent-orange);
}
.news-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.news-excerpt {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.news-read-more {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: var(--transition);
  font-family: 'Exo 2', sans-serif;
}
.news-read-more:hover { color: #fff; gap: 6px; }

/* ─── Planet Card ─── */
.planet-card { display: flex; flex-direction: column; }
.planet-coords-badge {
  margin-left: auto;
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  background: rgba(0,160,255,0.06);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  white-space: nowrap;
}
.planet-spin-icon {
  animation: spinSlow 6s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.planet-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 14px 8px;
}

/* Planet sphere */
.planet-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}
.planet-sphere {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    #2a6a9a 0%,
    #1a4470 35%,
    #0a2040 70%,
    #050f22 100%
  );
  box-shadow:
    0 0 30px rgba(0,100,200,0.35),
    inset -10px -10px 25px rgba(0,0,0,0.5),
    inset 5px 5px 15px rgba(100,180,255,0.15);
  position: relative;
  animation: planetRotate 20s linear infinite;
}
@keyframes planetRotate {
  from { box-shadow: 0 0 30px rgba(0,100,200,0.35), inset -10px -10px 25px rgba(0,0,0,0.5), inset 5px 5px 15px rgba(100,180,255,0.15); }
  50%  { box-shadow: 0 0 40px rgba(0,150,255,0.45), inset -10px -10px 25px rgba(0,0,0,0.5), inset 5px 5px 20px rgba(120,200,255,0.20); }
  to   { box-shadow: 0 0 30px rgba(0,100,200,0.35), inset -10px -10px 25px rgba(0,0,0,0.5), inset 5px 5px 15px rgba(100,180,255,0.15); }
}
.planet-ring {
  position: absolute;
  width: 130px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(0,160,255,0.30);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(75deg);
  pointer-events: none;
}
.planet-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,120,255,0.12) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.planet-stats-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pstat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  background: rgba(0,30,70,0.40);
  border: 1px solid rgba(0,160,255,0.10);
  border-radius: var(--radius-sm);
}
.pstat-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pstat-label i { font-size: 0.6rem; color: var(--accent); }
.pstat-value {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  color: var(--text-primary);
  font-weight: 600;
}
.pstat-value.cold { color: #60d0ff; }

.planet-desc-wrap {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--panel-border);
}
.planet-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
}

/* ─── Astro Panel ─── */
.astro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}
.astro-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.astro-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  flex-shrink: 0;
}
.astro-indicator.ready {
  background: rgba(0,255,136,0.12);
  border: 2px solid rgba(0,255,136,0.40);
  color: var(--accent-green);
}
.astro-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  animation: pulsing 2s ease-out infinite;
  opacity: 0;
}
@keyframes pulsing {
  0%   { transform: scale(1);    opacity: 0.8; }
  100% { transform: scale(1.5);  opacity: 0; }
}
.astro-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-green);
}
.astro-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: 'Orbitron', monospace;
  margin-top: 2px;
}

.fire-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(0,200,100,0.15), rgba(0,160,255,0.10));
  border: 1px solid rgba(0,255,136,0.40);
  border-radius: var(--radius-md);
  color: var(--accent-green);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
}
.fire-btn:hover {
  background: linear-gradient(135deg, rgba(0,200,100,0.25), rgba(0,160,255,0.18));
  border-color: rgba(0,255,136,0.70);
  box-shadow: 0 0 20px rgba(0,255,136,0.25);
  color: #fff;
}
.fire-btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,255,136,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.fire-btn:hover .fire-btn-glow { opacity: 1; }

/* ─── Coming Soon ─── */
.coming-soon-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 16px;
  min-height: 200px;
  text-align: center;
}
.coming-soon-icon {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
}
.coming-soon-panel h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
}
.coming-soon-panel p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Progress Ring */
.progress-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.progress-ring { transform: rotate(-90deg); }
.pr-bg  { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 4; }
.pr-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--accent));
}
.progress-label {
  position: absolute;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  color: var(--accent);
}

/* ════════════════════════════════════════
   BOTTOM BAR
   ════════════════════════════════════════ */
.space-bottom {
  grid-area: bottom;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: rgba(2, 6, 22, 0.92);
  border-top: 1px solid var(--panel-border);
  backdrop-filter: var(--glass-blur);
}

.bottom-left { flex-shrink: 0; }
.bottom-center { flex: 1; text-align: center; }
.bottom-right { flex-shrink: 0; display: flex; align-items: center; gap: 4px; }

.version-tag {
  font-family: 'Orbitron', monospace;
  font-size: 0.55rem;
  color: var(--text-label);
  letter-spacing: 1px;
}

.bottom-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Exo 2', sans-serif;
}
.bottom-btn:hover {
  background: rgba(0,160,255,0.08);
  border-color: var(--panel-border-glow);
  color: var(--accent);
}
.bottom-btn.primary {
  background: rgba(0,160,255,0.08);
  border-color: rgba(0,160,255,0.30);
  color: var(--accent);
}
.bottom-btn.primary:hover {
  background: rgba(0,160,255,0.16);
  box-shadow: 0 0 10px var(--accent-glow);
}

.bottom-link {
  padding: 3px 8px;
  color: var(--text-muted);
  font-size: 0.68rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.bottom-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.myvlife-link { color: rgba(255,100,100,0.6); }
.myvlife-link:hover { color: #ff8090; }

/* ════════════════════════════════════════
   RESPONSIVE — compact mode ≤ 900px
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  :root {
    --sidebar-w: 0px;
    --topnav-h: 48px;
  }
  .space-app {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topnav"
      "main"
      "bottom";
  }
  .space-sidebar { display: none; }
  .topnav-left .clock-display { display: none; }
  .nav-item span { display: none; }
  .topnav-center { gap: 0; }
  .nav-item { padding: 6px 10px; }
  .zentrale-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .planet-card, .news-panel, .astro-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .nav-icon-btn, .nav-separator { display: none; }
  .logout-btn span { display: none; }
  .bottom-center { display: none; }
}
