/* ===================================================================
   NextGO — Main Stylesheet
   Architecture: design tokens → reset → layout → components → sections
   =================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
    /* Color palette - inspired by the hero artwork */
    --color-bg-deep: #050811;
    --color-bg: #0a0f1f;
    --color-bg-elevated: #111729;
    --color-bg-glass: rgba(15, 22, 41, 0.55);
    --color-bg-glass-strong: rgba(10, 15, 31, 0.78);

    --color-surface: rgba(255, 255, 255, 0.04);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.18);

    --color-text: #f5f7fb;
    --color-text-muted: rgba(245, 247, 251, 0.72);
    --color-text-subtle: rgba(245, 247, 251, 0.5);

    --color-accent: #f5a623;
    --color-accent-bright: #ffbe55;
    --color-accent-soft: rgba(245, 166, 35, 0.18);

    --color-cyan: #6fc6ff;
    --color-cyan-bright: #a8defe;
    --color-cyan-soft: rgba(111, 198, 255, 0.15);

    --color-success: #4ade80;
    --color-danger: #f87171;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #f5a623 0%, #ff7a18 100%);
    --gradient-accent-soft: linear-gradient(135deg, rgba(245, 166, 35, 0.25) 0%, rgba(255, 122, 24, 0.18) 100%);
    --gradient-cyan: linear-gradient(135deg, #6fc6ff 0%, #4a9fff 100%);
    --gradient-hero-veil: linear-gradient(180deg, rgba(5, 8, 17, 0.25) 0%, rgba(5, 8, 17, 0.55) 60%, rgba(5, 8, 17, 0.92) 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #cbd5ff 100%);

    /* Typography */
    --font-display: 'Orbitron', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    /* Fluid typography */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
    --fs-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
    --fs-base: clamp(0.95rem, 0.88rem + 0.3vw, 1.1rem);
    --fs-md: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
    --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
    --fs-xl: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
    --fs-2xl: clamp(2rem, 1.5rem + 2vw, 3.2rem);
    --fs-3xl: clamp(2.8rem, 1.8rem + 4vw, 5rem);
    --fs-hero: clamp(3.5rem, 2.5rem + 6vw, 8rem);

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
    --space-10: 8rem;

    /* Layout */
    --container-max: 1440px;
    --container-pad: clamp(1rem, 3vw, 2.5rem);

    /* Effects */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 999px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-glow-accent: 0 0 40px rgba(245, 166, 35, 0.35);
    --shadow-glow-cyan: 0 0 50px rgba(111, 198, 255, 0.4);

    /* Motion */
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 500ms;
    --duration-slower: 1000ms;

    /* Z-index scale */
    --z-bg: 0;
    --z-base: 1;
    --z-elevated: 10;
    --z-overlay: 50;
    --z-header: 100;
    --z-modal: 200;
    --z-tooltip: 300;
}

/* ===== RESET / BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg-deep);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-out);
}

ul, ol {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg-deep);
}

/* ===== UTILITIES ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1.25rem;
    background: var(--color-accent);
    color: var(--color-bg-deep);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: top var(--duration-base) var(--ease-out);
}

.skip-link:focus {
    top: 1rem;
}

.text-accent {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--color-accent-soft);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-accent-bright);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-block: var(--space-4) var(--space-5);
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.section-lead {
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 56ch;
    margin-bottom: var(--space-6);
}

/* ===== BACKGROUND LAYER ===== */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    overflow: hidden;
    pointer-events: none;
}

.bg-layer__picture {
    position: absolute;
    inset: 0;
    display: block;
}

.bg-layer__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Portal is centered-right in the ULTRA 4K artwork — anchor accordingly */
    object-position: 62% center;
    /* Browser's default high-quality bicubic/Lanczos downscale */
    image-rendering: auto;
    /* Slight saturation + contrast bump to lock the vivid colour grade,
       matching the original artwork's vibrancy. NO blur, NO scale. */
    filter: saturate(1.10) contrast(1.04);
    backface-visibility: hidden;
    transform: translateZ(0);
}

@media (max-width: 1024px) {
    /* Re-center on tablets/phones — content stacks above, portal becomes hero center-piece */
    .bg-layer__image {
        object-position: 65% center;
    }
}

/* Veil — TIGHT to the text area only. The ULTRA 4K artwork has vibrant
   blue sky + golden sunset; we DO NOT wash it out with a dark wash.
   The dark region only covers ~35% on the left, fading fast. */
.bg-layer__veil {
    position: absolute;
    inset: 0;
    background:
        /* Narrow left wash for hero text contrast — minimal & local */
        linear-gradient(90deg,
            rgba(5, 8, 17, 0.65) 0%,
            rgba(5, 8, 17, 0.45) 12%,
            rgba(5, 8, 17, 0.15) 28%,
            rgba(5, 8, 17, 0) 38%),
        /* Subtle bottom fade for feature card transition — barely visible */
        linear-gradient(180deg,
            rgba(5, 8, 17, 0) 0%,
            rgba(5, 8, 17, 0) 78%,
            rgba(5, 8, 17, 0.35) 100%);
}

/* Vignette / noise — removed.
   ULTRA 4K source is already perfectly colour-graded; we'd only degrade it. */
.bg-layer__vignette,
.bg-layer__noise {
    display: none;
}

.particles {
    position: fixed;
    inset: 0;
    z-index: var(--z-base);
    pointer-events: none;
    opacity: 0.6;
}

/* ===== HEADER / NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding-block: var(--space-4);
    transition: background var(--duration-slow) var(--ease-out),
                backdrop-filter var(--duration-slow) var(--ease-out),
                padding var(--duration-base) var(--ease-out);
}

.header.is-scrolled {
    background: var(--color-bg-glass-strong);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-3);
}

.nav {
    display: flex;
    align-items: center;
    /* flex-end + auto-margin trick: actions always stick right, even when
       the admin-spot (left) is hidden because user is logged in. */
    justify-content: flex-end;
    gap: var(--space-5);
    width: 100%;
    padding-left: clamp(1.25rem, 2.5vw, 2.5rem);
    padding-right: clamp(0.75rem, 1.2vw, 1.25rem);
}

/* When the admin-spot is rendered (logged out), push everything else to the right */
.admin-spot {
    margin-right: auto;
}

/* ============================================================
   DISCREET ADMIN LOGIN TRIGGER
   Replaces the previous .nav__brand. Looks like decoration; only
   insiders know to click. No text label, just a small circle-and-dot.
   ============================================================ */
.admin-spot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 4px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--color-text-subtle);
    cursor: pointer;
    transition: color var(--duration-base) var(--ease-out),
                background var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-spring);
}

.admin-spot:hover,
.admin-spot:focus-visible {
    color: var(--color-accent);
    background: rgba(245, 166, 35, 0.10);
    transform: scale(1.05);
}

.admin-spot:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.3);
}

.admin-spot__mark {
    display: inline-flex;
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
    transition: filter var(--duration-base) var(--ease-out);
}

.admin-spot:hover .admin-spot__mark {
    filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.55));
}

/* Subtle ambient pulse on the inner dot so the spot has a tiny "alive" hint
   without screaming "click me". Animation pauses on hover. */
.admin-spot__mark svg > circle:last-child {
    transform-origin: center;
    animation: spotPulse 4s var(--ease-in-out) infinite;
}

.admin-spot:hover .admin-spot__mark svg > circle:last-child {
    animation-play-state: paused;
}

@keyframes spotPulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

/* Legacy .nav__brand styles kept for safety in case external pages still
   reference them, but they're no longer used in index.html. */
.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.nav__brand-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    color: var(--color-accent);
    filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.4));
}

.nav__brand-name {
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav__link {
    position: relative;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 0.5rem 0;
    transition: color var(--duration-base) var(--ease-out);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-base) var(--ease-out);
}

.nav__link:hover {
    color: var(--color-text);
}

.nav__link:hover::after {
    transform: scaleX(1);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--duration-base) var(--ease-out),
                opacity var(--duration-base) var(--ease-out);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--duration-base) var(--ease-spring),
                background var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out);
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn__icon, .btn__arrow {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    transition: transform var(--duration-base) var(--ease-out);
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* Primary CTA */
.btn--primary {
    background: var(--gradient-accent);
    color: var(--color-bg-deep);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.32),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn--primary:hover {
    box-shadow: 0 14px 32px rgba(245, 166, 35, 0.5),
                0 0 60px rgba(245, 166, 35, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Active press — slight scale feedback */
.btn--primary:active {
    transform: translateY(-1px) scale(0.99);
    transition-duration: 80ms;
}

.btn--primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.3),
                0 8px 20px rgba(245, 166, 35, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform var(--duration-slower) var(--ease-out);
    pointer-events: none;
}

.btn--primary:hover::after {
    transform: translateX(100%);
}

/* Ghost / secondary */
.btn--ghost {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn--ghost:hover {
    background: var(--color-surface-hover);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Login button (top right) */
.btn--login {
    background: var(--color-bg-glass);
    color: var(--color-text);
    border-color: var(--color-border-strong);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    padding: 0.7rem 1.25rem;
}

.btn--login .btn__icon {
    color: var(--color-accent);
}

.btn--login:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.2);
}

/* Size modifiers */
.btn--lg {
    padding: 1rem 1.75rem;
    font-size: var(--fs-base);
}

.btn--block {
    width: 100%;
}

/* ===== Provider button — clean & minimal (sesja 22 polish v2) =====
   Single-row layout: [Google logo 20px] [centered text "Kontynuuj z Google"]
   Glassmorphism + subtle hover lift + Google blue focus ring */
.btn--provider {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--duration-base) var(--ease-spring),
                background var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.btn--provider:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn--provider:active {
    transform: translateY(0) scale(0.99);
    transition-duration: 80ms;
}

.btn--provider:focus-visible {
    outline: none;
    border-color: rgb(66, 133, 244);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
}

/* Subtle sheen on hover */
.btn--provider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.7s var(--ease-out);
    pointer-events: none;
}

.btn--provider:hover::after { transform: translateX(100%); }

/* Google logo — 20px, official colors */
.btn--provider__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--provider__text {
    color: var(--color-text);
}

/* Google-specific focus accent */
.btn--provider--google:hover {
    border-color: rgba(66, 133, 244, 0.4);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.15);
}

.form__providers--single { display: block; }

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-block: var(--space-9) var(--space-8);
    padding-inline: var(--container-pad);
    z-index: var(--z-elevated);
}

.hero__inner {
    /* position: relative usunięty w sesji 16 — przechwytywał absolute positioning
       logo slot'a (#heroLogoSlot) który powinien anchor'ować się do .hero (100vh).
       hero__inner jest węższy + krótszy, więc BR slotu wyglądał na TR viewportu. */
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    display: flex;
    align-items: center;
    min-height: inherit;  /* dziedziczy 100vh z .hero */
}

.hero__content {
    max-width: 620px;
    width: 100%;
    animation: fadeUp 1s var(--ease-out) both;
}

/* ===== Wordmark SVG — pixel-perfect NEXTGO logo =====
   Single SVG = sharp at any size. Responsive width with clamp(). */
.wordmark {
    display: block;
    width: clamp(280px, 38vw, 620px);
    height: auto;
    margin-bottom: var(--space-4);
}


.hero__title {
    margin-bottom: var(--space-5);
}


/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-subtle);
    font-size: var(--fs-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: scrollHint 2s var(--ease-in-out) infinite;
}

.hero__scroll-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

/* ===== FEATURES SECTION ===== */
.features {
    position: relative;
    z-index: var(--z-elevated);
    padding: var(--space-8) var(--container-pad);
}

.features__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-bg-glass-strong);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature {
    position: relative;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid var(--color-border);
    transition: transform var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out),
                background var(--duration-base) var(--ease-out);
    overflow: hidden;
    cursor: default;
}

.feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(245, 166, 35, 0.18), transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out);
    pointer-events: none;
}

.feature:hover,
.feature:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(245, 166, 35, 0.4);
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.06) 0%, rgba(245, 166, 35, 0) 100%);
}

.feature:hover::before {
    opacity: 1;
}

.feature__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-accent-soft);
    border: 1px solid rgba(245, 166, 35, 0.3);
    color: var(--color-accent);
    margin-bottom: var(--space-4);
    transition: transform var(--duration-base) var(--ease-spring),
                box-shadow var(--duration-base) var(--ease-out);
}

.feature:hover .feature__icon-wrap {
    transform: rotate(-6deg) scale(1.08);
    box-shadow: var(--shadow-glow-accent);
}

.feature__icon {
    width: 28px;
    height: 28px;
}

.feature__title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.feature__desc {
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.feature__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    transition: gap var(--duration-base) var(--ease-out);
}

.feature__more svg {
    width: 14px;
    height: 14px;
}

.feature:hover .feature__more {
    gap: 0.6rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    position: relative;
    z-index: var(--z-elevated);
    padding: var(--space-10) var(--container-pad);
    background: linear-gradient(180deg, rgba(5, 8, 17, 0) 0%, rgba(5, 8, 17, 0.65) 100%);
}

.about__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: center;
}

.about__list {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.about__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
}

.about__list svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    padding: 4px;
    background: var(--color-accent-soft);
    border-radius: 50%;
    color: var(--color-accent);
}

.about__visual {
    position: relative;
}

.about__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-3);
    aspect-ratio: 1;
    max-width: 520px;
    margin-inline: auto;
}

.about__cell {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: var(--space-5);
    background: var(--color-bg-glass-strong);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    overflow: hidden;
    transition: transform var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out);
}

.about__cell:hover {
    transform: scale(1.02);
    border-color: var(--color-accent);
}

.about__cell--lg {
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.18) 0%, rgba(10, 15, 31, 0.85) 70%);
    border-color: rgba(245, 166, 35, 0.3);
}

.about__cell--accent {
    background: linear-gradient(135deg, rgba(111, 198, 255, 0.2) 0%, rgba(10, 15, 31, 0.85) 70%);
    border-color: rgba(111, 198, 255, 0.3);
    color: var(--color-cyan-bright);
}

.about__cell--accent svg {
    width: 40px;
    height: 40px;
    margin-bottom: auto;
}

.about__cell-number {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.about__cell--lg .about__cell-number {
    font-size: var(--fs-3xl);
    color: var(--color-accent);
    text-shadow: 0 0 30px rgba(245, 166, 35, 0.4);
}

.about__cell-label {
    font-size: var(--fs-xs);
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ===== CTA SECTION ===== */
.cta {
    position: relative;
    z-index: var(--z-elevated);
    padding: var(--space-10) var(--container-pad);
    text-align: center;
    background: linear-gradient(180deg, rgba(5, 8, 17, 0.65) 0%, rgba(5, 8, 17, 0.95) 100%);
}

.cta__inner {
    max-width: 760px;
    margin-inline: auto;
}

.cta__inner .section-lead {
    margin-inline: auto;
}

.cta__form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-6) auto var(--space-3);
    max-width: 540px;
    padding: 0.4rem;
    background: var(--color-bg-glass-strong);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cta__field {
    flex: 1;
    min-width: 200px;
}

.cta__field input {
    width: 100%;
    height: 100%;
    padding: 0.85rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    outline: none;
}

.cta__field input::placeholder {
    color: var(--color-text-subtle);
}

.cta__form .btn {
    border-radius: var(--radius-full);
}

.cta__note {
    font-size: var(--fs-xs);
    color: var(--color-text-subtle);
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: var(--z-elevated);
    background: var(--color-bg-deep);
    border-top: 1px solid var(--color-border);
    padding-inline: var(--container-pad);
}

.footer__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-block: var(--space-7) var(--space-6);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 3fr;
    gap: var(--space-7);
}

.footer__brand .nav__brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer__brand p {
    margin-top: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-5);
}

.footer__col h4 {
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.footer__col ul {
    display: grid;
    gap: 0.5rem;
}

.footer__col a {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    transition: color var(--duration-base) var(--ease-out);
}

.footer__col a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-block: var(--space-4);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    color: var(--color-text-subtle);
    font-size: var(--fs-xs);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: transform var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out);
}

.footer__social a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.footer__social svg {
    width: 16px;
    height: 16px;
}

/* ===== MODAL ===== */
.modal {
    border: none;
    padding: 0;
    margin: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: transparent;
    color: var(--color-text);
}

.modal[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ===== Modal backdrop — deep blur + saturated dim + animated entrance ===== */
.modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(5, 8, 17, 0.5) 0%, rgba(5, 8, 17, 0.92) 100%);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    animation: backdropIn 0.4s var(--ease-out) both;
}

@keyframes backdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== Modal panel — Linear/Vercel-tier glassmorphism =====
   3-layer composition:
     1. Solid dark base (zapobiega prześwitywaniu)
     2. Subtle gradient overlay (radial gold/cyan glow w rogu)
     3. Backdrop-filter na rzeczywistym tle za panelem
   + animated gradient border (conic via mask)
   + multi-layer box-shadow (depth + accent glow + inset highlight) */
.modal__panel {
    position: relative;
    width: min(440px, 92vw);
    max-height: 92vh;
    overflow-y: auto;
    padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2.25rem);
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 166, 35, 0.12), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(111, 198, 255, 0.08), transparent 50%),
        linear-gradient(180deg, rgba(20, 28, 50, 0.82) 0%, rgba(6, 10, 22, 0.92) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 -1px 0 rgba(0, 0, 0, 0.5) inset,
        0 24px 48px -12px rgba(0, 0, 0, 0.6),
        0 48px 96px -24px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(245, 166, 35, 0.06);
    animation: modalIn 0.5s var(--ease-spring) both;
}

.modal--admin .modal__panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(111, 198, 255, 0.14), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(74, 159, 255, 0.08), transparent 50%),
        linear-gradient(180deg, rgba(15, 26, 50, 0.85) 0%, rgba(4, 10, 26, 0.94) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 -1px 0 rgba(0, 0, 0, 0.5) inset,
        0 24px 48px -12px rgba(0, 0, 0, 0.6),
        0 48px 96px -24px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(111, 198, 255, 0.08);
}

/* Animated gradient border — premium detail (sweepujący highlight) */
.modal__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 220deg),
        rgba(245, 166, 35, 0)   0%,
        rgba(245, 166, 35, 0.5) 25%,
        rgba(245, 166, 35, 0)   50%,
        rgba(245, 166, 35, 0.3) 75%,
        rgba(245, 166, 35, 0)   100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    animation: borderSweep 8s linear infinite;
}

.modal--admin .modal__panel::before {
    background: conic-gradient(from var(--angle, 220deg),
        rgba(111, 198, 255, 0)   0%,
        rgba(111, 198, 255, 0.55) 25%,
        rgba(111, 198, 255, 0)    50%,
        rgba(111, 198, 255, 0.35) 75%,
        rgba(111, 198, 255, 0)    100%);
}

@property --angle {
    syntax: '<angle>';
    initial-value: 220deg;
    inherits: false;
}

@keyframes borderSweep {
    to { --angle: 580deg; }
}

/* Custom scrollbar */
.modal__panel::-webkit-scrollbar { width: 8px; }
.modal__panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
.modal__panel::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

.modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text-muted);
    background: var(--color-surface);
    transition: background var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
}

.modal__close:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
    transform: rotate(90deg);
}

.modal__close svg {
    width: 18px;
    height: 18px;
}

.modal__header {
    text-align: center;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== Premium logo — orbit rings + glowing core + soft halo =====
   80x80 z trzema warstwami:
   - halo (rozmyte zewnętrzne glow)
   - orbit ring (animowany subtelny ring)
   - core (kontener z SVG, gradient bg) */
.modal__logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    background:
        radial-gradient(circle at 50% 50%, rgba(245, 166, 35, 0.32), rgba(245, 166, 35, 0.08) 60%, transparent 75%);
    border: 1px solid rgba(245, 166, 35, 0.45);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(245, 166, 35, 0.15),
        0 0 24px rgba(245, 166, 35, 0.35),
        0 8px 32px rgba(245, 166, 35, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.5s var(--ease-spring),
                box-shadow 0.5s var(--ease-out);
}

/* Outer halo — pulsujący glow */
.modal__logo::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.25) 0%, transparent 60%);
    filter: blur(12px);
    opacity: 0.6;
    z-index: -1;
    animation: logoHalo 3s ease-in-out infinite;
}

/* Rotating orbit ring */
.modal__logo::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px dashed rgba(245, 166, 35, 0.25);
    animation: logoOrbit 12s linear infinite;
}

@keyframes logoHalo {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.08); }
}

@keyframes logoOrbit {
    to { transform: rotate(360deg); }
}

.modal__panel:hover .modal__logo {
    transform: scale(1.05);
    box-shadow:
        0 0 0 1px rgba(245, 166, 35, 0.25),
        0 0 40px rgba(245, 166, 35, 0.5),
        0 12px 40px rgba(245, 166, 35, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Admin variant — cyan halo */
.modal--admin .modal__logo {
    color: var(--color-cyan-bright);
    background: radial-gradient(circle at 50% 50%, rgba(111, 198, 255, 0.32), rgba(111, 198, 255, 0.08) 60%, transparent 75%);
    border-color: rgba(111, 198, 255, 0.5);
    box-shadow:
        0 0 0 1px rgba(111, 198, 255, 0.18),
        0 0 24px rgba(111, 198, 255, 0.4),
        0 8px 32px rgba(111, 198, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.modal--admin .modal__logo::before {
    background: radial-gradient(circle, rgba(111, 198, 255, 0.3) 0%, transparent 60%);
}

.modal--admin .modal__logo::after {
    border-color: rgba(111, 198, 255, 0.3);
}

.modal--admin .modal__panel:hover .modal__logo {
    transform: scale(1.05);
    box-shadow:
        0 0 0 1px rgba(111, 198, 255, 0.3),
        0 0 40px rgba(111, 198, 255, 0.55),
        0 12px 40px rgba(111, 198, 255, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.modal__logo svg {
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1;
}

/* Mode badge — chip pod logo, premium feel */
.modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 999px;
    color: var(--color-accent-bright);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.modal--admin .modal__badge {
    background: linear-gradient(135deg, rgba(111, 198, 255, 0.18), rgba(111, 198, 255, 0.05));
    border-color: rgba(111, 198, 255, 0.35);
    color: var(--color-cyan-bright);
}

/* Title — Inter zamiast Orbitron, lepsza waga, single line */
.modal__title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* Admin title — cyan gradient text */
.modal--admin .modal__title {
    background: linear-gradient(135deg, #ffffff 0%, #a8defe 50%, #6fc6ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.modal__subtitle {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    max-width: 36ch;
    margin: 0 auto;
    line-height: 1.55;
}

/* ===== FORM ===== */
.form {
    display: grid;
    gap: var(--space-4);
}

.form__field {
    display: grid;
    gap: 0.4rem;
}

.form__label {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.form__label-link {
    font-weight: 500;
    color: var(--color-accent);
    text-transform: none;
    letter-spacing: normal;
    font-size: var(--fs-xs);
}

.form__label-link:hover {
    color: var(--color-accent-bright);
}

.form__input,
.cta__field input {
    width: 100%;
    padding: 0.95rem 1.15rem;
    background: rgba(5, 8, 17, 0.55);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.92rem;
    letter-spacing: 0.005em;
    transition: border-color var(--duration-base) var(--ease-out),
                background var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                transform 80ms var(--ease-out);
}

.form__input::placeholder {
    color: var(--color-text-subtle);
    transition: opacity var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
}

/* Hover (przed focus) — subtelne podświetlenie */
.form__input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(5, 8, 17, 0.7);
}

/* Focus — gold ring + slight push down placeholder */
.form__input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(5, 8, 17, 0.92);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.form__input:focus::placeholder {
    opacity: 0.5;
    transform: translateX(2px);
}

/* Filled state — gdy input ma wartość, border lekko jaśniejszy (UI-only sygnał) */
.form__input:not(:placeholder-shown):not(:focus) {
    border-color: rgba(245, 166, 35, 0.25);
    background: rgba(5, 8, 17, 0.75);
}

/* Admin mode override — cyan accent zamiast gold */
.modal--admin .form__input:focus {
    border-color: var(--color-cyan-bright);
    box-shadow: 0 0 0 4px rgba(111, 198, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.modal--admin .form__input:not(:placeholder-shown):not(:focus) {
    border-color: rgba(111, 198, 255, 0.3);
}

.form__input-group {
    position: relative;
}

.form__input-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--color-text-subtle);
    transition: color var(--duration-base) var(--ease-out);
}

.form__input-toggle:hover {
    color: var(--color-accent);
}

.form__input-toggle svg {
    width: 18px;
    height: 18px;
}

.form__hint {
    font-size: var(--fs-xs);
    color: var(--color-danger);
    min-height: 1em;
}

.form__hint:empty {
    display: none;
}

.form__checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    user-select: none;
}

.form__checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form__checkbox-box {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--color-border-strong);
    border-radius: 5px;
    background: rgba(5, 8, 17, 0.6);
    position: relative;
    flex-shrink: 0;
    transition: background var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out);
}

.form__checkbox-box::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transform: scale(0);
    transition: transform var(--duration-base) var(--ease-spring);
}

.form__checkbox input:checked ~ .form__checkbox-box {
    border-color: var(--color-accent);
}

.form__checkbox input:checked ~ .form__checkbox-box::after {
    transform: scale(1);
}

.form__divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.68rem;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    margin-block: var(--space-3);
}

/* Faded edges — efekt znika ku środkowi i ku krawędziom */
.form__divider::before,
.form__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-strong) 50%, transparent);
}

.form__divider::before {
    background: linear-gradient(90deg, transparent, var(--color-border-strong));
}
.form__divider::after {
    background: linear-gradient(90deg, var(--color-border-strong), transparent);
}

.form__providers {
    display: flex;
    gap: var(--space-2);
}

.form__footer {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-3);
}

/* Animated underline link — gradient slide on hover */
.form__link {
    position: relative;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    padding: 2px 0;
    transition: color var(--duration-base) var(--ease-out);
}

.form__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-base) var(--ease-out);
}

.form__link:hover {
    color: var(--color-accent-bright);
}

.form__link:hover::after {
    transform: scaleX(1);
}

.form__label-link {
    position: relative;
    transition: color var(--duration-base) var(--ease-out);
}

.form__label-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--color-accent-bright);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-base) var(--ease-out);
}

.form__label-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== RESPONSIVE: tablet ===== */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
    }

    .hero__portal {
        display: none;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .about__visual {
        order: -1;
    }
}

/* ===== RESPONSIVE: mobile ===== */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-6) var(--container-pad);
        width: min(320px, 80vw);
        height: calc(100vh - 70px);
        background: var(--color-bg-glass-strong);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--color-border);
        transition: right var(--duration-slow) var(--ease-out);
    }

    .nav__menu.is-open {
        right: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .btn--login span {
        display: none;
    }

    .btn--login {
        padding: 0.7rem;
    }

    .hero {
        padding-block: var(--space-8) var(--space-7);
    }

    .hero__stats {
        gap: var(--space-4);
    }

    .features__inner {
        grid-template-columns: 1fr;
        padding: var(--space-4);
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .form__providers {
        flex-direction: column;
    }

    .cta__form {
        border-radius: var(--radius-lg);
        flex-direction: column;
        gap: var(--space-2);
        padding: var(--space-3);
    }

    .cta__form .btn {
        width: 100%;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 480px) {
    .hero__eyebrow {
        font-size: 0.7rem;
        padding: 0.4rem 0.85rem;
    }

    .hero__scroll {
        display: none;
    }
}


/* ============================================================================
   POSTER MODE (sesja 4) — REMOVED in sesja 11 audit.
   Stage + hotspots over baked-in UI artwork was abandoned in sesja 5 when we
   switched to clean bg + custom HTML/CSS UI. ~340 lines of dead CSS purged.
   ============================================================================ */


/* ============================================================================
   ===== AUTH / ROLE VISIBILITY ===========================================
   Visibility driven by body classes (.is-authenticated, .is-admin, .is-user).
   Convention:
     [data-auth-required] — visible only when ANY role logged in
     [data-auth-hidden]   — visible only when logged OUT
     [data-role-admin]    — visible only when role=admin
     [data-role-user]     — visible only when role=user

   Implementation uses :not() so that each element retains its OWN display
   (button → inline-flex, div → block, etc.) when shown — no !important war
   that broke the dropdown layout in session 12.
   ============================================================================ */

body:not(.is-authenticated) [data-auth-required] { display: none !important; }
body:not(.is-admin)         [data-role-admin]    { display: none !important; }
body:not(.is-user)          [data-role-user]     { display: none !important; }
body.is-authenticated       [data-auth-hidden]   { display: none !important; }

/* [hidden] attribute always wins — keeps the user-badge dropdown collapsed
   even though its items have data-role-admin etc. */
[hidden] { display: none !important; }

/* ============================================================
   NAV POSITIONING by ROLE
   • Admin logged in → cały nav__actions ląduje po LEWEJ (gdzie był admin-spot)
   • User logged in  → nav__actions zostaje po PRAWEJ (gdzie był ZALOGUJ SIĘ)
   margin-right: auto absorbuje wolną przestrzeń po prawej, pchając klaster w lewo.
   ============================================================ */
body.is-admin .nav__actions {
    margin-right: auto;
}

body.is-admin .nav__actions .user-badge__menu {
    /* Gdy badge jest po lewej, dropdown otwiera się od lewej krawędzi */
    right: auto;
    left: 0;
}

/* ============================================================================
   ===== USER BADGE (top-right, when logged in) ============================
   ============================================================================ */
.user-badge {
    position: relative;
    display: inline-block;
}

.user-badge__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem 0.4rem 0.4rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    color: var(--color-text);
    cursor: pointer;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: border-color var(--duration-base) var(--ease-out),
                background var(--duration-base) var(--ease-out);
}

.user-badge__btn:hover {
    border-color: var(--color-accent);
    background: rgba(245, 166, 35, 0.08);
}

.user-badge__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--color-bg-deep);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
    flex-shrink: 0;
}

.user-badge__name {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-badge__role-pill {
    display: inline-flex;
    margin-left: 0.3rem;
    padding: 0.15rem 0.55rem;
    background: linear-gradient(135deg, rgba(111, 198, 255, 0.22), rgba(74, 159, 255, 0.18));
    color: var(--color-cyan-bright);
    border: 1px solid rgba(111, 198, 255, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-badge__chevron {
    width: 16px;
    height: 16px;
    color: var(--color-text-subtle);
    transition: transform var(--duration-base) var(--ease-out);
}

.user-badge__btn[aria-expanded="true"] .user-badge__chevron {
    transform: rotate(180deg);
}

/* Dropdown menu (anchored under the button) */
.user-badge__menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 240px;
    padding: var(--space-3);
    background: linear-gradient(180deg, rgba(20, 28, 50, 0.96) 0%, rgba(10, 15, 31, 0.98) 100%);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    z-index: var(--z-overlay);
    animation: menuIn 0.18s var(--ease-out) both;
}

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.user-badge__email {
    font-size: var(--fs-xs);
    color: var(--color-text-subtle);
    padding: 0.3rem 0.5rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.3rem;
    word-break: break-all;
}

.user-badge__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: var(--fs-sm);
    text-align: left;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.user-badge__item svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.user-badge__item:hover {
    background: var(--color-surface-hover);
}

.user-badge__item:hover svg {
    color: var(--color-accent-bright);
}

.user-badge__item--danger:hover {
    background: rgba(248, 113, 113, 0.1);
    color: var(--color-danger);
}

.user-badge__item--danger:hover svg {
    color: var(--color-danger);
}

/* Admin mode — primary button cyan gradient (panel/logo/title/badge zdefiniowane wyżej w sesji 22) */
.modal--admin .btn--primary {
    background: linear-gradient(135deg, #6fc6ff 0%, #4a9fff 100%);
    box-shadow: 0 8px 20px rgba(111, 198, 255, 0.32),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: var(--color-bg-deep);
}

.modal--admin .btn--primary:hover {
    box-shadow: 0 14px 32px rgba(111, 198, 255, 0.5),
                0 0 60px rgba(111, 198, 255, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.form__footer--admin {
    text-align: center;
    color: var(--color-cyan-bright);
    font-size: var(--fs-xs);
    font-weight: 500;
    padding: 0.8rem;
    background: rgba(111, 198, 255, 0.08);
    border: 1px solid rgba(111, 198, 255, 0.2);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
}

/* Modal mode-conditional content */
.modal[data-mode="user"]  [data-mode-admin-only],
.modal[data-mode="admin"] [data-mode-user-only] {
    display: none;
}

/* ============================================================================
   ===== ADMIN / USER PANELS (.ap) ========================================
   Universal slide-in drawer. Direction controlled by [data-side="left"|"right"].
     • Admin panel (left)  — Personalizacja: Tapeta + Logo
     • User panel  (right) — Twoje konto + szybkie linki
   ============================================================================ */

.ap {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    pointer-events: none;
    visibility: hidden;
}

.ap.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* Backdrop */
.ap__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 17, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
}

.ap.is-open .ap__backdrop {
    opacity: 1;
}

/* Drawer base */
.ap__drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(540px, 100vw);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(18, 26, 44, 0.96) 0%, rgba(10, 15, 31, 0.98) 100%);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s var(--ease-out);
}

/* LEFT side (admin) */
.ap[data-side="left"] .ap__drawer {
    left: 0;
    border-right: 1px solid var(--color-border-strong);
    transform: translateX(-105%);
    box-shadow: none;
}
.ap[data-side="left"].is-open .ap__drawer {
    transform: translateX(0);
    box-shadow: 24px 0 80px rgba(0, 0, 0, 0.55),
                inset -1px 0 0 rgba(111, 198, 255, 0.12);
}

/* RIGHT side (user) */
.ap[data-side="right"] .ap__drawer {
    right: 0;
    border-left: 1px solid var(--color-border-strong);
    transform: translateX(105%);
    box-shadow: none;
}
.ap[data-side="right"].is-open .ap__drawer {
    transform: translateX(0);
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.55),
                inset 1px 0 0 rgba(245, 166, 35, 0.18);
}

/* ===== HEADER ===== */
.ap__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-5) var(--space-3);
    flex-shrink: 0;
    position: relative;
}

.ap__header::after {
    content: "";
    position: absolute;
    left: var(--space-5);
    right: var(--space-5);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-strong) 40%, var(--color-border-strong) 60%, transparent);
}

.ap__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent-bright);
    margin-bottom: 0.4rem;
}

.ap__eyebrow--user {
    color: var(--color-cyan-bright);
}

.ap__title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.ap__title [data-user-name] {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.ap__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text-muted);
    background: var(--color-surface);
    transition: background var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
    flex-shrink: 0;
}

.ap__close:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
    transform: rotate(90deg);
}

.ap__close svg {
    width: 18px;
    height: 18px;
}

/* ===== TABS ===== */
.ap__tabs {
    display: flex;
    gap: 4px;
    padding: var(--space-3) var(--space-5);
    flex-shrink: 0;
}

.ap__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.7rem 0.9rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: color var(--duration-base) var(--ease-out),
                background var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.ap__tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ap__tab:hover {
    color: var(--color-text);
    background: var(--color-surface-hover);
    border-color: var(--color-border-strong);
}

.ap__tab.is-active {
    color: var(--color-bg-deep);
    background: var(--gradient-accent);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.32);
}

/* ===== PREFS BAR — admin panel only, controls its own appearance =====
   Sits between tabs and body. The opacity slider applies only to the
   .ap[data-side="left"] drawer so admin can preview hero changes through
   a translucent panel. User panel (data-side="right") is unaffected. */
.ap__prefs {
    padding: 0.55rem var(--space-5);
    border-bottom: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.ap__prefs-row {
    display: grid;
    grid-template-columns: 18px auto 1fr 56px;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.ap__prefs-icon {
    display: inline-flex;
    color: var(--color-accent-bright);
}

.ap__prefs-icon svg {
    width: 18px;
    height: 18px;
}

.ap__prefs-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Apply opacity ONLY to admin drawer. The CSS variable defaults to 1.
   The whole drawer (background + content) fades — backdrop-filter blur stays. */
.ap[data-side="left"] .ap__drawer {
    opacity: var(--ap-opacity, 1);
}

/* User panel always at full opacity — guarantee no leak from a shared variable */
.ap[data-side="right"] .ap__drawer {
    opacity: 1;
}

/* ===== BODY (scrollable) ===== */
.ap__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-3) var(--space-5) var(--space-5);
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) transparent;
}

.ap__body::-webkit-scrollbar { width: 8px; }
.ap__body::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 4px; }

.ap__tab-panel {
    animation: tabIn 0.3s var(--ease-out) both;
}

.ap__tab-panel[hidden] { display: none; }

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

/* ===== INTRO (header inside tab) ===== */
.ap__intro {
    margin-bottom: var(--space-4);
}

.ap__intro h3 {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}

.ap__intro p {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ===== FIELDSET / OPTION CHIPS ===== */
.ap__field {
    border: none;
    padding: 0;
    margin: var(--space-5) 0 0;
}

.ap__field legend {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    margin-bottom: 0.6rem;
}

.opt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.opt-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
}

.opt-chip__icon {
    font-size: 0.95em;
    line-height: 1;
}

.opt-chip:hover {
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.opt-chip.is-active {
    color: var(--color-bg-deep);
    background: var(--gradient-accent);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.3);
}

.opt-chip--size {
    min-width: 70px;
    justify-content: center;
}

/* ===== WALLPAPER / LOGO GRID ===== */
.wp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.wp-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: transform var(--duration-base) var(--ease-spring),
                border-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.wp-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 190, 85, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35),
                0 0 24px rgba(245, 166, 35, 0.15);
}

.wp-card:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
}

.wp-card.is-active {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent),
                0 16px 40px rgba(245, 166, 35, 0.28);
}

.wp-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2538, #0e1626);
}

.wp-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

.wp-card:hover .wp-card__thumb img {
    transform: scale(1.04);
}

.wp-card__thumb--logo {
    background: radial-gradient(circle at 50% 60%, rgba(245, 166, 35, 0.18), transparent 60%),
                linear-gradient(135deg, #1a2538, #0e1626);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.wp-card__thumb--logo img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.logo-thumb-built-in {
    width: 86%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-thumb-built-in .wordmark {
    width: 100%;
    height: auto;
    max-height: 70px;
}

.wp-card__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--color-bg-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-spring);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.5);
}

.wp-card.is-active .wp-card__check {
    opacity: 1;
    transform: scale(1);
}

.wp-card__check svg {
    width: 16px;
    height: 16px;
}

.wp-card__meta {
    padding: 0.75rem 0.85rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wp-card__name {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text);
}

.wp-card__desc {
    font-size: 0.75rem;
    color: var(--color-text-subtle);
    line-height: 1.4;
}

.ap-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-6);
    color: var(--color-text-muted);
}

.ap-empty p {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.ap-empty code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.85em;
    padding: 1px 6px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-accent-bright);
}

/* ===== FOOTER ===== */
.ap__footer {
    flex-shrink: 0;
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ap__hint {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.7rem 0.85rem;
    background: rgba(245, 166, 35, 0.07);
    border: 1px solid rgba(245, 166, 35, 0.18);
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.ap__hint svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent-bright);
    flex-shrink: 0;
    margin-top: 1px;
}

.ap__hint code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.9em;
    padding: 1px 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    color: var(--color-accent-bright);
}

.ap__logout {
    width: 100%;
}

/* ===== USER PANEL specifics ===== */
.user-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(255, 122, 24, 0.06));
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
}

.user-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--color-bg-deep);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
    flex-shrink: 0;
}

.user-card__email {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.2rem;
    word-break: break-all;
}

.user-card__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
    animation: pulse 2s var(--ease-in-out) infinite;
}

.quick-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.85rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--duration-base) var(--ease-out);
    text-decoration: none;
    color: inherit;
}

.quick-link:hover {
    transform: translateX(4px);
    border-color: rgba(245, 166, 35, 0.35);
    background: var(--color-surface-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.quick-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    flex-shrink: 0;
}

.quick-link__icon svg {
    width: 20px;
    height: 20px;
}

.quick-link strong {
    display: block;
    font-size: var(--fs-sm);
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.quick-link small {
    font-size: 0.72rem;
    color: var(--color-text-subtle);
}

/* ============================================================================
   ===== LOGO PRECISE POSITIONING (9-zone + offset + rotation + opacity) ====
   The logo slot is absolutely positioned inside .hero. Anchor + transform
   per zone is set via body[data-logo-zone]. Fine-tune sliders write CSS
   custom properties (--logo-ox, --logo-oy, --logo-rot, --logo-opacity).
   ============================================================================ */

#heroLogoSlot {
    position: absolute;
    margin: 0;
    padding: 0;
    z-index: 5;
    pointer-events: none;
    /* Slot's width drives wordmark size — wordmark fills 100% of slot. */
    width: var(--logo-size, 420px);
    max-width: none;
    transition: width 0.3s var(--ease-out),
                left 0.4s var(--ease-out),
                top 0.4s var(--ease-out),
                transform 0.4s var(--ease-out),
                opacity 0.4s var(--ease-out);
    /* Defaults — overridden per zone */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
               translate(var(--logo-ox, 0px), var(--logo-oy, 0px))
               rotate(var(--logo-rot, 0deg));
    opacity: var(--logo-opacity, 1);
}

#heroLogoSlot .wordmark,
#heroLogoSlot img {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
    pointer-events: auto;
}

.wordmark--image {
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
}

/* ===== 9 zones — each combines anchor point + translate compensation =====
   Pattern: left/top set the anchor, translate(-X%, -Y%) shifts the logo so
   its corresponding corner/edge sits at that anchor. Then user offsets
   (--logo-ox/oy) and rotation are appended. */

body[data-logo-zone="top-left"] #heroLogoSlot {
    left: clamp(1rem, 4vw, 4rem); top: clamp(5rem, 12vh, 8rem);
    transform: translate(0, 0) translate(var(--logo-ox, 0px), var(--logo-oy, 0px)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="top-center"] #heroLogoSlot {
    left: 50%; top: clamp(5rem, 12vh, 8rem);
    transform: translate(-50%, 0) translate(var(--logo-ox, 0px), var(--logo-oy, 0px)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="top-right"] #heroLogoSlot {
    left: auto; right: clamp(1rem, 4vw, 4rem); top: clamp(5rem, 12vh, 8rem);
    transform: translate(0, 0) translate(var(--logo-ox, 0px), var(--logo-oy, 0px)) rotate(var(--logo-rot, 0deg));
}

body[data-logo-zone="middle-left"] #heroLogoSlot {
    left: clamp(1rem, 4vw, 4rem); top: 50%;
    transform: translate(0, -50%) translate(var(--logo-ox, 0px), var(--logo-oy, 0px)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="center"] #heroLogoSlot {
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) translate(var(--logo-ox, 0px), var(--logo-oy, 0px)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="middle-right"] #heroLogoSlot {
    left: auto; right: clamp(1rem, 4vw, 4rem); top: 50%;
    transform: translate(0, -50%) translate(var(--logo-ox, 0px), var(--logo-oy, 0px)) rotate(var(--logo-rot, 0deg));
}

body[data-logo-zone="bottom-left"] #heroLogoSlot {
    left: clamp(1rem, 4vw, 4rem); top: auto; bottom: clamp(5rem, 12vh, 8rem);
    transform: translate(0, 0) translate(var(--logo-ox, 0px), var(--logo-oy, 0px)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="bottom-center"] #heroLogoSlot {
    left: 50%; top: auto; bottom: clamp(5rem, 12vh, 8rem);
    transform: translate(-50%, 0) translate(var(--logo-ox, 0px), var(--logo-oy, 0px)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="bottom-right"] #heroLogoSlot {
    left: auto; right: clamp(1rem, 4vw, 4rem); top: auto; bottom: clamp(5rem, 12vh, 8rem);
    transform: translate(0, 0) translate(var(--logo-ox, 0px), var(--logo-oy, 0px)) rotate(var(--logo-rot, 0deg));
}

body[data-logo-zone="hidden"] #heroLogoSlot {
    display: none;
}

/* ============================================================================
   ===== LOGO PREVIEW (admin.html — mini-hero live preview) =================
   Replikuje system pozycjonowania z #heroLogoSlot ale w skali ~0.35 (preview
   mieści w 16:9 container ~980px szerokości zamiast prawdziwego 1920px).
   Slidery operują na realnych px values (jak na index.html), więc CSS w preview
   stosuje calc(var(--logo-ox, 0px) * 0.35) by uzyskać wizualnie odpowiednią skalę.
   ============================================================================ */

.logo-preview-card {
    overflow: hidden;
}

.logo-preview-wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border, rgba(255,255,255,0.12));
    background: #0a0f1f;
    position: relative;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}

.logo-preview-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.logo-preview-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.logo-preview-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.45) 0%, transparent 50%, rgba(0,0,0,0.55) 100%),
        radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}

#heroLogoSlotPreview {
    position: absolute;
    margin: 0;
    padding: 0;
    z-index: 5;
    pointer-events: none;
    /* Slot's width: scaled-down size for preview context */
    width: calc(var(--logo-size, 420px) * 0.35);
    max-width: 80%;
    left: 50%;
    top: 50%;
    transition: width 0.25s var(--ease-out, cubic-bezier(0.16,1,0.3,1)),
                left 0.3s var(--ease-out, cubic-bezier(0.16,1,0.3,1)),
                top 0.3s var(--ease-out, cubic-bezier(0.16,1,0.3,1)),
                right 0.3s var(--ease-out, cubic-bezier(0.16,1,0.3,1)),
                bottom 0.3s var(--ease-out, cubic-bezier(0.16,1,0.3,1)),
                transform 0.3s var(--ease-out, cubic-bezier(0.16,1,0.3,1)),
                opacity 0.3s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
    transform: translate(-50%, -50%)
               translate(calc(var(--logo-ox, 0px) * 0.35), calc(var(--logo-oy, 0px) * 0.35))
               rotate(var(--logo-rot, 0deg));
    opacity: var(--logo-opacity, 1);
}

#heroLogoSlotPreview .wordmark,
#heroLogoSlotPreview img {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
    filter: drop-shadow(0 4px 18px rgba(0,0,0,0.5));
}

/* 9 zones for preview — % based (relative to mini-hero container) */
body[data-logo-zone="top-left"] #heroLogoSlotPreview {
    left: 4%; right: auto; top: 8%; bottom: auto;
    transform: translate(0, 0) translate(calc(var(--logo-ox, 0px) * 0.35), calc(var(--logo-oy, 0px) * 0.35)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="top-center"] #heroLogoSlotPreview {
    left: 50%; right: auto; top: 8%; bottom: auto;
    transform: translate(-50%, 0) translate(calc(var(--logo-ox, 0px) * 0.35), calc(var(--logo-oy, 0px) * 0.35)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="top-right"] #heroLogoSlotPreview {
    left: auto; right: 4%; top: 8%; bottom: auto;
    transform: translate(0, 0) translate(calc(var(--logo-ox, 0px) * 0.35), calc(var(--logo-oy, 0px) * 0.35)) rotate(var(--logo-rot, 0deg));
}

body[data-logo-zone="middle-left"] #heroLogoSlotPreview {
    left: 4%; right: auto; top: 50%; bottom: auto;
    transform: translate(0, -50%) translate(calc(var(--logo-ox, 0px) * 0.35), calc(var(--logo-oy, 0px) * 0.35)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="center"] #heroLogoSlotPreview {
    left: 50%; right: auto; top: 50%; bottom: auto;
    transform: translate(-50%, -50%) translate(calc(var(--logo-ox, 0px) * 0.35), calc(var(--logo-oy, 0px) * 0.35)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="middle-right"] #heroLogoSlotPreview {
    left: auto; right: 4%; top: 50%; bottom: auto;
    transform: translate(0, -50%) translate(calc(var(--logo-ox, 0px) * 0.35), calc(var(--logo-oy, 0px) * 0.35)) rotate(var(--logo-rot, 0deg));
}

body[data-logo-zone="bottom-left"] #heroLogoSlotPreview {
    left: 4%; right: auto; top: auto; bottom: 8%;
    transform: translate(0, 0) translate(calc(var(--logo-ox, 0px) * 0.35), calc(var(--logo-oy, 0px) * 0.35)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="bottom-center"] #heroLogoSlotPreview {
    left: 50%; right: auto; top: auto; bottom: 8%;
    transform: translate(-50%, 0) translate(calc(var(--logo-ox, 0px) * 0.35), calc(var(--logo-oy, 0px) * 0.35)) rotate(var(--logo-rot, 0deg));
}
body[data-logo-zone="bottom-right"] #heroLogoSlotPreview {
    left: auto; right: 4%; top: auto; bottom: 8%;
    transform: translate(0, 0) translate(calc(var(--logo-ox, 0px) * 0.35), calc(var(--logo-oy, 0px) * 0.35)) rotate(var(--logo-rot, 0deg));
}

body[data-logo-zone="hidden"] #heroLogoSlotPreview {
    display: none;
}

/* ============================================================================
   ===== ZONE GRID PICKER (3×3 visual buttons in admin panel) ===============
   ============================================================================ */
.zone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 16 / 9;
    padding: 6px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.zone-cell {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    transition: background var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-spring);
}

.zone-cell::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all var(--duration-base) var(--ease-out);
}

/* Place the dot inside each cell at the corresponding "compass" position */
.zone-cell[data-zone="top-left"]::after      { top: 5px; left: 5px; }
.zone-cell[data-zone="top-center"]::after    { top: 5px; left: 50%; transform: translateX(-50%); }
.zone-cell[data-zone="top-right"]::after     { top: 5px; right: 5px; }
.zone-cell[data-zone="middle-left"]::after   { top: 50%; left: 5px; transform: translateY(-50%); }
.zone-cell[data-zone="center"]::after        { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.zone-cell[data-zone="middle-right"]::after  { top: 50%; right: 5px; transform: translateY(-50%); }
.zone-cell[data-zone="bottom-left"]::after   { bottom: 5px; left: 5px; }
.zone-cell[data-zone="bottom-center"]::after { bottom: 5px; left: 50%; transform: translateX(-50%); }
.zone-cell[data-zone="bottom-right"]::after  { bottom: 5px; right: 5px; }

.zone-cell:hover {
    background: var(--color-surface-hover);
    border-color: rgba(245, 166, 35, 0.4);
}

.zone-cell:hover::after {
    background: var(--color-accent-bright);
}

.zone-cell.is-active {
    background: rgba(245, 166, 35, 0.14);
    border-color: var(--color-accent);
    box-shadow: inset 0 0 0 1px var(--color-accent);
}

.zone-cell.is-active::after {
    background: var(--color-accent-bright);
    box-shadow: 0 0 12px var(--color-accent-bright);
    width: 10px;
    height: 10px;
}

.zone-cell:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.3);
}

/* ============================================================================
   ===== SLIDERS (range inputs for offset / rotation / opacity) =============
   ============================================================================ */
.slider-grid {
    display: grid;
    gap: 0.7rem;
}

.slider-row {
    display: grid;
    grid-template-columns: 50px 1fr 56px;
    align-items: center;
    gap: 0.7rem;
}

.slider-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.slider-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent-bright);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Number input paired with a slider — direct keyboard entry for pixel-precise values */
.slider-input {
    width: 72px;
    padding: 0.35rem 0.45rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    color: var(--color-accent-bright);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
    transition: border-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.slider-input::-webkit-outer-spin-button,
.slider-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.slider-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
    background: rgba(0, 0, 0, 0.55);
}

.slider-input:hover {
    border-color: var(--color-accent);
}

.slider-input--small {
    width: 60px;
}

/* When slider-row contains an input number instead of a span, adjust grid */
.slider-row:has(.slider-input) {
    grid-template-columns: 50px 1fr 72px;
}
.slider-row:has(.slider-input--small) {
    grid-template-columns: 50px 1fr 60px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-surface), var(--color-surface-hover));
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-accent);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(245, 166, 35, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform var(--duration-base) var(--ease-spring);
}

input[type="range"]::-webkit-slider-thumb:hover,
input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.18);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 10px rgba(245, 166, 35, 0.4);
}

/* ============================================================================
   ===== TOGGLE / CHECKBOX row (used for logo visibility switch) ============
   ============================================================================ */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
}

.toggle-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 42px;
    height: 24px;
    border-radius: 24px;
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border-strong);
    cursor: pointer;
    position: relative;
    transition: background var(--duration-base) var(--ease-out);
    flex-shrink: 0;
}

.toggle-row input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-text-muted);
    transition: left var(--duration-base) var(--ease-spring),
                background var(--duration-base) var(--ease-out);
}

.toggle-row input[type="checkbox"]:checked {
    background: var(--color-accent-soft);
    border-color: var(--color-accent);
}

.toggle-row input[type="checkbox"]:checked::after {
    left: 21px;
    background: var(--color-accent-bright);
    box-shadow: 0 0 8px var(--color-accent-bright);
}

.toggle-row__label {
    font-size: var(--fs-sm);
    color: var(--color-text);
}

/* Small hint text below fieldsets */
.ap__hint-text {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: var(--color-text-subtle);
    line-height: 1.45;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .user-badge__name { display: none; }
    .user-badge__btn { padding: 0.35rem; }
}

@media (max-width: 600px) {
    .wp-grid { grid-template-columns: 1fr; }
    .ap__drawer { width: 100vw; }
    .ap__tabs { padding: var(--space-3); }
    .ap__tab span { display: none; }
    .ap__tab { padding: 0.7rem; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .ap__drawer { transition: none; }
    .ap__tab-panel { animation: none; }
    .status-dot { animation: none; }
}

/* ===== PRINT ===== */
@media print {
    .modal, .header, .ap, .user-badge { display: none; }
    body { background: white; color: black; }
}
