/* =====================================================================
   08 – NOWOCZESNA WARSTWA (ładowana ostatnia, tylko dopracowuje wygląd)
   Szkło, fioletowo-różowe gradienty, płynne animacje + nowe elementy
   (pasek LIVE, kopiowanie ustawień, statystyki w hero).
   ===================================================================== */
:root {
    --pink-soft: #ff5fb1;
    --grad: linear-gradient(135deg, #8b3de3 0%, #c71bd6 60%, #ff5fb1 100%);
    --glass: rgba(20, 12, 32, 0.55);
    --glass-border: rgba(255, 255, 255, 0.09);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scroll-behavior: smooth; }
::selection { background: rgba(199, 27, 214, 0.5); color: #fff; }
:focus-visible { outline: 2px solid var(--pink-soft); outline-offset: 3px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: rgba(139, 61, 227, 0.6) #08050c; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #08050c; }
::-webkit-scrollbar-thumb { background: linear-gradient(#8b3de3, #c71bd6); border-radius: 10px; border: 2px solid #08050c; }

/* ---------- tło: delikatna zorza ---------- */
#aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#aurora i { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.38; will-change: transform; }
#aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: #8b3de3; animation: auroraA 26s ease-in-out infinite alternate; }
#aurora i:nth-child(2) { width: 44vw; height: 44vw; right: -12vw; top: 24vh; background: #c71bd6; opacity: 0.26; animation: auroraB 32s ease-in-out infinite alternate; }
#aurora i:nth-child(3) { width: 36vw; height: 36vw; left: 28vw; bottom: -20vw; background: #5a1fb0; opacity: 0.3; animation: auroraC 38s ease-in-out infinite alternate; }
@keyframes auroraA { to { transform: translate(14vw, 12vh) scale(1.15); } }
@keyframes auroraB { to { transform: translate(-12vw, -10vh) scale(1.2); } }
@keyframes auroraC { to { transform: translate(-10vw, -14vh) scale(0.9); } }

/* ---------- pasek postępu przewijania ---------- */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1200; background: var(--grad); box-shadow: 0 0 14px rgba(199, 27, 214, 0.9); transition: width 0.12s linear; }

/* ---------- nawigacja: szkło ---------- */
.navbar {
    background: rgba(10, 6, 18, 0.55) !important;
    backdrop-filter: blur(26px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(26px) saturate(170%) !important;
    border-bottom: 1px solid transparent !important;
    border-image: linear-gradient(90deg, transparent, rgba(139, 61, 227, 0.7), rgba(255, 95, 177, 0.7), transparent) 1 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
    transition: padding 0.35s var(--ease), background 0.35s ease;
}
.navbar.scrolled { padding-bottom: 10px !important; padding-top: calc(10px + env(safe-area-inset-top, 0px)) !important; background: rgba(8, 4, 14, 0.8) !important; }
.nav-links a { transition: color 0.3s ease, transform 0.3s var(--ease) !important; }
.nav-links a:hover { transform: translateY(-1px); }
.nav-links a::after { height: 2px !important; border-radius: 2px; }
.logo { transition: text-shadow 0.4s ease; }
.logo:hover { text-shadow: 0 0 22px rgba(199, 27, 214, 0.65); }

/* ---------- przejścia stron ---------- */
.spa-page.active-page { animation: pageIn 0.6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- pojawianie się elementów przy przewijaniu ---------- */
.reveal { opacity: 0; transform: translateY(26px) scale(0.985); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease) !important; transition-delay: var(--d, 0s) !important; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero-title { text-shadow: 0 8px 40px rgba(139, 61, 227, 0.35), 0 5px 15px rgba(0, 0, 0, 0.8) !important; }
.btn-primary { box-shadow: 0 8px 26px rgba(139, 61, 227, 0.35); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(199, 27, 214, 0.55) !important; transform: translateY(-3px); }
.btn-secondary { border-color: var(--glass-border) !important; background: var(--glass) !important; backdrop-filter: blur(12px) !important; }
.btn-secondary:hover { border-color: rgba(199, 27, 214, 0.6) !important; box-shadow: 0 10px 30px rgba(199, 27, 214, 0.25); transform: translateY(-3px); }
.hero-avatar img { filter: drop-shadow(0 0 40px rgba(199, 27, 214, 0.28)) !important; }

.hero-stats { position: absolute; left: 60px; bottom: 110px; z-index: 5; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.4s var(--ease), border-color 0.4s ease; }
.hero-stat:hover { transform: translateY(-4px); border-color: rgba(199, 27, 214, 0.5); }
.hero-stat b { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat span { font-size: 0.68rem; font-weight: 800; letter-spacing: 1.6px; color: #9a94a8; text-transform: uppercase; }

/* ---------- karty: tylko fiolet/róż, szklane wnętrze ---------- */
.elite-card::before, .hud-card::before, .gear-card::before, .video-card::before {
    background: conic-gradient(transparent, rgba(139, 61, 227, 0.15), rgba(255, 95, 177, 0.9), rgba(139, 61, 227, 0.95), transparent 30%) !important;
}
.gear-card-inner, .video-card-inner, .hud-card-inner, .elite-card-content {
    background: radial-gradient(circle at top right, rgba(38, 22, 58, 0.92), #07040c) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 30px rgba(0, 0, 0, 0.7) !important;
}
.gear-card, .video-card { transition: transform 0.35s var(--ease), box-shadow 0.35s ease !important; }
.gear-card:hover, .video-card:hover { box-shadow: 0 14px 34px rgba(139, 61, 227, 0.28); }
.hud-card:hover, .elite-card:hover { box-shadow: 0 22px 50px rgba(139, 61, 227, 0.3); }
.setup-main-title, .gear-main-title { text-shadow: 0 0 46px rgba(139, 61, 227, 0.4) !important; letter-spacing: 1px; }

/* ---------- kopiowanie ustawień ---------- */
.is-copyable { cursor: pointer; }
.copy-chip {
    position: absolute; top: 10px; right: 10px; z-index: 6; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border-radius: 9px; border: 1px solid var(--glass-border); background: rgba(10, 6, 18, 0.7); color: #b9aecd; font-size: 0.8rem; cursor: pointer;
    opacity: 0; transform: scale(0.85); transition: opacity 0.25s ease, transform 0.25s var(--ease), color 0.2s, background 0.2s;
}
.is-copyable:hover .copy-chip, .copy-chip:focus-visible { opacity: 1; transform: none; }
.copy-chip:hover { color: #fff; background: rgba(199, 27, 214, 0.35); }
.is-copyable.copied .copy-chip { opacity: 1; transform: none; color: #fff; background: var(--grad); border-color: transparent; }
@media (hover: none) { .copy-chip { opacity: 0.55; transform: none; } }
.copy-all-wrap { display: flex; justify-content: center; margin: -22px 0 34px; }
.copy-all {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 999px; cursor: pointer; font: inherit; font-family: var(--font-heading);
    font-weight: 800; letter-spacing: 1.5px; font-size: 0.95rem; text-transform: uppercase; color: #fff; background: var(--glass);
    border: 1px solid rgba(199, 27, 214, 0.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 26px rgba(139, 61, 227, 0.22);
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease;
}
.copy-all:hover { transform: translateY(-3px); background: rgba(199, 27, 214, 0.2); box-shadow: 0 14px 34px rgba(199, 27, 214, 0.38); }
.copy-all i { color: var(--pink-soft); }

/* ---------- toast ---------- */
.hk-toast {
    position: fixed; left: 50%; bottom: 96px; z-index: 3000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 0.9rem; color: #fff; background: rgba(18, 10, 30, 0.88);
    border: 1px solid rgba(199, 27, 214, 0.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 28px rgba(199, 27, 214, 0.25); transition: opacity 0.3s ease, transform 0.4s var(--ease);
}
.hk-toast i { color: var(--pink-soft); margin-right: 8px; }
.hk-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- pasek LIVE ---------- */
.live-pill {
    position: fixed; left: 50%; top: calc(var(--nav-h, 76px) + 12px); z-index: 999; transform: translate(-50%, -14px); opacity: 0; pointer-events: none;
    display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; border-radius: 999px; color: #fff; text-decoration: none;
    background: rgba(18, 10, 30, 0.82); border: 1px solid rgba(46, 230, 120, 0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), 0 0 26px rgba(46, 230, 120, 0.18); transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
.live-pill.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.live-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #2ee678; box-shadow: 0 0 0 0 rgba(46, 230, 120, 0.7); animation: liveDot 1.8s infinite; }
@keyframes liveDot { 70% { box-shadow: 0 0 0 10px rgba(46, 230, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 120, 0); } }
.live-pill b { font-family: var(--font-heading); letter-spacing: 1.5px; font-size: 0.95rem; }
.live-pill > span { font-size: 0.82rem; color: #d9d2e6; font-weight: 600; }
.live-pill .go { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--grad); font-weight: 800; font-size: 0.78rem; letter-spacing: 1px; }
.live-pill .x { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: #bbb; cursor: pointer; font-size: 0.7rem; }
.live-pill .x:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
html.is-live .hero-cta .btn-primary { animation: heroLive 2.2s infinite; }
@keyframes heroLive { 0%, 100% { box-shadow: 0 8px 26px rgba(139, 61, 227, 0.35); } 50% { box-shadow: 0 8px 40px rgba(199, 27, 214, 0.85); } }

/* ---------- responsywność nowych elementów ---------- */
@media (max-width: 900px) {
    .hero-stats { display: none; }
}
@media (max-width: 480px) {
    .live-pill > span { display: none; }
    .hk-toast { bottom: 84px; max-width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) {
    #aurora i, .spa-page.active-page, .hero-cta .btn-primary, .live-pill .dot { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none !important; }
    html { scroll-behavior: auto; }
}

@media (max-height: 720px) and (min-width: 901px) { .hero-stats { display: none; } }
