:root {
  /* --- PALETTE: Deep Space & Neon --- */
  --bg-deep: #030305;
  --bg-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
  
  --c-primary: #00f3ff;
  --c-accent: #ff0055;
  --c-gold: #ffd700;
  --c-success: #0aff0a;
  
  /* --- GLASS MATERIAL (The Secret Sauce) --- */
  /* 1. Base transparency */
  --glass-bg: rgba(255, 255, 255, 0.03);
  /* 2. Frosted blur */
  --glass-blur: blur(20px) saturate(180%);
  /* 3. Edge lighting (Top-Left Light, Bottom-Right Shadow) */
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-border-highlight: rgba(255, 255, 255, 0.15);
  /* 4. Inner volume */
  --glass-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.5), /* Drop shadow */
    inset 0 0 0 1px rgba(255, 255, 255, 0.05); /* Inner rim */

  /* --- PHYSICS (Spring Motion) --- */
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1); /* Overshoot */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);       /* Apple-like */
  --dur-hover: 0.4s;
}

/* GLOBAL RESET */
*, *::before, *::after { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
  margin: 0; background-color: var(--bg-deep); color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden; min-height: 100vh;
}

/* NOISE TEXTURE OVERLAY (Tactile feel) */
.bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--bg-noise);
  opacity: 0.4; mix-blend-mode: overlay;
}

/* BACKGROUND GRADIENT BLOBS (Ambient Light) */
.bg-blobs {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(0, 243, 255, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 0, 85, 0.06), transparent 25%);
  filter: blur(40px);
}

/* --- THE ULTIMATE GLASS CARD --- */
.glass-panel {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight); /* Highlight top edge */
  border-bottom: 1px solid rgba(0,0,0,0.2); /* Shadow bottom edge */
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 30px;
  overflow: hidden;
  transition: transform var(--dur-hover) var(--ease-smooth), box-shadow var(--dur-hover) var(--ease-smooth);
}

/* Hover Physics: Lift & Glow */
.glass-panel:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.1),
    0 0 30px rgba(0, 243, 255, 0.1); /* Subtle ambient glow */
  border-color: rgba(255,255,255,0.2);
}

/* Glare Effect (Shine passing through) */
.glass-panel::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-25deg);
  transition: 0.5s; pointer-events: none;
}
.glass-panel:hover::after { left: 150%; transition: 0.7s ease-in-out; }

/* --- CRYSTAL BUTTONS --- */
.btn {
  appearance: none; border: none; outline: none;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px;
  font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: 1px;
  font-size: 14px; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: all 0.3s var(--ease-elastic);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 243, 255, 0.3);
  border-color: rgba(255,255,255,0.4);
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
}
.btn:hover::before { opacity: 1; }

.btn:active { transform: translateY(1px) scale(0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

/* Variant: Primary (Neon Charge) */
.btn-primary {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(0, 243, 255, 0.05));
  border-color: rgba(0, 243, 255, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0, 243, 255, 0.4);
  border-color: var(--c-primary);
}

/* --- TYPOGRAPHY & TAGS --- */
h1, h2, h3 { font-family: 'Orbitron', sans-serif; margin: 0; line-height: 1.1; }
p { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 8px; }

.tag {
  font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 4px;
  letter-spacing: 1px; text-transform: uppercase;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}
.tag.new { border-color: var(--c-success); color: var(--c-success); background: rgba(10,255,10,0.1); }
.tag.hot { border-color: var(--c-accent); color: var(--c-accent); background: rgba(255,0,85,0.1); }

/* --- INPUT FIELDS (Deep Glass) --- */
.input-field {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; padding: 16px;
  font-family: 'Rajdhani', monospace; font-size: 18px; font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}
.input-field:focus {
  outline: none;
  background: rgba(0,0,0,0.5);
  border-color: var(--c-primary);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1), inset 0 2px 5px rgba(0,0,0,0.5);
}

/* --- HEADER --- */
.app-header {
  height: 80px; padding: 0 30px;
  background: rgba(3, 3, 5, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
}

/* --- ANIMATION UTILS --- */
.animate-enter { 
  opacity: 0; transform: translateY(20px);
  animation: enter 0.8s var(--ease-smooth) forwards;
}
@keyframes enter { to { opacity: 1; transform: translateY(0); } }
