        :root {
            /* Paleta z logo COMPAAN (CMYK + szarość) */
            --c-cyan:    #00A0E0;
            --c-magenta: #E6007E;
            --c-yellow:  #FFF200;
            --c-gray:    #A0A0A0;

            /* Akcent marki 7minut/COMPAAN */
            --accent: var(--c-cyan);
            --accent-alt: var(--c-magenta);
            --accent-soft: rgba(0,160,224,0.16);

            /* Panele i ramki */
            --panel: #111523;
            --panel-alt: #0d101b;
            --border: rgba(255,255,255,0.14);

            /* Dark theme – wartości domyślne */
            --bg: #0C0E12;
            --bg-soft: #151824;
            --bg-softer: #191C27;
            --text: #F6F7FB;
            --text-soft: #E3E4EB;
            --muted: #9DA1B2;
            --border-soft: rgba(255,255,255,0.08);
            --shadow-strong: 0 18px 40px rgba(0,0,0,0.7);
            --shadow-soft: 0 12px 30px rgba(0,0,0,0.55);
        }

        :root[data-theme="light"] {
            --bg: #F5F6FA;
            --bg-soft: #FFFFFF;
            --bg-softer: #EDF0F7;
            --text: #13141A;
            --text-soft: #2E3140;
            --muted: #6E7282;
            --panel: #FFFFFF;
            --panel-alt: #F6F7FB;
            --border: rgba(0,0,0,0.12);
            --border-soft: rgba(0,0,0,0.08);
            --shadow-strong: 0 16px 30px rgba(0,0,0,0.12);
            --shadow-soft: 0 10px 20px rgba(0,0,0,0.08);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background:
                radial-gradient(circle at top left, rgba(0,160,224,0.22) 0, transparent 38%),
                radial-gradient(circle at top right, rgba(230,0,126,0.20) 0, transparent 42%),
                var(--bg);
            color: var(--text);
        }

        :root[data-theme="light"] body {
            background:
                radial-gradient(circle at top left, rgba(0,160,224,0.18) 0, transparent 40%),
                radial-gradient(circle at top right, rgba(255,242,0,0.18) 0, transparent 42%),
                var(--bg);
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }

        .page {
            min-height: 100vh;
            max-width: 1120px;
            margin: 0 auto;
            padding: 24px 16px 40px;
        }

        @media (min-width: 900px) {
            .page {
                padding: 32px 24px 56px;
            }
        }

        /* HEADER */

        header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .brand-left {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        /* Ramki na logotypy 7minut i COMPAAN */
        .brand-logo {
            width: 96px;
            height: 68px;
            border-radius: 20px;
            padding: 6px 8px;
            background:
                radial-gradient(circle at top, rgba(255,242,0,0.18), transparent 60%),
                #eef1f8; /* jasne tło także w dark, żeby loga były czytelne */
            border: 1px solid var(--border-soft);
            box-shadow: var(--shadow-soft);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        :root[data-theme="light"] .brand-logo {
            background:
                radial-gradient(circle at top, rgba(255,242,0,0.16), transparent 60%),
                #eef1f8; /* jasne, ale nie czyste białe */
        }

        /* Obrazki w ramkach – bazowo tylko blokowe */
        .brand-logo img {
            display: block;
        }

        /* Logo 7minut (po lewej) – 100% w ramce */
        .brand-left .brand-logo:first-child img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
        }

        /* Logo COMPAAN (po prawej) – 150% w ramce, przycięte */
        .brand-left .brand-logo:last-child img {
            width: 150%;
            height: 150%;
            object-fit: cover;
            object-position: center;
        }

        .brand-text-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 2px;
            flex: 1 1 auto;
            min-width: 0;
        }

        .brand-text-main {
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .brand-text-sub {
            font-size: 13px;
            color: var(--muted);
        }

        @media (max-width: 640px) {
            .brand-left {
                gap: 10px;
            }

            .brand-logo {
                width: 82px;
                height: 60px;
            }

            .brand-text-main {
                font-size: 14px;
            }

            .brand-text-sub {
                font-size: 12px;
            }
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .lang-toggle {
            display: inline-flex;
            align-items: center;
            padding: 6px 14px;
            border: 1px solid var(--border-soft);
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(0,160,224,0.16), rgba(230,0,126,0.08));
            color: var(--text);
            font-size: 12px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }

        .lang-toggle:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        .lang-toggle:active {
            transform: translateY(1px);
        }

        .lang-toggle-label {
            color: var(--text);
            min-width: 26px;
            text-align: center;
        }

        :root[data-theme="light"] .lang-toggle {
            background: linear-gradient(135deg, rgba(0,160,224,0.12), rgba(230,0,126,0.06));
        }

        .header-pill {
            padding: 6px 14px;
            border-radius: 999px;
            border: 1px solid var(--border-soft);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--muted);
            background:
            linear-gradient(135deg, rgba(0,160,224,0.12), rgba(230,0,126,0.14));
            white-space: nowrap;
            text-align: center;     /* <<< DODANE */
        }


        /* Theme toggle */

        .theme-toggle {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 8px;
            border-radius: 999px;
            border: 1px solid var(--border-soft);
            font-size: 11px;
            cursor: pointer;
            user-select: none;
            background: rgba(0,0,0,0.06);
        }

        :root[data-theme="light"] .theme-toggle {
            background: rgba(255,255,255,0.8);
        }

        .theme-toggle-switch {
            width: 34px;
            height: 18px;
            border-radius: 999px;
            background: var(--bg-softer);
            border: 1px solid var(--border-soft);
            position: relative;
            overflow: hidden;
        }

        .theme-toggle-knob {
            position: absolute;
            top: 1px;
            left: 1px;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--accent-alt));
            box-shadow: 0 0 10px rgba(0,160,224,0.8);
            transition: transform 0.18s ease-out;
        }

        .theme-toggle[data-mode="light"] .theme-toggle-knob {
            transform: translateX(14px);
        }

        .theme-toggle[data-mode="dark"] .theme-toggle-knob {
            transform: translateX(0);
        }

        .theme-toggle-emoji {
            font-size: 13px;
        }

        @media (max-width: 640px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        align-self: stretch;
        justify-content: space-between;
    }

    .header-pill {
        max-width: 100%;
        text-align: center;
        white-space: normal;
        align-self: center;
    }

    /* WYŚRODKOWANY TYTUŁ HERO NA MOBILE */
    .hero-title {
        text-align: center;
    }
}


        /* HERO */

        .hero {
            margin-top: 40px;
            display: grid;
            gap: 32px;
        }

        @media (min-width: 900px) {
            .hero {
                margin-top: 56px;
                grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
                align-items: center;
            }
        }

        .hero-kicker {
            font-size: 12px;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 10px;
        }

        .hero-title {
            font-size: clamp(32px, 4vw, 40px);
            line-height: 1.1;
            margin: 0 0 16px;
        }


        /* =========== Oryginalny początkowy rozmiar liter tytułu ============

        .hero-title span {
            background: linear-gradient(135deg, var(--accent), var(--accent-alt));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        ============== Koniec oryginalnego formatowania tytułu ============= */ 

        /* ============ CMYK-owy kolor i wielkość liter tutułu ============= */  

        .hero-title span {
        background: linear-gradient(135deg,#00c8ff 0%,#00c8ff 25%,#ffe600 45%,#ff2aa6 85%,#ff2aa6 100%);
        -webkit-background-clip:text;
        background-clip:text;
        color:transparent;
        white-space:nowrap;
        }

        /* ======== koniec: CMYK-owy kolor i wielkość liter tutułu ========= */


        .hero-lead {
            font-size: 16px;
            color: var(--muted);
            max-width: 520px;
            margin-bottom: 20px;
        }

        .hero-bullets {
            list-style: none;
            padding: 0;
            margin: 0 0 24px;
            display: grid;
            gap: 8px;
        }

        .hero-bullets li {
            font-size: 14px;
            color: var(--muted);
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .hero-bullets li::before {
            content: "";
            display: inline-block;
            margin-top: 6px;
            width: 7px;
            height: 7px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--accent), var(--accent-alt));
            box-shadow: 0 0 10px rgba(0,160,224,0.8);
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 16px;
        }

.btn {
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.admin-shell .btn {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
    box-shadow: none;
    padding: 8px 14px;
}

.admin-shell .btn-primary {
    background: transparent;
    border-color: var(--accent);
    color: var(--text);
}

.admin-shell .btn-primary:hover,
.admin-shell .btn-ghost:hover {
    background: var(--border-soft);
    text-decoration: none;
}

.admin-shell .btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

        /* ================== BUTTON: PRIMARY ================== */
        .btn-primary {
            background: linear-gradient(
                135deg,
                var(--c-cyan) 0%,
                var(--c-cyan) 25%,   /* więcej cyanu po lewej */
                var(--c-yellow) 45%, /* wąski żółty środek */
                var(--c-magenta) 85%,
                var(--c-magenta) 100% /* więcej magenty po prawej */
            );
            color: #0a0b0e; /* light theme */
            box-shadow: var(--shadow-soft);
        }

        /* W dark theme tekst jasny */
        :root[data-theme="dark"] .btn-primary {
            color: #ffffff;
        }

        /* Hover – bez poświaty, tylko rozjaśnienie środka */
        .btn-primary:hover {
            filter: brightness(1.12);
            text-decoration: none;
        }

        .btn-ghost {
            background: transparent;
            color: var(--muted);
            border-color: var(--border-soft);
        }

        .btn-ghost:hover {
            border-color: var(--accent);
            color: var(--text-soft);
        }

        .hero-hours {
            font-size: 13px;
            color: var(--muted);
        }

        .hero-hours strong {
            color: var(--text-soft);
        }

        /* HERO IMAGE / BOX */

        .hero-aside {
            position: relative;
        }

        .hero-card {
            border-radius: 24px;
            overflow: hidden;
            background:
                radial-gradient(circle at top left, rgba(0,160,224,0.28), transparent 60%),
                radial-gradient(circle at top right, rgba(230,0,126,0.22), transparent 60%),
                #05070b;
            border: 1px solid var(--border-soft);
            box-shadow: var(--shadow-strong);
            position: relative;
            padding: 14px;
        }

        :root[data-theme="light"] .hero-card {
            background:
                radial-gradient(circle at top left, rgba(0,160,224,0.14), transparent 60%),
                radial-gradient(circle at top right, rgba(255,242,0,0.16), transparent 60%),
                #ffffff;
        }

        .hero-photo {
            border-radius: 18px;
            overflow: hidden;
            max-height: 260px;
        }

        .hero-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transform: scale(1.02);
        }

        .hero-overlay {
            position: absolute;
            inset: auto 18px 18px auto;
            border-radius: 16px;
            background: rgba(15,17,21,0.92);
            border: 1px solid rgba(255,255,255,0.12);
            padding: 10px 12px;
            font-size: 11px;
            max-width: 220px;
            color: var(--muted);
        }

        :root[data-theme="light"] .hero-overlay {
            background: rgba(245,245,247,0.96);
            border-color: rgba(0,0,0,0.08);
        }

        .hero-overlay strong {
            color: var(--text-soft);
        }

        .hero-overlay span {
            background: linear-gradient(135deg, var(--accent), var(--accent-alt));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        /* SEKCJE */

        .section {
            margin-top: 40px;
            padding-top: 24px;
            border-top: 2px solid rgba(255,255,255,0.14);
        }

        :root[data-theme="light"] .section {
            border-top-color: rgba(0,0,0,0.14);
        }

        @media (min-width: 900px) {
            .section {
                margin-top: 48px;
            }
        }

        .section-kicker {
            font-size: 11px;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 6px;
        }

        .section-title {
            font-size: 22px;
            margin: 0 0 10px;
        }

        .section-lead {
            font-size: 14px;
            color: var(--muted);
            max-width: 620px;
        }

        .cards {
            margin-top: 20px;
            display: grid;
            gap: 14px;
        }

        @media (min-width: 720px) {
            .cards {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        .card {
            border-radius: 18px;
            background: var(--bg-soft);
            border: 1px solid var(--border-soft);
            padding: 14px 16px;
            font-size: 13px;
        }

        .card-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 6px;
        }

        .card-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: var(--muted);
            margin-bottom: 8px;
        }

        .card-tag-dot {
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--accent), var(--accent-alt));
            box-shadow: 0 0 8px rgba(0,160,224,0.9);
        }

        .card p {
            margin: 0;
            color: var(--muted);
        }

        .section-grid {
            display: grid;
            gap: 20px;
            margin-top: 20px;
        }

        @media (min-width: 780px) {
            .section-grid {
                grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
                align-items: flex-start;
            }
        }

        .section-box {
            border-radius: 18px;
            background: var(--bg-soft);
            border: 1px solid var(--border-soft);
            padding: 16px 18px;
            font-size: 13px;
        }

        .section-box h3 {
            margin-top: 0;
            font-size: 15px;
            margin-bottom: 8px;
        }

        .section-box ul {
            padding-left: 18px;
            margin: 8px 0;
        }

        .section-box li {
            color: var(--muted);
            margin-bottom: 4px;
        }

        /* FAQ */

        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 16px;
        }

        .faq-item {
            border-radius: 14px;
            border: 1px solid var(--border-soft);
            background: var(--bg-soft);
            box-shadow: var(--shadow-soft);
            overflow: hidden;
        }

        .faq-item summary {
            list-style: none;
            cursor: pointer;
            padding: 14px 16px 14px 44px;
            margin: 0;
            font-weight: 600;
            color: var(--text);
            position: relative;
        }

        .faq-item summary::marker {
            content: "";
        }

        .faq-item summary::before {
            content: '▸';
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--accent);
            transition: transform 0.18s ease-out;
        }

        .faq-item[open] summary::before {
            transform: translateY(-50%) rotate(90deg);
        }

        .faq-item summary:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
            border-radius: 12px;
        }

        .faq-item p {
            margin: 0;
            padding: 0 16px 16px 44px;
            color: var(--muted);
        }

        .faq-item a {
            color: inherit;
            font-weight: 600;
        }

        /* KONTAKT */

        .contact-cols {
            display: grid;
            gap: 20px;
            margin-top: 20px;
        }

        @media (min-width: 720px) {
            .contact-cols {
                grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
            }
        }

        .contact-row {
            font-size: 14px;
            color: var(--muted);
            margin-bottom: 8px;
        }

        .contact-label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.16em;
            color: var(--muted);
        }

        .contact-main {
            font-size: 15px;
            color: var(--text-soft);
        }

        .contact-main a {
            text-decoration: underline;
            text-decoration-style: dotted;
            text-decoration-thickness: 1px;
        }

        .contact-main a:hover {
            text-decoration-style: solid;
        }

        .map-link {
            margin-top: 10px;   /* 🔥 odstęp między adresem a przyciskiem */
            display: block;
            font-size: 13px;
            color: var(--muted);
        }

        /* FOOTER */

        footer {
            margin-top: 32px;
            padding-top: 16px;
            border-top: 1px solid rgba(255,255,255,0.08);
            font-size: 11px;
            color: var(--muted);
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: space-between;
        }

        :root[data-theme="light"] footer {
            border-top-color: rgba(0,0,0,0.08);
        }

        footer a {
            color: var(--muted);
        }

    /* ==========PRZYCISK PRZEWIJANIA STRONY========== */

    .scroll-top {
        position: fixed;
        bottom: 28px;
        right: 28px;
        min-width: 64px;
        height: 34px;
        padding: 0 14px;
        border-radius: 999px; /* pałeczka jak inne przyciski */
        border: none;
        cursor: pointer;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 18px;
        font-weight: 600;

        /* ten sam spokojniejszy CMY gradient co w .btn-primary */
        background: linear-gradient(
            135deg,
            var(--c-cyan) 0%,
            var(--c-cyan) 25%,
            var(--c-yellow) 45%,
            var(--c-magenta) 85%,
            var(--c-magenta) 100%
        );
        color: #000; /* baza pod light theme */
        box-shadow: var(--shadow-soft); /* neutralny cień, bez „aury” */

        opacity: 0;
        pointer-events: none;
        transform: translateY(8px);
        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            filter 0.25s ease;
    }

    /* Dark theme – jasny tekst */
    :root[data-theme="dark"] .scroll-top {
        color: #fff;
    }

    /* Hover – tylko rozjaśnienie, bez zewnętrznej poświaty */
    .scroll-top:hover {
        filter: brightness(1.12);
    }
.card-actions {
    margin-top: 16px;
}

.card-actions .btn {
    width: 100%;
    text-align: center;
}

.upload-hero {
    padding-bottom: 24px;
}

.upload-section {
    margin-top: 0;
}

.upload-form-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.upload-form.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(145deg, rgba(89, 103, 255, 0.08), rgba(255, 255, 255, 0.02));
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 180px;
}

.upload-dropzone.is-dragging {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(89, 103, 255, 0.14), rgba(255, 255, 255, 0.04));
}

.dropzone-lead {
    font-weight: 700;
    margin-bottom: 6px;
}

.dropzone-sub {
    color: var(--muted);
    font-size: 14px;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-field span {
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: var(--bg-softer);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 160, 224, 0.18);
    background: var(--bg-softer);
}

.form-field.optional span::after {
    content: ' (opcjonalnie)';
    color: var(--muted);
    font-weight: 400;
}

[data-lang="en"] .form-field.optional span::after {
    content: ' (optional)';
}

.form-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 15px;
}

.form-checkbox input {
    margin-top: 4px;
}

.upload-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.mobile-file-trigger {
    display: none;
}

.upload-helper {
    color: var(--muted);
    font-size: 13px;
}

.upload-file-list ul {
    list-style: disc;
    margin-left: 18px;
    color: var(--text);
    padding-right: 8px;
}

.upload-file-list li {
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
    margin-bottom: 4px;
}

.form-message {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel-alt);
    color: var(--text);
}

.form-message .copy-ticket {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 14px;
}

.form-message.error {
    border-color: #ff7b8a;
    background: rgba(255, 123, 138, 0.16);
    color: #ffd6dc;
}

.form-message.success {
    border-color: #7ce0a3;
    background: rgba(124, 224, 163, 0.16);
    color: #d5ffe7;
}

:root[data-theme="light"] .form-message.error {
    background: #fff2f4;
    border-color: #e3445f;
    color: #7c1225;
}

:root[data-theme="light"] .form-message.success {
    background: #eefaf1;
    border-color: #49b271;
    color: #11552c;
}

.upload-progress {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 30;
}

.upload-progress > * {
    position: relative;
    z-index: 1;
}

.upload-progress.is-active {
    opacity: 1;
    pointer-events: all;
}

.upload-progress-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

.upload-progress-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.upload-progress-title {
    font-weight: 700;
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--panel-alt);
    overflow: hidden;
    border: 1px solid var(--border);
}

.upload-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, var(--c-cyan), var(--c-yellow), var(--c-magenta));
    transition: width 0.2s ease;
}

.upload-progress-detail {
    color: var(--muted);
    font-size: 13px;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.upload-admin-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.upload-admin-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    padding: 0;
    overflow: hidden;
}

.upload-admin-card summary {
    list-style: none;
}

.upload-admin-card summary::-webkit-details-marker {
    display: none;
}

.upload-admin-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    cursor: pointer;
    background: var(--panel);
}

.upload-admin-summary:hover {
    background: var(--panel-alt);
}

.summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.summary-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
    gap: 12px;
}

.summary-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.summary-right {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.summary-label {
    font-weight: 700;
    white-space: nowrap;
}

.summary-ticket {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.summary-value {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-notes .summary-value {
    white-space: normal;
}

.summary-notes {
    align-items: flex-start;
}

.upload-admin-content {
    padding: 0 16px 16px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.upload-admin-card:not([open]) .upload-admin-content {
    display: none;
}

.upload-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.upload-admin-title {
    font-size: 17px;
    font-weight: 700;
}

.upload-admin-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.upload-admin-meta .meta-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text);
}

.upload-admin-meta .meta-value {
    font-weight: 700;
}

.upload-admin-meta .badge {
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 12px;
}

.upload-admin-body p {
    margin: 4px 0;
}

.upload-admin-files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.file-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    background: var(--panel-alt);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-name {
    font-weight: 700;
    word-break: break-all;
}

.file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.upload-card-footer {
    margin-top: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.upload-card-footer-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.ticket-actions {
    display: inline-flex;
    gap: 8px;
    margin: 0;
}

.ticket-select {
    display: inline-flex;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
}

.ticket-select input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 14px;
}

.admin-shell .btn-small {
    padding: 5px 9px;
    font-size: 13px;
}

.ticket-filter-inputs .btn {
    padding: 5px 9px;
    min-height: 0;
    line-height: 1.2;
    font-size: 13px;
}

.upload-bottom-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.logout-form {
    margin: 0;
}

.ticket-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}

.delete-selected {
    align-self: flex-end;
    margin-left: auto;
}

.bulk-delete-form {
    margin: 0;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 16px;
    background: radial-gradient(circle at 20% 20%, rgba(89, 103, 255, 0.12), transparent 30%),
                radial-gradient(circle at 80% 0%, rgba(74, 222, 222, 0.10), transparent 30%),
                var(--bg);
}

.login-shell header {
    max-width: 1080px;
    margin: 0 auto 12px;
    padding: 0 6px;
    gap: 12px;
    align-items: center;
}

.login-shell .brand-left {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 10px;
}

.login-shell .header-right {
    gap: 10px;
}

.login-shell .header-right .header-pill {
    white-space: nowrap;
}

.login-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    width: min(480px, 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.20);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-brand {
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    gap: 12px;
    align-items: center;
}

.login-brand img {
    width: 64px;
    height: auto;
}

.login-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-actions {
    display: flex;
    justify-content: center;
}

.login-card h1,
.login-note {
    text-align: center;
}

.login-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,160,224,0.6), rgba(230,0,126,0.5));
    margin: 8px 0 12px;
    border-radius: 999px;
}

.ticket-filter {
    margin: 12px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 480px;
}

.ticket-filter label {
    font-weight: 700;
}

.ticket-filter-inputs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-filter input[type="text"] {
    flex: 1 1 180px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
}

.ticket-filter input[type="text"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

@media (max-width: 720px) {
    .login-shell {
        align-items: flex-start;
        padding: 20px 12px;
    }

    .login-card {
        padding: 20px;
        width: 100%;
        border-radius: 14px;
    }

    .login-brand {
        grid-template-columns: 78px 1fr 78px;
        gap: 10px;
    }

    .login-card .brand-logo {
        width: 78px;
        height: 58px;
        padding: 5px 6px;
    }

    .theme-toggle-standalone {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .login-brand {
        grid-template-columns: 68px 1fr 68px;
        gap: 8px;
    }

    .login-card .brand-logo {
        width: 70px;
        height: 52px;
        padding: 4px 6px;
    }

    .login-brand-text .brand-text-main {
        font-size: 15px;
    }

    .login-brand-text .brand-text-sub {
        font-size: 13px;
    }
}

.back-home-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--panel-alt);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.back-home-link:hover,
.back-home-link:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    outline: none;
}

.privacy-section {
    margin-top: 32px;
}

.privacy-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 50;
}

.privacy-modal.is-open {
    display: flex;
}

.privacy-modal-content {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    max-width: 720px;
    width: min(720px, 100%);
    padding: 18px;
    color: var(--text);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.privacy-modal-body p {
    margin: 8px 0;
}

.privacy-modal-body {
    overflow-y: auto;
    padding-right: 6px;
    max-height: 65vh;
}

.privacy-close {
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--text);
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.contact-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-footer-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact-footer-title {
    font-weight: 700;
    color: var(--text);
}

.copyright-row {
    font-size: 12px;
}

.attention-pulse {
    animation: pulse-cta 1.4s ease-in-out infinite;
    transform-origin: center;
    box-shadow: 0 0 0 rgba(84, 108, 255, 0.0);
}

.muted {
    color: var(--muted);
}

@media (max-width: 1024px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .upload-dropzone {
        display: none;
    }

    .mobile-file-trigger {
        display: inline-flex;
        align-self: flex-start;
    }

    .privacy-modal-body {
        max-height: 60vh;
    }

    .upload-actions {
        align-items: center;
        width: 100%;
    }

    .upload-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .form-message {
        font-size: 14px;
    }

    .form-message .copy-ticket {
        width: 100%;
        justify-content: center;
    }
}

@keyframes spin {
    from { transform: rotate(var(--rot, 0deg)); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-cta {
    0% {
        filter: brightness(0.95);
        transform: scale(0.98);
        box-shadow: 0 0 0 rgba(84, 108, 255, 0.0);
    }
    50% {
        filter: brightness(1.2);
        transform: scale(1.04);
        box-shadow: 0 0 18px rgba(84, 108, 255, 0.35);
    }
    100% {
        filter: brightness(0.95);
        transform: scale(0.98);
        box-shadow: 0 0 0 rgba(84, 108, 255, 0.0);
    }
}

@media (max-width: 720px) {
    .upload-form-card {
        padding: 20px;
    }

    .upload-admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-admin-files {
        grid-template-columns: 1fr;
    }

    .card-actions .btn {
        width: 100%;
    }
}

.theme-toggle-standalone {
    display: flex;
    justify-content: center;
    margin: 10px auto 4px;
}

.admin-shell header {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-shell .brand-left {
    flex: 1 1 240px;
}

.admin-shell .header-right {
    flex: 1 1 240px;
    justify-content: flex-end;
}

.admin-shell .header-right .header-pill {
    text-align: center;
}

@media (max-width: 900px) and (orientation: landscape) {
    .login-shell .login-card {
        margin-left: auto;
        margin-right: auto;
    }

    .login-shell .login-card {
        align-items: center;
        text-align: center;
    }

    .login-shell .login-form {
        width: 100%;
    }
}

@media (orientation: landscape) and (max-width: 900px) {
    .brand-left {
        justify-content: center;
    }

    .theme-toggle-standalone {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .admin-shell header {
        flex-direction: row;
    }

    .admin-shell .header-right {
        width: 100%;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
    }

    .admin-shell .logout-form {
        margin-left: auto;
    }

    .ticket-controls {
        align-items: center;
    }
    
}
.lang-alt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* HOLIDAY TOP BANNER */
.holiday-top{
    width:100%;
    padding:14px 16px 8px;
}
.holiday-top .holiday-card{
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    isolation: isolate;
}

/* NEW YEAR FIREWORKS (subtle particle bursts) */
.newyear-fireworks{
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: visible;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 8px rgba(255, 220, 170, .22));
}

@media (prefers-reduced-motion: reduce){
    .newyear-fireworks{ display:none; }
}

.ny-burst{
    position:absolute;
    width:0;
    height:0;
    transform: translate(-50%, -50%);
}

.ny-flash{
    position:absolute;
    left:0;
    top:0;
    width:10px;
    height:10px;
    border-radius:999px;
    transform: translate(-50%, -50%) scale(.4);
    opacity:.0;
    filter: blur(.2px);
    animation: nyFlash 520ms ease-out forwards;
}

@keyframes nyFlash{
    0%{ opacity:0; transform: translate(-50%,-50%) scale(.35); }
    20%{ opacity:.55; transform: translate(-50%,-50%) scale(1.05); }
    100%{ opacity:0; transform: translate(-50%,-50%) scale(1.45); }
}

.ny-spark{
    position:absolute;
    left:0;
    top:0;
    width:5px;
    height:5px;
    border-radius:999px;
    transform: translate(-50%, -50%);
    opacity:0;
    box-shadow: 0 0 10px currentColor;
    animation: nySparkFly var(--dur, 900ms) ease-out var(--delay, 0ms) forwards;
    will-change: transform, opacity, filter;
    filter: blur(.0px);
}

.ny-spark::after{
    content:'';
    position:absolute;
    left:50%;
    top:50%;
    width:2px;
    height:12px;
    border-radius:999px;
    transform: translate(-50%,-50%) rotate(0deg);
    background: currentColor;
    opacity:.55;
    filter: blur(.35px);
}

@keyframes nySparkFly{
    0%{
        opacity:0;
        transform: translate(-50%,-50%) translate(0,0) scale(.65);
        filter: blur(.2px);
    }
    12%{
        opacity:.95;
    }
    60%{
        opacity:.85;
    }
    100%{
        opacity:0;
        transform: translate(-50%,-50%) translate(var(--dx), var(--dy)) scale(.95);
        filter: blur(.7px);
    }
}
.holiday-inner{
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}
.holiday-img{
    width:100%;
    height:auto;
    display:block;
}
.holiday-logos{
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    display:flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    pointer-events:none;
}
.holiday-logo{
    max-height: 48px;
    width:auto;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.55));
}

/* =========================================================
   HOLIDAY LIGHTS – dekoracyjne lampki wokół kartki
   - kolory świąteczne
   - 4 strony (góra / dół / lewa / prawa)
   - blisko krawędzi obrazka, w jego otoczce
   ========================================================= */

/* Otoczka lampek */
.holiday-lights{
    position:absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 22px;
    pointer-events:none;
    z-index: 3;
}

/* Kolory świąteczne */
:root{
    --bulb-red:   #e63946;
    --bulb-green: #2ecc71;
    --bulb-gold:  #ffd166;
    --bulb-blue:  #4dabf7;
}

.holiday-bulb{
    position:absolute;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    opacity: .30;
    animation: holidayTwinkle 3.6s ease-in-out infinite;
}
.holiday-bulb.red{
    background: var(--bulb-red);
    box-shadow: 0 0 10px rgba(230,57,70,.70);
}
.holiday-bulb.green{
    background: var(--bulb-green);
    box-shadow: 0 0 10px rgba(46,204,113,.70);
}
.holiday-bulb.gold{
    background: var(--bulb-gold);
    box-shadow: 0 0 10px rgba(255,209,102,.70);
}
.holiday-bulb.blue{
    background: var(--bulb-blue);
    box-shadow: 0 0 10px rgba(77,171,247,.70);
}

@keyframes holidayTwinkle{
    0%,100%{ opacity:.18; transform:scale(.90); }
    45%{ opacity:.70; transform:scale(1.10); }
    65%{ opacity:.32; transform:scale(1.00); }
}

/* ===== GÓRA ===== */
.holiday-bulb.b1{top:4px;left:6%;}
.holiday-bulb.b2{top:4px;left:18%;animation-delay:-1.1s;}
.holiday-bulb.b3{top:4px;left:30%;animation-delay:-2.4s;}
.holiday-bulb.b4{top:4px;left:42%;animation-delay:-0.6s;}
.holiday-bulb.b5{top:4px;left:54%;animation-delay:-1.9s;}
.holiday-bulb.b6{top:4px;left:66%;animation-delay:-3.0s;}
.holiday-bulb.b7{top:4px;left:78%;animation-delay:-1.5s;}
.holiday-bulb.b8{top:4px;left:90%;animation-delay:-2.7s;}

/* ===== DÓŁ ===== */
.holiday-bulb.b9{bottom:4px;left:8%;animation-delay:-2.1s;}
.holiday-bulb.b10{bottom:4px;left:22%;animation-delay:-0.9s;}
.holiday-bulb.b11{bottom:4px;left:36%;animation-delay:-3.3s;}
.holiday-bulb.b12{bottom:4px;left:50%;animation-delay:-1.8s;}
.holiday-bulb.b13{bottom:4px;left:64%;animation-delay:-2.6s;}
.holiday-bulb.b14{bottom:4px;left:78%;animation-delay:-0.4s;}
.holiday-bulb.b15{bottom:4px;left:90%;animation-delay:-1.2s;}

/* ===== LEWA ===== */
.holiday-bulb.b16{left:4px;top:12%;animation-delay:-2.9s;}
.holiday-bulb.b17{left:4px;top:28%;animation-delay:-1.3s;}
.holiday-bulb.b18{left:4px;top:44%;animation-delay:-2.1s;}
.holiday-bulb.b19{left:4px;top:60%;animation-delay:-0.8s;}
.holiday-bulb.b20{left:4px;top:76%;animation-delay:-1.9s;}

/* ===== PRAWA ===== */
.holiday-bulb.b21{right:4px;top:14%;animation-delay:-2.4s;}
.holiday-bulb.b22{right:4px;top:30%;animation-delay:-0.6s;}
.holiday-bulb.b23{right:4px;top:46%;animation-delay:-1.6s;}
.holiday-bulb.b24{right:4px;top:62%;animation-delay:-2.8s;}
.holiday-bulb.b25{right:4px;top:78%;animation-delay:-1.2s;}

/* Mobile sizing */
@media (max-width: 520px){
    .holiday-logo{ max-height: 34px; }
    .holiday-top{ padding:12px 12px 6px; }
    .holiday-lights{ top:-3px; left:-3px; right:-3px; bottom:-3px; }
    .holiday-bulb{ width: 7px; height: 7px; }
}


/* ROOT (/) – strona wyboru języka */
.root-home .page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.root-home header,
.root-home .root-header {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.root-home .brand-left {
    justify-content: center;
}

.root-home .theme-toggle {
    justify-content: center;
}

.root-choice {
    width: 100%;
}

.root-choice-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.root-title {
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 22px;
}

.root-subtitle {
    font-weight: 600;
    font-size: 16px;
    opacity: 0.95;
}

.root-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}


/* LANG BUTTONS VISUAL */
/* Zmiany WYŁĄCZNIE wizualne: kolor jak theme-toggle, obramowanie jak theme-toggle,
   identyczna szerokość, większy tekst. BEZ zmian layoutu. */

.root-home .root-actions .lang-btn{
    width: 130px;                 /* identyczna szerokość obu przycisków */
    font-size: 18px;              /* większe litery */
    font-weight: 600;
    text-align: center;           /* wycentrowany tekst */

    /* Kolor i obramowanie jak theme-toggle */
    background: rgba(0,0,0,0.06);
    border: 1px solid var(--border-soft);
    color: var(--text);

    transition: filter .18s ease;
}

:root[data-theme="light"] .root-home .root-actions .lang-btn{
    background: rgba(255,255,255,0.8);
}

.root-home .root-actions .lang-btn:hover{
    filter: brightness(1.08);
    text-decoration: none;
}

/* UKRYCIE TEKSTU H1 W STRONIE DLA SEO */

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

