/**
 * LumaClient 4.0 — Stylesheet
 * Clean, sharp, low-bloat styles built around the launcher's actual UI palette.
 */

@font-face {
  font-family: 'Inter';
  src: url('assets/InterVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  /* Theme: Black (Default OLED - matches UiTheme.BLACK) */
  --bg: #0a0a0c;
  --bg-elevated: #0f0f13;
  --surface: #131316;
  --surface-2: #18181c;
  --surface-hover: #1e1e24;
  --border: #1e1e24;
  --border-strong: #2c2c35;
  --text: #f4f4f5;
  --text-muted: #b8b8c2;
  --text-faint: #9696a3;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);

  /* Dynamic Accent (Default: Luma Blue #3b82f6) */
  --accent: #3b82f6;
  --accent-rgb: 59, 130, 246;
  --accent-soft: rgba(var(--accent-rgb), 0.14);
  --accent-border: rgba(var(--accent-rgb), 0.38);
  --accent-glow: rgba(var(--accent-rgb), 0.24);
  --accent-contrast: #ffffff;
  --accent-grad: linear-gradient(135deg, #60a5fa 0%, #3b82f6 45%, #1d4ed8 100%);

  /* Engine & Status Colors (matching Models.java) */
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.14);
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --fabric: #b5e853;
  --forge: #f59e0b;
  --neoforge: #f97316;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 64px;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --mono: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
  --transition: 0.16s cubic-bezier(0.2, 0, 0, 1);
}

[data-theme="gray"] {
  --bg: #2b2d31;
  --bg-elevated: #313338;
  --surface: #232428;
  --surface-2: #383a40;
  --surface-hover: #404249;
  --border: #1e1f22;
  --border-strong: #4e5058;
  --text: #f2f3f5;
  --text-muted: #b5bac1;
  --text-faint: #949ba4;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg: #f2f3f5;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #e7e9ec;
  --surface-hover: #dcdfe4;
  --border: #d4d7dc;
  --border-strong: #b9bec7;
  --text: #18181b;
  --text-muted: #4b5563;
  --text-faint: #6b7280;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* ── RESET & BASE ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
}

/* Subtle technical dot grid instead of heavy AI blur blobs */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
  pointer-events: none;
}

[data-theme="light"] body::before {
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus {
  top: 12px;
}

/* ── LAYOUT & TYPOGRAPHY ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

section {
  padding-block: clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--border);
}

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.sec-tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sec-title {
  font-size: clamp(1.55rem, 2.5vw + 0.4rem, 2.15rem);
}

.sec-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 620px;
}

/* ── BUTTONS & BADGES ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
.lw-inst-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 2px 14px var(--accent-glow);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--text-faint);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.83rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-muted);
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

.badge-green {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.35);
}

/* ── 1. NAVBAR ─────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Quick Accent/Theme Picker in Navbar */
.nav-QuickTheme {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform var(--transition), border-color var(--transition);
}
.nav-dot:hover {
  transform: scale(1.18);
}
.nav-dot.active {
  border-color: var(--text);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  gap: 5px;
}
.lang-switch:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.nav-burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ── 2. HERO SECTION (LEFT-ALIGNED + INTERACTIVE LAUNCHER) ─────────── */
.hero {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(44px, 6vw, 72px);
}

.hero-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 36px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero-title {
  font-size: clamp(2.75rem, 5.5vw + 0.5rem, 4.5rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero-title-white {
  color: #ffffff;
}

[data-theme="light"] .hero-title-white {
  color: #0f1115;
}

.hero-title-gradient {
  background: var(--accent-grad, linear-gradient(135deg, #c084fc 0%, #a855f7 45%, #ec4899 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  filter: drop-shadow(0 0 28px rgba(var(--accent-rgb), 0.35));
}

.hero-title-accent {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
}

.hero-cta-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-cta-main {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cta-main .btn-primary {
  flex: 1;
  min-width: 210px;
  padding: 13px 20px;
  font-size: 0.96rem;
}

.hero-alt-downloads {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.hero-alt-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.77rem;
}

.hero-alt-links a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-alt-links a:hover {
  color: var(--accent);
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-specs .badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
}

.hero-specs .badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.hero-specs .badge.badge-accent {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.spec-svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ── LAUNCHER PREVIEW IMAGE SHOWCASE ──────────────────────────────── */
.launcher-preview-wrapper {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  position: relative;
}

.launcher-preview-frame {
  position: relative;
  border-radius: 18px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(30, 58, 138, 0.25) 50%, rgba(59, 130, 246, 0.4));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(59, 130, 246, 0.22);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s cubic-bezier(0.2, 0, 0, 1);
  max-width: 1080px;
  width: 100%;
}

.launcher-preview-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.85), 0 0 65px rgba(59, 130, 246, 0.32);
}

.launcher-preview-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  background: #0d0d12;
}

/* ── INTERACTIVE LUMACLIENT 4.0 WINDOW REPLICA (1:1 JAVAFX PORT) ───── */
.launcher-showcase {
  position: relative;
}

.launcher-toolbar-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.launcher-window {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  user-select: none;
}

.lw-particles-canvas {
  position: absolute;
  inset: 40px 0 0 0;
  width: 100%;
  height: calc(100% - 40px);
  pointer-events: none;
  z-index: 1;
}

/* Authentic Windows Titlebar (matches Main.buildTopBar) */
.lw-titlebar {
  position: relative;
  z-index: 3;
  height: 40px;
  background: var(--surface);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 4px;
}

.lw-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.lw-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.lw-appname {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.lw-ver {
  font-size: 10.5px;
  color: var(--text-faint);
}

.lw-flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  padding: 0;
}

.lw-flag-pl {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #f8fafc 50%, #dc2626 50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.lw-flag-en {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

.lw-win-btns {
  display: flex;
  align-items: center;
}

.lw-win-btn {
  width: 42px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  border-radius: 6px;
  transition: all var(--transition);
}
.lw-win-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.lw-win-btn.close:hover {
  background: #ef4444;
  color: #fff;
}

/* Launcher Body: Sidebar (220px) + Main View */
.lw-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 550px;
  background: transparent;
}

.lw-sidebar {
  background: rgba(19, 19, 22, 0.92);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

[data-theme="gray"] .lw-sidebar {
  background: rgba(35, 36, 40, 0.94);
}
[data-theme="light"] .lw-sidebar {
  background: rgba(255, 255, 255, 0.94);
}

.lw-emblem {
  display: flex;
  justify-content: center;
  padding: 20px 0 14px;
}

.lw-emblem img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 14px var(--accent));
}

.lw-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 12px;
}

.lw-nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  text-align: left;
  transition: all var(--transition);
}

.lw-nav-btn:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.lw-nav-btn.active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
  border-color: var(--accent-border);
}

.lw-nav-btn svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.lw-nav-btn.active svg {
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
}

/* Clickable Player Box at bottom of sidebar (opens Accounts view idx 4) */
.lw-profile-bar {
  margin-top: auto;
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.lw-profile-bar:hover,
.lw-profile-bar.active {
  background: var(--accent-soft);
}

.lw-steve-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  background: #b97850;
}

.lw-steve-avatar.lg {
  width: 48px;
  height: 48px;
}

.lw-profile-info {
  overflow: hidden;
}

.lw-profile-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.lw-profile-mode {
  font-size: 11px;
  color: var(--text-faint);
}

/* Launcher Content Panes */
.lw-stage {
  padding: 24px 30px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.lw-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: lwFade 0.15s ease;
}

.lw-pane.active {
  display: flex;
}

@keyframes lwFade {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.lw-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.lw-pane-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lw-pane-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* QuickJoin Row inside Home Tab (matches Main.buildHomePanel) */
.lw-quickjoin {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lw-qj-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.lw-qj-label span.bolt {
  color: var(--accent);
  font-size: 14px;
}

.lw-qj-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 8px 13px;
  color: var(--text);
  font-size: 12.5px;
  min-width: 140px;
}
.lw-qj-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.lw-accent-btn {
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 9px;
  box-shadow: 0 2px 12px var(--accent-glow);
  transition: all var(--transition);
  white-space: nowrap;
}
.lw-accent-btn:hover {
  filter: brightness(1.08);
}

.lw-ghost-btn {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 11.5px;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.lw-ghost-btn:hover,
.lw-ghost-btn.active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.lw-play-btn {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 9px;
  transition: all var(--transition);
  white-space: nowrap;
}

.lw-inst-card.selected .lw-play-btn,
.lw-quickjoin .lw-play-btn {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: transparent;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.lw-play-btn:hover {
  filter: brightness(1.1);
}

/* "+ Nowa instalacja" Creator Drawer (Main.buildNewInstallPane) */
.lw-new-inst-drawer {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lw-new-inst-drawer[hidden] {
  display: none !important;
}

.lw-new-inst-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.lw-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
  display: block;
}

.lw-engine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.lw-engine-btn {
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.lw-engine-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

/* Installations List inside Home Tab (Main.buildInstallCard) */
.lw-inst-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.lw-inst-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.lw-inst-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.lw-inst-card.selected {
  border: 1.5px solid var(--accent);
  background: var(--surface-2);
}

.lw-inst-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lw-inst-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.lw-inst-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.lw-inst-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lw-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.lw-tag.fabric { color: var(--fabric); }
.lw-tag.forge { color: var(--forge); }
.lw-tag.neoforge { color: var(--neoforge); }
.lw-tag.vanilla,
.lw-tag.selected-pill {
  color: var(--accent);
  font-weight: 700;
}

.lw-inst-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lw-del-btn {
  color: var(--text-faint);
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
}
.lw-del-btn:hover {
  color: var(--red);
  background: rgba(239, 68, 68, 0.12);
}

/* Sub-tabs inside Mods & Skins panels (ModsPanel.java / SkinsPanel.java) */
.lw-subtabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}

.lw-subtab {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}
.lw-subtab:hover {
  color: var(--text);
}
.lw-subtab.active {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.lw-subpane {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.lw-subpane.active {
  display: flex;
}

/* Mod Row & Client Module Row (Main.buildClientModuleRow / ModsPanel.buildInstalledRow) */
.lw-mod-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lw-mod-row {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lw-mod-row-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.lw-mod-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.lw-mod-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.lw-mod-dot.off {
  background: var(--text-faint);
}

.lw-mod-info h4 {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 1px;
}

.lw-mod-info p {
  font-size: 10.5px;
  color: var(--text-faint);
}

/* Authentic Pill Toggle Button ("Włączony" / "WŁ" / "WYŁ" from Main.java) */
.lw-pill-tog {
  padding: 5px 13px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-faint);
  transition: all var(--transition);
  white-space: nowrap;
}

.lw-pill-tog.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.lw-pill-tog.green.on {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.45);
  color: var(--green);
}

/* Settings Cards inside Settings Panel (Main.buildSettingsPanel) */
.lw-settings-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 4px;
}

.lw-settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lw-settings-card.luma-suite {
  border: 1.5px solid var(--accent-border);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.12);
}

/* History Stat Cards (HistoryPanel.java) */
.lw-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lw-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.lw-stat-val {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 3px;
}

.lw-stat-lbl {
  font-size: 11px;
  color: var(--text-faint);
}

/* Skins Studio 2-column layout (SkinsPanel.java) */
.lw-skins-layout {
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 16px;
  align-items: start;
}

.lw-skin-preview-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lw-skin-stage {
  width: 100%;
  height: 185px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Pixel-art 2D Minecraft Character Figure inside Skin Studio */
.mc-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
  transition: transform 0.25s ease;
}
.mc-char.back-view {
  transform: scaleX(-1);
}
.mc-char-head {
  width: 36px;
  height: 36px;
  background: #b97850;
  border: 2px solid #2b1b13;
  position: relative;
}
.mc-char-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: #2b1b13;
}
.mc-char-head::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 5px;
  width: 6px;
  height: 5px;
  background: #3b6ea8;
  box-shadow: 16px 0 0 #3b6ea8;
}
.mc-char-body-row {
  display: flex;
}
.mc-char-arm {
  width: 16px;
  height: 48px;
  background: #009999;
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.mc-char.slim .mc-char-arm {
  width: 12px;
}
.mc-char-torso {
  width: 36px;
  height: 48px;
  background: #00aaaa;
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.mc-char-legs {
  display: flex;
}
.mc-char-leg {
  width: 18px;
  height: 46px;
  background: #333388;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.lw-skin-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.lw-skin-preset-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.lw-skin-preset-card:hover,
.lw-skin-preset-card.active {
  border-color: var(--accent);
  background: var(--surface-2);
}

/* Status Footer Bar inside Launcher */
.lw-statusbar {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}

/* ── 3. CONCRETE FEATURES BENTO / TECHNICAL GRID ───────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.f-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color var(--transition);
}

.f-card:hover {
  border-color: var(--border-strong);
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }

.f-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.f-card h3 {
  font-size: 1.16rem;
  margin-bottom: 6px;
}

.f-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.f-mini-ui {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.engine-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.engine-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.engine-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ── 4. APPEARANCE & THEME PICKER SECTION ──────────────────────────── */
.appearance-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.theme-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.theme-btn:hover {
  color: var(--text);
}
.theme-btn.active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.accent-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.accent-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform var(--transition), border-color var(--transition);
}
.accent-circle:hover {
  transform: scale(1.14);
}
.accent-circle.active {
  border-color: var(--text);
  box-shadow: 0 0 12px var(--accent);
}

/* ── 5. COMPARISON TABLE ───────────────────────────────────────────── */
.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 640px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 0.86rem;
}

.comparison-table th.highlight,
.comparison-table td.highlight {
  background: var(--accent-soft);
  border-inline: 1px solid var(--accent-border);
}

.comparison-table th.highlight {
  color: var(--accent);
}

.check-yes {
  color: var(--green);
  font-weight: 600;
}

.check-no {
  color: var(--text-faint);
}

/* ── 6. DOWNLOADS, SMARTSCREEN & CHECKSUM ──────────────────────────── */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.sec-card h3 {
  font-size: 1.12rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.smartscreen-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.ss-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
}

.ss-step span {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--orange);
  margin-bottom: 3px;
}

.code-box {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.77rem;
  word-break: break-all;
  color: var(--text-muted);
}

.btn-copy {
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}
.btn-copy:hover,
.btn-copy.btn-copied {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

/* ── 7. FAQ ACCORDION ──────────────────────────────────────────────── */
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--accent-border);
}

.faq-summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  user-select: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-faint);
  transition: transform var(--transition);
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-content {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── 8. CHANGELOG CARDS ────────────────────────────────────────────── */
.changelog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
}

.changelog-card.latest {
  border-color: var(--accent-border);
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.changelog-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.changelog-group h3 {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.changelog-group ul {
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.89rem;
  display: grid;
  gap: 7px;
}

/* ── 9. FOOTER ─────────────────────────────────────────────────────── */
.footer {
  padding-block: 28px;
  background: var(--surface);
  font-size: 0.84rem;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal-copy {
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.45;
}

.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.footer-icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.footer-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav-links a {
  color: var(--text-muted);
  font-size: 0.83rem;
}
.footer-nav-links a:hover {
  color: var(--text);
}

/* ── 10. COOKIE / LOCALSTORAGE CONSENT BANNER (NO DARK PATTERNS) ───── */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 780px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-banner-text strong {
  color: var(--text);
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  transition: all var(--transition);
}

.cookie-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lw-body {
    grid-template-columns: 1fr;
  }
  .lw-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }
  .lw-emblem {
    display: none;
  }
  .lw-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .lw-nav-btn {
    width: auto;
    white-space: nowrap;
    padding: 8px 12px;
  }
  .lw-profile-bar {
    margin-top: 8px;
    padding: 8px 12px;
  }
  .lw-new-inst-cols,
  .lw-skins-layout,
  .lw-stat-cards,
  .lw-skin-cards-grid {
    grid-template-columns: 1fr;
  }
  .span-7, .span-5, .span-4, .span-6, .span-8 {
    grid-column: span 12;
  }
  .appearance-box,
  .security-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-QuickTheme {
    display: none;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border-strong);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 14px;
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-burger {
    display: flex;
  }
  .lw-mod-grid,
  .smartscreen-steps {
    grid-template-columns: 1fr;
  }
  .lw-stage {
    padding: 16px;
  }
}

/* ── STATS PAGE (lumaclient.pl/statystyki) ──────────────────────────── */
.stats-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.stats-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.stats-card {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(59, 130, 246, 0.18);
  backdrop-filter: blur(16px);
}

.stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stats-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.stats-number {
  font-size: clamp(4rem, 12vw, 6.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 35px rgba(59, 130, 246, 0.45));
  font-variant-numeric: tabular-nums;
}

.stats-label {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.stats-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 36px auto;
  line-height: 1.5;
}

.stats-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stats-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
