:root {
  --bg: #0a0f15;
  --bg-2: #0b1220;
  --text: #eaffff;
  --muted: #a5b9cc;
  --accent: #00f875;      /* neon green */
  --accent-2: #1e90ff;    /* electric blue */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-solid: rgba(255, 255, 255, 0.14);
  --shadow: 0 8px 24px rgba(0,0,0,0.35);
  --radius: 12px;
}

html, body {
  height: 100%;
}

* { box-sizing: border-box; }

html, body, header, nav, main, article, footer, aside {
  /* Ensure selectors exist in cascade for production */
}

:root, [data-theme="neon"] { color-scheme: dark; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, rgba(0, 255, 126, 0.12) 0%, rgba(0, 160, 255, 0.12) 60%, rgba(0,0,0,0.0) 100%), #05080d;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Layered background: gradient + subtle noise/scanlines (CSS only) */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% -10%, rgba(0,255,120,0.25) 0 40%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(30,144,255,0.25) 0 40%, transparent 40%),
    linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%);
  mix-blend-mode: screen;
}
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px);
  pointer-events: none;
  opacity: 0.65;
  mix-blend-mode: overlay;
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  html::before { /* subtle extra glow on supported browsers */
    filter: saturate(1.05);
  }
}

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Glass panel helper (fallback included) */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass {
    background: var(--glass-solid);
    border-color: rgba(255,255,255,0.4);
  }
}

header {
  padding: 1rem 1rem;
  display: block;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  background: rgba(7,12,20,0.5);
  backdrop-filter: saturate(1.1) blur(6px);
  -webkit-backdrop-filter: saturate(1.1) blur(6px);
}
header .container { display:flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }

header h1 {
  font-size: clamp(1.25rem, 2vw + 0.75rem, 2.25rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
}
nav {
  display: flex; align-items: center; gap: .75rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}
nav a:hover { text-decoration: underline; color: var(--accent-2); }
nav a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

main { padding: 1.25rem 1rem; }
.container { width: min(1100px, 92vw); margin-inline: auto; }

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
  transition: transform 0.3s ease;
}
.image-frame:hover img { transform: scale(1.03); }

article { display: block; margin: 0 auto; padding: 0; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .6rem; border-radius: 999px;
  background: rgba(0,255,125,0.15);
  color: var(--text);
  border: 1px solid rgba(0,255,125,0.4);
  font-size: .8rem;
}

.content { margin-top: .75rem; color: var(--muted); font-size: clamp(0.95rem, 0.8vw + 0.9rem, 1.05rem); }

.product-ad { display: block; margin: 1rem 0; padding: .6rem; border-radius: 12px; }
.product-ad a { text-decoration: none; color: var(--text); display: block; padding: .75rem; border-radius: 12px; }
.product-ad a:hover { background: rgba(0,255,125,0.12); text-decoration: underline; }
footer { padding: 1rem 1rem; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.25); }

.sponsored-page a { text-decoration: none; color: var(--text); display: block; padding: .6rem; border-radius: 12px; margin-top: .25rem; }
.sponsored-page a:hover { text-decoration: underline; background: rgba(30,144,255,0.12); }

a, button, .btn, .cta {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
a { color: var(--text); }
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--text); font-weight: 600; text-align: center;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent-2), #00c96b);
  border: none; color: #04140f;
}
.btn.secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.95; }

.cta { display:inline-block; padding:.6rem 1rem; border-radius:8px; }

/* Glass panels usage example: any .card / .tag sizing */
.card {
  padding: .75rem; border-radius: 12px; background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.tag {
  display:inline-block; padding:.15rem .5rem; border-radius:999px;
  font-size:.75rem; background: rgba(0,255,125,0.15);
  border:1px solid rgba(0,255,125,0.4); color: var(--text);
}

/* Layout utilities */
.container.grid { display: grid; gap: 1rem; }
.grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Typography scale (fluid) */
h1, h2, h3 { line-height: 1.15; margin: .25rem 0; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.8rem + 2vw, 3rem); color: var(--text); }
h2 { font-size: clamp(1.25rem, 1.2rem + 1vw, 1.75rem); color: var(--text); }
p { margin: .5rem 0; }

/* Form controls (basic) */
input, textarea, select {
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: .5rem .75rem;
  outline: none;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
::placeholder { color: rgba(255,255,255,0.6); }

/* Print styles: basic readability */
@media print {
  html, body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .glass { background: #fff; border: 1px solid #ddd; box-shadow: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media (min-width: 720px) {
  main { padding: 2rem 0; }
  .image-frame { border-radius: 16px; }
}