:root {
    --bg-color: #e0e5ec;
    --text-main: #3d4468;
    --text-muted: #6c7293;
    --shadow-light: #ffffff;
    --shadow-dark: #bec3cf;
    --color-blue: #4a90e2;
    --color-green: #00c896;
    --color-red: #ff3b5c;
    --color-orange: #ff9f43;
    --color-purple: #9b59b6;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.modal-open {
    overflow: hidden;
}

/* Przyciski i klikane kafelki to elementy akcji, nie tekst do zaznaczania. Na mobile dotknięcie
   etykiety pod ikoną SVG zaznaczało wyraz, a Chrome proponował jego wyszukanie. Blokujemy
   zaznaczanie tekstu oraz systemowe menu/podświetlenie dotyku. Kafelki dashboardów (.admin-card,
   .service-dashboard-card) mają @onclick, więc też je tu obejmujemy. */
button,
[role="button"],
.admin-card,
.service-dashboard-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.page-wrapper {
    background: var(--bg-color);
    min-height: 100vh;
    width: 100%;
    padding: 40px;
    color: var(--text-main);
    box-sizing: border-box;
}

    .page-wrapper.center-content {
        display: flex;
        justify-content: center;
        align-items: center;
    }

.header-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.back-btn {
    background: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    cursor: pointer;
    margin-right: 10px;
    color: var(--text-main);
    text-decoration: none;
    border: none;
    flex-shrink: 0;
    transition: transform 2.2s ease-out, opacity 2.2s ease-out;
}

    .back-btn:hover {
        color: var(--color-blue);
        transform: scale(1.05);
    }

.neu-card {
    background: var(--bg-color);
    border-radius: 30px;
    padding: 30px;
    /* Zredukowano z 24px na 15px */
    box-shadow: 8px 8px 15px var(--shadow-dark), -8px -8px 15px var(--shadow-light);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transform: translateZ(0); /* Chrome zacznie używać karty graficznej */
}

.neu-card-form {
    background: var(--bg-color);
    border-radius: 40px;
    padding: 50px;
    width: 100%;
    max-width: 800px;
    box-shadow: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light);
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
}

.neu-card-compact {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.neu-input {
    background: var(--bg-color);
    border: 2px solid transparent;
    border-radius: 12px; /* Zaktualizowano na 12px z nowych widoków */
    padding: 10px 15px; /* Kompaktowy padding z nowych widoków */
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

    .neu-input:focus {
        box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    }

    .neu-input.invalid {
        border-color: var(--color-red);
    }

    .neu-input[aria-invalid="true"] {
        border-color: var(--color-red) !important;
    }

    .neu-input.modified.valid {
        border-color: var(--color-green);
    }

/* iOS Safari automatycznie przybliża ekran przy fokusie pola, gdy jego czcionka < 16px
   (a .neu-input ma 0.9rem = 14.4px). To powodowało „delikatne przyzoomowanie" i możliwość
   przesuwania całego ekranu po pojawieniu się klawiatury. Na telefonach wymuszamy min. 16px,
   co całkowicie blokuje to auto-przybliżenie. Desktop bez zmian. */
@media (max-width: 768px) {
    .neu-input,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

.search-input {
    background: var(--bg-color);
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    color: var(--text-main);
    outline: none;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    width: 250px;
    margin-right: auto;
}

.neu-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 20px; /* Zunifikowane wypełnienie */
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: var(--bg-color);
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-main);
    height: 40px;
}

    .neu-btn:hover {
        transform: translateY(-2px);
        box-shadow: 7px 7px 14px var(--shadow-dark), -7px -7px 14px var(--shadow-light);
    }

    .neu-btn:active {
        transform: translateY(0);
        box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    }

.neu-btn-small {
    background: var(--bg-color);
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

    .neu-btn-small:hover {
        transform: translateY(-2px);
        box-shadow: 8px 8px 18px var(--shadow-dark), -8px -8px 18px var(--shadow-light);
    }

    .neu-btn-small:active {
        transform: translateY(0);
        box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    }

.neu-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9499b7;
    cursor: pointer;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    transition: all 0.2s ease;
    margin-right: 8px;
    flex-shrink: 0;
}

    .neu-btn-icon:hover {
        transform: scale(1.1);
        color: var(--color-blue);
        box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    }

    .neu-btn-icon.delete {
        color: var(--color-red);
    }

    .neu-btn-icon.edit:hover {
        color: var(--color-blue);
    }

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(190, 195, 207, 0.3);
}

.header-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    color: var(--color-blue);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    width: 100%;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 10px;
    display: block;
    margin-bottom: 5px;
}

.full-width {
    grid-column: span 2;
}

.form-actions {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.validation-errors {
    color: var(--color-red);
    background: rgba(255, 59, 92, 0.1);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--color-red);
    font-size: 0.9rem;
}

.neu-table-container {
    background: var(--bg-color);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.55);
    overflow: hidden;
    overflow-x: auto;
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    table-layout: fixed;
}

th {
    text-align: left;
    padding: 15px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(190, 195, 207, 0.5);
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(190, 195, 207, 0.3);
    vertical-align: middle;
    font-size: 0.95rem;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: rgba(255,255,255,0.4);
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.font-bold {
    font-weight: 600;
    color: var(--text-main);
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    color: var(--text-main);
    background: rgba(47, 191, 74, 0.22);
    border: none;
    box-shadow: none;
}

.status-archive {
    color: #9499b7;
    background: transparent;
    border: none;
}

/* Badge labels for "Tryb" column (Aktualne / Archiwum) in tenant registry views */
.tryb-active {
    color: var(--text-main);
    background: rgba(21, 128, 61, 0.40); /* Ciemniejsza zieleń niż status-active */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(21, 128, 61, 0.25);
    border: 1px solid rgba(21, 128, 61, 0.35);
}

.tryb-archive {
    color: var(--text-main);
    background: rgba(139, 69, 19, 0.30); /* Brązowy */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(139, 69, 19, 0.25);
    border: 1px solid rgba(139, 69, 19, 0.30);
}

.status-occupied {
    color: var(--color-red);
    background: transparent;
    border: none;
}

.status-year-round {
    color: #f39c12;
    background: transparent;
    border: none;
}


.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.pagination-arrow {
    cursor: pointer;
    color: #9499b7;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

    .pagination-arrow:hover {
        color: var(--text-main);
        transform: scale(1.1);
    }

    .pagination-arrow.disabled {
        color: #d1d5db;
        cursor: default;
        pointer-events: none;
        box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
    }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); /* delikatne przyciemnienie — modal wyróżnia się od strony, bez ciężkiego tła */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 12000;
    /* Margines + przewijanie samego overlaya: gdy karta jest wyższa niż ekran (np. wysoki
       formularz na telefonie o nietypowej szerokości CSS — POCO/MIUI), modal NIE chowa
       góry/dołu poza widokiem. Działa na każdej szerokości, niezależnie od breakpointów. */
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* UWAGA: bez backdrop-filter: blur(). Rozmywanie tła (ciężki dashboard) jest
       przeliczane co klatkę i powodowało zacinanie. Tło tylko przyciemnione.
       Bez animacji wejścia – modal pojawia się natychmiast. */
}

.modal-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    border: 2px solid rgba(255, 255, 255, 0.5); /* jednolite „światło" na krawędzi karty modala w całej aplikacji */
    display: flex;
    flex-direction: column;
    /* Karta nigdy nie wyższa niż widoczny obszar — nadmiar treści przewija się w jej wnętrzu. */
    max-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ujednolicenie: formularze modalne oparte o .neu-card-form (np. tworzenie awizacji/parkingu/
   gościa u najemcy, modal helpdesku klienta) dostają dokładnie ten sam cień i „światło" co
   zwykłe modale (.modal-card) — jak modal „Dodaj awizację" w recepcji. NIE dotyczy formularzy
   poza modalem (np. publiczny formularz awizacji), bo tamte nie są w .modal-overlay. */
.modal-overlay .neu-card-form {
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    gap: 15px;
    user-select: none;
    transition: opacity 0.2s ease;
}

    .toggle-wrapper:hover {
        opacity: 0.9;
    }

.neu-toggle {
    width: 60px;
    height: 30px;
    border-radius: 30px;
    background: var(--bg-color);
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.toggle-knob {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-color);
    position: absolute;
    top: 3px;
    left: 3px;
    box-shadow: 2px 2px 5px var(--shadow-dark), -2px -2px 5px var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.toggle-wrapper.active-fire .toggle-knob {
    transform: translateX(30px);
    background: var(--color-red);
    box-shadow: 0 0 10px var(--color-red), inset 1px 1px 2px rgba(255,255,255,0.4);
}

.toggle-wrapper.active-escort .toggle-knob {
    transform: translateX(30px);
    background: var(--color-blue);
    box-shadow: 0 0 10px var(--color-blue), inset 1px 1px 2px rgba(255,255,255,0.4);
}

/* Całoroczne */
.toggle-wrapper.active-year .toggle-knob {
    transform: translateX(30px);
    background: #f1c40f;
    box-shadow: 0 0 10px #f1c40f, inset 1px 1px 2px rgba(255,255,255,0.4);
}

.date-picker {
    background: var(--bg-color);
    border: none;
    padding: 10px;
    border-radius: 10px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    color: var(--text-main);
    outline: none;
}

.col-time {
    width: 150px;
}

.col-data {
    width: auto;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    box-sizing: border-box;
}

.admin-card-item {
    background: var(--bg-color);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease;
    min-height: 250px;
    box-sizing: border-box;
}

    .admin-card-item:hover {
        transform: translateY(-5px);
        box-shadow: 16px 16px 32px var(--shadow-dark), -16px -16px 32px var(--shadow-light);
    }

.admin-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 2rem;
}

.admin-scroll-list {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 15px;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    font-size: 0.9rem;
}

.admin-add-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(190, 195, 207, 0.3);
}

.header-title-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1;
}

.building-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 25px;
    min-height: 40px;
    border-radius: 15px;
    background: var(--bg-color);
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    transition: all 0.3s ease;
    user-select: none;
}

    .building-badge:hover {
        transform: translateY(-2px);
        box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    }

.badge-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    color: var(--color-blue);
}

/* =========================================
   DODATKOWE STYLE - ADMIN BUILDINGS
   ========================================= */

.creation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Utrzymujemy dotychczasową formę form-row (dla np. budynków, logowania itd) */
.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.groups-container {
    display: flex;
    flex-wrap: wrap; /* Pozwala grupom przechodzić do nowej linii, gdy zabraknie miejsca */
    align-items: flex-start; /* Sprawia, że karty grup dopasowują się do swojej zawartości zamiast rozciągać */
    gap: 30px;
}

.group-card {
    background: var(--bg-color);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    border: 1px solid rgba(255,255,255,0.4);
    flex: 0 1 auto;
    min-width: 320px; /* Zapewnia, że pusta karta nie będzie nienaturalnie wąska */
    max-width: 100%; /* Zabezpieczenie przed wyjściem za krawędź ekranu */
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(190, 195, 207, 0.3);
    margin-bottom: 15px;
}

.group-title {
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.count-badge {
    background: rgba(108, 114, 147, 0.1);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.buildings-list {
    display: flex; /* Zmiana z grid na flex */
    flex-wrap: wrap; /* Nowe budynki utworzą nowy wiersz wewnątrz karty, jeśli karta osiągnie max ekranu */
    gap: 20px;
}

.building-item {
    background: var(--bg-color);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
    flex: 0 0 280px; /* Sztywna szerokość elementu. Z każdym nowym budynkiem karta powiększy się o @ok. 280px + gap */
    max-width: 100%;
}

    .building-item:hover {
        transform: scale(1.02);
    }

.building-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-main);
    font-size: 1rem;
}

.building-info span {
    font-size: 0.8rem;
    color: #9499b7;
    display: block;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* =========================================
   DODATKOWE STYLE - ADMIN USERS / TECHNICAL
   ========================================= */

.compact-form-card {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.card-title-small {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Kolor tytułu wprost pod ten konkretny formularz */
.compact-form-card .card-title-small {
    color: var(--color-green);
    margin-bottom: 20px;
}

/* Rozwiązanie konfliktu flex/grid dla .form-row bez dotykania HTML */
.compact-form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
    align-items: stretch;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.user-card {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
    border-left: 5px solid transparent;
    height: 100%;
    box-sizing: border-box;
}

    .user-card:hover {
        transform: translateY(-3px);
    }

.border-admin {
    border-left-color: var(--color-red);
}

.border-head {
    border-left-color: var(--color-purple);
}

.border-reception {
    border-left-color: var(--color-green);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(190, 195, 207, 0.3);
    gap: 15px;
}

.user-info {
    flex: 1;
    min-width: 0;
}

    .user-info h3 {
        margin: 0 0 5px 0;
        color: var(--text-main);
        font-size: 1.2rem;
        font-weight: 700;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }

.card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.role-badge {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.role-admin {
    color: var(--color-red);
    background: rgba(255, 59, 92, 0.1);
}

.role-head {
    color: var(--color-purple);
    background: rgba(155, 89, 182, 0.1);
}

.role-reception {
    color: var(--color-green);
    background: rgba(0, 200, 150, 0.1);
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

/* =========================================
   RWD (MEDIA QUERIES)
   ========================================= */

@media (max-width: 900px) {
    .creation-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 15px !important;
    }

    .header-container {
        flex-direction: column;
        align-items: stretch;
    }

    /* Magazyn serwisowy: przyciski „Generuj PDF" i „Dodaj część" w dwóch
       wierszach na całą szerokość ekranu (kontener jest flexem row -> kolumna). */
    .parts-header-actions {
        flex-direction: column;
        width: 100%;
    }

    /* Magazyn serwisowy: na desktopie status ma inline transform translateX(-50px),
       który na mobile przyciąga go pod „Nazwę części". Zerujemy przesunięcie, żeby
       status był wyśrodkowany w swojej kolumnie (między nazwą a liczbą sztuk).
       Desktop bez zmian (inline transform działa tylko poza tym media query). */
    .parts-status-col {
        transform: none !important;
    }

    /* Magazyn serwisowy — modal historii części na mobile:
       pełna wysokość ekranu, nagłówek i przyciski przyklejone (góra/dół),
       a lista historii wypełnia się i scrolluje wewnętrznie po dojściu do przycisków. */
    .parts-history-modal {
        width: 94vw !important;
        max-width: 94vw !important;
        height: 92dvh !important;
        max-height: 92dvh !important;
        margin: auto !important;
        border-radius: 18px !important;
        padding: 16px !important;
        display: flex !important;
        flex-direction: column;
        overflow: hidden !important;
    }

    .parts-history-modal .parts-history-scroll {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none !important;
        overflow-y: auto;
    }

    .parts-history-modal .parts-history-footer {
        flex: 0 0 auto;
        margin-top: 12px !important;
    }

    /* Data + godzina jeden pod drugim, żeby godzina nie była ucinana w wąskiej kolumnie. */
    .parts-hist-date .phd-date,
    .parts-hist-date .phd-time {
        display: block;
    }

    .search-input {
        width: 100% !important;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .neu-btn-small {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }

    .neu-table-container {
        padding: 10px;
        margin: 0 -10px;
        width: 100%;
        border-radius: 20px;
        display: block;
    }

    .neu-card-form {
        padding: 20px !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .full-width {
        grid-column: span 1 !important;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .neu-btn {
        width: 100%;
    }

    .buildings-list {
        flex-direction: column; /* Zamiast grid-template-columns: 1fr; */
    }

    /* Nadpisanie z AdminUsers (zamiana grid 1fr 1fr na pojedynczą kolumnę) */
    .compact-form-card .form-row {
        grid-template-columns: 1fr;
    }
    .building-item {
        flex-basis: auto;
        width: 100%;
    }
    .group-card {
        width: 100%;
    }
}
/* =========================================
   DODATKOWE STYLE - ADMIN TECHNICAL
   ========================================= */

/* Wybór Ikony */
.icon-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 5px;
}

.icon-option {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    background: var(--bg-color);
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    transition: all 0.2s ease;
    border: 2px solid transparent;
    color: var(--text-main);
}

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

    .icon-option.selected {
        box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
        border-color: var(--color-orange);
        color: var(--color-orange);
    }

.color-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 5px;
}

.color-option {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    transition: all 0.2s ease;
    border: 3px solid var(--bg-color);
}

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

    .color-option.selected {
        transform: scale(1.12);
        box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--text-main);
    }

/* KARTY FIRM TECHNICZNYCH */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.company-card {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    position: relative;
}

    .company-card:hover {
        transform: translateY(-3px);
    }

.company-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-emoji {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    color: var(--text-main);
}

.company-details h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ROZWIĄZANIE KONFLIKTU: Mały badge tylko wewnątrz karty firmy */
.company-card .building-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(108, 114, 147, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
    display: inline-block;
    box-shadow: none; /* Resetuje duży cień z globalnego stylu */
    min-height: auto;
}

/* PRACOWNICY (CHIPY) */
.employees-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    flex-grow: 1;
    align-content: flex-start;
}

.employee-chip {
    font-size: 0.85rem;
    background: var(--bg-color);
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}

.remove-emp {
    color: var(--color-red);
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.6;
    transition: 0.2s;
}

    .remove-emp:hover {
        opacity: 1;
        transform: scale(1.2);
    }

.add-employee-row {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

/* Mały input dla techników */
.neu-input-small {
    background: var(--bg-color);
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-main);
    outline: none;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    width: 100%;
}

/* POPRAWKI ELEMENTÓW FORMULARZA */
optgroup {
    font-style: normal;
    font-weight: 700;
    color: var(--text-muted);
}

input.neu-input, select.neu-input {
    width: 100% !important;
    box-sizing: border-box !important;
    display: block;
    min-height: 42px;
    max-width: 100%;
}
/* Układ główny */
.logs-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Prawy panel (Tabela) */
.table-area {
    flex-grow: 1;
    min-width: 0; /* Zabezpieczenie flexboxa przed wylewaniem zawartości */
}

.neu-table-container {
    margin-bottom: 0; /* Nadpisanie marginesu z theme.css pod ten layout */
}

/* Lewy panel (Filtry) */
.filters-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #e0e5ec;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 12px 12px 24px #bec3cf, -12px -12px 24px #ffffff;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 20px; /* Przyklejenie panelu podczas przewijania w dół */
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6c7293;
    margin-left: 5px;
}

.action-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .action-filters .neu-btn-small {
        justify-content: center;
        width: 100%;
        color: #9499b7;
    }

        /* Aktywne stany filtrów */
        .action-filters .neu-btn-small.active {
            color: #3d4468;
            box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
        }

        .action-filters .neu-btn-small.active-create {
            color: #2fbf4a;
            box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
        }

        .action-filters .neu-btn-small.active-update {
            color: #f39c12;
            box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
        }

        .action-filters .neu-btn-small.active-delete {
            color: #ff3b5c;
            box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
        }
        .action-filters .neu-btn-small.active-blue {
            color: var(--color-blue);
            box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
        }

/* Animacja ładowania */
.spin-anim {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* RWD */
@media (max-width: 1100px) {
    .logs-layout {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        padding: 20px;
    }

    .table-area {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-area .neu-table-container {
        min-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-area table {
        min-width: 1150px;
    }

    .action-filters {
        flex-direction: row;
        flex-wrap: wrap;
    }

        .action-filters .neu-btn-small {
            width: auto;
            flex: 1;
            min-width: 120px;
        }
}

@media (max-width: 768px) {
    .search-container {
        width: 100%;
    }

        .search-container input {
            width: 100% !important;
        }
}

/* Kolory akcji w tabeli (Matowe, naturalne i żywe kolory - bez efektu plastiku) */
.action-create {
    color: var(--text-main);
    background: rgba(102, 166, 74, 0.42);
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.72), 0 3px 8px rgba(102, 166, 74, 0.28);
    border: 1px solid rgba(102, 166, 74, 0.35);
}

.action-update {
    color: var(--text-main);
    background: rgba(243, 156, 18, 0.4);
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(243, 156, 18, 0.25);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.action-delete {
    color: var(--text-main);
    background: rgba(255, 59, 92, 0.3); /* Czerwony przy 0.3 jest już bardzo intensywny */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(255, 59, 92, 0.25);
    border: 1px solid rgba(255, 59, 92, 0.25);
}

.action-login {
    color: var(--text-main);
    background: rgba(74, 144, 226, 0.35);
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(74, 144, 226, 0.25);
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.status-archive {
    color: var(--text-main);
    background: rgba(148, 153, 183, 0.25);
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 153, 183, 0.2);
}
.detail-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    padding: 35px;
    background: #e0e5ec;
    border-radius: 30px;
    box-shadow: 25px 25px 50px #bec3cf, -25px -25px 50px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 9999;
    pointer-events: none;
    animation: popupFadeIn 0.2s ease-out;
}
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
}

.popup-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(166, 171, 189, 0.15);
}

    .popup-row:last-child {
        border-bottom: none;
    }

.popup-label {
    font-size: 1rem;
    font-weight: 700;
    color: #7c819d;
    width: 130px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d324f;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.popup-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-right: 8px;
    background: transparent;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 200, 150, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 150, 0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #3d4468;
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
}

    .custom-radio input {
        display: none;
    }

.radio-box {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #bec3cf, inset -4px -4px 8px #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.custom-radio input:checked + .radio-box {
    background: #4a90e2;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2), inset -2px -2px 5px rgba(255,255,255,0.2);
}

    .custom-radio input:checked + .radio-box::after {
        content: '';
        width: 8px;
        height: 8px;
        background: white;
        border-radius: 50%;
    }

.neu-btn-large {
    border: none;
    border-radius: 15px;
    padding: 15px 0;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 6px 6px 14px #bec3cf, -6px -6px 14px #ffffff;
    transition: all 0.2s ease;
    background: #e0e5ec;
    color: #3d4468;
}

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

    .neu-btn-large:active {
        transform: translateY(0);
        box-shadow: inset 3px 3px 6px rgba(0,0,0,0.1), inset -3px -3px 6px rgba(255,255,255,0.5);
    }

    .neu-btn-large:disabled {
        background: #a6abbd;
        color: #fff;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }


.public-wrapper {
    min-height: 100vh;
    width: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

    /* NADPISYWANIE GLOBALNYCH KLAS TYLKO DLA WIDOKU PUBLICZNEGO */
    .public-wrapper .neu-card-form {
        max-width: 1100px !important;
        padding: 40px;
        margin: 0;
    }

    .public-wrapper .form-header {
        display: flex !important;
        flex-direction: column !important; /* Ikona nad tekstem */
        align-items: center !important; /* Wyśrodkowanie w poziomie */
        justify-content: center !important;
        text-align: center !important;
        margin-bottom: 35px;
        padding-bottom: 25px;
        border-bottom: 2px solid rgba(190, 195, 207, 0.3);
        width: 100%;
    }   

        .public-wrapper .form-header h2 {
            width: 100%;
            color: var(--text-main);
            margin: 10px 0 8px 0;
            font-size: 1.8rem;
            font-weight: 800;
        }

        .public-wrapper .form-header p {
            margin-left: auto !important;
            margin-right: auto !important;
            display: block !important;
        }

    .public-wrapper .header-icon {
        margin: 0 0 15px 0 !important; /* Margines tylko na dole, by odsunąć od napisu */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .public-wrapper .form-group label {
        color: var(--text-muted);
        font-weight: 700;
        margin-bottom: 8px;
        display: block;
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .public-wrapper .neu-input {
        padding: 14px 15px !important;
        font-weight: 500;
        resize: none;
        font-family: inherit;
    }

    .public-wrapper .form-row {
        align-items: flex-start;
    }

/* POZOSTAŁE STYLE SPECYFICZNE DLA WIDOKU PUBLICZNEGO */
.neu-card-centered {
    background: var(--bg-color);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 20px 20px 60px var(--shadow-dark), -20px -20px 60px var(--shadow-light);
    text-align: center;
    color: var(--text-main);
    width: 100%;
    max-width: 500px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.error-icon {
    color: var(--color-red);
}

.success-icon {
    color: var(--color-green);
}

.form-section {
    background: rgba(255, 255, 255, 0.3);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
}

.public-wrapper .section-title {
    color: var(--color-blue);
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 600;
}

.password-reset-inline {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    white-space: nowrap;
}

.password-reset-inline-link {
    margin-left: 0 !important;
    white-space: nowrap;
}

.password-reset-modal-card {
    border-radius: 24px;
    width: 520px;
    max-width: 95vw;
    padding: 34px;
}

.password-reset-header {
    text-align: center;
    margin-bottom: 16px;
}

.password-reset-header-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    background: var(--bg-color);
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.password-reset-header h3 {
    margin: 0 0 8px;
    color: #3d4468;
    font-size: 1.45rem;
    font-weight: 800;
}

.password-reset-header p {
    margin: 0;
    color: #6c7293;
    line-height: 1.45;
}

.password-reset-form-group {
    margin-bottom: 12px;
}

.password-reset-inline-error {
    font-size: 0.9rem;
    color: #ff3b5c;
    text-align: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.password-reset-input {
    position: relative;
    background: #e0e5ec;
    border-radius: 16px;
    box-shadow: inset 5px 5px 10px #bec3cf, inset -5px -5px 10px #ffffff;
    display: flex;
    align-items: center;
    min-height: 58px;
    overflow: hidden;
    transform: translateZ(0);
}

    .password-reset-input input {
        width: 100%;
        height: 100%;
        background: transparent;
        border: none;
        padding: 16px 16px;
        margin: 0;
        color: #3d4468;
        font-size: 1rem;
        font-weight: 500;
        outline: none;
        box-sizing: border-box;
    }

    .password-reset-input label {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translate3d(0, -50%, 0) scale(1);
        transform-origin: left top;
        color: #9499b7;
        font-size: 0.95rem;
        pointer-events: none;
        will-change: transform, color, opacity;
        transition: transform 0.22s ease, color 0.22s ease, opacity 0.22s ease;
        opacity: 0.98;
    }

    .password-reset-input input:focus + label,
    .password-reset-input.has-value label {
        transform: translate3d(0, -22px, 0) scale(0.8);
        color: #4a90e2;
        font-weight: 700;
        opacity: 1;
    }

.password-reset-actions {
    display: flex;
    gap: 10px;
}

.password-reset-actions .neu-btn-large {
    flex: 1;
}

.password-reset-cancel {
    background: #e0e5ec;
    color: #6c7293;
}

.password-reset-submit {
    background: #4a90e2;
    color: #fff;
    box-shadow: 8px 8px 18px rgba(74, 144, 226, 0.35), -6px -6px 12px #ffffff;
}

.password-reset-result-card {
    width: 500px;
    max-width: 94vw;
    padding: 34px;
    border-radius: 26px;
    text-align: center;
}

.password-reset-result-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

.password-reset-result-icon.success {
    color: var(--color-green);
}

.password-reset-result-icon.error {
    color: var(--color-red);
}

.password-reset-result-title {
    margin: 0 0 10px;
    color: #3d4468;
    font-size: 1.4rem;
    font-weight: 800;
}

.password-reset-result-message {
    margin: 0 0 20px;
    color: #6c7293;
    line-height: 1.5;
}

.password-reset-ok {
    min-width: 150px;
    margin: 0 auto;
    background: #4a90e2;
    color: #fff;
    box-shadow: 8px 8px 18px rgba(74, 144, 226, 0.35), -6px -6px 12px #ffffff;
}

.change-password-modal-card {
    width: 620px;
    max-width: 95vw;
    padding: 42px;
}

.change-password-modal-icon-wrap {
    margin-bottom: 22px;
    color: #4a90e2;
    display: flex;
    justify-content: center;
}

.change-password-modal-icon {
    background: #e0e5ec;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 8px 8px 16px #bec3cf, -8px -8px 16px #ffffff;
}

.change-password-modal-title {
    color: #3d4468;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.7rem;
    font-weight: 800;
    text-align: center;
}

.change-password-modal-subtitle {
    color: #6c7293;
    margin-bottom: 30px;
    font-size: 0.97rem;
    line-height: 1.5;
    text-align: center;
}

.change-password-form-group {
    text-align: left;
    margin-bottom: 18px;
}

.change-password-form-group-last {
    margin-bottom: 28px;
}

.change-password-label {
    color: #6c7293;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.change-password-input {
    font-size: 1rem;
    padding: 14px 18px;
}

.change-password-validation {
    color: #ff3b5c;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.validation-message {
    color: #ff3b5c;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.change-password-error-message {
    margin-top: 0;
    margin-bottom: 18px !important;
    font-size: 1rem;
}

.change-password-actions {
    display: flex;
    gap: 20px;
}

.change-password-cancel,
.change-password-submit {
    flex: 1;
    padding: 15px 0;
    font-size: 1rem;
}

.change-password-cancel {
    color: #9499b7;
}

.change-password-submit {
    background: #4a90e2 !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 8px 8px 18px rgba(74, 144, 226, 0.35), -6px -6px 12px #ffffff;
}

.change-password-submit:hover {
    background: #3f82cf !important;
    color: #ffffff !important;
}

.mfa-codes-modal-card {
    width: 900px;
    max-width: 96vw;
    padding: 40px;
}

.mfa-codes-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.mfa-codes-icon {
    background: #e0e5ec;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 6px 6px 12px #bec3cf, -6px -6px 12px #ffffff;
    color: #4a90e2;
}

.mfa-codes-title {
    margin-top: 0;
    text-align: center;
    color: #3d4468;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.mfa-codes-subtitle {
    color: #6c7293;
    text-align: center;
    margin: 0 0 16px;
    font-size: 0.98rem;
    line-height: 1.45;
}

.mfa-codes-counter {
    padding: 6px 0 10px;
    margin-bottom: 16px;
    color: #3d4468;
    font-weight: 700;
    text-align: center;
}

.mfa-codes-generated-panel {
    padding: 4px 0 8px;
    margin-bottom: 16px;
}

.mfa-codes-generated-title {
    color: #4a90e2;
    font-weight: 700;
    margin-bottom: 10px;
}

.mfa-codes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.mfa-code-item {
    font-family: monospace;
    font-weight: 800;
    font-size: 1.1rem;
    color: #3d4468;
    background: #e0e5ec;
    border-radius: 10px;
    padding: 13px 10px;
    text-align: center;
    letter-spacing: 2px;
    box-shadow: inset 3px 3px 6px #c4c9d4, inset -3px -3px 6px #ffffff;
}

.mfa-codes-download-wrap {
    display: flex;
    margin-top: 12px;
}

.mfa-codes-download-btn {
    width: 100%;
    color: #4a90e2;
}

.mfa-codes-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.mfa-codes-regenerate-btn {
    background: #4a90e2;
    color: #ffffff;
}

.mfa-codes-close-btn {
    background: #e0e5ec;
    color: #6c7293;
}

    .custom-checkbox input {
        display: none;
    }

.checkbox-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--bg-color);
    box-shadow: inset 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-checkbox input:checked + .checkbox-box {
    background: var(--color-green);
}

    .custom-checkbox input:checked + .checkbox-box::after {
        content: '✓';
        color: white;
        font-weight: bold;
    }

.neu-submit-btn, .neu-submit-btn-blue {
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px 45px;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neu-submit-btn {
    background: var(--color-green);
    box-shadow: 6px 6px 14px rgba(0, 200, 150, 0.3), -6px -6px 14px var(--shadow-light);
}

    .neu-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 8px 8px 20px rgba(0, 200, 150, 0.4);
    }

.neu-submit-btn-blue {
    background: var(--color-blue);
    box-shadow: 6px 6px 14px rgba(74, 144, 226, 0.3), -6px -6px 14px var(--shadow-light);
}

    .neu-submit-btn-blue:hover {
        transform: translateY(-2px);
        box-shadow: 8px 8px 20px rgba(74, 144, 226, 0.4);
    }

    .neu-submit-btn:disabled, .neu-submit-btn-blue:disabled {
        background: #a6abbd;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes pop {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-anim {
    animation: pop 0.4s ease-out forwards;
}

@media (max-width: 900px) {
    .public-wrapper .form-grid {
        grid-template-columns: 1fr;
    }

    .public-wrapper .full-width {
        grid-column: span 1;
    }

    .public-wrapper .form-row {
        flex-direction: column;
    }
}
.pdf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); /* delikatne przyciemnienie — modal wyróżnia się od strony */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 12001;
    animation: fadeIn 0.3s ease;
}

.pdf-modal-card {
    background: #e0e5ec;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 10px 10px 20px #bec3cf, -10px -10px 20px #ffffff;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.3s ease;
}

.pdf-modal-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #3d4468;
    margin-top: 0;
    margin-bottom: 30px;
}

.pdf-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdf-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .pdf-form-group label {
        font-size: 0.95rem;
        font-weight: 600;
        color: #6c7293;
        margin-left: 10px;
    }

.pdf-modal-input {
    background: #e0e5ec;
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    color: #3d4468;
    outline: none;
    box-shadow: inset 5px 5px 10px #bec3cf, inset -5px -5px 10px #ffffff;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

    .pdf-modal-input:focus {
        box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
    }

.pdf-modal-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.pdf-btn-cancel {
    flex: 1;
    background: #e0e5ec;
    border: none;
    border-radius: 15px;
    padding: 12px 0;
    color: #9499b7;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 6px 6px 14px #bec3cf, -6px -6px 14px #ffffff;
    transition: all 0.2s ease;
}

    .pdf-btn-cancel:hover {
        color: #3d4468;
        transform: translateY(-2px);
    }

.pdf-btn-generate {
    flex: 1;
    background: #e0e5ec;
    border: none;
    border-radius: 15px;
    padding: 12px 0;
    color: #e74c3c;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 6px 6px 14px #bec3cf, -6px -6px 14px #ffffff;
    transition: all 0.2s ease;
}

    .pdf-btn-generate:hover {
        transform: translateY(-2px);
        box-shadow: 8px 8px 18px #bec3cf, -8px -8px 18px #ffffff;
    }

    .pdf-btn-generate:active {
        transform: translateY(0);
        box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
.ticket-edit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
}

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

.chat-messages-area::-webkit-scrollbar {
    width: 8px;
}

.chat-messages-area::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-area::-webkit-scrollbar-thumb {
    background-color: #bec3cf;
    border-radius: 10px;
}

.chat-bubble {
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 85%;
    background: #e0e5ec;
    box-shadow: 6px 6px 14px #bec3cf, -6px -6px 14px #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .chat-bubble.user {
        align-self: flex-start;
        border-bottom-left-radius: 5px;
    }

    .chat-bubble.admin {
        align-self: flex-end;
        border-bottom-right-radius: 5px;
        border: 1px solid rgba(61, 68, 104, 0.2);
    }

.chat-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(190, 195, 207, 0.4);
    padding-bottom: 5px;
    font-size: 0.85rem;
}

.chat-bubble.user .author {
    color: #6c7293;
    font-weight: 700;
}

.chat-bubble.admin .author {
    color: #3d4468;
    font-weight: 800;
}

.chat-meta .time {
    color: #aab;
    font-size: 0.75rem;
}

.chat-content {
    color: #3d4468;
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
}



@keyframes pulse-dark {
    0% {
        box-shadow: 0 0 0 0 rgba(61, 68, 104, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(61, 68, 104, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(61, 68, 104, 0);
    }
}

/* Dodatkowe kolory filtrów statusów */
.action-filters .neu-btn-small.active-new {
    color: #4338ca;
    box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
}

.action-filters .neu-btn-small.active-inprogress {
    color: #d97706;
    box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
}

.action-filters .neu-btn-small.active-waiting {
    color: #0284c7;
    box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
}

.action-filters .neu-btn-small.active-resolved {
    color: #15803d;
    box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
}
/* Kropka dla dużych kafelków (Admin/Klient) */
.notification-dot {
    position: absolute;
    top: 20px; /* Odstęp od górnej krawędzi kafelka */
    right: 20px; /* Odstęp od prawej krawędzi kafelka */
    width: 18px; /* Delikatnie powiększona */
    height: 18px;
    background-color: #ff3b5c;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 59, 92, 0.6);
    animation: pulse-red 2s infinite;
    border: 2px solid #e0e5ec;
}

/* Kropka dla małego przycisku (Recepcja) */
.notification-dot-small {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background-color: #ff3b5c;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 59, 92, 0.6);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 59, 92, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 92, 0);
    }
}
/* ==========================================================================
   1. BAZA I BLOKADA EKRANU (Anti-Scroll)
   ========================================================================== */
* {
    box-sizing: border-box;
}

.ex-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e0e5ec;
    z-index: 12001;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden !important;
    touch-action: none !important; /* Blokada przeciągania całego ekranu */
}

.ex-modal-content {
    width: 100vw;
    height: 100vh;
    padding: clamp(10px, 3vh, 30px);
    background: #e0e5ec;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Zmieniono z center na flex-start  */
    align-items: center;
    overflow: hidden !important;
    position: relative;
}

.ex-lang-switcher {
    position: absolute;
    top: clamp(12px, 2.2vh, 24px);
    right: clamp(12px, 2.2vh, 24px);
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    background: #e0e5ec;
    border-radius: 999px;
    box-shadow: inset 4px 4px 8px #bec3cf, inset -4px -4px 8px #ffffff;
    z-index: 5;
}.ex-lang-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    background: #e0e5ec;
    color: #6c7293;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    min-width: 56px;
    border-radius: 999px;
    transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 4px 4px 8px #bec3cf, -4px -4px 8px #ffffff;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.ex-lang-btn:hover {
    color: #3d4468;
}

.ex-lang-btn-active {
    color: #4a90e2 !important;
    font-weight: 900;
    box-shadow: inset 4px 4px 8px #bec3cf, inset -4px -4px 8px #ffffff;
}

/* Wymuszenie identycznych rozmiarów przycisków „Wróć" i „Dalej/Zapisz" */
.ex-nav-equal .ex-neu-btn-small {
    flex: 1 1 0;
    min-width: clamp(140px, 22vw, 220px);
    max-width: 280px;
}

/* Powitanie + zegar wewnątrz modala – widoczne na każdym kroku */
.ex-modal-content > .ex-welcome-header {
    position: absolute;
    top: clamp(16px, 3vh, 32px);
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 2 * (clamp(20px, 3vw, 40px) + 180px)));
    justify-content: center;
    margin: 0;
    z-index: 4;
}

@media (max-width: 900px) {
    .ex-modal-content > .ex-welcome-header {
        width: calc(100% - 2 * clamp(20px, 3vw, 40px));
        top: calc(clamp(16px, 3vh, 32px) + 70px);
    }
}

/* Pasek postępu (stepper) – widoczny na wszystkich krokach po wyborze operacji */
.ex-stepper {
    position: absolute;
    top: clamp(110px, 15vh, 160px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    padding: 8px 18px;
    background: #e0e5ec;
    border-radius: 999px;
    box-shadow: 6px 6px 12px #bec3cf, -6px -6px 12px #ffffff;
    max-width: calc(100% - clamp(40px, 6vw, 80px));
    animation: ex-stepper-in 320ms cubic-bezier(.2,.9,.3,1.4);
}

@keyframes ex-stepper-in {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

.ex-stepper-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9499b7;
    font-size: clamp(0.85rem, 1.5vh, 1rem);
    font-weight: 700;
    transition: color 220ms ease;
}

.ex-stepper-circle {
    width: clamp(26px, 3.6vh, 34px);
    height: clamp(26px, 3.6vh, 34px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e0e5ec;
    box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
    color: #9499b7;
    font-weight: 900;
    font-size: 0.95em;
    transition: all 260ms cubic-bezier(.2,.9,.3,1.4);
}

.ex-stepper-circle svg {
    width: 60%;
    height: 60%;
}

.ex-stepper-label {
    line-height: 1;
    white-space: nowrap;
    transition: color 220ms ease, font-weight 220ms ease;
}

.ex-stepper-bar {
    height: 3px;
    width: clamp(24px, 5vw, 60px);
    border-radius: 3px;
    background: linear-gradient(90deg, #cfd5e0, #cfd5e0);
    position: relative;
    overflow: hidden;
    transition: background 320ms ease;
}

.ex-stepper-bar-done {
    background: linear-gradient(90deg, #00c896, #4a90e2);
}

/* Stany */
.ex-stepper-active .ex-stepper-circle {
    background: linear-gradient(135deg, #4a90e2 0%, #00c896 100%);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(74, 144, 226, 0.35), inset 1px 1px 0 rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
    animation: ex-stepper-pulse 1600ms ease-in-out infinite;
}

.ex-stepper-active .ex-stepper-label {
    color: #3d4468;
    font-weight: 800;
}

.ex-stepper-done .ex-stepper-circle {
    background: linear-gradient(135deg, #00c896 0%, #4a90e2 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 200, 150, 0.32);
}

.ex-stepper-done .ex-stepper-label {
    color: #6c7293;
    font-weight: 700;
}

@keyframes ex-stepper-pulse {
    0%, 100% { box-shadow: 0 6px 14px rgba(74, 144, 226, 0.35), 0 0 0 0 rgba(74, 144, 226, 0.0); }
    50%      { box-shadow: 0 6px 14px rgba(74, 144, 226, 0.45), 0 0 0 8px rgba(74, 144, 226, 0.12); }
}

@media (max-width: 720px) {
    .ex-stepper-label {
        display: none;
    }

    .ex-stepper {
        gap: 8px;
        padding: 8px 14px;
    }
}

.ex-main-welcome {
    color: #3d4468;
}

.ex-main-divider {
    margin: 0 12px;
    color: #b6bdd0;
}

.ex-step-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Zmieniono z space-evenly na flex-start  */
    align-items: center;
    padding-top: clamp(150px, 20vh, 220px);
    gap: clamp(15px, 4vh, 40px); /* Zapewnia stałe odstępy między elementami  */
    height: auto;
    min-height: 100%;
}

/* ==========================================================================
   2. TYPOGRAFIA & OPTYMALIZACJA DOTYKU
   ========================================================================== */
.ex-admin-card, .ex-employee-card, .ex-exit-card,
.ex-neu-btn-small, .ex-custom-select, .ex-custom-option, .ex-clear-sig-btn,
.ex-lang-btn, .ex-kb-key {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    cursor: pointer;
}

/* Natychmiastowy feedback przy dotyku / rysiku – bez 100 ms tranzycji */
.ex-admin-card, .ex-employee-card, .ex-exit-card, .ex-neu-btn-small,
.ex-lang-btn, .ex-kb-key, .ex-custom-option, .ex-clear-sig-btn {
    transition: none !important;
    will-change: transform;
}

    .ex-admin-card:active, .ex-employee-card:active, .ex-exit-card:active,
    .ex-neu-btn-small:active, .ex-lang-btn:active, .ex-kb-key:active,
    .ex-custom-option:active, .ex-clear-sig-btn:active {
        transition: none !important;
    }

.ex-step-title {
    text-align: center;
    color: #3d4468;
    font-weight: 800;
    font-size: clamp(1.8rem, 4.5vh, 2.5rem);
    margin: 0;
}

/* ==========================================================================
   2b. EKRAN GŁÓWNY (powitanie, zegar, RODO)
   ========================================================================== */
.ex-main-step {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: clamp(90px, 12vh, 150px) !important;
    padding-bottom: 40px;
}

.ex-main-title {
    margin-top: clamp(40px, 7vh, 90px);
}

.ex-main-step .ex-step-title {
    margin-top: clamp(40px, 7vh, 90px);
}

.ex-category-step .ex-step-title {
    margin-top: clamp(54px, 8vh, 64px);
}

.ex-welcome-header {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(80px, 16vw, 260px);
    flex-wrap: wrap;
    padding: 0 clamp(8px, 2vw, 24px);
    text-align: center;
}

.ex-welcome-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #3d4468;
    text-align: center;
    flex: 0 1 auto;
}

.ex-welcome-greeting {
    font-size: clamp(1.6rem, 3.8vh, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #3d4468;
}

.ex-welcome-building {
    margin-left: 8px;
    color: #4a90e2;
}

.ex-welcome-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c7293;
    font-size: clamp(1rem, 1.7vh, 1.15rem);
    font-weight: 500;
}

.ex-welcome-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #3d4468;
    min-width: 260px;
    font-variant-numeric: tabular-nums;
    /* Delikatne przesunięcie zegara w prawo. */
    transform: translateX(clamp(12px, 2vw, 30px));
}

.ex-clock-time {
    font-family: 'Segoe UI', 'Inter', monospace;
    font-size: clamp(2rem, 4.5vh, 2.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 2px;
    color: #3d4468;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.ex-clock-date {
    margin-top: 6px;
    font-size: clamp(0.95rem, 1.6vh, 1.05rem);
    color: #6c7293;
    font-weight: 500;
}

@media (max-width: 720px) {
    .ex-welcome-header {
        justify-content: center;
        text-align: center;
    }

    .ex-welcome-block,
    .ex-welcome-clock {
        text-align: center;
        align-items: center;
    }

    .ex-welcome-clock {
        transform: none;
    }
}

/* RODO – bez tła, czyste typo */
.ex-rodo-clause {
    width: 100%;
    max-width: 1000px;
    margin: 8px auto 12px;
    padding: 0 clamp(8px, 2vw, 24px);
    color: #3d4468;
    font-size: clamp(0.92rem, 1.55vh, 1rem);
    line-height: 1.55;
    background: transparent;
    box-shadow: none;
    border: none;
}

.ex-rodo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(61, 68, 104, 0.15);
}

.ex-rodo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4a90e2;
    line-height: 1;
}

.ex-rodo-icon svg {
    width: clamp(22px, 2.6vh, 28px);
    height: clamp(22px, 2.6vh, 28px);
}

.ex-rodo-title {
    margin: 0;
    font-size: clamp(1.05rem, 2vh, 1.25rem);
    font-weight: 800;
    color: #3d4468;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ex-rodo-clause p {
    margin: 0 0 10px;
}

.ex-rodo-clause ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ex-rodo-clause li {
    position: relative;
    padding: 4px 0 4px 22px;
    margin-bottom: 4px;
}

.ex-rodo-clause li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.ex-rodo-clause strong {
    color: #3d4468;
    font-weight: 700;
}

.ex-rodo-highlight {
    color: #4a90e2;
    font-weight: 800;
    white-space: nowrap;
}

.ex-rodo-clause em {
    color: #6c7293;
    font-style: normal;
    font-weight: 500;
}

/* ==========================================================================
   3. GŁÓWNE KAFELKI (Menu & Kategorie)
   ========================================================================== */
.ex-selection-grid {
    display: flex;
    justify-content: center;
    gap: clamp(15px, 3vw, 30px);
    width: 100%;
    max-width: 900px;
    flex: 1;
    max-height: 40vh;
}

.ex-category-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(5px, 3vw, 30px);
    width: 100%;
    max-width: 800px;
    max-height: none !important;
}

    .ex-category-grid .ex-admin-card {
        width: 100%;
        max-width: none;
        min-height: clamp(220px, 22vh, 290px) !important;
        padding: clamp(20px, 3vh, 35px) 15px !important;
        height: auto;
    }

.ex-category-step .ex-nav-button-container {
    margin-top: 20px !important;
}

.ex-admin-card {
    background: #e0e5ec;
    border-radius: clamp(15px, 3vh, 30px);
    padding: clamp(15px, 2.5vh, 30px) 15px;
    box-shadow: 12px 12px 24px #bec3cf, -12px -12px 24px #ffffff;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
    flex: 1;
    min-width: 150px;
    max-width: 400px;
    height: 100%;
    min-height: 0; /* Skalowanie w pionie */
}

    /* .ex-pressing sterowane z JS (kiosk-idle.js) zamiast :active — eliminuje "ghost"
       wciśnięcie karty pojawiającej się pod wciąż trzymanym palcem po zmianie ekranu. */
    .ex-admin-card.ex-pressing {
        transform: scale(0.97);
        box-shadow: inset 6px 6px 12px #bec3cf, inset -6px -6px 12px #ffffff;
    }

    .ex-admin-card h3 {
        font-size: clamp(1.1rem, 2.5vh, 1.6rem);
        font-weight: 800;
        color: #3d4468;
        margin: clamp(5px, 1vh, 10px) 0 0 0;
        text-align: center;
    }

    .ex-admin-card p {
        font-size: clamp(0.8rem, 1.8vh, 1.1rem);
        color: #9499b7;
        margin: 5px 0 0 0;
        text-align: center;
    }

.ex-admin-icon {
    /* Rozmiar koła */
    width: clamp(50px, 10vh, 80px);
    height: clamp(50px, 10vh, 80px);
    border-radius: 50%;
    /* Centrowanie */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Neumorfizm */
    background: #e0e5ec;
    box-shadow: inset 6px 6px 12px #bec3cf, inset -6px -6px 12px #ffffff;
    margin-bottom: 10px;
    flex-shrink: 0; /* Ważne: zapobiega zgniataniu koła */
    overflow: hidden;
}

    .ex-admin-icon svg {
        /* Zamiast paddingu w rodzicu, kontrolujemy rozmiar tutaj */
        width: 65%;
        height: 65%;
        /* Upewniamy się, że kolor jest dziedziczony */
        stroke: currentColor;
        fill: none; /* Większość Twoich ikon to stroke (obramowanie) */

        display: block;
        pointer-events: none;
    }
/* Kolory dla ikon kafelków */
.ex-icon-green {
    color: #00c896;
    background: rgba(0, 200, 150, 0.1);
}

.ex-icon-red {
    color: #ff3b5c;
    background: rgba(255, 59, 92, 0.1);
}

.ex-icon-purple {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}

.ex-icon-blue {
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

.ex-qr-scan-wrapper {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.ex-qr-step .ex-form-container {
    max-width: 920px;
    justify-content: flex-start;
}

.ex-qr-form {
    align-items: center;
    gap: 14px;
}

.ex-qr-hint {
    margin: 0;
    color: #6c7293;
    font-size: clamp(1rem, 2.1vh, 1.2rem);
    font-weight: 700;
    text-align: center;
}

.ex-qr-meta {
    color: #9499b7;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.8vh, 1rem);
    text-align: center;
}

.ex-qr-meta strong {
    color: #3d4468;
}

.ex-qr-error {
    margin-top: 6px;
    margin-bottom: 0 !important;
    max-width: 780px;
}

.ex-qr-scan-camera-shell {
    width: 100%;
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: inset 6px 6px 12px #bec3cf, inset -6px -6px 12px #ffffff;
    padding: 16px;
    position: relative;
}

.ex-qr-video {
    width: 100%;
    height: clamp(300px, 42vh, 460px);
    border-radius: 14px;
    background: #000;
    object-fit: cover;
}

.ex-qr-scan-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.ex-qr-scan-status {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    max-width: calc(100% - 40px);
    pointer-events: none;
}

/* ==========================================================================
   4. FORMULARZE, INPUTY I SELECTY
   ========================================================================== */
.ex-form-container {
    width: 100%;
    max-width: 800px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ex-form-group {
    margin-bottom: clamp(10px, 2vh, 20px);
}

/* Wariant 2-kolumnowy dla ekranu gosc / klucz – mniej miejsca w pionie */
.ex-form-twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 2vw, 24px);
    align-items: start;
    width: 100%;
}

.ex-form-twocol .ex-form-group {
    margin-bottom: 0;
}

@media (max-width: 720px) {
    .ex-form-twocol {
        grid-template-columns: 1fr;
    }
}

    .ex-form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 700;
        color: #7c819d;
        font-size: clamp(1.2rem, 2.5vh, 1.6rem);
        margin-left: 10px;
    }

.ex-neu-input, .ex-custom-select {
    width: 100%;
    padding: clamp(12px, 2.5vh, 20px);
    border-radius: clamp(15px, 2.5vh, 25px);
    border: none;
    background: #e0e5ec;
    box-shadow: inset 6px 6px 12px #bec3cf, inset -6px -6px 12px #ffffff;
    font-size: clamp(1.2rem, 2.5vh, 1.8rem);
    color: #3d4468;
    outline: none;
}

.ex-capitalize-input {
    text-transform: capitalize;
}

.ex-custom-select {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ex-neu-input-error,
.ex-custom-select-error {
    box-shadow: inset 6px 6px 12px #f1b4be, inset -6px -6px 12px #ffe1e6 !important;
    color: #b9304a !important;
}

.ex-field-error {
    display: flex;
    align-items: flex-start; /* ⚠ trzyma się 1. wiersza — przy zawijaniu tekstu nie spada poniżej */
    gap: 6px;
    margin-top: 6px;
    padding: 4px 2px 0;
    color: #ff3b5c;
    font-size: clamp(0.85rem, 1.6vh, 1rem);
    font-weight: 600;
    line-height: 1.2;
}

.ex-field-error::before {
    content: '⚠';
    font-size: 1em;
    line-height: 1.2; /* ta sama wysokość wiersza co tekst → ⚠ w jednej linii z komunikatem */
    color: #ff3b5c;
}

/* Informacja o trwającej weryfikacji PIN-u (natychmiastowy feedback po „OK"). */
.ex-pin-verifying {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 4px 2px 0;
    color: #4a90e2;
    font-size: clamp(0.85rem, 1.6vh, 1rem);
    font-weight: 600;
    line-height: 1.2;
}

    .ex-pin-verifying::before {
        content: '';
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 2px solid rgba(74, 144, 226, 0.35);
        border-top-color: #4a90e2;
        animation: exPinSpin 0.7s linear infinite;
    }

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

.ex-field-error-center {
    justify-content: center;
    text-align: center;
}

.ex-sig-wrapper-error {
    box-shadow: 0 0 0 2px #ff3b5c, 6px 6px 12px #bec3cf, -6px -6px 12px #ffffff;
    border-radius: 18px;
}

/* Ujednolicony nagłówek ekranów podpisu (gość, klucz/karta, firma serwisowa, wyjście) */
.ex-sig-title {
    color: #3d4468 !important;
    margin: clamp(20px, 4vh, 50px) 0 clamp(8px, 1.6vh, 16px) 0 !important;
    transform: none !important;
}

.ex-sig-info {
    width: 100%;
    max-width: 720px;
    margin: 0 auto clamp(14px, 2.5vh, 24px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    color: #3d4468;
}

.ex-sig-info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    font-size: clamp(1.1rem, 2.4vh, 1.5rem);
    line-height: 1.25;
}

.ex-sig-info-label {
    color: #6c7293;
    font-weight: 600;
}

/* Wartości pól na ekranie podpisu (imię i nazwisko, firma/cel, klucz/karta itd.)
   — jednolita czcionka i fioletowy kolor. */
.ex-sig-info-value,
.ex-sig-info-value-sub {
    color: #9b59b6;
    font-weight: 800;
}

.ex-pin-input-error {
    box-shadow: inset 4px 4px 8px #f1b4be, inset -4px -4px 8px #ffe1e6 !important;
    color: #b9304a !important;
}

.ex-pin-input-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 6px;
    text-align: center;
}

.ex-pin-input {
    width: 100%;
    text-align: center;
    font-size: 2.2rem;
    padding: 10px;
    border-radius: 15px;
    border: none;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #bec3cf, -4px -4px 8px #ffffff;
    color: #3d4468;
    letter-spacing: 15px;
    /* Kompensacja letter-spacing – ostatni znak nie ma sąsiada po prawej, więc tekst wizualnie ucieka w lewo */
    text-indent: 15px;
    box-sizing: border-box;
    /* Pole jest tylko PODGLĄDEM PIN-u (wpisywanie idzie przez klawiaturę ekranową).
       Wyłączamy interakcję, więc dotknięcie pola nie ustawia focusu → przeglądarka nie
       podświetla go na żółto/pomarańczowo (autofill/focus) ani nie pokazuje błysku dotyku. */
    pointer-events: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    caret-color: transparent;
}

.ex-pin-input:focus {
    outline: none;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #bec3cf, -4px -4px 8px #ffffff;
}

/* Pole PIN to type=password, więc przeglądarki (Chrome/Edge) podświetlają je żółtym
   tłem autofill już przy wejściu na ekran. Neutralizujemy je, zachowując neumorficzny
   wygląd — tak samo jak pola logowania. */
.ex-pin-input:-webkit-autofill,
.ex-pin-input:-webkit-autofill:hover,
.ex-pin-input:-webkit-autofill:focus,
.ex-pin-input:-webkit-autofill:active {
    -webkit-box-shadow: inset 4px 4px 8px #bec3cf, inset -4px -4px 8px #ffffff, 0 0 0 1000px #e0e5ec inset !important;
    -webkit-text-fill-color: #3d4468 !important;
    caret-color: #3d4468;
}

/* Stałe miejsce na komunikat błędu – nigdy nie nachodzi na klawiaturę */
.ex-pin-error-slot {
    min-height: clamp(28px, 4vh, 36px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ex-pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 auto 15px;
    width: 100%;
    max-width: 320px;
}

.ex-pin-key {
    padding: 15px 0 !important;
    font-size: 1.5rem !important;
    margin-top: 0 !important;
    transition: none !important;
    will-change: transform;
}

.ex-pin-key-clear {
    font-size: 1.3rem !important;
    color: #e74c3c;
}

.ex-pin-key-ok {
    font-size: 1.3rem !important;
    color: #00c896;
}

.ex-pin-key-pressed {
    background: #4a90e2 !important;
    color: #ffffff !important;
    transform: scale(0.92);
    box-shadow: inset 6px 6px 12px rgba(0, 0, 0, 0.3), inset -6px -6px 12px rgba(255, 255, 255, 0.2) !important;
}

/* Modal PIN-u dla "Powrót do panelu" */
.ex-pin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 68, 104, 0.6);
    /* bez backdrop-filter: blur() – kosztowne na tablecie kiosku; mocniejsze przyciemnienie zamiast rozmycia */
    z-index: 12500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vh, 32px);
    animation: ex-pin-modal-fade 180ms ease-out;
}

.ex-pin-modal {
    width: 100%;
    max-width: 360px;
    background: #e0e5ec;
    border-radius: clamp(18px, 3vh, 28px);
    padding: clamp(20px, 3vh, 30px);
    box-shadow: 12px 12px 28px rgba(0, 0, 0, 0.25), -6px -6px 14px #ffffff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    animation: ex-pin-modal-pop 240ms cubic-bezier(.2,.9,.3,1.4);
}

@keyframes ex-pin-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ex-pin-modal-pop {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.ex-qr-field-error {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.ex-dropdown-wrapper {
    position: relative;
}

.ex-custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #e0e5ec;
    border-radius: 20px;
    box-shadow: 10px 10px 20px #bec3cf, -10px -10px 20px #ffffff;
    z-index: 100;
    max-height: 30vh;
    overflow-y: auto;
    margin-top: 5px;
}

.ex-custom-option {
    padding: clamp(10px, 2vh, 15px) 20px;
    font-size: clamp(1.1rem, 2vh, 1.6rem);
    color: #3d4468;
    font-weight: 600;
    border-bottom: 1px solid #d1d9e6;
}

.ex-other-option {
    color: #4a90e2;
    font-style: italic;
}

.ex-option-disabled {
    color: #999;
    cursor: default;
}

.ex-dropdown-spacer {
    height: 30vh;
}

/* ==========================================================================
   5. PRZYCISKI
   ========================================================================== */
.ex-nav-button-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
}

.ex-flex-between {
    justify-content: space-between;
    gap: 2vw;
}

.ex-neu-btn-small {
    background: #e0e5ec;
    border: none;
    border-radius: clamp(15px, 3vh, 30px);
    padding: clamp(12px, 2.5vh, 20px) clamp(20px, 4vw, 50px);
    color: #3d4468;
    font-weight: 800;
    font-size: clamp(1.1rem, 2.5vh, 1.6rem);
    box-shadow: 8px 8px 16px #bec3cf, -8px -8px 16px #ffffff;
    transition: transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ex-neu-btn-small.ex-pressing {
        transform: scale(0.95);
        box-shadow: inset 4px 4px 8px #bec3cf, inset -4px -4px 8px #ffffff;
    }

.ex-btn-full {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.ex-text-red {
    color: #ff3b5c;
}

.ex-text-green {
    color: #00c896;
}

.ex-margin-top {
    margin-top: clamp(15px, 3vh, 30px);
}

/* ==========================================================================
   6. RODO (GDPR) BOX
   ========================================================================== */
.ex-gdpr-box {
    width: 100%;
    max-width: 950px;
    padding: clamp(10px, 2vh, 20px);
    background: #e0e5ec;
    border-radius: clamp(10px, 2vh, 20px);
    box-shadow: inset 5px 5px 10px #bec3cf, inset -5px -5px 10px #ffffff;
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 20px);
}

.ex-gdpr-icon {
    font-size: clamp(1.5rem, 4vh, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 8vh, 60px);
    height: clamp(40px, 8vh, 60px);
    border-radius: 50%;
    background: #e0e5ec;
    box-shadow: 4px 4px 8px #bec3cf, -4px -4px 8px #ffffff;
    color: #4a90e2;
    flex-shrink: 0;
}

.ex-gdpr-text {
    flex-grow: 1;
    color: #6c7293;
    font-size: clamp(0.85rem, 1.8vh, 1.1rem);
    line-height: 1.3;
    text-align: center;
    padding-right: clamp(10px, 4vw, 60px);
}

.ex-gdpr-pl {
    margin: 0 0 5px 0;
}

.ex-gdpr-en {
    margin: 0;
    font-size: 0.9em;
}

.ex-gdpr-text strong {
    color: #3d4468;
    white-space: nowrap;
}

/* ==========================================================================
   7. LISTY Z WEWNĘTRZNYM SCROLLEM (Pracownicy i Wyjścia)
   ========================================================================== */
.ex-employee-grid-container, .ex-exit-grid-container {
    width: 100%;
    max-width: 1000px;
    flex: 1;
    min-height: 0;
    overflow-y: auto; /* Jedyne miejsce gdzie dozwolony jest scroll */
    touch-action: pan-y;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.ex-employee-title {
    text-align: center;
    color: #9499b7;
    font-size: clamp(1.2rem, 2.5vh, 1.5rem);
    margin: 0 0 15px 0;
}

.ex-employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: clamp(10px, 2vw, 20px);
}

.ex-employee-card {
    background: #e0e5ec;
    border-radius: 15px;
    padding: 10px;
    border: none;
    box-shadow: 6px 6px 12px #bec3cf, -6px -6px 12px #ffffff;
    font-size: clamp(1rem, 2vh, 1.3rem);
    font-weight: 700;
    color: #3d4468;
    text-align: center;
    min-height: clamp(80px, 12vh, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}

    .ex-employee-card.ex-pressing {
        transform: scale(0.95);
        box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
        color: #4a90e2;
    }

.ex-exit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(15px, 2vw, 20px);
}

.ex-exit-card {
    background: #e0e5ec;
    border-radius: 20px; /* Delikatnie mniejsze zaokrąglenie, by pasowało do reszty */
    padding: clamp(10px, 2vh, 20px);
    box-shadow: 6px 6px 12px #bec3cf, -6px -6px 12px #ffffff; /* Złagodzony cień, identyczny jak w .ex-employee-card */
    display: flex;
    align-items: center;
    gap: 20px;
}

    .ex-exit-card.ex-pressing {
        transform: scale(0.98);
        box-shadow: inset 5px 5px 10px #bec3cf, inset -5px -5px 10px #ffffff;
    }

.ex-card-time {
    font-size: clamp(1.5rem, 3vh, 2rem);
    font-weight: 800;
    color: #ff3b5c;
    background: rgba(255, 59, 92, 0.1);
    padding: 10px;
    border-radius: 12px;
    min-width: 80px;
    text-align: center;
}

.ex-card-name {
    font-size: clamp(1.2rem, 2.5vh, 1.6rem);
    font-weight: 700;
    color: #3d4468;
}

.ex-card-target {
    font-size: clamp(0.9rem, 1.8vh, 1.2rem);
    color: #9499b7;
    margin-top: 2px;
}

.ex-empty-state {
    text-align: center;
    font-size: clamp(1.2rem, 3vh, 1.8rem);
    color: #9499b7;
    margin: auto;
}

.ex-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* ==========================================================================
   8. PODPIS (Signature Pad)
   ========================================================================== */
.ex-signature-info {
    text-align: center;
    color: #3d4468;
    font-size: clamp(1.4rem, 3vh, 1.8rem);
    margin: 0 0 clamp(10px, 2vh, 20px) 0;
}

    .ex-signature-info span {
        font-size: 0.8em;
        color: #9499b7;
    }

.ex-sig-wrapper {
    background: #e0e5ec;
    border-radius: clamp(15px, 3vh, 30px);
    height: clamp(200px, 40vh, 350px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 6px 6px 12px #bec3cf, inset -6px -6px 12px #ffffff;
    position: relative;
    width: 100%;
}

.ex-signature-pad {
    width: 100%;
    height: 100%;
}

.ex-clear-sig-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #e0e5ec;
    color: #ff3b5c;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 5px 5px 10px #bec3cf, -5px -5px 10px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ==========================================================================
   9. PIN KLAWIATURA I GENERATOR
   ========================================================================== */
.ex-pin-generated-wrapper {
    text-align: center;
    max-width: 600px;
}

.ex-success-icon {
    font-size: clamp(3rem, 8vh, 5rem);
    margin-bottom: 2vh;
}

.ex-success-title {
    color: #00c896;
    font-size: clamp(1.8rem, 4vh, 2.5rem);
    margin: 0 0 2vh 0;
}

.ex-success-subtitle {
    color: #3d4468;
    font-size: clamp(1.1rem, 2.5vh, 1.4rem);
    margin-bottom: 3vh;
    line-height: 1.4;
}

.ex-pin-display-box {
    background: #e0e5ec;
    padding: clamp(10px, 2vh, 20px);
    border-radius: 20px;
    box-shadow: inset 6px 6px 12px #bec3cf, inset -6px -6px 12px #ffffff;
    display: inline-block;
    margin-bottom: 4vh;
}

.ex-pin-number {
    font-size: clamp(2.5rem, 6vh, 4rem);
    font-weight: 800;
    color: #3d4468;
    font-family: monospace;
    letter-spacing: 10px;
}

.ex-pin-layout {
    display: flex;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    max-width: 900px;
    width: 100%;
    flex: 1;
}

.ex-pin-info-box {
    flex: 1;
    background: #e0e5ec;
    padding: clamp(15px, 3vh, 30px);
    border-radius: 20px;
    box-shadow: 8px 8px 16px #bec3cf, -8px -8px 16px #ffffff;
}

.ex-pin-icon {
    font-size: clamp(2rem, 5vh, 2.5rem);
    margin-bottom: 10px;
    color: #4a90e2;
}

.ex-pin-info-box h4 {
    color: #3d4468;
    font-size: clamp(1.1rem, 2.5vh, 1.3rem);
    margin: 0 0 5px 0;
}

.ex-pin-info-box p {
    color: #6c7293;
    font-size: clamp(0.9rem, 2vh, 1rem);
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.ex-pin-keypad-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ex-keypad-title {
    margin-bottom: 2vh;
}

.ex-pin-input-wrapper {
    margin-bottom: 2vh;
    width: 100%;
    max-width: 300px;
}

.ex-pin-input {
    width: 100%;
    text-align: center;
    font-size: clamp(1.8rem, 4vh, 2.2rem);
    padding: clamp(8px, 1.5vh, 10px);
    border-radius: 15px;
    border: none;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #bec3cf, -4px -4px 8px #ffffff;
    color: #3d4468;
    letter-spacing: 15px;
}

.ex-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1.5vh, 15px);
    margin-bottom: 2vh;
    width: 100%;
    max-width: 300px;
}

.ex-keypad-btn {
    padding: clamp(10px, 2vh, 15px) 0;
    font-size: clamp(1.2rem, 3vh, 1.5rem);
    border-radius: 15px;
}

/* ==========================================================================
   10. POTWIERDZENIA I BŁĘDY
   ========================================================================== */
.ex-confirm-box {
    text-align: center;
    max-width: 600px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: clamp(10px, 2vh, 18px) 0;
}

.ex-confirm-icon {
    font-size: clamp(3rem, 8vh, 5rem);
    margin-bottom: 2vh;
}

.ex-confirm-layout {
    margin: auto;
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 2vh, 20px);
}

.ex-confirm-icon-wrap {
    width: clamp(90px, 14vh, 140px);
    height: clamp(90px, 14vh, 140px);
    margin: 0 auto clamp(12px, 2vh, 20px) auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b59b6;
}

.ex-confirm-icon-svg {
    width: 100%;
    height: 100%;
}

.ex-confirm-name {
    color: #3d4468;
    margin: 0 0 1vh 0;
    font-size: clamp(1.5rem, 4vh, 2.5rem);
}

.ex-confirm-target {
    color: #9499b7;
    font-size: clamp(1.2rem, 3vh, 1.5rem);
    margin: 0 0 4vh 0;
}

.ex-confirm-text {
    color: #3d4468;
    font-size: clamp(1rem, 2.5vh, 1.2rem);
    margin-bottom: 3vh;
}

.ex-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(6px, 1.5vh, 14px);
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
}

.ex-confirm-actions .ex-neu-btn-small {
    min-width: min(280px, 100%);
}

.ex-confirm-actions .ex-confirm-btn {
    order: 1;
}

.ex-confirm-actions .ex-cancel-btn {
    order: 2;
}

.ex-error-message {
    color: #ff3b5c;
    font-size: clamp(1.1rem, 2.5vh, 1.4rem);
    font-weight: 800;
    text-align: center;
    margin-top: 2vh;
    /* DODANO: Solidny odstęp od dołu, żeby odepchnąć przyciski */
    margin-bottom: clamp(15px, 2.5vh, 25px) !important;
    padding: clamp(8px, 1.5vh, 10px);
    background: rgba(255, 59, 92, 0.1);
    border-radius: 15px;
    border: 2px solid #ff3b5c;
    width: 100%;
}

.ex-success-toast {
    position: fixed;
    top: clamp(100px, 13vh, 150px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3200;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f1faf5 100%);
    border: none;
    color: #0e6d55;
    font-weight: 800;
    font-size: clamp(1.05rem, 2.3vh, 1.35rem);
    letter-spacing: 0.2px;
    padding: 14px 26px 14px 18px;
    border-radius: 999px;
    box-shadow:
        0 18px 36px rgba(0, 200, 150, 0.28),
        0 6px 14px rgba(61, 68, 104, 0.18),
        inset 1px 1px 0 #ffffff;
    text-align: left;
    max-width: min(92vw, 760px);
    animation: ex-toast-in 280ms cubic-bezier(.2,.9,.3,1.4);
}

.ex-success-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(180deg, #00c896 0%, #4a90e2 100%);
}

.ex-success-toast-icon {
    width: clamp(36px, 5vh, 44px);
    height: clamp(36px, 5vh, 44px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #00c896 0%, #4a90e2 100%);
    box-shadow: 0 4px 10px rgba(0, 200, 150, 0.35);
    flex-shrink: 0;
}

.ex-success-toast-icon svg {
    width: 64%;
    height: 64%;
}

.ex-success-toast-text {
    color: #0e6d55;
    line-height: 1.2;
}

@keyframes ex-toast-in {
    0% {
        opacity: 0;
        transform: translate(-50%, -16px) scale(0.92);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, 4px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.ex-small-error {
    margin-top: 5px;
    font-size: clamp(0.9rem, 2vh, 1.2rem);
    padding: 5px;
}

.ex-main-step {
    padding-top: clamp(90px, 12vh, 150px) !important;
}

    /* Jeśli chcesz dodatkowo zwiększyć odstępy między tytułem a kafelkami */
    .ex-main-step .ex-selection-grid {
        margin-top: 20px;
    }

.ex-category-step {
    padding-top: clamp(130px, 17vh, 190px) !important;
    gap: clamp(10px, 2vh, 20px) !important;
}

.ex-data-step {
    padding-top: clamp(150px, 20vh, 220px) !important;
    /* Zmniejszamy główną lukę między tytułem (Klucz/Gość) a resztą */
    gap: clamp(10px, 2vh, 20px) !important;
}

    .ex-data-step .ex-form-container {
        /* To jest kluczowe! Wyłącza centrowanie, które "odpychało" pola w dół od tytułu */
        justify-content: flex-start !important;
    }

    /* Zmniejszenie luki dla napisu "Wybierz nazwisko / Select name" i siatki przycisków */
    .ex-data-step .ex-employee-title {
        margin: 10px 0 15px 0 !important; /* Nadpisuje domyślne marginesy */
    }

.ex-signature-step {
    padding-top: clamp(80px, 10vh, 120px) !important;
    /* Utrzymuje napis blisko danych użytkownika */
    gap: clamp(5px, 1.5vh, 15px) !important;
}

.ex-sig-form {
    /* Formularz odkleja się od środka i rośnie do samego dołu */
    justify-content: flex-start !important;
    flex: 1 !important; /* KLUCZOWE: zmusza cały formularz do zajęcia 100% wolnego miejsca */
    display: flex;
    flex-direction: column;
}

.ex-signature-step .ex-signature-info {
    margin-bottom: clamp(5px, 1vh, 10px) !important;
}

.ex-sig-expanded {
    /* Ustawiamy sztywną, zgrabną wysokość - np. 300px (lub użyj clamp jeśli wolisz) */
    height: 300px !important;
    /* WYŁĄCZAMY rozciąganie na cały wolny ekran */
    flex: none !important;
    width: 100%;
    max-width: 800px; /* Opcjonalnie, żeby panel nie był też zbyt szeroki na dużym tablecie */
    margin: 0 auto clamp(20px, 4vh, 40px) auto; /* Wyśrodkowanie i odepchnięcie przycisków na dole */
    display: flex;
}

    /* Wymusza na komponencie SignaturePad pełne pokrycie nowej, wielkiej ramki */
    .ex-signature-pad, .ex-sig-expanded canvas {
        width: 100% !important;
        height: 100% !important;
        flex: 1;
    }


/* =========================================
   EKRAN 3b: WYGENEROWANY PIN (DZIĘKUJEMY)
   ========================================= */
.ex-pin-generated-step {
    padding-top: clamp(150px, 20vh, 220px) !important;
}

/* =========================================
   EKRAN 6: POTWIERDZENIE WYJŚCIA
   ========================================= */
.ex-confirm-step {
    padding-top: clamp(150px, 20vh, 220px) !important;
    /* Maksymalnie zmniejsza odstęp między tytułem a całą resztą poniżej */
    gap: clamp(10px, 2vh, 20px) !important;
}

    .ex-confirm-step .ex-confirm-box {
        justify-content: center !important;
    }

    .ex-confirm-step .ex-confirm-icon {
        /* Delikatny margines, żeby ikona nie "przykleiła" się całkowicie do tytułu */
        margin-top: 10px;
    }

.ex-sig-wrapper button:not(.ex-clear-sig-btn) {
    display: none !important;
}

/* Wymuszamy pełną wysokość dla płótna podpisu */
.ex-sig-wrapper .ex-signature-pad > div {
    height: 100% !important;
}

/* Na wszelki wypadek całkowicie wyłączamy wyświetlanie domyślnej stopki komponentu SignaturePad */
.ex-sig-wrapper .signature-pad--footer {
    display: none !important;
}
.ex-exit-list-step {
    padding-top: clamp(24px, 7vh, 100px) !important;
    /* Delikatnie przybliża kafelki z pracownikami do tytułu "Wybierz z listy" */
    gap: clamp(10px, 2vh, 20px) !important;
}

    /* Opcjonalnie: upewniamy się, że siatka z listą nie "wisi" w powietrzu */
    .ex-exit-list-step .ex-exit-grid-container {
        justify-content: flex-start !important;
    }


.ex-sig-wrapper canvas {
    border: none !important;
    outline: none !important;
    touch-action: none !important;
}
/* WŁASNA KLAWIATURA EKRANOWA */
.ex-keyboard-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin: 20px auto 0 auto;
    padding: 20px;
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: 8px 8px 16px #bec3cf, -8px -8px 16px #ffffff;
}

.ex-kb-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ex-kb-key {
    padding: 15px 0 !important;
    font-size: 1.2rem !important;
    flex: 1;
    min-width: 45px;
    max-width: 60px;
    margin: 0 !important;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.ex-kb-space {
    flex: 5;
    max-width: 400px;
    font-size: 1.1rem !important;
    color: #4a90e2;
}

.ex-kb-action {
    font-weight: bold;
    font-size: 1.3rem !important;
    max-width: 80px;
}
.ex-kb-key-pressed {
    background: #4a90e2 !important;
    color: #ffffff !important;
    transform: scale(0.90) !important;
    box-shadow: inset 6px 6px 12px rgba(0,0,0,0.3), inset -6px -6px 12px rgba(255,255,255,0.2) !important;
}

/* Popup wyboru polskiego znaku (przytrzymaj literę, przesuń palcem, puść). */
.ex-kb-accent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: transparent;
    touch-action: none;
}

.ex-kb-accent-popup {
    position: fixed;
    z-index: 201;
    transform: translate(-50%, -100%);
    transform-origin: bottom center;
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #e0e5ec;
    border-radius: 16px;
    box-shadow: 8px 8px 20px #bec3cf, -8px -8px 20px #ffffff;
    animation: exKbAccentPop 130ms ease both;
    touch-action: none;
}

.ex-kb-accent-btn {
    padding: 12px 16px !important;
    margin: 0 !important;
    min-width: 54px;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #9b59b6 !important;
    transition: transform 90ms ease, background 90ms ease;
}

    .ex-kb-accent-btn.ex-kb-accent-hover {
        background: #4a90e2 !important;
        color: #ffffff !important;
        transform: scale(1.08);
    }

@keyframes exKbAccentPop {
    from { opacity: 0; transform: translate(-50%, -90%) scale(0.9); }
    to   { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}
.ex-data-step .ex-form-container {
    position: relative;
}

/* 2. Wyciągamy błąd "w powietrze" (identycznie jak w podpisie) */
.ex-data-step .ex-error-message {
    position: absolute;
    bottom: clamp(55px, 8vh, 75px); /* Pozycjonujemy go tuż nad przyciskami Wróć/Dalej */
    left: 50%;
    transform: translateX(-50%); /* Idealne wyśrodkowanie */
    width: 95%; /* Żeby ładnie wypełniał szerokość nad przyciskami */
    margin: 0 !important;
    z-index: 100; /* Upewniamy się, że przykryje klawiaturę, a nie schowa się pod nią */
    /* Dodajemy mocne tło i cień, żeby był mega czytelny, gdy przykryje inne elementy */
    background: #ffe6e9 !important;
    box-shadow: 0px 8px 16px rgba(255, 59, 92, 0.25);
}
.ex-sig-form {
    position: relative !important;
}

/* Wymuszone lewitowanie błędu */
.ex-signature-step .ex-error-message {
    position: absolute !important;
    bottom: clamp(60px, 10vh, 85px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    margin: 0 !important;
    z-index: 1000 !important; /* Zwiększamy z-index dla pewności */

    background: #ffe6e9 !important;
    box-shadow: 0px 8px 16px rgba(255, 59, 92, 0.25) !important;
}

.neumorphism-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #e0e5ec;
    color: #3d4468;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
    animation: pageFadeIn 0.8s ease-out forwards;
    opacity: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}

.login-main-content,
.neumorphism-wrapper > .landing-footer {
    position: relative;
    z-index: 1;
}

/* Na układzie „obok siebie" (desktop) login to jeden, nieprzewijalny ekran —
   treść mieści się w viewport, więc blokujemy scroll. Poniżej 901px karty
   układają się w pionie i wtedy przewijanie jest potrzebne (zostaje auto). */
@media (min-width: 901px) {
    .neumorphism-wrapper {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(224, 229, 236, 0.6); /* Półprzezroczyste tło */
    backdrop-filter: blur(8px); /* Efekt rozmycia tła pod spodem */
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pageFadeIn 0.3s ease-out forwards;
    transform: translateZ(0);
    backdrop-filter: blur(5px); /* Redukcja z 8px do 5px - drastyczny wzrost FPS w Chrome */
    -webkit-backdrop-filter: blur(5px);
}

.preloader-content {
    background: #e0e5ec;
    padding: 50px 60px;
    border-radius: 40px;
    box-shadow: 20px 20px 60px #bec3cf, -20px -20px 60px #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateZ(0);
}

.preloader-logo {
    width: 300px;
    max-width: 100%;
    margin-bottom: 40px;
    animation: pulseLogo 1.5s infinite alternate;
}

.preloader-spinner-large {
    width: 60px;
    height: 60px;
    border: 5px solid #bec3cf;
    border-top: 5px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 25px;
}

.preloader-text {
    color: #3d4468;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* =========================================
       3. KASKADOWE ANIMACJE (KARTY INFORMACYJNE)
       ========================================= */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0; /* Zaczynają jako niewidoczne */
    animation: slideInRight 0.6s ease-out forwards;
}

    /* Opóźnienia dla kolejnych elementów na liście */
    .feature-item:nth-child(1) {
        animation-delay: 0.2s;
    }

    .feature-item:nth-child(2) {
        animation-delay: 0.4s;
    }

    .feature-item:nth-child(3) {
        animation-delay: 0.6s;
    }

    .feature-item:nth-child(4) {
        animation-delay: 0.8s;
    }


.login-main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.login-split-container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.login-card {
    background: #e0e5ec;
    border-radius: 40px;
    padding: 40px 35px;
    box-shadow: 20px 20px 60px #bec3cf, -20px -20px 60px #ffffff;
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
    transform: translateZ(0); /* Izolacja karty na GPU */
    box-shadow: 15px 15px 45px #bec3cf, -15px -15px 45px #ffffff; /* Lżejszy blur */
}

.info-card {
    background: transparent;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .info-card h2 {
        color: #3d4468;
        font-size: 2.2rem;
        font-weight: 800;
        margin-top: 0;
        margin-bottom: 15px;
        line-height: 1.2;
    }

.highlight-blue {
    color: #4a90e2;
}

.info-card p.lead {
    font-size: 1.1rem;
    color: #6c7293;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 500;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #e0e5ec;
    box-shadow: 6px 6px 12px #bec3cf, -6px -6px 12px #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

    .feature-text strong {
        color: #3d4468;
        font-size: 1.1rem;
        margin-bottom: 3px;
    }

    .feature-text span {
        color: #9499b7;
        font-size: 0.9rem;
    }

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-logo {
    display: block;
    /* Logo wchodzi nieco w padding karty (szersze niż treść), więc jest wyraźnie
       większe, ale nie rozpycha formularza. Ujemny margines centruje nadmiar. */
    width: 116%;
    margin-left: -8%;
    margin-right: -8%;
    height: auto;
    object-fit: contain;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.login-card .neu-input {
    position: relative;
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: inset 6px 6px 12px #bec3cf, inset -6px -6px 12px #ffffff;
    display: flex;
    align-items: center;
    height: 65px;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .login-card .neu-input:focus-within {
        box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
    }

    .login-card .neu-input input {
        width: 100%;
        height: 100%;
        background: transparent;
        border: none;
        padding: 15px 50px 15px 60px;
        margin: 0;
        color: #3d4468;
        font-size: 1.1rem;
        font-weight: 500;
        outline: none;
        box-sizing: border-box;
        line-height: normal;
        border-radius: 20px;
    }

        .login-card .neu-input input:-webkit-autofill,
        .login-card .neu-input input:-webkit-autofill:hover,
        .login-card .neu-input input:-webkit-autofill:focus,
        .login-card .neu-input input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 1000px #fffdf2 inset !important;
            -webkit-text-fill-color: #3d4468 !important;
            border-radius: 20px;
            border: none !important;
        }

    .login-card .neu-input label {
        position: absolute;
        left: 60px;
        top: 50%;
        transform: translateY(-50%);
        color: #9499b7;
        font-size: 1rem;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 1;
    }

    .login-card .neu-input input:focus + label,
    .login-card .neu-input input:not(:placeholder-shown) + label {
        top: 2px;
        font-size: 0.75rem;
        color: #4a90e2;
        transform: translateY(0);
        font-weight: 700;
    }

.login-card .input-icon {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 24px;
    display: flex;
    align-items: center;
    color: #9499b7;
    pointer-events: none;
}

.login-card .password-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9499b7;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    outline: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
}

    .login-card .password-toggle:hover {
        color: #4a90e2;
    }

.neu-button {
    width: 100%;
    background: #e0e5ec;
    border: none;
    border-radius: 20px;
    padding: 20px;
    color: #4a90e2;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 8px 8px 20px #bec3cf, -8px -8px 20px #ffffff;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    letter-spacing: 1px;
}

    .neu-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 12px 12px 25px #bec3cf, -12px -12px 25px #ffffff;
    }

    .neu-button:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: inset 4px 4px 10px #bec3cf, inset -4px -4px 10px #ffffff;
    }

    .neu-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.error-text {
    color: #ff3b5c;
    font-size: 0.85rem;
    margin-top: 8px;
    margin-left: 20px;
    display: block;
    font-weight: 600;
}

.landing-footer {
    text-align: center;
    padding: 30px 20px;
    color: #9499b7;
    font-size: 1rem;
    font-weight: 600;
    border-top: 1px solid rgba(190, 195, 207, 0.3);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .login-split-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-card {
        text-align: center;
        padding: 0;
    }

    .feature-item {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .login-main-content {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .login-card {
        padding: 40px 25px;
    }

    .neu-input input {
        font-size: 1rem;
    }
}

.anim-element {
    opacity: 0;
    transition: transform 2.2s ease-out, opacity 2.2s ease-out;
    /* will-change tylko na czas animacji wejścia; zdejmowane przez .anim-done (JS),
       żeby nie trzymać trwałej warstwy GPU na każdym elemencie (preserve-3d/backface
       były tu zbędne dla animacji 2D i kosztowały kompozycję). */
    will-change: opacity, transform;
}

    .anim-element.anim-done {
        will-change: auto;
    }

/* Wyjątek: Pierwsza sekcja (Hero) ładuje się trochę szybciej (1.2s),
           aby użytkownik nie musiał czekać na pojawienie się strony po jej załadowaniu */
.snap-section:nth-child(1) .anim-element {
    transition-duration: 1.2s;
}

/* Kierunki początkowe - odległość ustawiona na 40px, aby przy wolnym czasie (2.2s)
           ruch był widoczny i bardzo płynny, przypominający "płynięcie" */
.anim-fade-up {
    transform: translate3d(0, 40px, 0);
}

.anim-slide-left {
    transform: translate3d(-40px, 0, 0);
}

.anim-slide-right {
    transform: translate3d(40px, 0, 0);
}

.anim-scale {
    transform: scale(0.92) translate3d(0, 0, 0);
}

.anim-element.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Stan po najechaniu skrollem (aktywacja przez JS) */
.anim-element.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ZNACZNIE wolniejsze, kaskadowe opóźnienia.
           Kolejne elementy czekają wyraźnie dłużej, zanim zaczną "płynąć" */
.delay-100 {
    transition-delay: 0.2s;
}

.delay-200 {
    transition-delay: 0.4s;
}

.delay-300 {
    transition-delay: 0.6s;
}

.delay-400 {
    transition-delay: 0.8s;
}

.delay-500 {
    transition-delay: 1.0s;
}
/* =========================================================================
           1. USTAWIENIA SCROLL SNAPPINGU I RESZTA STYLÓW
           ========================================================================= */
.final-logo-wrapper {
    margin-top: 36px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.final-logo-img {
    width: 680px;
    max-width: 92vw;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(4px 4px 10px rgba(0,0,0,0.1));
}

:root {
    --bg-color: #e0e5ec;
    --text-main: #3d4468;
    --text-muted: #6c7293;
    --shadow-dark: #bec3cf;
    --shadow-light: #ffffff;
    --color-blue: #4a90e2;
    --color-green: #00c896;
    --color-purple: #9b59b6;
    --color-orange: #ff9f43;
    --color-red: #ff3b5c;
}

body {
    margin: 0;
}

.snap-container {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    background: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
    isolation: isolate;
}

    .snap-container::-webkit-scrollbar {
        display: none;
    }

.landing-corner-glow {
    position: fixed;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    /* BEZ filter:blur — „fixed + filter" to wolna ścieżka Firefoxa (repaint całej
       przewijanej sekcji co klatkę → zacinanie scrolla). Miękkość przeniesiona
       w samą definicję gradientu, a translate3d promuje poświatę do własnej
       warstwy kompozytora, więc przy scrollu nic się nie przerysowuje. */
    opacity: 0.62;
}

.landing-corner-glow--green {
    left: 0;
    bottom: 0;
    transform: translate3d(-35%, 35%, 0);
    background: radial-gradient(circle, rgba(0, 200, 150, 0.78) 0%, rgba(0, 200, 150, 0.30) 38%, rgba(0, 200, 150, 0.10) 60%, rgba(0, 200, 150, 0) 80%);
}

.landing-corner-glow--blue {
    top: 0;
    right: 0;
    transform: translate3d(35%, -35%, 0);
    background: radial-gradient(circle, rgba(74, 144, 226, 0.78) 0%, rgba(74, 144, 226, 0.30) 38%, rgba(74, 144, 226, 0.10) 60%, rgba(74, 144, 226, 0) 80%);
}

.snap-section {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
}

.footer-section {
    justify-content: space-between;
}

.highlight-blue {
    color: var(--color-blue);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    gap: 5px;
    animation: bounce 2s infinite;
    pointer-events: none;
}

.scroll-indicator--hero {
    color: #4a90e2;
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 8px rgba(74, 144, 226, 0.28);
    gap: 3px;
}

.scroll-indicator--hero svg {
    filter: drop-shadow(0 2px 8px rgba(74, 144, 226, 0.3));
}

.snap-section:not(:first-child) .scroll-indicator {
    color: var(--color-blue);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* =========================================================================
           2. EKRAN HERO (EKRAN 1)
           ========================================================================= */
.main-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1700px;
    width: 100%;
    margin: auto;
    padding: 0 60px;
    box-sizing: border-box;
    align-items: center;
    flex-grow: 1;
}

.hero-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 45px;
    max-width: 650px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    margin-bottom: 50px;
}

.neu-btn-primary {
    display: flex;
    align-items: center;
    background: var(--color-blue);
    border: none;
    border-radius: 20px;
    padding: 22px 50px;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 8px 8px 18px rgba(74, 144, 226, 0.4), -8px -8px 18px #ffffff;
    transition: all 0.3s ease;
}

    .neu-btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 12px 12px 24px rgba(74, 144, 226, 0.5), -6px -6px 12px #ffffff;
    }

.trusted-section {
    color: #9499b7;
    font-weight: 600;
    font-size: 1rem;
}

    .trusted-section p {
        margin-bottom: 15px;
    }

.trusted-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.neu-badge {
    background: var(--bg-color);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.features-column {
    width: 100%;
}

.features-grid-huge {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card-wrapper {
    position: relative;
    height: 260px;
    width: 100%;
    z-index: 1;
}

    .card-wrapper:hover {
        z-index: 10;
    }

.feature-card-interactive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    border-radius: 30px;
    padding: 35px;
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    min-height: 260px;
    box-sizing: border-box;
    transform: translateZ(0);
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.feature-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    margin-bottom: 20px;
}

.feature-card-interactive h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

.card-swap-area {
    position: relative;
    width: 100%;
    flex-grow: 1;
}

.feature-short-desc {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
    max-height: 100px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
}

.card-hidden-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .detail-list li {
        font-size: 0.95rem;
        color: var(--text-main);
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.feature-card-interactive:hover {
    box-shadow: 20px 20px 50px rgba(190, 195, 207, 0.8), -20px -20px 50px var(--shadow-light);
    transform: translateY(-5px);
}

    .feature-card-interactive:hover .feature-short-desc {
        max-height: 0;
        opacity: 0;
    }

    .feature-card-interactive:hover .card-hidden-details {
        max-height: 250px;
        opacity: 1;
        margin-top: 10px;
    }

/* =========================================================================
           3. EKRANY 2, 3, 4 (SEKCJE INFORMACYJNE)
           ========================================================================= */
.screen-content {
    display: grid;
    /* Kolumna z makietą szersza niż tekst — makiety księgi/wniosków/helpdesku
       są przez to wyraźnie większe. */
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    max-width: 1650px;
    width: 100%;
    margin: auto;
    padding: 0 60px;
    box-sizing: border-box;
    align-items: center;
}

.row-reverse {
    direction: rtl;
}

    .row-reverse > * {
        direction: ltr;
    }

.text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    color: var(--text-main);
}

.section-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.feature-bullet-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

    .feature-bullet-list li {
        display: flex;
        flex-direction: column;
        gap: 5px;
        font-size: 1rem;
        color: var(--text-muted);
        line-height: 1.5;
        position: relative;
        padding-left: 30px;
    }

        .feature-bullet-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 6px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--bg-color);
            box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
            border: 2px solid var(--color-blue);
        }

        .feature-bullet-list li strong {
            color: var(--text-main);
            font-size: 1.15rem;
            font-weight: 700;
        }

.graphic-content {
    transform: translateZ(0);
}

@keyframes floatY {
    0%, 100% {
        transform: translate3d(0, 0px, 0);
    }

    50% {
        transform: translate3d(0, -15px, 0);
    }
}

/* --- MOCKUP 1: SZEROKI TABLET (Kiosk PIN) --- */
.wide-tablet {
    width: 680px;
    max-width: 100%;
    height: 440px;
    background: var(--bg-color);
    border-radius: 40px;
    box-shadow: 25px 25px 50px var(--shadow-dark), -25px -25px 50px var(--shadow-light);
    border: 12px solid #ced4df;
    padding: 20px;
    box-sizing: border-box;
    animation: floatY 6s ease-in-out infinite;
}

.tablet-screen {
    background: var(--bg-color);
    border-radius: 20px;
    width: 100%;
    height: 100%;
    box-shadow: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);
    overflow: hidden;
}

.mockup-split-layout {
    display: flex;
    gap: 25px;
    padding: 25px;
    height: 100%;
    box-sizing: border-box;
    align-items: center;
}

.mockup-info-panel {
    flex: 1.2;
    background: var(--bg-color);
    padding: 25px 20px;
    border-radius: 20px;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.mockup-icon-info {
    font-size: 2.2rem;
    color: var(--color-blue);
    margin-bottom: 10px;
}

.mockup-info-panel h4 {
    margin: 0 0 10px 0;
    color: var(--text-main);
    font-size: 1.1rem;
}

.mockup-info-panel p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.mockup-welcome-panel {
    flex: 1.2;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.mockup-welcome-badge {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--color-blue);
    background: rgba(74, 144, 226, 0.14);
    border-radius: 999px;
    padding: 5px 10px;
}

.mockup-welcome-panel h4 {
    margin: 0 0 8px 0;
    color: var(--text-main);
    font-size: 1.05rem;
}

.mockup-welcome-panel p {
    margin: 0 0 12px 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.mockup-guest-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-main);
}

.mockup-guest-data div {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(190, 195, 207, 0.4);
    border-radius: 10px;
    padding: 8px 10px;
}

.mockup-guest-data span {
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 6px;
}

.mockup-sign-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-sign-panel h4 {
    margin: 0;
    color: var(--text-main);
    font-size: 1rem;
}

.mockup-sign-box {
    background: var(--bg-color);
    border-radius: 14px;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.mockup-sign-box svg {
    width: 100%;
    height: 60px;
}

.mockup-sign-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.mockup-sign-action {
    margin-top: auto;
    background: var(--color-blue);
    color: #fff;
    font-weight: 800;
    text-align: center;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 6px 6px 12px rgba(74, 144, 226, 0.28), -4px -4px 8px #ffffff;
    font-size: 0.88rem;
}

.mockup-pin-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .mockup-pin-panel h4 {
        margin: 0 0 15px 0;
        color: var(--text-main);
        font-size: 1.2rem;
    }

.mockup-pin-display {
    width: 100%;
    height: 45px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 10px;
    font-weight: 800;
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.mockup-pin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.m-btn {
    background: var(--bg-color);
    border-radius: 10px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: var(--text-main);
    font-size: 1.1rem;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

.m-red {
    color: var(--color-red);
}

.m-green {
    color: var(--color-green);
}

/* --- MOCKUP 1b: KIOSK — realny ekran wyboru WEJŚCIE / WYJŚCIE (księga wejść i wyjść) --- */
.mockup-kiosk {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    padding: 22px 24px;
    gap: 16px;
}

.mockup-kiosk-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.mk-welcome {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.mk-greeting {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.2;
}

    .mk-greeting strong {
        color: var(--text-main);
        font-weight: 800;
    }

.mk-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.mk-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
    flex-shrink: 0;
}

.mk-time {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-main);
}

.mk-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mk-cards {
    display: flex;
    gap: 18px;
    flex: 1;
    /* align-items:center → karty nie rozciągają się na całą wysokość, tylko
       przyjmują rozmiar swojej treści (mniejsze przyciski WEJŚCIE/WYJŚCIE). */
    align-items: center;
    justify-content: center;
}

.mk-card {
    flex: 1;
    max-width: 200px;
    background: var(--bg-color);
    border-radius: 18px;
    box-shadow: 6px 6px 13px var(--shadow-dark), -6px -6px 13px var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 12px;
}

.mk-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mk-card-icon svg {
        width: 26px;
        height: 26px;
    }

    .mk-card h5 {
        margin: 0;
        font-size: 0.86rem;
        font-weight: 800;
        color: var(--text-main);
        text-align: center;
    }

.mk-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mk-admin {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mk-lang {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

    .mk-lang span {
        font-size: 0.74rem;
        font-weight: 800;
        color: var(--text-muted);
        padding: 4px 11px;
        border-radius: 999px;
        box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    }

    .mk-lang .mk-lang-on {
        color: #fff;
        background: var(--color-blue);
        box-shadow: none;
    }


/* --- MOCKUP 2: WORKFLOW ADMINISTRACYJNY --- */
.mockup-workflow-panel {
    width: 760px;
    max-width: 100%;
    background: var(--bg-color);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 20px 20px 40px var(--shadow-dark), -20px -20px 40px var(--shadow-light);
}

.mockup-workflow-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.mockup-workflow-head > span:first-child {
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.08rem;
}

.mw-badge {
    background: rgba(74, 144, 226, 0.12);
    color: var(--color-blue);
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 5px 10px;
    white-space: nowrap;
}

.mw-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.mw-flow-step {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-color);
    border-radius: 999px;
    padding: 4px 11px;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    white-space: nowrap;
}

    .mw-flow-step.mw-flow-done {
        color: var(--color-green);
    }

    .mw-flow-step.mw-flow-now {
        color: #fff;
        background: var(--color-blue);
        box-shadow: none;
    }

.mw-flow-arrow {
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.85rem;
}

.mockup-workflow-body {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(190, 195, 207, 0.45);
    padding: 16px;
}

.mw-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.mw-row strong {
    color: var(--text-main);
    font-size: 1rem;
}

.mw-row p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.mw-status {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.mw-status-review {
    background: rgba(255, 159, 67, 0.16);
    color: #c87a1e;
}

.mw-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.mw-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
    font-size: 0.86rem;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}

.mw-btn-reject {
    color: var(--color-red);
    background: var(--bg-color);
}

.mw-btn-accept {
    color: #fff;
    background: var(--color-green);
    box-shadow: 6px 6px 12px rgba(0, 200, 150, 0.35), -4px -4px 8px #fff;
}

.mw-result {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #1f7e62;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(0, 200, 150, 0.09);
    border: 1px solid rgba(0, 200, 150, 0.2);
    border-radius: 12px;
    padding: 11px;
}


/* --- MOCKUP 2: KARTY (Awizacje) --- */
.mockup-cards-stack {
    position: relative;
    width: 400px;
    height: 400px;
    animation: floatY 5s ease-in-out infinite;
}

.mockup-card {
    position: absolute;
    background: var(--bg-color);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 20px 20px 40px var(--shadow-dark), -20px -20px 40px var(--shadow-light);
}

.bottom-card {
    top: 60px;
    left: 40px;
    width: 300px;
    height: 280px;
    opacity: 0.8;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.top-card {
    top: 20px;
    left: 0;
    width: 340px;
    height: 250px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mc-header {
    display: flex;
    gap: 8px;
}

.mc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2);
}

.mc-link-box {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 12px;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(190,195,207,0.4);
}

.w-full {
    width: 100%;
}

.w-half {
    width: 60%;
}

.mc-btn {
    background: var(--color-green);
    padding: 12px;
    border-radius: 12px;
    color: white;
    text-align: center;
    font-weight: 700;
    margin-top: auto;
    box-shadow: 4px 4px 10px rgba(0,200,150,0.3);
}

.mc-pdf-icon {
    width: 70px;
    height: 70px;
    background: #e0e5ec;
    border-radius: 15px;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #ff3b5c;
    font-size: 1.5rem;
}

/* --- MOCKUP 3: CZAT (Helpdesk) --- */
.mockup-chat {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: floatY 4.5s ease-in-out infinite reverse;
}

.chat-bubble {
    padding: 20px;
    border-radius: 20px;
    max-width: 80%;
    background: var(--bg-color);
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

    .chat-bubble.left {
        align-self: flex-start;
        border-bottom-left-radius: 5px;
    }

    .chat-bubble.right {
        align-self: flex-end;
        border-bottom-right-radius: 5px;
        border: 1px solid rgba(255,255,255,0.4);
    }

.chat-author {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.chat-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}

.chat-input-box {
    width: 100%;
    height: 55px;
    border-radius: 25px;
    background: var(--bg-color);
    box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    color: #aab;
    font-size: 0.9rem;
    justify-content: space-between;
    margin-top: 10px;
}

.chat-send {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 4px 4px 8px rgba(74,144,226,0.4);
}

/* --- MOCKUP 4: TICKET / USTERKA TECHNICZNA --- */
.mockup-ticket-panel {
    width: 720px;
    max-width: 100%;
    background: var(--bg-color);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 20px 20px 40px var(--shadow-dark), -20px -20px 40px var(--shadow-light);
}

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

.mt-header > span:first-child {
    color: var(--text-main);
    font-weight: 800;
    font-size: 1rem;
}

.mt-status {
    background: rgba(255, 159, 67, 0.18);
    color: #c77718;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 800;
}

.mt-title {
    color: var(--text-main);
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.mt-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.mt-meta-grid div {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(190, 195, 207, 0.45);
    border-radius: 10px;
    padding: 7px 10px;
    color: var(--text-main);
    font-size: 0.82rem;
}

.mt-meta-grid span {
    color: var(--text-muted);
    font-weight: 700;
}

.mt-description {
    background: rgba(74, 144, 226, 0.08);
    border: 1px solid rgba(74, 144, 226, 0.16);
    border-radius: 12px;
    padding: 10px;
    color: #495178;
    font-size: 0.84rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.mt-steps {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 12px;
}

.mt-step {
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(190, 195, 207, 0.42);
    color: #5f678c;
    font-size: 0.82rem;
    font-weight: 700;
}

.mt-step.done {
    color: #1c7a61;
    background: rgba(0, 200, 150, 0.1);
    border-color: rgba(0, 200, 150, 0.2);
}

.mt-step.active {
    color: #2f5b9b;
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.2);
}

.mt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.mt-badge {
    color: #fff;
    background: var(--color-blue);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.74rem;
    box-shadow: 4px 4px 8px rgba(74, 144, 226, 0.3);
}

/* --- Landing: sekcja FAQ (QnA) --- */
.faq-section {
    width: 100%;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.faq-card {
    position: relative;
    background: var(--bg-color);
    border-radius: 22px;
    padding: 28px 24px 26px;
    text-align: left;
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}

/* Kolorowa krawędź akcentu dziedziczona z koloru ikony danej karty. */
.faq-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: currentColor;
    opacity: 0.85;
}

.faq-card:hover {
    transform: translateY(-6px);
    box-shadow: 18px 18px 36px var(--shadow-dark), -18px -18px 36px var(--shadow-light);
}

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

.faq-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--bg-color);
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.faq-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--shadow-dark);
    letter-spacing: 1px;
    line-height: 1;
}

.faq-card h4 {
    color: var(--text-main);
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
}

.faq-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.faq-cta {
    margin-top: 42px;
}

@media (max-width: 1024px) {
    .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .faq-grid { grid-template-columns: 1fr; gap: 16px; }
    .faq-card { padding: 18px 18px; }
}

/* --- Modal kontaktu/pracownika (klient): pola w 2 kolumnach, na mobile 1 --- */
.contact-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    margin-bottom: 4px;
}

@media (max-width: 560px) {
    .contact-fields-grid { grid-template-columns: 1fr; gap: 16px; }
}


/* =========================================================================
           4. EKRAN KOŃCOWY (CTA I FOOTER)
           ========================================================================= */
.centered-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.final-cta-buttons {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.neu-btn-secondary {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: none;
    border-radius: 20px;
    padding: 22px 40px;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 8px 8px 18px var(--shadow-dark), -8px -8px 18px var(--shadow-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .neu-btn-secondary:hover {
        transform: translateY(-3px);
        box-shadow: 12px 12px 24px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
        color: var(--color-blue);
    }

.landing-footer {
    width: 100%;
    border-top: 1px solid rgba(190, 195, 207, 0.4);
    padding: 30px 60px;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-text {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-color);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    color: var(--color-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

    .contact-badge:hover {
        box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    }


/* =========================================================================
           5. MEDIA QUERIES (RESPONSYWNOŚĆ)
           ========================================================================= */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .main-content-row, .screen-content {
        padding: 0 40px;
        gap: 40px;
    }
}

@media (max-width: 1100px) {
    /* body NIE może być pionowym scrollerem (overflow-y:auto/scroll) — na Androidzie/Chrome
       (POCO) zagnieżdżony scroller body zjada gest i strona nie przewija się, mimo że to
       <html>/viewport ma przewijać. Landing ma własny scroller (.neumorphism-wrapper),
       więc visible tu niczego nie psuje. */
    body {
        overflow: visible;
    }

    .snap-container {
        height: auto;
        overflow-y: visible;
        scroll-snap-type: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain; /* Pomaga stabilizować scroll-snap w Chrome */
    }

    .landing-corner-glow {
        width: 420px;
        height: 420px;
        opacity: 0.5;
    }

    .snap-section {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 80px 20px;
    }

    .main-content-row, .screen-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .row-reverse {
        direction: ltr;
    }

    .hero-column, .text-content {
        align-items: center;
    }

    .hero-title,
    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-bullet-list li {
        text-align: left;
    }

    .trusted-badges, .final-cta-buttons {
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    .graphic-content {
        margin-top: 40px;
    }

    /* Legacy mockupy (nieużywane na obecnym landingu) — chowamy.
       Kiosk (.wide-tablet), workflow i ticket pokazujemy spójnie też na mobile/tablecie. */
    .mockup-cards-stack,
    .mockup-chat {
        display: none;
    }

    .final-cta-buttons {
        margin-top: 10px;
        margin-bottom: 40px;
    }
}

@media (max-width: 650px) {
    .features-grid-huge {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .wide-tablet {
        width: 100%;
        max-width: 420px;
        height: auto;
        padding: 12px;
    }

    .mockup-kiosk {
        padding: 18px 16px;
        gap: 14px;
    }

    .mk-cards {
        min-height: 132px;
    }

    .mockup-cards-stack {
        width: 100%;
        max-width: 350px;
    }

    .mockup-workflow-panel {
        width: 100%;
        max-width: 420px;
        padding: 14px;
    }

    .mw-row {
        flex-direction: column;
        gap: 6px;
    }

    .mw-status {
        align-self: flex-start;
    }

    .mockup-chat {
        width: 100%;
        max-width: 350px;
    }

    .mockup-ticket-panel {
        width: 100%;
        max-width: 420px;
        padding: 14px;
    }

    .mt-meta-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .final-logo-wrapper {
        margin-bottom: 30px;
    }

    .final-logo-img {
        width: 300px;
    }
}

@media (max-width: 430px) {
    html,
    body {
        overscroll-behavior-y: none;
    }

    body {
        /* clip (nie hidden): hidden zmusza overflow-y do auto → body znów staje się
           scrollerem i blokuje gest na POCO. clip przycina poziomo bez tworzenia scrollera. */
        overflow-x: clip;
    }

    .page-wrapper,
    .public-wrapper,
    .neumorphism-wrapper,
    .snap-section {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .main-content-row,
    .screen-content,
    .login-main-content {
        padding-left: 0;
        padding-right: 0;
        gap: 22px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle,
    .section-desc {
        font-size: 1rem;
        line-height: 1.5;
    }

    .login-card {
        max-width: 100%;
        border-radius: 24px;
        padding: 24px 16px;
    }

    .brand-logo {
        width: min(280px, 80vw);
        margin-left: auto;
        margin-right: auto;
    }

    .final-logo-img {
        width: min(240px, 70vw);
    }

    .info-card h2 {
        font-size: 1.6rem;
    }

    .info-card p.lead {
        font-size: 0.95rem;
        margin-bottom: 22px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .login-card .neu-input {
        height: 56px;
    }

    .login-card .neu-input input {
        font-size: 16px;
        padding: 14px 46px 14px 52px;
    }

    .login-card .neu-input label {
        left: 52px;
        font-size: 0.9rem;
    }

    .login-card .input-icon {
        left: 14px;
    }

    .password-reset-inline {
        font-size: 0.78rem !important;
    }

    .password-reset-inline-link {
        font-size: 0.78rem !important;
    }

    .password-reset-actions {
        flex-direction: column;
    }

    .neu-button,
    .neu-btn,
    .neu-btn-small,
    .neu-btn-large,
    .neu-btn-primary {
        min-height: 46px;
        font-size: 0.95rem;
    }

    .neu-btn-icon {
        width: 34px;
        height: 34px;
        margin-right: 4px;
    }

    .admin-grid,
    .dashboard-grid,
    .cards-grid,
    .tech-grid,
    .creation-wrapper,
    .ticket-edit-layout {
        grid-template-columns: 1fr !important;
        gap: 14px;
        justify-items: center;
    }

    .admin-card,
    .user-card,
    .company-card {
        width: 100%;
        max-width: 420px;
    }

    .admin-card p,
    .admin-card h3 {
        text-align: center;
    }

    .neu-table-container {
        padding: 10px;
        border-radius: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .neu-table,
    table {
        min-width: 860px;
    }

    .table-area,
    .neu-table-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .logs-layout .table-area,
    .logs-layout .neu-table-container {
        width: 100%;
        margin: 0 auto;
        background: var(--bg-color);
        border: 1px solid rgba(255, 255, 255, 0.55);
        box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
        border-radius: 20px;
        background-clip: padding-box;
    }

    .table-area table,
    .neu-table-container table {
        table-layout: auto !important;
        min-width: 980px;
        margin: 0 auto;
    }

    .logs-layout .table-area table,
    .logs-layout .neu-table-container table {
        min-width: 1100px;
        background: transparent;
    }

    .table-area th,
    .table-area td,
    .neu-table-container th,
    .neu-table-container td {
        min-width: 130px;
        white-space: normal;
        word-break: break-word;
        overflow: visible;
        text-overflow: clip;
    }

    .logs-layout .status-badge,
    .logs-layout .role-badge {
        white-space: nowrap;
    }

    .logs-layout .neu-table-container thead,
    .logs-layout .neu-table-container tbody,
    .logs-layout .neu-table-container tr,
    .logs-layout .neu-table-container th,
    .logs-layout .neu-table-container td {
        background: transparent !important;
    }

    .logs-layout .pagination-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    .command-center-arrow {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .logs-layout {
        gap: 14px;
    }

    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 16px;
    }

    .header-container .back-btn {
        width: 36px;
        height: 36px;
    }

    .main-title,
    .section-title,
    .card-title,
    .page-wrapper h1 {
        font-size: 1.25rem !important;
        line-height: 1.25;
    }

    .page-wrapper p,
    .form-label,
    .text-muted,
    .item-details span,
    .feature-text span {
        font-size: 0.86rem;
        line-height: 1.4;
    }

    .neu-card,
    .neu-card-compact,
    .compact-form-card,
    .company-card,
    .user-card,
    .group-card,
    .building-item {
        border-radius: 16px;
        padding: 14px;
    }

    .creation-wrapper,
    .groups-container,
    .buildings-list,
    .employees-list {
        gap: 12px;
    }

    .form-row,
    .add-employee-row,
    .admin-add-row,
    .item-actions-footer,
    .action-buttons,
    .card-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .user-info h3,
    .company-details h3,
    .group-title {
        font-size: 1rem;
    }

    .role-badge,
    .status-badge,
    .count-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .neu-input,
    .neu-input-small,
    .search-input,
    .date-picker,
    .building-selector,
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .building-badge {
        padding: 6px 10px;
        min-height: 32px;
        font-size: 0.82rem;
    }

    .chat-floating-container {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 10px;
    }

    .chat-window {
        width: 100% !important;
        max-height: 70dvh;
    }

    .chat-messages-area {
        max-height: 45dvh;
    }

    .landing-footer,
    .footer-container,
    .footer-contact,
    .final-contact-panel {
        text-align: center;
        justify-content: center;
    }

    .landing-footer {
        padding: 18px 10px;
        font-size: 0.84rem;
    }

    .filters-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        padding: 14px;
        border-radius: 18px;
    }

    .action-filters {
        gap: 8px;
    }

    .action-filters .neu-btn-small {
        width: 100%;
        justify-content: center;
    }

    .modal-card,
    .pdf-modal-card {
        width: 95vw !important;
        max-height: 88dvh;
        overflow-y: auto;
        border-radius: 18px;
        padding: 18px !important;
    }

    .modal-card input[type="date"],
    .modal-card input[type="time"],
    .modal-card select,
    .modal-card textarea,
    .modal-card .neu-input,
    .modal-card .neu-input-small,
    .pdf-modal-card input,
    .pdf-modal-card select,
    .pdf-modal-card textarea,
    .public-wrapper textarea.neu-input,
    .public-wrapper select.neu-input {
        min-height: 46px;
        padding: 10px 12px !important;
        border-radius: 12px;
        font-size: 0.95rem !important;
    }

    .page-wrapper select,
    .page-wrapper select.neu-input,
    .modal-card select,
    .neu-card-form select,
    .neu-card-form select.neu-input,
    .public-wrapper select,
    .public-wrapper select.neu-input,
    .neu-select-arrow,
    .ex-custom-select {
        border: 1.5px solid rgba(122, 134, 168, 0.45) !important;
        box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light) !important;
    }

    .page-wrapper select:focus,
    .page-wrapper select.neu-input:focus,
    .modal-card select:focus,
    .neu-card-form select:focus,
    .neu-card-form select.neu-input:focus,
    .public-wrapper select:focus,
    .public-wrapper select.neu-input:focus,
    .neu-select-arrow:focus,
    .ex-custom-select:focus {
        border-color: rgba(74, 144, 226, 0.75) !important;
    }

    /* Pola dat/godzin (date/time/datetime-local) na mobile dostają widoczną ramkę
       jak selecty — natywne kontrolki bez ramki wyglądały na „puste" w formularzach
       recepcji (awizacje, goście, parking) i innych. Dotyczy tworzenia i edycji. */
    .modal-card input[type="date"],
    .modal-card input[type="time"],
    .modal-card input[type="datetime-local"],
    .neu-card-form input[type="date"],
    .neu-card-form input[type="time"],
    .neu-card-form input[type="datetime-local"],
    .page-wrapper input[type="date"],
    .page-wrapper input[type="time"],
    .page-wrapper input[type="datetime-local"],
    .public-wrapper input[type="date"],
    .public-wrapper input[type="time"],
    .public-wrapper input[type="datetime-local"] {
        border: 1.5px solid rgba(122, 134, 168, 0.45) !important;
        box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light) !important;
    }

    .modal-card input[type="date"]:focus,
    .modal-card input[type="time"]:focus,
    .modal-card input[type="datetime-local"]:focus,
    .neu-card-form input[type="date"]:focus,
    .neu-card-form input[type="time"]:focus,
    .neu-card-form input[type="datetime-local"]:focus,
    .page-wrapper input[type="date"]:focus,
    .page-wrapper input[type="time"]:focus,
    .page-wrapper input[type="datetime-local"]:focus,
    .public-wrapper input[type="date"]:focus,
    .public-wrapper input[type="time"]:focus,
    .public-wrapper input[type="datetime-local"]:focus {
        border-color: rgba(74, 144, 226, 0.75) !important;
    }

    /* Ikona nagłówka formularza (.header-icon) jest w .form-header (flex row) i bez
       flex-shrink:0 była ściskana w poziomie obok długiego tytułu — okrąg robił się
       owalem, a SVG był spłaszczony. Blokujemy kurczenie ikony i grafiki. */
    .header-icon {
        flex-shrink: 0;
    }

    .header-icon svg {
        flex-shrink: 0;
    }

    .modal-card .form-group {
        margin-bottom: 12px;
    }

    .header-actions .neu-btn-small,
    .header-actions form,
    .header-actions form .neu-btn-small {
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .public-wrapper textarea.neu-input {
        min-height: 120px;
        resize: vertical;
    }

    .public-wrapper .avization-textarea {
        min-height: 120px !important;
        height: auto !important;
        line-height: 1.4;
    }

    .public-wrapper input[type="date"],
    .public-wrapper input[type="time"],
    .public-wrapper select.neu-input {
        min-height: 46px;
        padding: 10px 12px !important;
        border-radius: 12px;
        box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    }

    .modal-overlay,
    .pdf-modal-overlay {
        align-items: flex-start;
        padding: 12px;
        overflow-y: auto;
    }

    .modal-overlay > div,
    .pdf-modal-overlay > div {
        margin-top: max(10px, env(safe-area-inset-top));
        margin-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .neu-card-form {
        max-width: 100% !important;
        padding: 16px !important;
        border-radius: 16px;
    }

    .form-actions {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .form-actions .neu-btn,
    .form-actions .neu-btn-small,
    .form-actions .neu-btn-large,
    .form-actions button {
        width: 100%;
        justify-content: center;
    }

    .modal-card [style*="display: flex"],
    .modal-card [style*="display:flex"] {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-card [style*="flex: 1"],
    .modal-card [style*="flex:1"] {
        flex: 1 1 100% !important;
    }

    [style*="width: 70px"],
    [style*="width:70px"],
    [style*="width: 60px"],
    [style*="width:60px"],
    [style*="height: 70px"],
    [style*="height:70px"],
    [style*="height: 60px"],
    [style*="height:60px"] {
        width: 56px !important;
        height: 56px !important;
    }

    .scroll-indicator {
        display: none;
    }

    .ex-step-title {
        font-size: 1.45rem;
    }

    .ex-form-container,
    .ex-nav-button-container,
    .ex-selection-grid,
    .ex-category-grid {
        width: 100%;
        max-width: 100%;
    }

    .ex-selection-grid {
        flex-direction: column;
        max-height: none;
    }

    .ex-category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ex-neu-input,
    .ex-custom-select,
    .ex-neu-btn-small,
    .ex-clear-sig-btn {
        font-size: 1rem;
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* KONTENER */
.chat-floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2001;
    cursor: default;
}

/* OKNO CZATU */
.chat-window {
    width: 620px;
    height: 720px;
    background: #e0e5ec;
    border-radius: 30px;
    box-shadow: 10px 10px 30px #bec3cf, -10px -10px 30px #ffffff;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideIn 0.3s ease-out;
    z-index: 2002;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* NAGŁÓWEK */
.chat-header {
    background: #4a90e2;
    padding: 22px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    font-weight: 700;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.06rem;
}

/* LISTA WIADOMOŚCI */
.chat-messages {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.message-bubble {
    padding: 12px 18px;
    border-radius: 15px;
    max-width: 88%;
    font-size: 1rem;
    word-wrap: break-word;
    box-shadow: 4px 4px 8px #bec3cf, -4px -4px 8px #ffffff;
}

.msg-mine {
    align-self: flex-end;
    background: #4a90e2;
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 4px 4px 10px rgba(74, 144, 226, 0.3);
}

.msg-other {
    align-self: flex-start;
    background: #e0e5ec;
    color: #3d4468;
    border-bottom-left-radius: 4px;
    box-shadow: 5px 5px 10px #bec3cf, -5px -5px 10px #ffffff;
}

.msg-sender {
    font-size: 0.82rem;
    margin-bottom: 3px;
    color: #4a90e2;
    font-weight: 700;
}

.msg-time {
    font-size: 0.76rem;
    margin-top: 5px;
    opacity: 0.7;
    text-align: right;
}

/* INPUT AREA */
.chat-input-area {
    padding: 18px;
    border-top: 1px solid rgba(190, 195, 207, 0.3);
    display: flex;
    gap: 14px;
    background: #e0e5ec;
}

    .chat-input-area input {
        flex-grow: 1;
        border: none;
        background: #e0e5ec;
        border-radius: 15px;
        padding: 14px;
        font-size: 1rem;
        box-shadow: inset 4px 4px 8px #bec3cf, inset -4px -4px 8px #ffffff;
        outline: none;
        color: #3d4468;
    }

/* PRZYCISK TOGGLE */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0e5ec;
    color: #4a90e2;
    border: none;
    box-shadow: 8px 8px 16px #bec3cf, -8px -8px 16px #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2002;
}

    .chat-toggle-btn:hover {
        transform: scale(1.05);
        box-shadow: 10px 10px 20px #bec3cf, -10px -10px 20px #ffffff;
    }

    .chat-toggle-btn:active {
        box-shadow: inset 4px 4px 8px #bec3cf, inset -4px -4px 8px #ffffff;
    }

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: #ff3b5c;
    border-radius: 50%;
    border: 3px solid #e0e5ec;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 59, 92, 0);
    }

    100% {
        transform: scale(0.9);
    }
}

.app-page-transition {
    /* Fade wejścia wyłączony: przy prerenderze loginu odtwarzał się ponownie po
       podpięciu obwodu (efekt „drugiego przeładowania po milisekundzie"). */
    opacity: 1;
}

@keyframes dashboardFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* =========================================
   STATUSY ZGŁOSZEŃ (TICKETS) - GLASSMORPHISM
   ========================================= */
.status-new {
    color: var(--text-main);
    background: rgba(67, 56, 202, 0.35); /* Indygowy #4338ca */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(67, 56, 202, 0.25);
    border: 1px solid rgba(67, 56, 202, 0.3);
}

.status-inprogress {
    color: var(--text-main);
    background: rgba(217, 119, 6, 0.35); /* Bursztynowy #d97706 */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(217, 119, 6, 0.25);
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.status-waiting {
    color: var(--text-main);
    background: rgba(2, 132, 199, 0.35); /* Niebieski #0284c7 */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(2, 132, 199, 0.25);
    border: 1px solid rgba(2, 132, 199, 0.3);
}

.status-resolved {
    color: var(--text-main);
    background: rgba(21, 128, 61, 0.35); /* Ciemnozielony #15803d */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(21, 128, 61, 0.25);
    border: 1px solid rgba(21, 128, 61, 0.3);
}

.status-checkbox {
    color: var(--text-main);
    background: rgba(234, 179, 8, 0.35); /* Żółty #eab308 */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(234, 179, 8, 0.25);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* =========================================
   PRIORYTETY ZGŁOSZEŃ (TICKETS) - GLASSMORPHISM
   ========================================= */
.priority-low {
    color: var(--text-main);
    background: rgba(22, 163, 74, 0.35); /* Zielony #16a34a */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(22, 163, 74, 0.25);
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.priority-normal {
    color: var(--text-main);
    background: rgba(2, 132, 199, 0.35); /* Niebieski #0284c7 */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(2, 132, 199, 0.25);
    border: 1px solid rgba(2, 132, 199, 0.3);
}

.priority-high {
    color: var(--text-main);
    background: rgba(234, 88, 12, 0.35); /* Pomarańczowy #ea580c */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(234, 88, 12, 0.25);
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.priority-critical {
    color: var(--text-main);
    background: rgba(220, 38, 38, 0.35); /* Czerwony #dc2626 */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(220, 38, 38, 0.25);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.status-default {
    color: var(--text-main);
    background: rgba(108, 114, 147, 0.25); /* Szary #6c7293 */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(108, 114, 147, 0.2);
}

.role-badge {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.role-admin {
    color: var(--text-main);
    background: rgba(255, 59, 92, 0.2); /* Czerwony */
}

.role-head {
    color: var(--text-main);
    background: rgba(155, 89, 182, 0.2); /* Fioletowy */
}

.role-client {
    color: var(--text-main);
    background: rgba(243, 156, 18, 0.2); /* Pomarańczowy - NOWY KOLOR ADO */
}

.role-reception {
    color: var(--text-main);
    background: rgba(0, 200, 150, 0.2); /* Zielony */
}

.role-tenant {
    color: var(--text-main);
    background: rgba(255, 193, 7, 0.24);
}

.role-service-provider {
    color: var(--text-main);
    background: rgba(74, 144, 226, 0.22);
}

/* Kolorowe paski na krawędziach kart użytkowników */
.border-admin {
    border-left-color: var(--color-red);
}

.border-client {
    border-left-color: var(--color-orange);
}

.border-head {
    border-left-color: var(--color-purple);
}

.border-reception {
    border-left-color: var(--color-green);
}

.border-tenant {
    border-left-color: #ffc107;
}

.border-service-provider {
    border-left-color: var(--color-blue);
}

.status-active {
    color: var(--text-main);
    background: rgba(47, 191, 74, 0.35);
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(47, 191, 74, 0.25);
    border: 1px solid rgba(47, 191, 74, 0.32);
}

.status-year-round {
    color: var(--text-main);
    background: rgba(243, 156, 18, 0.4);
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(243, 156, 18, 0.25);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.status-archive {
    color: var(--text-main);
    background: rgba(148, 153, 183, 0.25);
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 153, 183, 0.2);
}

/* =========================================
   PPOŻ / ASYSTA (AWIZACJE) - EFEKT SZKŁA
   ========================================= */
.badge-yes {
    color: #111111;
    background: rgba(220, 38, 38, 0.60);
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.32), 0 3px 9px rgba(220, 38, 38, 0.36);
    border: 1px solid rgba(220, 38, 38, 0.72);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.badge-no {
    color: #111111;
    background: rgba(0, 200, 150, 0.35);
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(0, 200, 150, 0.25);
    border: 1px solid rgba(0, 200, 150, 0.3);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* =========================================
   TYP PODMIOTU (NAJEMCY / PODWYKONAWCY) - EFEKT SZKŁA
   ========================================= */
.badge-tenant {
    color: var(--text-main);
    background: rgba(0, 200, 150, 0.35);
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(0, 200, 150, 0.25);
    border: 1px solid rgba(0, 200, 150, 0.3);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.badge-subcontractor {
    color: var(--text-main);
    background: rgba(74, 144, 226, 0.4); /* Cieplejszy niebieski */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(74, 144, 226, 0.25);
    border: 1px solid rgba(74, 144, 226, 0.35);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.badge-employee {
    color: var(--text-main);
    background: rgba(0, 200, 150, 0.35); /* Zielony */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(0, 200, 150, 0.25);
    border: 1px solid rgba(0, 200, 150, 0.3);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.badge-standard {
    color: var(--text-main);
    background: rgba(0, 180, 255, 0.35); /* Wodny błękit */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(0, 180, 255, 0.25);
    border: 1px solid rgba(0, 180, 255, 0.3);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.action-create {
    color: var(--text-main);
    background: rgba(102, 166, 74, 0.42);
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.8), 0 3px 10px rgba(102, 166, 74, 0.32);
    border: 1px solid rgba(102, 166, 74, 0.46);
}

.action-update {
    color: var(--text-main);
    background: rgba(255, 159, 67, 0.45); /* Słoneczny, jaskrawy pomarańcz */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.8), 0 3px 10px rgba(255, 159, 67, 0.35);
    border: 1px solid rgba(255, 159, 67, 0.6);
}

.action-delete {
    color: var(--text-main);
    background: rgba(255, 71, 87, 0.45); /* Żywa, jasna (koralowa) czerwień */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.8), 0 3px 10px rgba(255, 71, 87, 0.35);
    border: 1px solid rgba(255, 71, 87, 0.6);
}

.action-login {
    color: var(--text-main);
    background: rgba(74, 144, 226, 0.45); /* Lazurowy niebieski */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.8), 0 3px 10px rgba(74, 144, 226, 0.35);
    border: 1px solid rgba(74, 144, 226, 0.6);
}

/* =========================================
   STATUSY AWIZACJI I PARKINGU - EFEKT SZKŁA
   ========================================= */
.status-active {
    color: var(--text-main);
    background: rgba(47, 191, 74, 0.45); /* Cieplejsza, mocna zieleń */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.8), 0 3px 10px rgba(47, 191, 74, 0.35);
    border: 1px solid rgba(47, 191, 74, 0.6);
}

.status-year-round {
    color: var(--text-main);
    background: rgba(255, 159, 67, 0.45); /* Taki sam jak action-update */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.8), 0 3px 10px rgba(255, 159, 67, 0.35);
    border: 1px solid rgba(255, 159, 67, 0.6);
}

.status-archive {
    color: var(--text-main);
    background: rgba(165, 177, 194, 0.35); /* Czysty, jasny perłowy-szary (zamiast brudnego fioletu) */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.8), 0 3px 8px rgba(165, 177, 194, 0.2);
    border: 1px solid rgba(165, 177, 194, 0.4);
}

.data-hl-box {
    display: inline-block;
    padding: 2px 10px 2px 12px;
    font-weight: 700;
    color: var(--text-main);
    border-radius: 0 8px 8px 0;
    background-repeat: no-repeat;
    background-clip: padding-box; /* Obcina tło równo z paddingiem */
    background-size: calc(100% + 5px) 100%;
}

/* Panel najemcy — kolumna „Data utworzenia": na desktopie data i godzina w jednym
   boxie (tenant-created-full); na mobile bez zmian — dwa osobne boxy (tenant-created-split). */
.tenant-created-full {
    display: inline-block;
    white-space: nowrap;
}

.tenant-created-split {
    display: none;
}

@media (max-width: 768px) {
    .tenant-created-full {
        display: none;
    }

    .tenant-created-split {
        display: inline-block;
    }
}

/* 1. Niebieski (Domyślny akcent) */
.data-hl-blue {
    border-left: 4px solid var(--color-blue);
    background: linear-gradient(90deg, rgba(74, 144, 226, 0.15) 0%, transparent 100%);
}

/* 2. Fioletowy (Administracja/Szefostwo) */
.data-hl-purple {
    border-left: 4px solid #8f5cc6;
    background: linear-gradient(90deg, rgba(143, 92, 198, 0.2) 0%, transparent 100%);
}

/* 3. Zielony (Pozytywny / Recepcja / Gotowe) */
.data-hl-green {
    border-left: 4px solid var(--color-green);
    background: linear-gradient(90deg, rgba(0, 200, 150, 0.15) 0%, transparent 100%);
}

/* 4. Czerwony (Błędy / Odrzucone / Krytyczne) */
.data-hl-red {
    border-left: 4px solid var(--color-red);
    background: linear-gradient(90deg, rgba(255, 59, 92, 0.15) 0%, transparent 100%);
}

/* 5. Pomarańczowy (Klienci / W toku / Ostrzeżenia) */
.data-hl-orange {
    border-left: 4px solid var(--color-orange);
    background: linear-gradient(90deg, rgba(255, 159, 67, 0.15) 0%, transparent 100%);
}

/* 6. Żółty / Złoty (Czekające / Specjalne) */
.data-hl-yellow {
    border-left: 4px solid #eab308;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.15) 0%, transparent 100%);
}

/* 7. Morski / Turkusowy (Techniczne / Informacyjne) */
.data-hl-teal {
    border-left: 4px solid #5aa847;
    background: linear-gradient(90deg, rgba(90, 168, 71, 0.2) 0%, rgba(90, 168, 71, 0) 100%);
}
/* =========================================================================
   ANIMACJE "CINEMATIC REVEAL" (PERFEKCYJNIE PŁYNNE DLA FIREFOXA)
   ========================================================================= */
/* =========================================================================
   REVEAL MIĘDZY EKRANAMI
   Reveal wyzwalany jest, gdy sekcja staje się aktywna:
   • desktop  → klasa .is-active na sekcji (steruje nią kontroler full-page,
                który płynnie przewija między ekranami — patrz app-functions.js),
   • mobile   → klasa .is-visible (IntersectionObserver, natywny scroll).
   Animujemy wyłącznie opacity + transform → gładko, na kompozytorze. */
.anim-element {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.975);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.anim-element.anim-done {
    will-change: auto;
}

.anim-element.is-visible,
.snap-section.anim-seen .anim-element {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    /* Po odsłonięciu zdejmujemy warstwę GPU — w trakcie przewijania kompozytor
       (zwłaszcza Firefoxa) nie musi już utrzymywać warstwy na każdym elemencie. */
    will-change: auto;
}

/* Hero (pierwszy ekran) pokazujemy od razu, bez animacji wejścia — nie „mruga"
   przy starcie ani przy powrocie na górę i nie ma czego zacinać na Firefoxie.
   Reguła jest po regule reveal, więc wygrywa również gdy sekcja dostanie .anim-seen. */
.snap-section:first-child .anim-element {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
}

/* Subtelnie zróżnicowany ruch — mały dystans, by nie „walczył" z wjazdem ekranu. */
.anim-fade-up {
    transform: translate3d(0, 22px, 0);
}

.anim-slide-left {
    transform: translate3d(-22px, 6px, 0);
}

.anim-slide-right {
    transform: translate3d(22px, 6px, 0);
}

.anim-scale {
    transform: translate3d(0, 10px, 0) scale(0.955);
}

/* Kaskada — kolejne elementy sekcji odsłaniają się płynnie jeden po drugim. */
.delay-100 { transition-delay: 0.06s; }
.delay-200 { transition-delay: 0.13s; }
.delay-300 { transition-delay: 0.20s; }
.delay-400 { transition-delay: 0.27s; }
.delay-500 { transition-delay: 0.34s; }

/* Dostępność: przy preferencji ograniczenia ruchu treść jest widoczna od razu. */
@media (prefers-reduced-motion: reduce) {
    .anim-element {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =========================================================================
   LEWITACJA OBIEKTÓW (Bez obciążania GPU Firefoxa)
   ========================================================================= */
@keyframes floatY {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}
/* =========================================================================
   NOWE ELEMENTY LANDING PAGE (SEKCJE 2, 3, 4) - WYPEŁNIENIE PUSTKI
   ========================================================================= */

/* Wypukłe listy funkcji zamiast zwykłych kropek */
.neu-feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.neu-feature-item {
    background: var(--bg-color);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}

    .neu-feature-item:hover {
        transform: translateX(10px);
    }

.neu-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--bg-color);
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.neu-feature-text h4 {
    margin: 0 0 8px 0;
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 800;
}

.neu-feature-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Lewitujące, szklane plakietki dookoła grafik (Glassmorphism) */
.floating-glass-badge {
    position: absolute;
    background: rgba(224, 229, 236, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 12px 12px 24px rgba(190, 195, 207, 0.5), -12px -12px 24px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    /* Usunięto animację floatY */
}

/* Wymuszenie zatrzymania pływania głównych grafik */
.wide-tablet, .mockup-cards-stack, .mockup-chat {
    animation: none !important;
}

.graphic-content-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ==========================================================================
   PIN GENERATED - atrakcyjna kompozycja
   ========================================================================== */
.ex-pin-generated-step {
    justify-content: center !important;
}

.ex-pin-success-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(24px, 4vh, 48px) clamp(24px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(12px, 2vh, 20px);
    background: transparent;
}

.ex-pin-success-icon {
    width: clamp(80px, 11vh, 110px);
    height: clamp(80px, 11vh, 110px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #00c896 0%, #4a90e2 100%);
    box-shadow: 0 12px 28px rgba(0, 200, 150, 0.35), 6px 6px 14px #bec3cf, -6px -6px 14px #ffffff;
    animation: ex-pin-pop 360ms cubic-bezier(.2,.9,.3,1.4);
}

.ex-pin-success-icon svg {
    width: 56%;
    height: 56%;
}

@keyframes ex-pin-pop {
    0% { transform: scale(0.4); opacity: 0; }
    70% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

.ex-pin-success-title {
    margin: 4px 0 0;
    font-size: clamp(1.8rem, 4.5vh, 2.6rem);
    font-weight: 900;
    color: #00c896;
    letter-spacing: 0.02em;
}

.ex-pin-success-subtitle {
    margin: 0;
    color: #6c7293;
    font-size: clamp(1rem, 2vh, 1.2rem);
}

.ex-pin-display-label {
    margin-top: clamp(8px, 1.5vh, 16px);
    color: #6c7293;
    font-size: clamp(0.95rem, 1.8vh, 1.1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.ex-pin-display {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 1.6vw, 18px);
    margin: 4px 0 4px;
}

.ex-pin-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(54px, 8vw, 80px);
    padding: clamp(10px, 1.8vh, 18px) clamp(8px, 1.6vw, 14px);
    font-size: clamp(2.4rem, 6vh, 3.6rem);
    font-weight: 900;
    color: #3d4468;
    font-variant-numeric: tabular-nums;
    border-bottom: 4px solid #4a90e2;
    line-height: 1;
    background: transparent;
}

.ex-pin-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: clamp(4px, 1vh, 12px);
    color: #6c7293;
    font-size: clamp(0.9rem, 1.7vh, 1rem);
}

.ex-pin-hint svg {
    color: #4a90e2;
    flex-shrink: 0;
}

.ex-pin-ack-btn {
    width: 100%;
    max-width: 360px;
    margin-top: clamp(12px, 2vh, 22px) !important;
    color: #00c896 !important;
}

/* ==========================================================================
   EXIT CONFIRMATION - odswiezony layout
   ========================================================================== */
.ex-confirm-title {
    color: #3d4468 !important;
}

.ex-confirm-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(20px, 3.5vh, 40px) clamp(24px, 4vw, 48px);
    background: transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.5vh, 16px);
}

.ex-confirm-icon-circle {
    width: clamp(82px, 11vh, 110px);
    height: clamp(82px, 11vh, 110px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ff3b5c 0%, #ff6b6b 100%);
    box-shadow: 0 12px 28px rgba(255, 59, 92, 0.32), 6px 6px 14px #bec3cf, -6px -6px 14px #ffffff;
}

.ex-confirm-icon-circle svg {
    width: 54%;
    height: 54%;
}

.ex-confirm-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c7293;
    font-size: clamp(0.95rem, 1.8vh, 1.05rem);
    background: #e0e5ec;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff;
}

.ex-confirm-meta strong {
    color: #3d4468;
    font-weight: 800;
}

.ex-confirm-actions-row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: stretch;
    gap: clamp(10px, 1.5vw, 18px) !important;
    width: 100%;
}

.ex-confirm-actions-row .ex-neu-btn-small {
    min-width: 0;
    flex: 1 1 0;
    max-width: 320px;
    white-space: nowrap;
    padding-left: clamp(12px, 2vw, 24px);
    padding-right: clamp(12px, 2vw, 24px);
    font-size: clamp(0.95rem, 2vh, 1.25rem);
}

.ex-confirm-actions-row .ex-confirm-btn {
    flex: 1.4 1 0;
    max-width: 360px;
}

.ex-confirm-actions-row .ex-confirm-btn,
.ex-confirm-actions-row .ex-cancel-btn {
    order: 0;
}

/* ============================================================
   Wygaszacz ekranu kiosku (/kiosk2) — premium ciemny.
   Pełnoekranowy overlay attract: zegar + administracja + obiekt + adres.
   Znika na dotyk (obsługa w EntryExitModal). z-index nad modalem (12001/12500).
   ============================================================ */
.kiosk-ss-overlay {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    background:
        radial-gradient(120% 120% at 50% 0%, #232048 0%, #141229 55%, #0c0a1c 100%);
    animation: kioskSsFade 600ms ease both;
}

/* Miękkie, powoli przesuwające się poświaty w kolorach marki */
.kiosk-ss-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
}

.kiosk-ss-glow-a {
    width: 46vw;
    height: 46vw;
    top: -14vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.85) 0%, rgba(155, 89, 182, 0) 70%);
    animation: kioskSsFloatA 16s ease-in-out infinite;
}

.kiosk-ss-glow-b {
    width: 52vw;
    height: 52vw;
    bottom: -20vw;
    right: -14vw;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.8) 0%, rgba(74, 144, 226, 0) 70%);
    animation: kioskSsFloatB 20s ease-in-out infinite;
}

.kiosk-ss-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 1.6vh, 22px);
    padding: 24px;
    animation: kioskSsRise 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kiosk-ss-clock {
    display: flex;
    align-items: baseline;
    gap: 0.12em;
    font-weight: 200;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-shadow: 0 0 38px rgba(120, 130, 255, 0.35);
    font-variant-numeric: tabular-nums;
}

.kiosk-ss-hm {
    font-size: clamp(4.5rem, 16vw, 12rem);
}

.kiosk-ss-sec {
    font-size: clamp(1.6rem, 4.5vw, 3.4rem);
    font-weight: 300;
    color: #8ea2ff;
    transform: translateY(-0.15em);
    letter-spacing: 0.04em;
}

.kiosk-ss-date {
    font-size: clamp(1rem, 2.4vw, 1.7rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.62);
    text-transform: capitalize;
    letter-spacing: 0.06em;
}

.kiosk-ss-divider {
    width: clamp(90px, 12vw, 170px);
    height: 2px;
    margin: clamp(6px, 1.4vh, 18px) 0;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(155, 89, 182, 0) 0%, #9b59b6 35%, #4a90e2 65%, rgba(74, 144, 226, 0) 100%);
}

.kiosk-ss-admin {
    font-size: clamp(0.85rem, 1.7vw, 1.15rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #b8a4e8;
}

.kiosk-ss-building {
    font-size: clamp(1.7rem, 4.4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.kiosk-ss-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.95rem, 2vw, 1.35rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.58);
}

.kiosk-ss-address svg {
    width: 1.1em;
    height: 1.1em;
    opacity: 0.7;
}

.kiosk-ss-hint {
    position: absolute;
    bottom: clamp(30px, 7vh, 76px);
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
}

/* Wyraźny przycisk-CTA „Dotknij ekran, aby rozpocząć" */
.kiosk-ss-hint-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: clamp(13px, 1.7vh, 20px) clamp(26px, 3.4vw, 46px);
    border-radius: 999px;
    font-size: clamp(1.05rem, 2.2vw, 1.55rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    /* domyślnie (motyw ciemny) — półprzezroczysta pigułka */
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: kioskSsBreathe 2.2s ease-in-out infinite;
}

.kiosk-ss-hint-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #4a90e2;
    box-shadow: 0 0 14px 2px rgba(74, 144, 226, 0.8);
    flex: 0 0 auto;
    animation: kioskSsDot 2.2s ease-in-out infinite;
}

/* ============================================================
   Ekran powitalny gościa (KioskWelcome) — stylistyka jak wygaszacz (motyw "minimal":
   jasny, neumorficzny, ciemny tekst). Strzałka po lewej kieruje gościa do bramki.
   ============================================================ */
.kiosk-welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 13500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #3d4468;
    cursor: pointer;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    background: #e9ecf2;
    animation: kioskSsFade 500ms ease both;
}

.kiosk-welcome-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 6vw, 90px);
    padding: 24px;
    animation: kioskSsRise 750ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kiosk-welcome-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #9b59b6;
    flex: 0 0 auto;
}

    .kiosk-welcome-arrow svg {
        width: clamp(120px, 20vw, 260px);
        height: auto;
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
        animation: kioskWelcomeArrow 1.8s ease-in-out infinite;
    }

.kiosk-welcome-gate {
    font-size: clamp(0.85rem, 1.7vw, 1.15rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #9b59b6;
}

.kiosk-welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.4vh, 18px);
    max-width: min(70vw, 760px);
}

.kiosk-welcome-eyebrow {
    font-size: clamp(0.9rem, 1.8vw, 1.25rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #9b59b6;
}

.kiosk-welcome-building {
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    color: #3d4468;
}

.kiosk-welcome-divider {
    width: clamp(90px, 12vw, 170px);
    height: 2px;
    margin: clamp(4px, 1vh, 12px) 0;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(155, 89, 182, 0) 0%, #9b59b6 35%, #4a90e2 65%, rgba(74, 144, 226, 0) 100%);
}

.kiosk-welcome-name {
    font-size: clamp(1.5rem, 3.6vw, 2.6rem);
    font-weight: 700;
    color: #3d4468;
    letter-spacing: 0.01em;
}

.kiosk-welcome-purpose {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    font-size: clamp(1rem, 2.1vw, 1.4rem);
    color: #6c7293;
}

.kiosk-welcome-purpose-label {
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9b59b6;
    font-weight: 700;
}

.kiosk-welcome-purpose-value {
    font-weight: 600;
    color: #3d4468;
}

.kiosk-welcome-hint {
    margin-top: clamp(6px, 1.4vh, 16px);
    font-size: clamp(0.95rem, 2vw, 1.35rem);
    font-weight: 400;
    color: #828bab;
    max-width: 640px;
}

.kiosk-welcome-taphint {
    position: absolute;
    bottom: clamp(20px, 5vh, 54px);
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.kiosk-welcome-taphint-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    color: #3d4468;
    background: #eef1f6;
    border: none;
    box-shadow: 6px 6px 14px #cdd2dd, -6px -6px 14px #ffffff;
}

.kiosk-welcome-taphint-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #9b59b6;
    box-shadow: 0 0 12px 2px rgba(155, 89, 182, 0.45);
    animation: kioskSsDot 2.2s ease-in-out infinite;
}

@keyframes kioskWelcomeArrow {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(-16px, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@media (max-width: 680px) {
    .kiosk-welcome-layout {
        flex-direction: column;
        gap: clamp(16px, 3vh, 32px);
    }

        .kiosk-welcome-arrow svg {
            width: clamp(96px, 40vw, 180px);
        }
}

@media (prefers-reduced-motion: reduce) {
    .kiosk-welcome-overlay,
    .kiosk-welcome-layout,
    .kiosk-welcome-arrow svg,
    .kiosk-welcome-taphint-dot {
        animation: none;
    }
}

@keyframes kioskSsBreathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

@keyframes kioskSsDot {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.25); }
}

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

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

@keyframes kioskSsPulse {
    0%, 100% { opacity: 0.32; }
    50%      { opacity: 0.85; }
}

@keyframes kioskSsFloatA {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(6vw, 4vh); }
}

@keyframes kioskSsFloatB {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-5vw, -3vh); }
}

@media (prefers-reduced-motion: reduce) {
    .kiosk-ss-overlay,
    .kiosk-ss-content,
    .kiosk-ss-glow-a,
    .kiosk-ss-glow-b,
    .kiosk-ss-hint-pill,
    .kiosk-ss-hint-dot {
        animation: none;
    }
}

/* ============================================================
   Motywy wygaszacza. Baza (.kiosk-ss-overlay i potomne) = motyw CIEMNY ("dark").
   Poniższe klasy nadpisują go jaśniejszymi wariantami spójnymi z neumorfizmem
   aplikacji. Wybór przez ?ss=neu|minimal|soft|dark (domyślnie neu).
   ============================================================ */

/* ── neu: neumorficzny (domyślny, najbliższy aplikacji) ───────────────── */
.kiosk-ss-neu {
    background: #e0e5ec;
    color: #3d4468;
}
.kiosk-ss-neu .kiosk-ss-glow { display: none; }
.kiosk-ss-neu .kiosk-ss-content {
    background: #e0e5ec;
    border-radius: clamp(28px, 4vw, 48px);
    padding: clamp(38px, 6vh, 78px) clamp(46px, 8vw, 120px);
    box-shadow: 18px 18px 36px #bec3cf, -18px -18px 36px #ffffff;
}
.kiosk-ss-neu .kiosk-ss-clock {
    color: #3d4468;
    text-shadow: 3px 3px 6px #c4cad6, -3px -3px 6px #ffffff;
}
.kiosk-ss-neu .kiosk-ss-sec { color: #4a90e2; }
.kiosk-ss-neu .kiosk-ss-date { color: #6c7293; }
.kiosk-ss-neu .kiosk-ss-admin { color: #9b59b6; }
.kiosk-ss-neu .kiosk-ss-building { color: #3d4468; }
.kiosk-ss-neu .kiosk-ss-address { color: #9499b7; }
.kiosk-ss-neu .kiosk-ss-hint-pill {
    color: #3d4468;
    background: #e0e5ec;
    border: none;
    box-shadow: 7px 7px 16px #bec3cf, -7px -7px 16px #ffffff;
}
.kiosk-ss-neu .kiosk-ss-hint-dot { background: #4a90e2; box-shadow: 0 0 12px 2px rgba(74, 144, 226, 0.5); }

/* ── minimal: jasny, lekki, płaski (dużo światła, bez karty) ──────────── */
.kiosk-ss-minimal {
    background: #e9ecf2;
    color: #3d4468;
}
.kiosk-ss-minimal .kiosk-ss-glow { display: none; }
.kiosk-ss-minimal .kiosk-ss-content { background: transparent; box-shadow: none; padding: 24px; }
.kiosk-ss-minimal .kiosk-ss-clock { color: #3d4468; text-shadow: none; font-weight: 200; }
.kiosk-ss-minimal .kiosk-ss-sec { color: #9b59b6; }
.kiosk-ss-minimal .kiosk-ss-date { color: #828bab; }
.kiosk-ss-minimal .kiosk-ss-admin { color: #9b59b6; }
.kiosk-ss-minimal .kiosk-ss-building { color: #3d4468; font-weight: 600; }
.kiosk-ss-minimal .kiosk-ss-address { color: #9499b7; }
.kiosk-ss-minimal .kiosk-ss-hint-pill {
    color: #3d4468;
    background: #eef1f6;
    border: none;
    box-shadow: 6px 6px 14px #cdd2dd, -6px -6px 14px #ffffff;
}
.kiosk-ss-minimal .kiosk-ss-hint-dot { background: #9b59b6; box-shadow: 0 0 12px 2px rgba(155, 89, 182, 0.45); }
.kiosk-ss-minimal .kiosk-ss-divider { opacity: 0.7; }

/* ── soft: jasny z subtelnymi poświatami marki + karta glass/neu ──────── */
.kiosk-ss-soft {
    background: radial-gradient(120% 120% at 50% 0%, #eef1f7 0%, #e0e5ec 58%, #d4dae7 100%);
    color: #3d4468;
}
.kiosk-ss-soft .kiosk-ss-glow { opacity: 0.22; filter: blur(100px); }
.kiosk-ss-soft .kiosk-ss-glow-a { background: radial-gradient(circle, rgba(155, 89, 182, 0.55) 0%, rgba(155, 89, 182, 0) 70%); }
.kiosk-ss-soft .kiosk-ss-glow-b { background: radial-gradient(circle, rgba(74, 144, 226, 0.5) 0%, rgba(74, 144, 226, 0) 70%); }
.kiosk-ss-soft .kiosk-ss-content {
    background: rgba(231, 235, 242, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: clamp(28px, 4vw, 44px);
    padding: clamp(34px, 5.5vh, 72px) clamp(44px, 8vw, 112px);
    box-shadow: 14px 14px 30px rgba(150, 160, 180, 0.45), -14px -14px 30px rgba(255, 255, 255, 0.8);
}
.kiosk-ss-soft .kiosk-ss-clock {
    color: #3d4468;
    text-shadow: 2px 2px 5px rgba(150, 160, 180, 0.4), -2px -2px 5px rgba(255, 255, 255, 0.7);
}
.kiosk-ss-soft .kiosk-ss-sec { color: #4a90e2; }
.kiosk-ss-soft .kiosk-ss-date { color: #6c7293; }
.kiosk-ss-soft .kiosk-ss-admin { color: #9b59b6; }
.kiosk-ss-soft .kiosk-ss-building { color: #3d4468; }
.kiosk-ss-soft .kiosk-ss-address { color: #8a90ad; }
.kiosk-ss-soft .kiosk-ss-hint-pill {
    color: #3d4468;
    background: rgba(231, 235, 242, 0.7);
    border: none;
    box-shadow: 7px 7px 16px rgba(150, 160, 180, 0.4), -7px -7px 16px rgba(255, 255, 255, 0.85);
}
.kiosk-ss-soft .kiosk-ss-hint-dot { background: #9b59b6; box-shadow: 0 0 12px 2px rgba(155, 89, 182, 0.5); }


/* Ekran ładowania kiosku — widoczny natychmiast (render statyczny) do czasu
   zamontowania wyspy WASM, po czym usuwany przez hideKioskBootLoader(). */
#kiosk-boot-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e5ec;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
}

/* Karta wyśrodkowana tą samą techniką co działający modal reconnectu
   (fixed + 50%/50% + translate), powiększona dla ekranu kiosku. */
#kiosk-boot-loader .auth-neumorphic-card {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 70px 100px;
}

#kiosk-boot-loader .auth-logo {
    width: 320px;
    margin-bottom: 45px;
}

#kiosk-boot-loader .auth-spinner-blue {
    width: 88px;
    height: 88px;
    border-width: 7px;
    margin-bottom: 35px;
}

#kiosk-boot-loader .auth-loading-text {
    font-size: 2rem;
}

/* ============================================================================
   MOBILE BASELINE — iPhone 15 (≈393px). Warstwa awaryjna dla paneli klienta /
   admina / najemcy / firmy serwisowej + logowanie + landing. Działa TYLKO ≤480px,
   więc NIE dotyka widoków recepcji/kiosku (tablet/desktop). Cel: „nic się nie
   rozjeżdża i żadne dane nie znikają". Docelowy clean polish tabel robimy per-strona.
   ============================================================================ */
@media (max-width: 480px) {
    /* Strona nigdy nie przewija się w poziomie. clip (nie hidden!): hidden zmusza
       overflow-y do auto, przez co body staje się zagnieżdżonym scrollerem i na
       Androidzie/Chrome (POCO) zjada gest przewijania — strona nie scrolluje, dopóki
       modal nie ustawi body na overflow:hidden. clip przycina poziomo bez tworzenia
       scrollera, więc pionowy scroll zostaje wyłącznie na <html>. */
    html, body { max-width: 100%; overflow-x: clip; }

    /* Tabele danych: poziome przewijanie w obrębie kontenera zamiast łamania
       layoutu / przycinania kolumn — wszystkie informacje pozostają dostępne. */
    .neu-table-container,
    .table-area {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .neu-table { min-width: 680px; }

    /* Układy „obok siebie" (logi: sidebar+tabela, komunikacja: edytor+podgląd)
       oraz inne sztywno szerokie kontenery — przycinamy do szerokości ekranu. */
    .logs-layout,
    .filters-sidebar,
    .page-wrapper,
    .header-container,
    .email-composer-card,
    .email-preview-card,
    .preview-content-box,
    .users-sections {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Układy flex „w rzędzie" składamy w pion. */
    .logs-layout { flex-direction: column !important; }

    /* Pozostałe siatki wielokolumnowe → jedna kolumna. */
    .admin-grid,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Zielona i niebieska poświata (login + landing) wyłączona na telefonach. */
    .landing-corner-glow,
    .landing-corner-glow--green,
    .landing-corner-glow--blue {
        display: none !important;
    }
}

/* ============================================================================
   LANDING PAGE — urządzenia dotykowe (telefony/tablety) i wąskie ekrany.
   ============================================================================ */
@media (hover: none) {
    /* (2) Cztery kafelki funkcji NIE rozwijają się na dotyk — zostają zwinięte
       (widoczny krótki opis, szczegóły schowane), bez podnoszenia karty. */
    .card-wrapper:hover { z-index: 1; }
    .feature-card-interactive:hover {
        transform: translateZ(0);
        box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    }
    .feature-card-interactive:hover .feature-short-desc { max-height: 100px; opacity: 1; }
    .feature-card-interactive:hover .card-hidden-details { max-height: 0; opacity: 0; margin-top: 0; }

    /* (4) Pozostałe kafelki (listy cech w kolejnych sekcjach) nie reagują na dotyk. */
    .neu-feature-item:hover { transform: none; }
}

@media (max-width: 650px) {
    /* (1) Sekcja „Stworzone dla administracji…" wyśrodkowana. */
    .trusted-section,
    .trusted-section p { text-align: center; }
    .trusted-badges { justify-content: center; }

    /* (3) Brak scroll-snapu między sekcjami → wyraźniejsze odstępy między 4 kafelkami. */
    .features-grid-huge { gap: 26px; }
    .card-wrapper { margin-bottom: 8px; }
}

/* ============================================================================
   ACCOUNT BAR — akcje konta na dashboardach.
   Desktop: przyciski neumorficzne w nagłówku. Mobile (≤480px): stały pasek
   z ikonami na dole ekranu (zmiana hasła / kody MFA / dane firmy / wyloguj).
   ============================================================================ */
.account-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.account-bar-logout-form { margin: 0; }

.account-bar-item {
    background: #e0e5ec;
    border: none;
    border-radius: 15px;
    padding: 10px 18px;
    color: #3d4468;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 6px 6px 14px #bec3cf, -6px -6px 14px #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.account-bar-item svg { flex-shrink: 0; }
.account-bar-item:hover { transform: translateY(-2px); box-shadow: 8px 8px 18px #bec3cf, -8px -8px 18px #ffffff; }
.account-bar-item:active { box-shadow: inset 3px 3px 6px #bec3cf, inset -3px -3px 6px #ffffff; }
.account-bar-logout { color: #ff3b5c; }

@media (max-width: 480px) {
    .account-bar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 1200;
        background: #e0e5ec;
        box-shadow: 0 -6px 18px rgba(190, 195, 207, 0.7);
        padding: 8px 6px;
        gap: 4px;
        flex-wrap: nowrap;
        justify-content: space-around;
    }
    .account-bar-logout-form { flex: 1; display: flex; }
    .account-bar-item {
        flex: 1;
        flex-direction: column;
        gap: 4px;
        padding: 8px 4px;
        min-width: 0;
        border-radius: 12px;
        box-shadow: none;
        font-size: 0.62rem;
        font-weight: 700;
        text-align: center;
        justify-content: center;
    }
    .account-bar-item span { font-size: 0.6rem; line-height: 1.1; }
    .account-bar-item:hover { transform: none; box-shadow: none; }
    .account-bar-item:active { box-shadow: inset 2px 2px 5px #bec3cf, inset -2px -2px 5px #ffffff; }

    /* Dymek czatu podniesiony nad stały dolny pasek akcji konta, żeby się nie nakładały. */
    .chat-floating-container {
        bottom: 88px !important;
    }

    /* Mniejsze okno czatu na telefonach (rozmiar + wnętrze). */
    .chat-window {
        width: 86vw !important;
        max-width: 340px !important;
        max-height: 60dvh !important;
        border-radius: 20px;
        margin-bottom: 14px;
    }

    .chat-header {
        padding: 12px 16px;
        font-size: 0.92rem;
    }

    .chat-messages {
        padding: 14px;
        gap: 10px;
    }

    .message-bubble {
        font-size: 0.84rem;
        padding: 9px 13px;
    }

    .chat-input-area {
        padding: 12px;
        gap: 10px;
    }

    .chat-input-area input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Recepcja: „Menu" jako hamburger bez obrysu (reszta przycisków recepcji). */
.reception-menu-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px !important;
    color: #3d4468;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.reception-menu-toggle:hover { transform: none !important; color: #4a90e2; }

/* Treść dashboardów nie chowa się za dolnym paskiem konta na mobile. */
@media (max-width: 480px) {
    .dashboard-wrapper { padding-bottom: 92px !important; }
}

/* ============================================================================
   MOBILE: dashboardy admin/klient/najemca/firma techniczna
   ============================================================================ */
@media (max-width: 480px) {
    /* Zbędna duża przestrzeń nad ikoną SVG na wejściu w panel — przycinamy. */
    .command-center-intro { margin-top: 24px !important; }

    /* Przyciski cofania ukryte na mobile — użytkownik wraca gestem/przyciskiem
       przeglądarki. Sekcje panelu najemcy są teraz podpięte pod historię przeglądarki
       (tenantSectionHistory), więc ich przyciski też chowamy. */
    .back-btn, .section-back { display: none !important; }
}

/* ============================================================================
   MOBILE: wyśrodkowane tytuły i opisy stron (panele admin/klient/najemca/serwis).
   ============================================================================ */
@media (max-width: 480px) {
    .header-container { text-align: center !important; justify-content: center !important; }
    .header-container h1,
    .header-container h2,
    .header-container p,
    .main-title,
    .main-title + p,
    .section-title,
    .section-desc,
    .page-title,
    .page-subtitle { text-align: center !important; }
}

/* ============================================================================
   #3 FILTRY POD PRZYCISKIEM (mobile). Pływający „Filtry" przełącza .filters-shown.
   ============================================================================ */
.filters-fab { display: none; }

@media (max-width: 480px) {
    /* Filtr zwinięty domyślnie; pokazujemy po kliknięciu „Filtry". */
    html:not(.filters-shown) .filters-sidebar,
    html:not(.filters-shown) .action-filters { display: none !important; }

    html.has-filter .filters-fab {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        right: 14px;
        bottom: 24px;
        z-index: 1150;
        background: #4a90e2;
        color: #ffffff;
        border: none;
        border-radius: 24px;
        padding: 12px 18px;
        font-weight: 700;
        font-size: 0.85rem;
        box-shadow: 4px 4px 14px rgba(190, 195, 207, 0.85);
    }
    html.filters-shown.has-filter .filters-fab { background: #3d4468; }
}

/* ============================================================================
   ClientRequests (Weryfikacja Wniosków) — mobilne poprawki tabeli i modala
   ============================================================================ */

/* Etykiety typu (GOŚCIE / PARKING / AWIZACJA) nigdy nie łamią się na pojedyncze litery. */
.req-type-label { white-space: nowrap; }

@media (max-width: 430px) {
    /* Przyciski Akceptuj / Odrzuć w kolumnie Akcje — na telefonie tylko ikona (✓ / ✗),
       tekst chowany (podpowiedź pozostaje w title). Maksymalnie kompaktowe. */
    .req-decision-btn {
        min-width: 0 !important;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        gap: 0 !important;
        flex: 0 0 auto !important;
    }
    .req-decision-btn .btn-label { display: none !important; }
    .req-decision-btn svg { margin-right: 0 !important; }

    /* Wiersz DW (akceptacja wniosku + zakładka Komunikacja): pole e-mail w osobnym
       wierszu, a „Dodaj" (mały) i „Lista kontaktów" (duży) obok siebie w następnym. */
    .cc-input-row { flex-wrap: wrap !important; }
    .cc-input-row .cc-email-input { flex: 1 1 100% !important; width: 100% !important; }
    .cc-input-row .cc-add-btn { flex: 0 0 auto !important; width: auto !important; padding: 10px 14px !important; }
    .cc-input-row .cc-contacts-wrap { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; }
    .cc-input-row .cc-contacts-btn { justify-content: center !important; width: 100% !important; }

    /* Rozwijana lista kontaktów nie może wychodzić poza ekran. */
    .cc-contacts-dropdown {
        min-width: 0 !important;
        width: max-content;
        max-width: 86vw;
        left: auto;
        right: 0;
    }

    /* Komunikacja admina: pole DW w jednym wierszu, „Dodaj" w następnym — oba pełnej szerokości. */
    .dw-stack-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .dw-stack-row > * { width: 100% !important; }
    .dw-stack-row .neu-btn-small {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Komunikacja: „Dodaj załącznik" i „Wyślij wiadomość" — każdy w osobnym wierszu. */
    .comm-actions-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .comm-actions-row > div { width: 100% !important; }
    .comm-actions-row .neu-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ============================================================================
   Formularze .neu-card-form (m.in. panel najemcy: awizacja / gość / parking,
   a także modal infrastrukturalny) — na telefonie jedno pole w wierszu oraz
   widoczne obrysy wszystkich pól.
   ============================================================================ */
@media (max-width: 480px) {
    /* Wspólne dla helpdesku i panelu najemcy (.neu-card-form): bez „poświaty"
       (duży neumorficzny cień bazowy z .neu-card-form), za to z widocznymi obrysami pól.
       Szerokość/zaokrąglenie/scroll ustawiają scoped CSS odpowiednich paneli. */
    .neu-card-form {
        box-shadow: none !important;
    }

    .neu-card-form input.neu-input,
    .neu-card-form select.neu-input,
    .neu-card-form textarea.neu-input {
        border: 1.5px solid rgba(122, 134, 168, 0.5) !important;
        box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light) !important;
    }

    /* minmax(0,1fr) — kolumna może zwęzić się poniżej treści; element siatki (.form-group)
       też musi mieć min-width:0, inaczej natywne pole daty (własne min-width w shadow DOM)
       rozpycha formularz. */
    .neu-card-form .form-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        min-width: 0 !important;
    }
    .neu-card-form .form-grid > .form-group,
    .neu-card-form .form-group {
        min-width: 0 !important;
    }

    /* Fizyczne ograniczenie pól daty — appearance:none zdejmuje natywne min-width iOS. */
    .neu-card-form input[type="date"],
    .neu-card-form input[type="date"].neu-input {
        -webkit-appearance: none !important;
        appearance: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* To samo dla formularzy w modalach (.modal-card) i na stronach (.page-wrapper),
       m.in. wszystkie formularze recepcji (awizacje/goście/parking/notatki, dodawanie
       i edycja). Bez tego natywne pola dat/godzin rozpychały formularz poza ekran,
       a 95vw + padding bez border-box dawał poziomy scroll. */
    .modal-card {
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    .modal-card .form-grid,
    .page-wrapper .form-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        min-width: 0 !important;
    }

    .modal-card .form-grid > .form-group,
    .modal-card .form-group,
    .page-wrapper .form-grid > .form-group,
    .page-wrapper .form-group {
        min-width: 0 !important;
    }

    .modal-card input[type="date"],
    .modal-card input[type="time"],
    .modal-card input[type="datetime-local"],
    .page-wrapper input[type="date"],
    .page-wrapper input[type="time"],
    .page-wrapper input[type="datetime-local"] {
        -webkit-appearance: none !important;
        appearance: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* Formularz raportu PDF (np. w widoku wszystkich awizacji) ma własne klasy
       (.pdf-modal-card / .pdf-modal-input), więc powtarzamy fixy: widoczne ramki pól,
       mieszczenie się w kafelku i brak rozpychania przez natywne pola dat. */
    .pdf-modal-card {
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    .pdf-modal-input {
        border: 1.5px solid rgba(122, 134, 168, 0.45) !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .pdf-modal-input:focus {
        border-color: rgba(74, 144, 226, 0.75) !important;
    }

    .pdf-modal-card input[type="date"] {
        -webkit-appearance: none !important;
        appearance: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
    }
}

/* ============================================================================
   Chipy wyboru firm serwisowych (formularz tworzenia ticketu + szczegóły).
   ============================================================================ */
.assign-sp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.assign-sp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0e5ec;
    color: #3d4468;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: inset 2px 2px 4px #bec3cf, inset -2px -2px 4px #ffffff;
}

.assign-sp-chip-existing { color: #047857; }

.assign-sp-chip-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c7293;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.assign-sp-chip-remove {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #ff3b5c;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
}

/* ============================================================================
   Matryca Zgłoszeń (ClientFacilityTicketConfig) — na mobile modale konfiguracji
   (Nowe pole / SLA) mają wewnętrzne siatki 2-kolumnowe, które wypychają treść
   poza ekran. Składamy je w jedną kolumnę.
   ============================================================================ */
@media (max-width: 430px) {
    .modal-card [style*="minmax(320px, 1fr) minmax(420px, 1.2fr)"],
    .modal-card [style*="repeat(2, minmax(180px, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* Matryca — wyśrodkowana kolumna treści. Pełna szerokość była optycznie przesunięta
   w lewo, bo pionowy pasek przewijania (root) zabiera ~17px z prawej. Równe marginesy
   auto przy ograniczonej szerokości dają symetryczny, wyśrodkowany układ. */
.matrix-section,
.matrix-actions {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Macierz: desktop = stary układ 2-kolumnowy, mobile = obecny układ ramek.
   Markup obu wariantów współistnieje, przełączany szerokością ekranu. */
.matrix-desktop-view {
    display: block;
}

.matrix-mobile-view {
    display: none;
}

@media (max-width: 768px) {
    .matrix-desktop-view {
        display: none;
    }

    .matrix-mobile-view {
        display: block;
    }
}

/* ============================================================================
   ActiveAvization (Awizacje) — proporcje kolumn na mobile.
   Globalna reguła wymusza table-layout:auto + min-width:1100px (większa
   specyficzność), więc tu sięgamy po table-layout:fixed i sztywne szerokości,
   z selektorem `.neu-table-container table.avization-table`, który ją przebija.
   Opis najszerszy; Zakres dat, PPOŻ i Asysta/Ochrona zdecydowanie węższe.
   ============================================================================ */
@media (max-width: 430px) {
    .neu-table-container table.avization-table {
        table-layout: fixed !important;
        width: max-content !important;  /* = suma szerokości kolumn; NIE ściska do ekranu,
                                           więc kolumny są czytelne, a tabela scrolluje poziomo */
        min-width: 0 !important;        /* kasuje globalne min-width:980/1100px */
    }

    /* Kasujemy globalną „podłogę" min-width:130px i pozwalamy zawijać treść. */
    .neu-table-container table.avization-table th,
    .neu-table-container table.avization-table td {
        min-width: 0 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    .neu-table-container table.avization-table .data-hl-box {
        white-space: normal !important;
    }

    /* „Data maila": rok nie może uciekać do nowego wiersza, a godzina ma mieć ten sam
       format (fioletowy „pill") co data — na desktopie zostaje text-muted (nietknięte). */
    .neu-table-container table.avization-table .aviz-mail-date,
    .neu-table-container table.avization-table .aviz-mail-time {
        white-space: nowrap !important;
    }
    .neu-table-container table.avization-table .aviz-mail-time {
        display: inline-block;
        margin-top: 4px;
        padding: 2px 10px 2px 12px;
        font-weight: 700;
        color: var(--text-main);
        border-radius: 0 8px 8px 0;
        border-left: 4px solid #8f5cc6;
        background: linear-gradient(90deg, rgba(143, 92, 198, 0.2) 0%, transparent 100%);
        background-repeat: no-repeat;
        background-clip: padding-box;
    }

    /* Sztywne, czytelne szerokości kolumn; Opis zdecydowanie największy. */
    .neu-table-container table.avization-table th:nth-child(1),
    .neu-table-container table.avization-table td:nth-child(1) { width: 84px !important; }   /* Status */
    .neu-table-container table.avization-table th:nth-child(2),
    .neu-table-container table.avization-table td:nth-child(2) { width: 112px !important; }  /* Budynek / Data maila */
    .neu-table-container table.avization-table th:nth-child(3),
    .neu-table-container table.avization-table td:nth-child(3) { width: 120px !important; }  /* Firma */
    .neu-table-container table.avization-table th:nth-child(4),
    .neu-table-container table.avization-table td:nth-child(4) { width: 130px !important; }  /* Zakres dat */
    .neu-table-container table.avization-table th:nth-child(5),
    .neu-table-container table.avization-table td:nth-child(5) { width: 300px !important; }  /* Opis — najszerszy */
    .neu-table-container table.avization-table th:nth-child(6),
    .neu-table-container table.avization-table td:nth-child(6) { width: 130px !important; }  /* Osoba kontaktowa */
    .neu-table-container table.avization-table th:nth-child(7),
    .neu-table-container table.avization-table td:nth-child(7) { width: 52px !important; }   /* PPOŻ */
    .neu-table-container table.avization-table th:nth-child(8),
    .neu-table-container table.avization-table td:nth-child(8) { width: 52px !important; }   /* Asysta / Ochrona */
    .neu-table-container table.avization-table th:nth-child(9),
    .neu-table-container table.avization-table td:nth-child(9) { width: 76px !important; }   /* Akcje (tylko ActiveAvization) */
}

/* ===========================================================================
   Rejestry najemcy (awizacje / parking) — poprawki WYŁĄCZNIE mobilne.
   Na desktopie inline'owe transform: translateX(...) na kolumnie Status są
   potrzebne i pozostają nietknięte. Poniżej je nadpisujemy tylko gdy tabela
   przechodzi w tryb przewijany (≤768px), żeby status nie nachodził na sąsiednie
   kolumny. Domyślnie (desktop) wariant zakresu w dwóch wierszach jest ukryty.
   =========================================================================== */
.aviz-zakres-2line { display: none; }

@media (max-width: 768px) {
    /* Awizacje: status (4. kolumna) nie może nachodzić na kolumnę z opisem */
    .tenant-aviz-reg-table th:nth-child(4),
    .tenant-aviz-reg-table td:nth-child(4) {
        transform: none !important;
    }

    /* Awizacje: opis (Wnioskodawca / Firma, 3. kolumna) ma być najszerszy */
    .tenant-aviz-reg-table th:nth-child(3),
    .tenant-aviz-reg-table td:nth-child(3) {
        min-width: 300px !important;
    }

    /* Awizacje: zakres dat w dwóch wierszach (od / do), ten sam format co data */
    .tenant-aviz-reg-table .aviz-zakres-1line { display: none; }
    .tenant-aviz-reg-table .aviz-zakres-2line { display: block; }

    /* Parking: status (4. kolumna) odsunięty od imienia i nazwiska */
    .tenant-parking-reg-table th:nth-child(4),
    .tenant-parking-reg-table td:nth-child(4) {
        transform: none !important;
    }

    /* Rejestr gości: „Data utworzenia" miała inline translateX(100px), który na mobile
       nachodził na „Imię i Nazwisko". Zerujemy — data wraca bliżej statusu, do swojej
       kolumny. Desktop bez zmian (inline transform działa tylko poza media query). */
    .guests-created-col {
        transform: none !important;
    }
}

/* ============================================================================
   GLOBALNY FIX SCROLLA (POCO / Android) — dla WSZYSTKICH ról, dashboardów i podwidoków.
   Przyczyna: overflow-x:hidden / overflow-x:auto na rosnącym kontenerze zmusza
   przeglądarkę do policzenia overflow-y jako `auto`. Kontener staje się wtedy
   zagnieżdżonym kontenerem przewijania i na Androidzie/Chrome (POCO/MIUI) PRZECHWYTUJE
   pionowy gest — strona nie scrolluje, mimo że to <html>/viewport ma przewijać.
   Najmocniej widać to, gdy element wypełnia ekran (np. tabela w widoku listy).

   Fix:
   • Rosnące kontenery stron (.page-wrapper, .dashboard-wrapper — wszystkie role) →
     overflow-x: clip. clip przycina poziome przepełnienie BEZ tworzenia scrollera,
     więc overflow-y zostaje `visible` i gest przechodzi do <html>.
   • Kontenery tabel na mobile (.table-area, .neu-table-container) → overflow-y: hidden.
     Tabela nadal przewija się POZIOMO (overflow-x:auto), ale nie tworzy pionowego
     scrollera, który przechwytywał gest. overflow-x:auto + overflow-y:hidden to
     legalna para (żadna oś nie jest visible/clip), więc nic się nie psuje.
   !important — bo per-stronowe reguły scoped mają wyższą specyficzność.
   ============================================================================ */
.page-wrapper,
.dashboard-wrapper,
.public-wrapper {
    overflow-x: clip !important;
}

@media (max-width: 768px) {
    .table-area,
    .neu-table-container {
        /* Tabela scrolluje TYLKO poziomo (overflow-y:hidden). Gest pionowy nie ma czego
           przewijać w tabeli, więc ma „przejść" do strony:
           • touch-action: auto — pozwala i poziomy (tabela), i pionowy (strona). UWAGA:
             samo pan-x WYŁĄCZA pionowy gest — dlatego wcześniej nie działało.
           • overscroll-behavior: auto — pozwala pionowemu scrollowi „przeskoczyć" z tabeli
             na stronę (contain to blokował). */
        overflow-y: hidden !important;
        touch-action: auto !important;
        overscroll-behavior: auto !important;
    }
}

/* ============================================================
   Raporty obchodów — modal szczegółów. Formatowanie PŁASKIE:
   bez wklęsłych (inset) ani wypukłych (raised) kafelków — tylko
   cienkie linie i subtelne tła.
   ============================================================ */
/* Ta sama czcionka i kolor co wartości w kolumnie „Punkty". */
.report-reason-cell {
    display: block;
    color: var(--text-main);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-detail-card {
    max-width: 640px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.report-detail-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

/* Ikona na standardowym kaflu neumorficznym (jak w innych modalach), czerwona. */
.report-detail-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e5ec;
    box-shadow: 6px 6px 12px #bec3cf, -6px -6px 12px #ffffff;
    color: #ff3b5c;
    margin-bottom: 14px;
}

.report-detail-title {
    color: #3d4468;
    margin: 0;
    font-size: 1.5rem;
}

.report-detail-sub {
    color: #9499b7;
    margin: 6px 0 0;
    font-size: 0.95rem;
}

/* Podsumowanie — płaska lista par etykieta/wartość, oddzielona cienkimi liniami. */
.report-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    margin-bottom: 18px;
}

.report-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 11px 2px;
    border-bottom: 1px solid rgba(190, 195, 207, 0.45);
}

/* Tylko etykieta (pierwszy span) — NIE badge statusu, żeby Kompletny/Niekompletny
   miały identyczną czcionkę z klasy .status-badge. */
.report-stat > span:first-child {
    font-size: 0.82rem;
    color: #9499b7;
    font-weight: 600;
}

.report-stat b {
    color: #3d4468;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
}

/* Powód — płaski akcent pomarańczową linią z lewej (bez tła-kafelka). */
.report-reason {
    border-left: 3px solid #ff9f43;
    padding: 4px 0 4px 14px;
    margin-bottom: 18px;
    color: #6c7293;
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-reason strong { color: #3d4468; }

.report-section-title {
    color: #3d4468;
    font-weight: 700;
    font-size: 1.02rem;
    margin: 18px 0 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(190, 195, 207, 0.45);
}

.report-list {
    display: flex;
    flex-direction: column;
}

/* Wiersz odbicia — płaski, oddzielony cienką linią (bez cienia). */
.report-scan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(190, 195, 207, 0.35);
}

.report-scan:last-child { border-bottom: none; }

.report-scan-no {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(47, 191, 74, 0.18);
    color: #1f9d6b;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-scan-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.report-scan-name {
    color: #3d4468;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-scan-meta {
    color: #9499b7;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-scan-side {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-scan-time {
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
}

.report-scan-gps {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4a90e2;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.report-scan-gps:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .report-summary { grid-template-columns: 1fr; }
}

/* ============================================================
   Usterki — komórki linków. min-height 32px zachowuje wysokość
   wiersza taką, jakby były przyciski akcji (których tu nie ma).
   ============================================================ */
.fault-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}

/* ============================================================
   Strony błędów (404 / 403 / 500 …) — neumorficzna karta z logo.
   ============================================================ */
.err-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-color);
}

.err-card {
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;
    background: var(--bg-color);
    border-radius: 30px;
    padding: 40px 34px;
    text-align: center;
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.err-logo {
    width: 220px;
    max-width: 80%;
    height: auto;
    margin-bottom: 22px;
}

.err-code {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.err-title {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.err-msg {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.5;
    margin: 0 auto 8px;
    max-width: 360px;
}

.err-reqid {
    color: #9499b7;
    font-size: 0.78rem;
    margin: 12px 0 0;
}

.err-reqid code {
    color: var(--text-main);
    word-break: break-all;
}

.err-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.err-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text-main);
    background: var(--bg-color);
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.err-btn:hover {
    transform: translateY(-2px);
    box-shadow: 7px 7px 14px var(--shadow-dark), -7px -7px 14px var(--shadow-light);
}

.err-btn-primary {
    color: #ffffff;
    background: var(--color-blue);
    box-shadow: 5px 5px 12px rgba(74, 144, 226, 0.35), -4px -4px 10px var(--shadow-light);
}

.err-btn-primary:hover {
    box-shadow: 7px 7px 16px rgba(74, 144, 226, 0.42), -5px -5px 12px var(--shadow-light);
}

/* Animowana strzałka „scroll/akcja" na dashboardach — globalnie, żeby działała w KAŻDYM
   panelu ze strzałką (także tam, gdzie CSS izolowany komponentu jej nie definiuje, np. panel
   ochrony). Panele z własną regułą (Home/Najemca) mają wyższą specyficzność i nadpisują tę. */
.command-center-arrow {
    animation: commandArrowBounce 1.25s ease-in-out infinite;
    transform-origin: center;
}

@keyframes commandArrowBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
