/* ==========================================================================
   FUTURISTISK GLAS-DESIGN & VARIABLER
   ========================================================================== */

:root {
  /* Standard: Cyber Neon Theme */
  --bg-primary: #0a0618;
  --glass-bg: rgba(22, 16, 48, 0.55);
  --glass-border: rgba(180, 100, 255, 0.25);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  --glass-blur: 16px;
  --accent-neon: #00f0ff;
  --accent-secondary: #ff007b;
  --text-main: #f0f4fc;
  --text-muted: #95a3bf;
  --positive: #00ffaa;
  --negative: #ff3366;
  --glow-1: #6a0dad;
  --glow-2: #00f0ff;
  --glow-3: #ff007b;
  --card-radius: 20px;
}

/* Glastema: Quantum Ice (Cyan / Djupblå) */
[data-theme="quantum-ice"] {
  --bg-primary: #040d1a;
  --glass-bg: rgba(6, 26, 50, 0.5);
  --glass-border: rgba(64, 196, 255, 0.3);
  --accent-neon: #00f7ff;
  --accent-secondary: #0088ff;
  --glow-1: #00377a;
  --glow-2: #00d4ff;
  --glow-3: #0051a8;
}

/* Glastema: Aurora Emerald (Grön / Teal / Cyber) */
[data-theme="aurora-emerald"] {
  --bg-primary: #05140f;
  --glass-bg: rgba(8, 38, 28, 0.55);
  --glass-border: rgba(0, 255, 170, 0.25);
  --accent-neon: #00ffaa;
  --accent-secondary: #00d084;
  --glow-1: #004d2c;
  --glow-2: #00ff88;
  --glow-3: #00a86b;
}

/* Glastema: Solar Flare (Neon Orange / Magenta) */
[data-theme="solar-flare"] {
  --bg-primary: #170805;
  --glass-bg: rgba(45, 15, 8, 0.55);
  --glass-border: rgba(255, 115, 0, 0.3);
  --accent-neon: #ff8400;
  --accent-secondary: #ff0055;
  --glow-1: #801d00;
  --glow-2: #ff5e00;
  --glow-3: #ff0055;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease;
}

/* Bakgrunds-auroror med blurs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  transition: background 0.6s ease;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: -50px;
  left: -80px;
  background: var(--glow-1);
}

.orb-2 {
  width: 350px;
  height: 350px;
  top: 40%;
  right: -100px;
  background: var(--glow-2);
}

.orb-3 {
  width: 380px;
  height: 380px;
  bottom: -60px;
  left: 20%;
  background: var(--glow-3);
}

/* Glassmorphism Bas */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4),
              inset 0 1px 1px var(--glass-highlight);
  border-radius: var(--card-radius);
}

.app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Header */
.header {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

.brand-logo {
  font-size: 28px;
  color: var(--accent-neon);
  text-shadow: 0 0 14px var(--accent-neon);
  animation: pulseLogo 3s infinite alternate ease-in-out;
}

@keyframes pulseLogo {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.08) rotate(6deg); }
}

.brand h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 1.5px;
  font-weight: 900;
  line-height: 1.1;
}

.brand h1 span {
  color: var(--accent-neon);
  text-shadow: 0 0 10px var(--accent-neon);
}

.tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 3px;
}

.glass-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.glass-btn:active {
  transform: scale(0.92);
}

.icon-btn {
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
}

.refresh-icon.spinning {
  animation: spin 1s infinite linear;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Tema Väljare */
.theme-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

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

.theme-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.theme-chips::-webkit-scrollbar { display: none; }

.theme-chip {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s;
}

.theme-chip.active {
  background: var(--accent-neon);
  color: #000;
  font-weight: 700;
  border-color: var(--accent-neon);
  box-shadow: 0 0 12px var(--accent-neon);
}

/* Stats Strip */
.stats-strip {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 14px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-title {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 3px;
}

.stat-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--positive);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--positive);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Sök & Filter */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 30px;
  gap: 10px;
}

.search-icon {
  font-size: 1rem;
  opacity: 0.7;
}

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

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

.clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font
