/* ============================================================
   OLAMI.PL — GŁÓWNY ARKUSZ STYLÓW
   ============================================================
   SPIS TREŚCI:
    1.  Zmienne CSS (Design Tokens)
    2.  Reset i podstawy globalne
    3.  Nagłówek i stopka (publiczne)
    4.  Nawigacja
    5.  Przyciski
    6.  Formularze i inputy
    7.  Alerty i komunikaty
    8.  Karty i kontenery ogólne
    9.  Odznaki i statusy (Badges)
   10.  Panel fotografa — layout główny
   11.  Sidebar (boczny panel)
   12.  Topbar panelu
   13.  Dashboard
   14.  Lista sesji
   15.  Zarządzanie sesją (zdjęcia fotografa)
   16.  Uploader zdjęć
   17.  Galeria klienta
   18.  Podsumowanie i podziękowanie
   19.  Zamówienia odbitek
   20.  Profil i ustawienia
   21.  Klienci
   22.  Powiadomienia
   23.  Kalendarz
   24.  Modale
   25.  Paginacja
   26.  Strona główna — Landing Page (Indigo Night)
   27.  Autoryzacja — Logowanie / Rejestracja
   28.  Panel SaaS Admin
   29.  Responsywność — Media Queries
   30.  Animacje
   ============================================================ */


/* ============================================================
   1. ZMIENNE CSS (DESIGN TOKENS)
   ============================================================ */
:root {
    /* Kolory podstawowe (klasyczny motyw panelu) */
    --color-primary:       #3498db;
    --color-primary-dark:  #2980b9;
    --color-success:       #2ecc71;
    --color-danger:        #e74c3c;
    --color-warning:       #f1c40f;
    --color-dark:          #2c3e50;
    --color-light:         #ffffff;
    --color-gray-light:    #f4f6f8;
    --color-gray-medium:   #bdc3c7;
    --color-gray-dark:     #7f8c8d;

    /* Kolory specjalistów (Kalendarz) */
    --color-mua:           #e91e63;
    --color-hair:          #9c27b0;
    --color-assistant:     #e67e22;
    --color-session:       #3498db;

    /* Indigo Night (Landing, Auth, Panel nowy) */
    --indigo-primary:      #4f46e5;
    --indigo-dark:         #020617;
    --indigo-surface:      #0f172a;
    --indigo-muted:        #94a3b8;
    --indigo-text:         #f8fafc;

    /* Layout panelu bocznego */
    --sidebar-width:       260px;
    --sidebar-bg:          #0f172a;
    --sidebar-header-bg:   #020617;
    --sidebar-text:        #94a3b8;
    --sidebar-active-text: #ffffff;
    --sidebar-active-bg:   #1e293b;
    --panel-bg:            #f8fafc;

    /* Globalne */
    --font-family:         'Inter', 'Helvetica Neue', Arial, sans-serif;
    --border-radius:       8px;
    --border-radius-lg:    16px;
    --border-radius-xl:    24px;
    --box-shadow:          0 4px 6px rgba(0, 0, 0, 0.08);
    --box-shadow-md:       0 4px 20px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   2. RESET I PODSTAWY GLOBALNE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
    font-family: var(--font-family);
    margin: 0;
    background-color: var(--color-gray-light);
    color: var(--color-dark);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main.container { flex-grow: 1; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 { margin-top: 0; line-height: 1.2; }

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }


/* ============================================================
   3. NAGŁÓWEK I STOPKA (PUBLICZNE)
   ============================================================ */
.main-header,
.main-footer {
    background-color: var(--color-light);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
}

.main-header .container,
.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.5rem; font-weight: bold; color: var(--color-dark); }
.logo:hover { text-decoration: none; }

.client-logo { max-height: 50px; width: auto; }


/* ============================================================
   4. NAWIGACJA
   ============================================================ */
nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}


/* ============================================================
   5. PRZYCISKI
   ============================================================ */

/* --- Wspólne stany focus-visible (dostępność klawiatury) --- */
.btn:focus-visible,
.s-btn-action:focus-visible,
.btn-primary:focus-visible,
.action-btn:focus-visible,
.action-btn-small:focus-visible,
.btn-copy:focus-visible,
.ann-btn:focus-visible,
.pf-btn-edit:focus-visible,
.pf-btn-delete:focus-visible,
.pf-btn-cancel:focus-visible,
.p-btn:focus-visible {
    outline: 2px solid var(--indigo-primary);
    outline-offset: 2px;
}

/* --- Bazowy .btn --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--indigo-primary);
    color: var(--color-light);
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn:hover {
    background-color: #4338ca;
    color: var(--color-light);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.btn:active { transform: translateY(0); box-shadow: none; }

/* --- Warianty kolorystyczne .btn --- */
.btn-secondary { background: #e2e8f0; color: #475569; }
.btn-secondary:hover { background: #cbd5e1; color: #334155; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.btn-secondary:active { transform: translateY(0); box-shadow: none; }

.btn-warning { background-color: #fbbf24; color: #78350f; }
.btn-warning:hover { background-color: #f59e0b; color: #78350f; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.btn-warning:active { transform: translateY(0); box-shadow: none; }

.btn-danger { background-color: #ef4444; color: var(--color-light); border: none; cursor: pointer; font-family: var(--font-family); }
.btn-danger:hover { background-color: #dc2626; color: var(--color-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
.btn-danger:active { transform: translateY(0); box-shadow: none; }

/* --- Przyciski akcji w tabelach --- */
.action-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 14px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 8px;
    border: none;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.action-btn:hover { background: var(--indigo-primary); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25); }
.action-btn:active { transform: translateY(0); box-shadow: none; }

.action-btn.btn-edit { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.action-btn.btn-edit:hover { background: #f59e0b; color: #fff; border-color: #f59e0b; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); }

.action-btn.btn-delete { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; font-family: var(--font-family); cursor: pointer; }
.action-btn.btn-delete:hover { background: #ef4444; color: #fff; border-color: #ef4444; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); }

/* --- Przycisk kopiowania --- */
.btn-copy {
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 5px;
    transition: all 0.2s ease;
}
.btn-copy:hover { background: var(--indigo-primary); color: #fff; border-color: var(--indigo-primary); }
.btn-copy:active { transform: scale(0.96); }


/* ============================================================
   6. FORMULARZE I INPUTY
   ============================================================ */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }

.form-group label { color: #64748b; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-family);
    background: #fff;
    color: #1e293b;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--indigo-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-group-row { display: flex; gap: 20px; }
.form-group-row .form-group { flex: 1; }

.link-input {
    padding: 5px 8px;
    border: 1px solid var(--color-gray-medium);
    border-radius: 3px;
    width: 250px;
    background-color: var(--color-gray-light);
    font-size: 0.9rem;
}

.search-form-container { margin-left: auto; }
.search-form-container form {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-gray-medium);
    border-radius: 20px;
    background-color: var(--color-light);
    overflow: hidden;
}
.search-input { border: none; padding: 8px 15px; font-size: 0.9rem; outline: none; width: 250px; }
.search-btn { border: none; background: transparent; padding: 8px 12px; cursor: pointer; font-size: 1.1rem; }

/* Autocomplete sugestii */
.client-search-group,
.category-search-group { position: relative; }

.client-suggestions,
.category-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--color-gray-medium);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background-color: var(--color-gray-light); }
.suggestion-item small { color: var(--color-gray-dark); }

.client-fieldset,
.category-fieldset {
    border: 1px solid var(--color-gray-medium);
    border-radius: var(--border-radius);
    padding: 10px 20px 20px 20px;
    margin-bottom: 20px;
}
.client-fieldset legend,
.category-fieldset legend { padding: 0 10px; font-weight: bold; color: var(--color-gray-dark); }

.event-options { border: 1px solid var(--color-gray-light); border-radius: var(--border-radius); padding: 15px; margin-top: 20px; }
.event-options legend { padding: 0 10px; font-size: 0.9rem; color: var(--color-gray-dark); }
.checkbox-group { display: flex; align-items: center; margin-bottom: 10px; }
.checkbox-group input[type="checkbox"] { margin-right: 10px; width: 18px; height: 18px; }


/* ============================================================
   7. ALERTY I KOMUNIKATY
   ============================================================ */
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: var(--border-radius); }
.alert-danger { color: #dc2626; background-color: #fef2f2; border-color: #fecaca; }
.alert-danger ul { margin: 0; padding-left: 20px; }
.alert-success { color: #16a34a; background-color: #f0fdf4; border-color: #bbf7d0; }


/* ============================================================
   8. KARTY I KONTENERY OGÓLNE
   ============================================================ */
.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    border-left: 6px solid var(--indigo-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    text-align: left;
}
.stat-card h3 { margin-top: 0; font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 5px; }
.stat-card p { font-size: 28px; font-weight: 900; font-style: italic; color: #1e293b; margin: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }

.text-center { text-align: center; }


/* ============================================================
   9. ODZNAKI I STATUSY (BADGES)
   ============================================================ */
.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .85em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .35rem;
    color: var(--color-light);
}
.badge-success { background-color: var(--color-success); }
.badge-warning { background-color: var(--color-warning); color: var(--color-dark); }
.badge-info    { background-color: var(--color-primary); }
.badge-dark    { background-color: var(--color-dark); }

.status-badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .8em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    color: #fff;
    text-transform: capitalize;
}
.status-oczekuje_na_zdjecia, .status-oczekuje-na-zdjecia { background-color: var(--color-gray-dark); }
.status-oczekuje_na_wybor, .status-oczekuje-na-wybor     { background-color: var(--color-warning); color: var(--color-dark); }
.status-wybrane                                          { background-color: var(--color-success); }

/* Odznaki "soon" */
.soon-badge {
    font-size: 0.7rem;
    background: var(--color-warning);
    color: var(--color-dark);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: bold;
    vertical-align: middle;
}


/* ============================================================
   10. PANEL FOTOGRAFA — LAYOUT GŁÓWNY
   ============================================================ */
.panel-body { background-color: var(--panel-bg); }

.panel-layout {
    display: flex;
    min-height: 100vh;
}

.panel-main {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.panel-content { padding: 30px; flex-grow: 1; }

.panel-content .container { padding: 0; max-width: 100%; }


/* ============================================================
   11. SIDEBAR (BOCZNY PANEL)
   ============================================================ */
.panel-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 10000;
    transition: left 0.3s ease-in-out;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: left;
    background: var(--sidebar-header-bg);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-header .logo {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
}
.sidebar-header .logo span { color: var(--indigo-primary); }

.sidebar-nav { flex-grow: 1; overflow-y: auto; }
.sidebar-nav ul { list-style: none; padding: 15px 0; margin: 0; display: block; }
.sidebar-nav li { display: block; width: 100%; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}
.sidebar-nav a:hover { background: var(--sidebar-active-bg); color: #fff; text-decoration: none; }
.sidebar-nav li.active > a {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    border-left-color: var(--indigo-primary);
    font-weight: bold;
}

/* Ikona w nawigacji bocznej */
.nav-icon { margin-right: 12px; font-size: 1.2rem; width: 25px; text-align: center; }

/* Submenu w sidebarze */
.sidebar-nav .submenu {
    background: var(--sidebar-header-bg);
    padding: 5px 0;
    display: none;
    list-style: none;
    margin: 0;
}
.sidebar-nav .submenu a { padding: 10px 25px 10px 60px; font-size: 0.85rem; color: #95a5a6; border-left: none; }
.sidebar-nav .submenu a:hover { color: var(--indigo-primary); }
.sidebar-nav .has-submenu > a { display: flex; justify-content: space-between; align-items: center; }
.sidebar-nav .arrow { font-size: 0.7rem; margin-left: auto; opacity: 0.5; }

/* Klasy sidebaru z nowym panelem (pfp-*) */
.pfp-nav-container { display: flex !important; flex-direction: column !important; width: 100% !important; }

/* Linki proste (Dashboard, Sesje, Klienci, etc.) */
.pfp-item {
    display: flex !important;
    align-items: center !important;
    padding: 11px 16px !important;
    margin-bottom: 2px !important;
    color: #94a3b8 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
}
.pfp-item:hover { background: rgba(255,255,255,0.06) !important; color: #e2e8f0 !important; }
.pfp-item.pfp-active {
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    color: white !important;
    box-shadow: 0 8px 20px -4px rgba(79,70,229,0.45) !important;
    font-weight: 700 !important;
}

/* Ikona w linkach prostych */
.pfp-icon { width: 20px; height: 20px; color: currentColor; flex-shrink: 0; margin-right: 12px; }
.pfp-link-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Grupy z submenu (Odbitki, Finanse, Komunikacja, Ustawienia) */
.pfp-group { margin-bottom: 2px; }
.pfp-group-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 11px 16px !important;
    color: #94a3b8 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    font-family: inherit !important;
}
.pfp-group-btn:hover { background: rgba(255,255,255,0.06) !important; color: #e2e8f0 !important; }
.pfp-group-btn-left { display: flex; align-items: center; gap: 0; }
.pfp-group-text { white-space: nowrap; }
.pfp-icon-sm { width: 18px; height: 18px; color: currentColor; flex-shrink: 0; margin-right: 12px; }

/* Chevron ikona rozwijania */
.pfp-chevron {
    width: 16px;
    height: 16px;
    color: #475569;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.pfp-chevron-open { transform: rotate(180deg); color: #818cf8; }

/* Panel submenu */
.pfp-sub-panel {
    margin: 2px 0 6px 0 !important;
    padding: 4px 0 4px 12px !important;
    border-left: 2px solid rgba(79,70,229,0.25) !important;
    margin-left: 26px !important;
}

/* Linki w submenu */
.pfp-sub-item {
    display: flex !important;
    align-items: center !important;
    padding: 9px 14px !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-radius: 8px !important;
    margin-bottom: 1px !important;
}
.pfp-sub-item:hover { color: #c7d2fe !important; background: rgba(255,255,255,0.04) !important; }
.pfp-sub-item.pfp-active {
    color: white !important;
    background: rgba(79,70,229,0.2) !important;
    font-weight: 700 !important;
}
.pfp-sub-item .pfp-icon-sm { width: 16px; height: 16px; margin-right: 10px; opacity: 0.7; }
.pfp-sub-item.pfp-active .pfp-icon-sm { opacity: 1; }

/* Etykiety sekcji sidebaru */
.pfp-section-label {
    font-size: 9px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    color: #475569 !important;
    padding: 18px 20px 6px !important;
    margin-top: 4px !important;
    position: relative !important;
}
.pfp-section-label::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(255,255,255,0.05);
}

/* Stopka sidebaru */
.sidebar-footer {
    padding: 15px 0;
    background: var(--sidebar-header-bg);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.logout-link { color: var(--color-danger) !important; }
.logout-link:hover { background: rgba(231, 76, 60, 0.1) !important; }


/* ============================================================
   12. TOPBAR PANELU
   ============================================================ */
.panel-topbar {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 1px 0 #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    z-index: 9000;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Przycisk hamburgera (ukryty na komputerze) */
.sidebar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: auto;
    z-index: 10001;
    flex-shrink: 0;
}
.sidebar-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 10px;
    transition: all 0.3s linear;
}


/* ============================================================
   13. DASHBOARD
   ============================================================ */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h1 { font-size: 2.2rem; font-weight: 900; text-transform: uppercase; font-style: italic; color: #1e293b; letter-spacing: -1px; margin: 0; }
.dashboard-header h1 span { color: var(--indigo-primary); }

.dashboard-filters {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 24px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dashboard-filters span { font-weight: bold; margin-right: 10px; color: #1e293b; }
.dashboard-filters a { text-decoration: none; padding: 8px 18px; border-radius: 100px; background: #f1f5f9; color: #64748b; font-size: 0.85rem; font-weight: 700; transition: all 0.2s; }
.dashboard-filters a:hover { background: var(--indigo-primary); color: #fff; }
.dashboard-filters a.active { background: var(--indigo-primary); color: #fff; }

/* Grid dashboardu */
.dashboard-main-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Nowoczesne karty dashboardu */
.card-modern {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding: 28px;
    border: 1px solid #e2e8f0;
}
.card-modern h2 { margin-top: 0; font-size: 1.1rem; font-weight: 900; text-transform: uppercase; font-style: italic; letter-spacing: -0.5px; color: #1e293b; border-bottom: 2px solid #f1f5f9; padding-bottom: 15px; margin-bottom: 20px; }

/* Karty statystyk — soft tint (alias dla .s-stat-card) */
.stat-pill {
    --pill-color: #4f46e5;
    background: color-mix(in srgb, var(--pill-color) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--pill-color) 14%, transparent);
    border-radius: 20px;
    padding: 22px 24px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    position: relative;
    overflow: hidden;
}
.stat-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pill-color);
    opacity: 0.9;
}
.stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--pill-color) 18%, transparent);
    border-color: color-mix(in srgb, var(--pill-color) 28%, transparent);
}
.stat-pill h3 {
    margin: 0 0 10px 0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: color-mix(in srgb, var(--pill-color) 72%, #0f172a);
}
.stat-pill p {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* Sekcje dashboardu */
.activity-feed-container,
.dashboard-section {
    background: #fff;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

/* Nadchodzące sesje */
.upcoming-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}
.upcoming-item:last-child { border-bottom: none; }

.date-box {
    text-align: center;
    background: #f8fafc;
    padding: 10px;
    border-radius: 16px;
    min-width: 65px;
    border: 1px solid #e2e8f0;
}
.date-box .day { display: block; font-size: 1.1rem; font-weight: 900; font-style: italic; color: #1e293b; }
.date-box .hour, .date-box .time { font-size: 0.75rem; color: #94a3b8; font-weight: 700; }

.client-name { font-weight: bold; font-size: 1.1rem; color: var(--indigo-primary); }
.session-meta { font-size: 0.85rem; color: #94a3b8; margin: 4px 0; line-height: 1.4; }

/* Aktywność klientów */
.activity-feed { list-style: none; padding: 0; margin: 0; }
.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #334155;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 55%;
}
.activity-icon.selection {
    background-color: #e0e7ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f46e5' d='M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z'/%3E%3C/svg%3E");
}
.activity-icon.print_order {
    background-color: #dcfce7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2316a34a' d='M19,8H5A3,3 0 0,0 2,11V17A3,3 0 0,0 5,20H19A3,3 0 0,0 22,17V11A3,3 0 0,0 19,8M19,18H5A1,1 0 0,1 4,17V11A1,1 0 0,1 5,10H19A1,1 0 0,1 20,11V17A1,1 0 0,1 19,18M18,3H6V8H18V3Z'/%3E%3C/svg%3E");
}
.activity-content { flex-grow: 1; }
.activity-content p { margin: 0; }
.activity-date { font-size: 0.85rem; color: #94a3b8; flex-shrink: 0; margin-left: 20px; }

.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-row { display: flex; align-items: flex-start; gap: 15px; padding: 15px 0; border-bottom: 1px solid #f1f5f9; }
.activity-row:last-child { border-bottom: none; }
.icon-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-selection { background: #e0e7ff; color: var(--indigo-primary); }
.icon-order { background: #dcfce7; color: #16a34a; }

.view-all-link { display: inline-block; margin-top: 20px; font-weight: bold; text-decoration: none; }

/* Tagi MUA / Fryzjer (Dashboard i inne) */
.dash-tag, .tag-mini {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 5px;
}
.tag-mua, .dash-tag.tag-mua { background: #fdedec; color: #e91e63; border: 1px solid #e91e63; }
.tag-hair, .dash-tag.tag-hair { background: #f5eef8; color: #9c27b0; border: 1px solid #9c27b0; }


/* ============================================================
   14. LISTA SESJI
   ============================================================ */
.sessions-list table { width: 100%; border-collapse: collapse; background: var(--color-light); box-shadow: var(--box-shadow); border-radius: var(--border-radius); overflow: hidden; }
.sessions-list th, .sessions-list td { padding: 15px; text-align: left; border-bottom: 1px solid var(--color-gray-light); vertical-align: middle; }
.sessions-list th { background-color: var(--color-gray-light); }
.sessions-list tbody tr:last-child td { border-bottom: none; }
.sessions-list tbody tr:hover { background-color: #ecf0f1; }

/* Nowy widok sesji (Indigo) */
#sesje-page-wrap { width: 100% !important; padding: 0; margin: 0; }

.s-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.s-h1 { font-size: 2.2rem; font-weight: 900; text-transform: uppercase; font-style: italic; color: #1e293b; letter-spacing: -1px; margin: 0; }

/* ─── Topbar: wskaźnik aktualnej podstrony ────────────────────────────────── */
.topbar-loc {
    display: none;
    align-items: center;
    gap: 14px;
    padding-left: 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-width: 0;
}
@media (min-width: 768px) {
    .topbar-loc { display: flex; }
}
.topbar-loc-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(79,70,229,0.10);
}
.topbar-loc-icon svg {
    width: 19px;
    height: 19px;
    color: #4f46e5;
    stroke-width: 2.2;
}
.topbar-loc-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1;
    min-width: 0;
}
.topbar-loc-section {
    font-size: 9px;
    font-weight: 800;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    line-height: 1;
    font-family: inherit;
}
.topbar-loc-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin: 0;
    text-transform: none;
    font-style: normal;
    line-height: 1.1;
    white-space: nowrap;
    font-family: inherit;
}

/* ─── H1 / H2 jako pastylka ──────────────────────────────────────────────── */
.s-h1-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    color: #1e1b4b;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    padding: 10px 26px 10px 20px;
    border-radius: 999px;
    margin: 0;
    line-height: 1.1;
    text-transform: none;
    font-style: normal;
    box-shadow: 0 4px 14px rgba(79,70,229,0.10);
    transition: box-shadow .22s ease, transform .22s ease;
}
.s-h1-pill::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.18);
    flex-shrink: 0;
}
.s-h1-pill:hover {
    box-shadow: 0 6px 20px rgba(79,70,229,0.16);
    transform: translateY(-1px);
}

.s-h2-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    margin: 0 0 16px;
    line-height: 1;
    text-transform: none;
    font-style: normal;
}
.s-h2-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4f46e5;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .s-h1-pill { font-size: clamp(1rem, 4.2vw, 1.35rem); padding: 8px 18px 8px 14px; gap: 10px; max-width: 100%; }
    .s-h1-pill::before { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(79,70,229,0.18); }
    .s-h2-pill { font-size: 13px; padding: 6px 14px 6px 10px; }

    /* Wallet badge — kompakt na mobile */
    .wallet-badge { padding: 6px 10px !important; }
    .wallet-badge span:first-of-type { font-size: 12px !important; }

    /* Notyfikacje dropdown — szerokość dopasowana */
    #pfp-notif-dropdown { width: calc(100vw - 24px); right: -8px; }
}

.s-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.s-h1 { font-size: 2.2rem; font-weight: 900; text-transform: uppercase; font-style: italic; color: #1e293b; letter-spacing: -1px; margin: 0; }

/* ─── Stat pill: soft tint ────────────────────────────────────────────────── */
.s-stat-card {
    --pill-color: #4f46e5;
    background: color-mix(in srgb, var(--pill-color) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--pill-color) 14%, transparent);
    border-radius: 20px;
    padding: 22px 24px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    position: relative;
    overflow: hidden;
}
.s-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pill-color);
    opacity: 0.9;
}
.s-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--pill-color) 18%, transparent);
    border-color: color-mix(in srgb, var(--pill-color) 28%, transparent);
}
.s-stat-card h3 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: color-mix(in srgb, var(--pill-color) 72%, #0f172a);
    margin: 0 0 10px 0;
}
.s-stat-card p {
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.1;
}

.s-filters-bar { background: white; padding: 20px; border-radius: 24px; border: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.s-tag { padding: 8px 18px; border-radius: 100px; background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 700; text-decoration: none; transition: 0.2s; }
.s-tag.active { background: var(--indigo-primary); color: white; box-shadow: 0 4px 12px rgba(79,70,229,0.3); }
.s-search { padding: 12px 24px; border-radius: 100px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 14px; outline: none; width: 300px; font-weight: 600; font-style: italic; color: #1e293b; }
.s-search::placeholder { color: #94a3b8; }

.s-table-container { display: none; width: 100% !important; background: white; border-radius: 28px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.02); }
.s-table { width: 100%; border-collapse: collapse; }
.s-table th { padding: 18px 25px; background: #f8fafc; color: #94a3b8; font-size: 10px; font-weight: 900; text-transform: uppercase; border-bottom: 1px solid #e2e8f0; }
.s-table td { padding: 20px 25px; border-bottom: 1px solid #f1f5f9; font-size: 14px; vertical-align: middle; color: #1e293b; }

.s-link-group { display: flex; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; padding: 4px 4px 4px 12px; border-radius: 12px; max-width: 350px; }
.s-url-text { font-size: 11px; color: #64748b; font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-grow: 1; margin-right: 10px; }
.s-copy-btn { background: var(--indigo-primary); color: white; border: none; padding: 8px 14px; border-radius: 9px; font-size: 10px; font-weight: 800; cursor: pointer; text-transform: uppercase; }

.s-mobile-list { display: block; }
.s-card { background: white; border-radius: 28px; padding: 24px; border: 1px solid #e2e8f0; margin-bottom: 16px; }
.s-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }

.s-actions-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.s-actions-scroll::-webkit-scrollbar { display: none; }

.s-btn-action {
    white-space: nowrap;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-style: italic;
    border: none;
    cursor: pointer;
    position: relative;
}
.s-btn-action:active { transform: translateY(0) scale(0.97); box-shadow: none; }

.btn-indigo { background: var(--indigo-primary); color: white !important; }
.btn-indigo:hover { background: #4338ca; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-style: italic;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
    color: #fff;
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2); }

.btn-gray { background: #f1f5f9; color: #475569 !important; border: 1px solid #e2e8f0; }
.btn-gray:hover { background: #e2e8f0; color: #334155 !important; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06); }

.btn-red { background: #fef2f2; color: #ef4444 !important; border: 1px solid #fecaca; }
.btn-red:hover { background: #fee2e2; color: #dc2626 !important; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15); }

.status-pill { padding: 4px 10px; border-radius: 6px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.pill-wait { background: #fffbeb; color: #d97706; }
.pill-done { background: #f0fdf4; color: #16a34a; }
.pill-photos { background: #eef2ff; color: #4f46e5; }


/* ============================================================
   15. ZARZĄDZANIE SESJĄ (ZDJĘCIA FOTOGRAFA)
   ============================================================ */
.session-manager { display: grid; grid-template-columns: 1fr; gap: 40px; }
.uploader-section, .photos-section, .photo-card {
    background-color: #fff;
    padding: 28px;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.manage-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.session-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }

.photos-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.photos-header h2 { margin-bottom: 10px; }

/* Filtry w zarządzaniu sesją */
.filter-pills { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-pill {
    padding: 8px 18px;
    border-radius: 100px;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    border: none;
}
.filter-pill.active { background: var(--indigo-primary); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,0.3); }
.filter-pill:hover { background: var(--indigo-primary); color: #fff; text-decoration: none; }

.filters a { padding: 8px 15px; text-decoration: none; background: var(--color-gray-light); color: var(--color-dark); border-radius: var(--border-radius); margin-left: 10px; font-weight: bold; border: 2px solid transparent; }
.filters a.active, .filters a:hover { background: var(--color-primary); color: var(--color-light); border-color: var(--color-primary-dark); }

/* Siatka zdjęć (panel fotografa) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }

.photo-item {
    position: relative;
    border-radius: 10px;
}
.photo-item-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #eee;
    background: #f8f9fa;
}
.photo-item.is-selected .photo-item-inner { border-color: var(--color-success); }
.photo-item.is-favorited .photo-item-inner { border-color: var(--color-warning); }
.photo-item-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.photo-item:hover .photo-item-inner img { transform: scale(1.1); }

.photo-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 5px;
    font-size: 0.7rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
    pointer-events: none;
    z-index: 5;
}
.photo-item:hover .photo-info-overlay { transform: translateY(0); }

/* Wstążki (Ribbon) na zdjęciach */
.ribbon { position: absolute; width: 100px; height: 100px; top: -5px; right: -5px; overflow: hidden; pointer-events: none; z-index: 5; }
.ribbon span {
    position: absolute;
    display: block;
    width: 150px;
    padding: 4px 0;
    box-shadow: 0 2px 3px rgba(0,0,0,0.3);
    color: var(--color-light);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    left: -18px;
    top: 26px;
    transform: rotate(45deg);
}
.ribbon::before, .ribbon::after { content: ""; position: absolute; z-index: -1; border-style: solid; border-color: transparent; }
.ribbon::before { top: 0; left: 2px; border-width: 0 0 5px 5px; }
.ribbon::after  { bottom: 2px; right: 0; border-width: 5px 0 0 5px; }
.ribbon.ribbon-green span { background-color: var(--color-success); font-size: 9px; letter-spacing: 0.5px; }
.ribbon.ribbon-green::before, .ribbon.ribbon-green::after { border-top-color: #27ae60; }
.ribbon.ribbon-yellow span { background-color: var(--color-warning); color: var(--color-dark); }
.ribbon.ribbon-yellow::before, .ribbon.ribbon-yellow::after { border-top-color: #c79c09; }

/* Wskaźnik komentarza (bąbel) — panel zarządzania */
.comment-indicator {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 32px;
    height: 32px;
    background: #4f46e5;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(79,70,229,0.4);
    border: 2px solid #fff;
    transition: transform 0.15s, box-shadow 0.15s;
}
.comment-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(79,70,229,0.5);
}
.comment-indicator svg { width: 15px; height: 15px; fill: #fff; }
.comment-tooltip {
    position: absolute;
    bottom: 44px;
    left: 0;
    transform: none;
    background: #0f172a;
    color: #e2e8f0;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    width: 220px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1200;
    pointer-events: none;
    text-align: left;
    white-space: normal;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
}
.comment-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 12px;
    transform: none;
    border-width: 7px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}
.comment-indicator:hover .comment-tooltip { opacity: 1; visibility: visible; bottom: 50px; }

/* Licznik zdjęć */
.photo-counts { font-size: 1rem; font-weight: normal; color: var(--color-gray-dark); margin-left: 10px; }


/* ============================================================
   16. UPLOADER ZDJĘĆ
   ============================================================ */
.custom-uploader .drop-zone {
    border: 2px dashed #c7d2fe;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    background: #f5f3ff;
}
.custom-uploader .drop-zone:hover { background-color: #ede9fe; border-color: var(--indigo-primary); }
.custom-uploader .drop-zone.drag-over { background-color: #ede9fe; border-color: var(--indigo-primary) !important; border-style: solid; }
.custom-uploader .drop-zone p { margin: 0 0 15px 0; font-size: 1rem; color: #6366f1; font-weight: 700; }

.file-list { margin-top: 20px; }
.file-item { background: #f8fafc; border: 1px solid #e2e8f0; padding: 12px; border-radius: 12px; margin-bottom: 10px; }
.file-info { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.file-name, .file-name-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    margin-right: 15px;
}
.percent-text { font-size: 0.8rem; font-weight: bold; color: var(--indigo-primary); flex-shrink: 0; }
.progress-bar-container { height: 6px; background: #e0e7ff; border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background-color: var(--indigo-primary); transition: width 0.2s ease; }


/* ============================================================
   17. GALERIA KLIENTA
   ============================================================ */
/* Pasek selekcji (górny pasek fixed) */
.selection-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-dark);
    color: var(--color-light);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    border-bottom: 3px solid var(--color-warning);
}
.selection-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.selection-info { font-size: 1.1rem; }
.selection-info strong { color: var(--color-warning); font-size: 1.3rem; }
#extra-photos-info { margin-left: 20px; color: var(--color-gray-medium); }
#submit-selection-btn:disabled { background-color: var(--color-gray-dark); cursor: not-allowed; }

.selection-actions { display: flex; align-items: center; gap: 15px; }
.selection-actions form { margin: 0; }

/* Nagłówek galerii */
.gallery-header { text-align: center; margin-bottom: 40px; padding: 20px; background: var(--color-light); border-radius: var(--border-radius); box-shadow: var(--box-shadow); }

/* Siatka zdjęć klienta */
.photo-grid-client { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }

.photo-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 4px solid transparent;
    aspect-ratio: 1/1;
    order: 2;
}
.photo-container.is-selected {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.2), 0 2px 10px rgba(0,0,0,0.06);
}
/* Client gallery base border (overridable by is-selected) */
.photo-grid-client .photo-container {
    border: 3px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.photo-container img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform 0.5s; }
.photo-container:hover img { transform: scale(1.08); }
.photo-container a { display: block; width: 100%; height: 100%; }

/* Przycisk "Wybierz" */
.select-button {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    color: #333;
    opacity: 1;
}
.photo-container.is-selected .select-button { background-color: #4f46e5 !important; color: #fff !important; }

/* Logika tekstów w przycisku selekcji */
.select-text-remove { display: none !important; }
.select-text-add    { display: inline !important; }
.photo-container.is-selected .select-text-add    { display: none !important; }
.photo-container.is-selected .select-text-remove { display: inline !important; }

/* Przycisk komentarza */
.comment-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 1;
}
.comment-button svg { width: 20px; height: 20px; fill: white; }
.comment-button.has-comment { background-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79,70,229,0.35) !important; }
.comment-button.has-comment svg { fill: #ffffff; transform: scale(1.1); }
.comment-button:hover { transform: scale(1.1); background: #4f46e5 !important; }

/* Modal komentarzy klienta */
.comment-modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    padding: 20px;
}
.comment-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.comment-modal-content h3 { margin-top: 0; margin-bottom: 20px; }
.comment-modal-content img { max-height: 200px; border-radius: 8px; margin-bottom: 20px; }
.comment-modal-content textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}
.comment-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Widok po zatwierdzeniu sesji w siatce klienta */
.photo-container.is-selected-summary { cursor: default; border-color: var(--color-success); }


/* ============================================================
   18. PODSUMOWANIE I PODZIĘKOWANIE
   ============================================================ */
.summary-container { background-color: var(--color-light); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; }
.summary-container h1 { color: var(--color-success); }
.summary-container h3 { text-align: left; margin-top: 30px; border-bottom: 2px solid var(--color-gray-light); padding-bottom: 10px; }

.summary-details { display: flex; flex-wrap: wrap; gap: 30px; margin: 30px 0; padding: 20px; background: var(--color-gray-light); border-radius: var(--border-radius); text-align: left; }
.summary-details h3 { width: 100%; margin-bottom: 0; }
.summary-details ul { list-style: none; padding: 0; margin: 0; flex: 1; }
.summary-details li { padding: 5px 0; border-bottom: 1px solid #e0e0e0; }
.summary-details li:last-child { border-bottom: none; }

.prints-promo { flex: 1; padding: 20px; background: white; border-radius: var(--border-radius); border: 2px dashed var(--color-primary); }
.prints-promo h2 { margin-top: 0; }

/* Podziękowanie — widok po zatwierdzeniu wyboru (podziekowanie_wybor.php) */
.pv-stat-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.pv-stat-item:last-child { border-bottom: none; }
.pv-stat-label { font-size: 13px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.pv-stat-value { font-size: 15px; font-weight: 900; color: #1e293b; }
.pv-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.pv-photo-item { border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; position: relative; background: #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.pv-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-photo-name { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: #fff; font-size: 10px; font-weight: 700; padding: 16px 8px 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Zapisz wybór — strona podsumowania (zapisz-wybor.php) */
.zw-stat-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.zw-stat-item:last-child { border-bottom: none; }
.zw-stat-label { font-size: 13px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.zw-stat-value { font-size: 15px; font-weight: 900; color: #1e293b; }
.zw-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.zw-photo-item { border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; position: relative; background: #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.zw-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zw-photo-name { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: #fff; font-size: 10px; font-weight: 700; padding: 16px 8px 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ============================================================
   19. ZAMÓWIENIA I ODBITKI
   ============================================================ */
.prints-order-container { background: var(--color-light); padding: 30px; border-radius: var(--border-radius); }
.prints-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 30px 0; }
.prints-photo-item { border: 1px solid var(--color-gray-medium); border-radius: var(--border-radius); overflow: hidden; }
.prints-photo-item img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.prints-photo-filename { font-weight: bold; font-size: 0.9rem; padding: 10px; margin: 0; background: var(--color-gray-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prints-photo-inputs { padding: 15px; }
.prints-photo-inputs .form-group { margin-bottom: 10px; }
.prints-photo-inputs label { font-size: 0.8rem; margin-bottom: 3px; }
.prints-order-container hr { border: none; border-top: 1px solid var(--color-gray-light); margin: 30px 0; }

/* Tabela zamówień */
.orders-table-container { background: #fff; border-radius: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); overflow-x: auto; margin-top: 20px; border: 1px solid #e2e8f0; }
.orders-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.orders-table th { background: #f8fafc; padding: 18px 20px; text-align: left; font-size: 10px; color: #94a3b8; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #e2e8f0; }
.orders-table td { padding: 18px 20px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #1e293b; font-size: 14px; }
.orders-table tr:hover { background: #f8fafc; }

/* Statusy zamówień (szczegóły) */
.status-nowe        { background: var(--color-warning) !important; color: #000 !important; }
.status-w-realizacji { background: var(--color-primary) !important; color: #fff !important; }
.status-zrealizowane { background: var(--color-success) !important; color: #fff !important; }
.status-anulowane   { background: var(--color-danger)  !important; color: #fff !important; }

/* Zamów odbitki — strona klienta (zamow-odbitki.php) */
.po-hero { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%); padding: 60px 24px 50px; text-align: center; position: relative; overflow: hidden; }
.po-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 50%, rgba(99,102,241,0.2) 0%, transparent 60%); }
.po-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.po-hero h1 { font-size: clamp(1.8rem,5vw,2.8rem); font-weight: 900; font-style: italic; text-transform: uppercase; color: #fff; margin: 0 0 12px; letter-spacing: -1px; line-height: 1.1; }
.po-hero p { color: #94a3b8; font-size: 16px; margin: 0 0 20px; font-weight: 600; }
.po-session-tag { display: inline-block; background: rgba(99,102,241,0.2); border: 1px solid rgba(99,102,241,0.4); color: #a5b4fc; padding: 8px 20px; border-radius: 100px; font-size: 13px; font-weight: 700; }
.po-print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; padding: 40px 0; }
.po-print-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #f1f5f9; transition: box-shadow 0.2s, border-color 0.2s; }
.po-print-card:hover { box-shadow: 0 8px 24px rgba(79,70,229,0.12); border-color: #c7d2fe; }
.po-print-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.po-card-body { padding: 16px; border-top: 1px solid #f1f5f9; }
.po-card-body label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 8px; }
.po-select, .po-qty { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid #e2e8f0; font-size: 14px; color: #1e293b; background: #f8fafc; outline: none; box-sizing: border-box; font-family: inherit; }
.po-select:focus, .po-qty:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.po-card-footer { padding: 12px 16px; background: #f8fafc; border-top: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.po-card-footer label { font-size: 13px; font-weight: 800; color: #1e293b; }
.po-qty { width: 90px; text-align: center; }
.po-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 10px; }
.po-contact-card { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid #f1f5f9; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.po-contact-card h2 { margin: 0 0 20px; font-size: 15px; font-weight: 900; text-transform: uppercase; font-style: italic; color: #1e293b; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.po-form-group { margin-bottom: 16px; }
.po-form-group label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 8px; }
.po-form-input { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid #e2e8f0; font-size: 14px; color: #1e293b; background: #f8fafc; outline: none; box-sizing: border-box; font-family: inherit; }
.po-form-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); background: #fff; }
.po-sticky { position: sticky; bottom: 0; background: #0f172a; border-top: 2px solid #4f46e5; padding: 16px 24px; z-index: 500; }
.po-sticky-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.po-total { font-size: 20px; font-weight: 900; font-style: italic; color: #fff; }
.po-total span { color: #a5b4fc; font-size: 13px; font-weight: 700; font-style: normal; display: block; }
.po-submit-btn { padding: 15px 40px; border-radius: 16px; border: none; background: #4f46e5; color: #fff; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; font-style: italic; cursor: pointer; box-shadow: 0 4px 20px rgba(79,70,229,0.4); transition: 0.2s; }
.po-submit-btn:hover { background: #4338ca; transform: translateY(-1px); }
.po-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 14px 20px; border-radius: 14px; font-weight: 700; font-size: 14px; margin-bottom: 20px; }

/* Baner nagłówka zamówienia */
.order-header-banner { background: #fff; padding: 25px; border-radius: 8px; box-shadow: var(--box-shadow); margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; border-left: 5px solid var(--color-primary); }
.stat-box { text-align: center; padding: 0 20px; border-right: 1px solid #eee; }
.stat-box:last-child { border-right: none; }
.stat-box span { display: block; font-size: 0.85rem; color: #666; text-transform: uppercase; }
.stat-box strong { font-size: 1.4rem; color: var(--color-dark); }

/* Lista zamówień */
.orders-list table { width: 100%; margin-top: 20px; }
.orders-list .status-badge { padding: 5px 10px; border-radius: 15px; font-size: 0.8rem; font-weight: bold; color: var(--color-light); display: inline-block; text-transform: capitalize; }
.orders-list .status-nowe         { background-color: var(--color-warning); color: var(--color-dark); }
.orders-list .status-w\ realizacji { background-color: var(--color-primary); }
.orders-list .status-zrealizowane  { background-color: var(--color-success); }
.orders-list .status-anulowane     { background-color: var(--color-danger); }

/* Szczegóły zamówienia */
.order-details-container { background: var(--color-light); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.order-header-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.order-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 30px; }
.order-card, .order-notes-card { background: var(--color-gray-light); padding: 20px; border-radius: var(--border-radius); text-align: left; }
.order-card h3, .order-notes-card h3 { margin-top: 0; font-size: 1rem; color: var(--color-gray-dark); text-transform: uppercase; margin-bottom: 15px; }
.order-card p { margin: 5px 0; }
.order-card .status-select { width: 100%; padding: 8px; border-radius: var(--border-radius); border: 1px solid var(--color-gray-medium); margin-top: 10px; font-size: 0.9rem; }
.order-notes-card { grid-column: 1 / -1; border: 1px dashed var(--color-dark); }

.prints-ordered-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin: 30px 0; }
.prints-ordered-item { border: 1px solid var(--color-gray-medium); border-radius: var(--border-radius); overflow: hidden; background: var(--color-light); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.prints-ordered-item img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.prints-details { padding: 10px; font-size: 0.9rem; }
.prints-details .filename { margin: 0 0 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prints-details p span { font-weight: bold; }

/* Zamów odbitki — strona klienta (zamow-odbitki.php) */
.print-order-page { background: #f4f7f6; min-height: 100vh; padding-bottom: 150px; }
.hero-banner { background: #ffffff; padding: 60px 20px; text-align: center; border-bottom: 1px solid #eee; box-shadow: 0 4px 12px rgba(0,0,0,0.03); margin-bottom: 40px; }
.hero-banner h1 { font-size: 2.8rem; color: var(--color-dark); font-weight: 800; margin: 0; letter-spacing: -1px; }
.hero-banner p { color: var(--color-gray-dark); font-size: 1.1rem; margin-top: 10px; }
.session-tag { display: inline-block; background: #ebf5fb; color: var(--color-primary); padding: 6px 20px; border-radius: 50px; font-weight: bold; font-size: 0.9rem; margin-top: 15px; border: 1px solid #d6eaf8; }

.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; padding: 0 40px; }
.print-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee; transition: transform 0.3s ease; display: flex; flex-direction: column; }
.print-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.print-card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; background: #fff; flex-grow: 1; }
.card-footer { background: #f8f9fa; padding: 15px 20px; border-top: 1px solid #eee; }

.form-control-custom { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #ddd; outline: none; font-family: inherit; transition: border-color 0.2s; }
.form-control-custom:focus { border-color: var(--color-primary); }

.sticky-summary { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--color-dark); color: #fff; padding: 25px 0; z-index: 1000; border-top: 4px solid var(--color-warning); box-shadow: 0 -10px 30px rgba(0,0,0,0.3); }
.total-price-text { font-size: 1.5rem; }
.total-price-text strong { color: var(--color-warning); font-size: 2.2rem; }

.contact-container { padding: 0 40px; margin-top: 50px; display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.contact-card { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee; }
.contact-card h2 { margin-top: 0; font-size: 1.4rem; color: var(--color-dark); border-bottom: 2px solid #f1f1f1; padding-bottom: 15px; margin-bottom: 20px; }


/* ============================================================
   20. PROFIL I USTAWIENIA
   ============================================================ */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-top: 30px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.settings-card { background: #fff; padding: 30px; border-radius: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid #e2e8f0; }
.settings-card h2 { margin-top: 0; font-size: 1.1rem; font-weight: 900; text-transform: uppercase; font-style: italic; color: #1e293b; border-bottom: 2px solid #f1f5f9; padding-bottom: 15px; margin-bottom: 20px; }
.settings-card hr { border: none; border-top: 1px solid #f1f5f9; margin: 20px 0; }
.logo-preview { text-align: center; margin-bottom: 20px; }
.logo-preview img { max-width: 200px; max-height: 100px; margin: 10px auto; border: 1px solid var(--color-gray-medium); padding: 5px; }

.team-box { background: #f8fafc; padding: 20px; border-radius: 16px; border: 1px solid #e2e8f0; }
.team-box label { font-size: 10px; color: #94a3b8; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; }
.copy-link-group { display: flex; gap: 5px; margin-top: 5px; }
.copy-link-group input { background: #fff; border: 1px solid #e2e8f0; font-size: 0.85rem; flex-grow: 1; border-radius: 10px; padding: 10px; color: #1e293b; }

.pkg-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.pkg-table th { text-align: left; padding: 12px; background: #f8fafc; color: #94a3b8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #e2e8f0; }
.pkg-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; color: #1e293b; }


/* ============================================================
   20b. PODSUMOWANIE KLIENTA (PODZIEKOWANIE)
   ============================================================ */
.summary-card { background: #fff; border-radius: 12px; box-shadow: var(--box-shadow-md); padding: 30px; border: 1px solid #eee; }
.promo-card { background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); border: 2px dashed var(--color-primary); padding: 25px; border-radius: 12px; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.stat-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f1f1f1; }
.stat-item:last-child { border-bottom: none; }
.stat-label { color: var(--color-gray-dark); font-weight: 500; }
.stat-value { color: var(--color-dark); font-weight: 700; }

.photo-grid-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.photo-container-summary { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); aspect-ratio: 1/1; border: 1px solid #eee; transition: transform 0.3s; }
.photo-container-summary img { width: 100%; height: 100%; object-fit: cover; }
.photo-container-summary:hover { transform: scale(1.03); z-index: 5; }
.photo-name-tag { position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.6); color: white; font-size: 0.7rem; padding: 5px; text-align: center; }


/* ============================================================
   21. KLIENCI
   ============================================================ */
/* Tabela klientów */
.client-card-container { background: #fff; border-radius: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); overflow: hidden; margin-top: 20px; border: 1px solid #e2e8f0; }
.client-table { width: 100%; border-collapse: collapse; }
.client-table th { background: #f8fafc; padding: 15px 20px; text-align: left; font-size: 10px; color: #94a3b8; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #e2e8f0; }
.client-table td { padding: 18px 20px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #1e293b; }
.client-table tr:hover { background: #f8fafc; }

.avatar-circle { width: 40px; height: 40px; background: var(--indigo-primary); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; text-transform: uppercase; box-shadow: 0 4px 10px rgba(79,70,229,0.3); }
.session-count-badge { background: #e0e7ff; color: var(--indigo-primary); padding: 4px 12px; border-radius: 100px; font-weight: 800; font-size: 12px; }
.action-btn-small { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #f1f5f9; color: #64748b; transition: all 0.2s ease; border: 1px solid #e2e8f0; text-decoration: none; cursor: pointer; }
.action-btn-small:hover { background: var(--indigo-primary); color: #fff; border-color: var(--indigo-primary); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25); }
.action-btn-small:active { transform: translateY(0) scale(0.93); box-shadow: none; }
.action-btn-small.delete:hover { background: #fef2f2; border-color: #fecaca; color: #dc2626; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15); }
.action-btn-small.delete:active { background: #fee2e2; }

.clients-list table { width: 100%; }

.client-profile-container .profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-gray-medium);
}
.client-details-card, .client-sessions-card { background: var(--color-light); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); margin-bottom: 30px; }
.client-details-card h3, .client-sessions-card h3 { margin-top: 0; }

.client-sessions-list { list-style: none; padding: 0; margin: 0; }
.client-sessions-list li a { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid var(--color-gray-light); text-decoration: none; color: var(--color-dark); transition: background-color 0.2s; }
.client-sessions-list li:last-child a { border-bottom: none; }
.client-sessions-list li a:hover { background-color: var(--color-gray-light); }
.client-sessions-list .session-title { flex-grow: 1; font-weight: bold; }
.client-sessions-list .status-badge { padding: 5px 10px; border-radius: 15px; font-size: 0.8rem; font-weight: bold; color: var(--color-light); margin: 0 20px; text-transform: capitalize; }
.client-sessions-list .session-date { font-size: 0.9rem; color: var(--color-gray-dark); }


/* ============================================================
   22. POWIADOMIENIA
   ============================================================ */
.notify-badge {
    background-color: var(--color-danger);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    position: relative;
    top: -8px;
    right: -3px;
}

.notifications-menu { position: relative; }
.notifications-menu > a { color: var(--color-dark); font-weight: 600; text-decoration: none; padding: 10px; }
.notifications-menu .dropdown-menu { margin-top: 15px; }

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    list-style: none;
    padding: 10px 0;
    margin: 10px 0 0 0;
    min-width: 700px;
    z-index: 100;
    display: block;
}
.notifications-menu:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { display: block; width: 100%; }
.dropdown-menu li a { display: block; padding: 10px 20px; white-space: normal; font-size: 0.9rem; color: var(--color-dark); }
.dropdown-menu li a:hover { background-color: var(--color-gray-light); text-decoration: none; }

/* Ogłoszenie SaaS (centralne) */
#saas-central-ann { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); }
.ann-card { background: white; width: 90%; max-width: 450px; border-radius: 30px; padding: 40px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border-top: 8px solid var(--indigo-primary); }
.ann-card h2 { font-size: 22px; font-weight: 900; color: #0f172a; margin-bottom: 15px; text-transform: uppercase; }
.ann-card p { font-size: 16px; color: #475569; line-height: 1.6; }
.ann-btn { background: var(--indigo-primary); color: white; border: none; width: 100%; padding: 16px; border-radius: 16px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all 0.25s ease; margin-top: 20px; }
.ann-btn:hover { background: #4338ca; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35); }
.ann-btn:active { transform: translateY(0); box-shadow: none; }

/* === Pasek ogłoszeń (v2 — wewnątrz <main>, sticky na górze treści) === */
.ann-bar {
    position: sticky;
    top: 0;
    width: 100%;
    overflow: hidden;
    transition: opacity .3s ease, max-height .3s ease;
    border-bottom: 1px solid rgba(0,0,0,.08);
    z-index: 40;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.ann-bar-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 24px;
    max-width: 100%;
}
.ann-bar-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-weight: 900; font-size: 14px;
    background: rgba(255,255,255,.25);
    margin-top: 2px;
}
.ann-bar-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.ann-bar-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ann-bar-msg { opacity: .95; }
.ann-bar-msg a { color: inherit !important; text-decoration: underline; font-weight: 700; }
.ann-bar-close {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 22px; line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: .7;
    transition: opacity .2s, background .2s;
}
.ann-bar-close:hover { opacity: 1; background: rgba(0,0,0,.08); }

/* Warianty kolorów */
.ann-bar--info    { background: linear-gradient(90deg, #4f46e5, #6366f1); color: #fff; }
.ann-bar--success { background: linear-gradient(90deg, #16a34a, #22c55e); color: #fff; }
.ann-bar--warning { background: linear-gradient(90deg, #d97706, #f59e0b); color: #fff; }
.ann-bar--danger  { background: linear-gradient(90deg, #dc2626, #ef4444); color: #fff; }

@media (max-width: 768px) {
    .ann-bar-inner { padding: 10px 14px; gap: 10px; }
    .ann-bar-content { font-size: 13px; }
    .ann-bar-title { display: block; margin-bottom: 2px; }
}

/* Pasek podglądu konta fotografa */
.impersonation-bar { background-color: #dc2626; color: white; text-align: center; padding: 12px; position: fixed; top: 0; left: 0; width: 100%; z-index: 999999; font-family: sans-serif; font-weight: 800; font-size: 13px; }
.impersonation-bar a { background: white; color: #dc2626; text-decoration: none; padding: 5px 15px; border-radius: 8px; margin-left: 20px; font-size: 11px; text-transform: uppercase; font-weight: 900; }


/* ============================================================
   23. KALENDARZ
   ============================================================ */
#calendar-container {
    background: var(--color-light);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #e0e0e0;
}

.fc { font-size: 1rem; }
.fc .fc-toolbar-title { font-size: 2rem; }
.fc .fc-daygrid-day-number { padding: 0.6em; font-size: 1.1em; }
.fc .fc-daygrid-day:hover { background-color: #f9f9f9; }
.fc .fc-button-primary { background-color: var(--color-primary); border-color: var(--color-primary); }
.fc .fc-button-primary:hover { background-color: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.fc .fc-daygrid-day.fc-day-today { background-color: #eaf5fc; font-weight: bold; }
.fc .fc-daygrid-day-frame { min-height: 120px; }

/* Tytuły i zawartość eventów */
.fc-event-title-container { display: flex; align-items: center; gap: 6px; overflow: hidden; }
.fc-event-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-custom-event-content { display: flex; align-items: center; padding: 2px; width: 100%; color: #ffffff !important; }
.fc-event-title-text { color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

/* Tagi specjalistów */
.event-tag { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.event-tag-makeup { background-color: var(--color-mua); }
.event-tag-hair   { background-color: var(--color-hair); }

/* Filtry i legenda kalendarza */
.calendar-filters {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background-color: var(--color-light);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.calendar-filters strong { margin-right: 5px; color: var(--color-dark); }

.filter-tag {
    padding: 6px 15px;
    border-radius: 20px;
    background-color: var(--color-gray-light);
    border: 1px solid var(--color-gray-medium);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.filter-tag:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.filter-tag.active { background-color: var(--color-dark); color: var(--color-light); border-color: var(--color-dark); }
.filter-tag.filter-makeup.active { background-color: var(--color-mua); border-color: var(--color-mua); color: white; }
.filter-tag.filter-hair.active   { background-color: var(--color-hair); border-color: var(--color-hair); color: white; }

.legend-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); }

/* Zdarzenia kalendarza — warstwy */
.fc-timegrid-event-harness {
    transition: z-index 0.1s ease;
}
.fc-event {
    border: none !important;
    border-radius: 6px !important;
    padding: 2px 4px !important;
    overflow: hidden;
    border-left: 3px solid rgba(255,255,255,0.6) !important;
    transition: all 0.2s ease;
}

/* Kolory zdarzeń */
.ev-mua-busy       { background-color: #e91e63 !important; }
.ev-hair-busy      { background-color: #9c27b0 !important; }
.ev-assistant-busy { background-color: #e67e22 !important; }
.ev-session        { background-color: #4f46e5 !important; }
.ev-studio-rental  { background-color: #2c3e50 !important; border-left: 3px solid #95a5a6 !important; }
.ev-training       { background-color: #0d9488 !important; }
.ev-day-off        { background: repeating-linear-gradient(45deg, #f59e0b, #f59e0b 8px, #fbbf24 8px, #fbbf24 16px) !important; border: 1px solid #d97706 !important; }

/* Tytuł sesji w kalendarzu */
.ev-session .fc-event-title-text,
.ev-mua-busy .fc-event-title-text,
.ev-hair-busy .fc-event-title-text,
.ev-assistant-busy .fc-event-title-text,
.ev-studio-rental .fc-event-title-text,
.ev-training .fc-event-title-text { color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.4); font-weight: 700 !important; font-size: 0.82em; padding: 1px 4px; display: inline-block; }
.ev-day-off .fc-event-title-text { color: #78350f !important; font-weight: 800 !important; font-size: 0.82em; padding: 1px 4px; display: inline-block; text-shadow: 0 1px 0 rgba(255,255,255,0.4); }

/* Hover — wyciąganie na wierzch */
.fc-timegrid-event-harness:hover { z-index: 9999 !important; }
.fc-timegrid-event-harness:hover .fc-event { box-shadow: 0 4px 16px rgba(0,0,0,0.35); transform: scale(1.02); }

/* Święta w kalendarzu */
.fc-day-holiday { background-color: rgba(220, 38, 38, 0.30) !important; }
.fc-day-holiday .fc-daygrid-day-number,
.fc-day-holiday .fc-daygrid-day-top a,
.fc-day-holiday .fc-daygrid-day-top,
.fc-day-holiday.fc-day-other .fc-daygrid-day-number,
.fc-day-holiday.fc-day-other .fc-daygrid-day-top a { color: #ef4444 !important; font-weight: 900 !important; font-size: 1.05em !important; opacity: 1 !important; }
.ev-holiday { background-color: transparent !important; border: none !important; border-left: none !important; color: #ef4444 !important; font-size: 0.7em !important; font-weight: 800 !important; opacity: 1; pointer-events: none; }
.ev-holiday .fc-event-title { color: #ef4444 !important; font-size: 0.75em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-daygrid-event.ev-holiday { margin: 0 2px !important; padding: 0 2px !important; }

/* Święta — widok dnia/tygodnia */
.fc-timegrid-event.ev-holiday { display: none !important; }
.ev-holiday-label { color: #ef4444; font-size: 0.7em; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 1.4; }

/* Widok listy (listDay) */
.fc-list-event .ev-holiday-label { font-size: 0.85em; }
.fc-list-event td { padding: 10px 12px !important; }
.fc-list-event .fc-custom-event-content { display: flex; align-items: center; gap: 6px; }
.fc-list-event .fc-event-icon { font-size: 1.1em; }
.fc-list-event .fc-event-title-text { font-size: 0.95em !important; font-weight: 700; color: #1e293b; text-shadow: none; }
.fc-list-event.ev-session .fc-list-event-dot { border-color: #4f46e5 !important; }
.fc-list-event.ev-mua-busy .fc-list-event-dot { border-color: #e91e63 !important; }
.fc-list-event.ev-hair-busy .fc-list-event-dot { border-color: #9c27b0 !important; }
.fc-list-event.ev-assistant-busy .fc-list-event-dot { border-color: #e67e22 !important; }
.fc-list-event.ev-studio-rental .fc-list-event-dot { border-color: #2c3e50 !important; }
.fc-list-event.ev-training .fc-list-event-dot { border-color: #0d9488 !important; }
.fc-list-event.ev-day-off .fc-list-event-dot { border-color: #f59e0b !important; }
.fc-list-event.ev-holiday .fc-list-event-dot { border-color: #ef4444 !important; }
.fc-list-event.ev-holiday { background: rgba(220,38,38,0.20) !important; pointer-events: none; }
.fc-list-empty { padding: 40px 20px !important; }

/* Mobilne ulepszenia kalendarza */
@media (max-width: 768px) {
    .fc-timegrid-event-harness { min-width: 40px; }
    .fc-event { padding: 1px 2px !important; border-radius: 4px !important; }
    .fc-event-title-text { font-size: 0.75em !important; }
    .ev-holiday-label { font-size: 0.6em; }
    .fc-daygrid-event.ev-holiday { margin: 0 1px !important; }
    .fc-list-event .fc-event-title-text { font-size: 0.9em !important; }
}

/* Dual-Dot */
.dual-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #ffffff; margin: 0 4px; flex-shrink: 0; }
.dot-mua  { background-color: #e91e63 !important; }
.dot-hair { background-color: #9c27b0 !important; }
.dot-both { background: linear-gradient(90deg, #e91e63 50%, #9c27b0 50%) !important; }

/* Wybór wynajmu studia */
#choice-rental:checked + label { border-color: #2c3e50; background: #f2f4f4; color: #2c3e50; }
#choice-session:checked + label { border-color: #4f46e5; background: #eef2ff; color: #4f46e5; }
#choice-training:checked + label { border-color: #0d9488; background: #f0fdfa; color: #0d9488; }
#choice-day-off:checked + label { border-color: #d97706; background: #fffbeb; color: #b45309; }

/* Typy zdarzeń — modal */
.all-day-toggle { margin-bottom: 15px; display: flex; align-items: center; gap: 8px; font-weight: bold; background: #f8f9fa; padding: 10px; border-radius: 5px; border: 1px solid #eee; }
.event-type-selector { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.event-type-selector input[type="radio"] { display: none; }
.type-tile { flex: 1 1 110px; display: flex; flex-direction: column; align-items: center; padding: 15px 8px; border: 2px solid #eee; border-radius: 10px; cursor: pointer; transition: all 0.2s; background: #fff; }
.type-tile .icon  { font-size: 1.8rem; margin-bottom: 5px; }
.type-tile .label { font-size: 0.8rem; font-weight: bold; color: #555; }
#type-available:checked + label { border-color: var(--color-success); background: #eafaf1; color: var(--color-success); }
#type-busy:checked + label      { border-color: var(--color-danger);  background: #fdedec; color: var(--color-danger); }

.hidden-for-collab { display: none !important; }


/* ============================================================
   24. MODALE
   ============================================================ */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(44, 62, 80, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}
.modal-backdrop.is-visible { display: flex !important; }
.modal-content {
    background: var(--color-light);
    border-radius: 8px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.2s ease-out;
}
.modal-backdrop.is-visible .modal-content { transform: scale(1); opacity: 1; }
.modal-content h3 { margin: 0; padding: 20px 30px; background: var(--color-gray-light); border-bottom: 1px solid #e0e0e0; }
.modal-content form { padding: 30px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; background: var(--color-gray-light); padding: 15px 30px; border-top: 1px solid #e0e0e0; flex-wrap: wrap; }
.modal-actions .btn-danger { margin-right: auto; }


/* ============================================================
   25. PAGINACJA
   ============================================================ */
.pagination { margin: 40px 0 20px 0; text-align: center; }
.pagination ul { display: inline-flex; list-style: none; padding: 0; margin: 0; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); }
.pagination li a, .pagination li span { display: block; padding: 12px 20px; background: var(--color-light); color: var(--color-dark); text-decoration: none; border-right: 1px solid var(--color-gray-light); font-weight: bold; }
.pagination li:last-child a, .pagination li:last-child span { border-right: none; }
.pagination li a:hover { background: var(--color-primary); color: white; }
.pagination li.active span { background: var(--color-warning); color: var(--color-dark); }
.pagination li.disabled span { color: var(--color-gray-medium); cursor: not-allowed; }
.pagination li.page-info { background: var(--color-gray-light); font-weight: normal; color: var(--color-gray-dark); }


/* ============================================================
   26. STRONA GŁÓWNA — LANDING PAGE (INDIGO NIGHT)
   ============================================================ */

/* Reset dla strony głównej */
body.page-home { background-color: var(--indigo-dark) !important; color: var(--indigo-text) !important; }
body.page-home .main-header,
body.page-home .main-footer { display: none !important; }
body.page-home .container, body.page-home main.container { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; display: block !important; }

/* Nawigacja — przeniesiona do sekcji 27 (Autoryzacja) */
/* Klasa .pfp-logo — legacy compat */
.pfp-logo { font-weight: 900; font-style: italic; font-size: 20px; color: white; text-decoration: none; }

/* Root */
#lp-root { font-family: var(--font-family); background-color: var(--indigo-dark); width: 100%; }
.lp-content-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* Typografia */
.lp-h1 { font-size: clamp(2.4rem, 9vw, 5.5rem); font-weight: 900; line-height: 1.0; letter-spacing: -0.05em; text-transform: uppercase; font-style: italic; color: white; margin: 0 0 28px; text-align: center; }
.lp-h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 900; line-height: 1.15; text-transform: uppercase; font-style: italic; color: white; text-align: center; margin-bottom: 16px; }
.lp-gradient { background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 45%, #6366f1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Etykieta sekcji */
.lp-section-label { display: inline-block; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25); color: #818cf8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; padding: 5px 14px; border-radius: 100px; margin-bottom: 14px; }

/* Sekcje */
.lp-section { padding: 80px 0; width: 100%; }
.lp-section--alt { background: rgba(255,255,255,0.013); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Hero */
.lp-hero { padding: 80px 0 100px; text-align: center; width: 100%; position: relative; overflow: hidden; }
.lp-hero-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 1000px; height: 700px; background: radial-gradient(ellipse, rgba(79,70,229,0.22) 0%, rgba(79,70,229,0.06) 45%, transparent 70%); pointer-events: none; z-index: 1; }
.lp-hero-sub { max-width: 680px; margin: 0 auto 44px; color: #64748b; font-size: clamp(15px,3.5vw,18px); font-weight: 500; font-style: italic; line-height: 1.7; text-align: center; }
.lp-hero-note { margin-top: 22px; font-size: 10px; text-transform: uppercase; letter-spacing: 4px; font-weight: 800; color: #1e293b; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: rgba(79,70,229,0.1); border: 1px solid rgba(99,102,241,0.3); border-radius: 100px; color: #a5b4fc; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 36px; }

/* Mega CTA */
.btn-mega { display: inline-block; padding: 20px 44px; background: var(--indigo-primary); color: white !important; border-radius: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; transition: all 0.25s ease; box-shadow: 0 8px 30px rgba(79,70,229,0.45); font-size: 15px; width: 100%; max-width: 340px; box-sizing: border-box; text-align: center; }
.btn-mega:hover { background: #6366f1; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(79,70,229,0.55); }
.btn-mega:active { transform: translateY(0); box-shadow: 0 4px 15px rgba(79,70,229,0.35); }

/* Marquee */
.marquee { background: rgba(99,102,241,0.04); padding: 20px 0; overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(99,102,241,0.12); border-bottom: 1px solid rgba(99,102,241,0.12); width: 100%; }
.marquee-content { display: inline-block; animation: scroll-marquee 30s linear infinite; font-size: clamp(0.85rem, 2.5vw, 1.3rem); font-weight: 900; text-transform: uppercase; font-style: italic; color: #4f46e5; opacity: 0.4; letter-spacing: 3px; }

/* Karty funkcji */
.f-grid { display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; padding: 40px 0 20px; }
.f-card { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); padding: 28px; border-radius: 18px; transition: all 0.25s; text-align: left; }
.f-card:hover { border-color: rgba(99,102,241,0.45); background: rgba(79,70,229,0.07); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(79,70,229,0.12); }
.f-icon-wrap { width: 46px; height: 46px; background: rgba(79,70,229,0.14); border: 1px solid rgba(99,102,241,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.f-icon { color: #818cf8; width: 22px; height: 22px; }
.f-title { font-size: 0.95rem; font-weight: 800; color: #f1f5f9; margin-bottom: 8px; text-transform: uppercase; font-style: italic; letter-spacing: 0.02em; }
.f-text { color: #475569; font-size: 0.875rem; line-height: 1.7; font-style: italic; }

/* Cennik */
.p-grid { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 40px 0 20px; width: 100%; }
.p-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 36px 32px; display: flex; flex-direction: column; text-align: left; position: relative; overflow: hidden; transition: 0.25s; }
.p-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-2px); }
.p-card.featured { background: rgba(79,70,229,0.1); border-color: rgba(79,70,229,0.35); box-shadow: 0 0 60px rgba(79,70,229,0.13), 0 20px 40px rgba(0,0,0,0.15); }
.p-popular-badge { position: absolute; top: 16px; right: 16px; background: var(--indigo-primary); color: white; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; padding: 4px 11px; border-radius: 100px; }
.p-plan-label { font-size: 10px; font-weight: 900; color: #6366f1; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px; }
.p-price { font-size: 3rem; font-weight: 900; color: white; margin: 8px 0 4px; font-style: italic; line-height: 1; }
.p-price-sub { font-size: 13px; font-weight: 600; color: #334155; font-style: normal; }
.p-features-list { flex: 1; margin: 24px 0; }
.p-feature { font-size: 13px; font-weight: 700; color: #475569; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; align-items: center; gap: 10px; }
.p-feature::before { content: '✓'; color: #6366f1; font-weight: 900; font-size: 14px; flex-shrink: 0; }
.p-btn { display: block; text-align: center; padding: 15px; border-radius: 12px; font-weight: 900; text-transform: uppercase; font-size: 12px; text-decoration: none; letter-spacing: 1px; margin-top: 4px; transition: all 0.25s ease; }
.p-btn--primary { background: var(--indigo-primary); color: white !important; box-shadow: 0 6px 20px rgba(79,70,229,0.35); }
.p-btn--primary:hover { background: #6366f1; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(79,70,229,0.45); }
.p-btn--primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(79,70,229,0.25); }
.p-btn--secondary { background: rgba(255,255,255,0.05); color: #94a3b8 !important; border: 1px solid rgba(255,255,255,0.08); }
.p-btn--secondary:hover { background: rgba(255,255,255,0.09); color: #cbd5e1 !important; transform: translateY(-1px); }
.p-btn--secondary:active { transform: translateY(0); }

/* CTA końcowy */
.cta-card { background: linear-gradient(135deg, #3730a3 0%, #4338ca 50%, #4f46e5 100%); border-radius: 28px; padding: 72px 40px; text-align: center; margin-bottom: 80px; box-shadow: 0 24px 80px rgba(79,70,229,0.4); width: 100%; box-sizing: border-box; position: relative; overflow: hidden; }
.cta-card::after { content: ''; position: absolute; top: -80px; right: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.06); pointer-events: none; }
.btn-cta-white { display: inline-block; padding: 18px 44px; background: white; color: #020617 !important; border-radius: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; transition: all 0.25s ease; font-size: 13px; position: relative; z-index: 1; }
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.btn-cta-white:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Stopka */
.pfp-footer { background: var(--indigo-dark); padding: 40px 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.04); color: #1e293b; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; width: 100%; }


/* ============================================================
   27. AUTORYZACJA — LOGOWANIE / REJESTRACJA
   ============================================================ */
body.page-auth { background-color: var(--indigo-dark) !important; color: var(--indigo-text); min-height: 100vh; display: flex; flex-direction: column; }
body.page-auth .main-header { display: none !important; }
body.page-auth .main-footer { display: none !important; }
body.page-auth > main.container { padding: 0 !important; margin: 0 !important; max-width: 100% !important; display: flex; flex-direction: column; flex: 1; }

/* Strony klienta (galeria, zamów odbitki, itp.) — bez panelu nawigacyjnego */
body.page-client .main-header { display: none !important; }
body.page-client .main-footer { display: none !important; }
body.page-client > main.container { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }

/* --- Nawigacja publiczna (ulepszony pfp-nav-bar) --- */
.pfp-nav-bar {
    background: rgba(2,6,23,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky; top: 0; z-index: 9999; width: 100%;
}
.pfp-nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px;
}
.pfp-nav-logo {
    display: flex; align-items: center; gap: 0;
    text-decoration: none;
    font-weight: 900; font-size: 22px;
    letter-spacing: -0.02em; text-transform: uppercase;
    line-height: 1;
}
.pfp-nav-logo:hover { text-decoration: none; }
.pfp-nav-logo .logo-olami { color: #a5b4fc; }
.pfp-nav-logo .logo-pl { color: #4f46e5; }
.pfp-nav-links { display: flex; gap: 8px; align-items: center; }
.pfp-nav-a {
    color: #64748b !important; text-transform: uppercase; font-weight: 700;
    font-size: 11px; letter-spacing: 1px; text-decoration: none;
    padding: 8px 16px; border-radius: 10px;
    transition: all 0.25s;
}
.pfp-nav-a:hover { color: #cbd5e1 !important; background: rgba(255,255,255,0.04); }
.pfp-nav-a.pfp-nav-active { color: #c7d2fe !important; background: rgba(99,102,241,0.1); }
.pfp-nav-cta {
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    color: white !important;
    padding: 9px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(79,70,229,0.35);
    font-weight: 800 !important;
    transition: all 0.3s;
}
.pfp-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79,70,229,0.5) !important;
    background: linear-gradient(135deg, #6366f1, #818cf8) !important;
}

/* --- Auth page wrapper --- */
#auth-page {
    flex-grow: 1; display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; font-family: var(--font-family);
    position: relative; overflow: hidden;
}

/* Dekoracja tła auth */
.auth-bg-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(80px); z-index: 0;
}
.auth-bg-orb--1 { width: 500px; height: 500px; background: rgba(79,70,229,0.12); top: -15%; left: -10%; }
.auth-bg-orb--2 { width: 350px; height: 350px; background: rgba(139,92,246,0.08); bottom: -10%; right: -5%; }
.auth-bg-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(99,102,241,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
}

/* --- Auth container (2 kolumny na desktop) --- */
.auth-container {
    display: flex; width: 100%; max-width: 880px;
    border-radius: 28px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 25px 60px -12px rgba(0,0,0,0.6), 0 0 80px rgba(79,70,229,0.06);
    position: relative; z-index: 1;
}

/* Panel dekoracyjny (lewa strona) */
.auth-side {
    display: none;
    width: 320px; flex-shrink: 0;
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 40%, #3730a3 100%);
    padding: 48px 36px;
    flex-direction: column; justify-content: center; align-items: center;
    text-align: center; position: relative; overflow: hidden;
}
.auth-side::before {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.04); pointer-events: none;
}
.auth-side::after {
    content: ''; position: absolute; bottom: -40px; left: -40px;
    width: 150px; height: 150px; border-radius: 50%;
    background: rgba(165,180,252,0.06); pointer-events: none;
}
.auth-side-logo {
    font-weight: 900; font-size: 32px;
    text-transform: uppercase; letter-spacing: -0.02em;
    margin-bottom: 16px; position: relative; z-index: 1;
}
.auth-side-logo .logo-olami { color: #c7d2fe; }
.auth-side-logo .logo-pl { color: #818cf8; }
.auth-side-tagline {
    font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.5);
    line-height: 1.7; position: relative; z-index: 1; max-width: 220px;
}
.auth-side-features {
    margin-top: 32px; text-align: left; position: relative; z-index: 1;
}
.auth-side-feat {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; color: rgba(255,255,255,0.4);
    font-size: 12px; font-weight: 600;
}
.auth-side-feat svg { width: 16px; height: 16px; color: #818cf8; flex-shrink: 0; }

/* Karta formularza (prawa strona) */
.auth-card {
    background: var(--indigo-surface);
    flex: 1; padding: 40px 36px;
    text-align: center;
}

.auth-h1 {
    font-size: 1.6rem; font-weight: 900; color: white;
    text-transform: uppercase; font-style: italic;
    letter-spacing: -0.5px; margin: 0 0 8px; line-height: 1.2;
}
.auth-subtitle {
    font-size: 13px; font-weight: 500; color: #475569;
    margin: 0 0 28px; line-height: 1.5;
}

/* Inputy z ikonami */
.auth-input-wrap {
    position: relative; margin-bottom: 14px;
}
.auth-input-wrap .auth-input-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: #475569; pointer-events: none;
    transition: color 0.2s;
}
.auth-input-wrap .auth-input {
    padding-left: 46px; margin-bottom: 0;
}
.auth-input-wrap:focus-within .auth-input-icon { color: #818cf8; }

.auth-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(30,41,59,0.6);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: white;
    outline: none;
    margin-bottom: 14px;
    font-size: 14px;
    text-align: left;
    font-family: var(--font-family);
    transition: border-color 0.25s, background 0.25s;
}
.auth-input:focus {
    border-color: rgba(99,102,241,0.5);
    background: rgba(30,41,59,0.8);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.auth-input::placeholder { color: #4b5563; font-weight: 500; }

/* Przycisk auth z gradient + shine */
.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    margin-top: 8px;
    font-family: var(--font-family);
    font-size: 13px;
    box-shadow: 0 6px 20px rgba(79,70,229,0.35);
    position: relative; overflow: hidden;
}
.auth-btn::after {
    content: ''; position: absolute; top: 0; left: -30%; width: 30%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: auth-shine 3s ease-in-out infinite;
}
@keyframes auth-shine { 0% { left: -30%; } 100% { left: 130%; } }
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79,70,229,0.5);
}

/* Komunikaty sukcesu i błędu */
.auth-msg-success {
    background: rgba(34,197,94,0.08); color: #4ade80;
    padding: 14px 18px; border-radius: 12px; margin-bottom: 20px;
    font-size: 13px; font-weight: 600; line-height: 1.5;
    border: 1px solid rgba(34,197,94,0.15);
    text-align: left;
}
.auth-msg-error {
    background: rgba(239,68,68,0.08); color: #f87171;
    padding: 14px 18px; border-radius: 12px; margin-bottom: 20px;
    font-size: 13px; font-weight: 600; line-height: 1.5;
    border: 1px solid rgba(239,68,68,0.15);
    text-align: left;
}
.auth-error-box {
    background: rgba(239,68,68,0.08); color: #f87171;
    padding: 14px 18px; border-radius: 12px; font-size: 13px;
    margin-bottom: 20px; list-style: none; text-align: left;
    border: 1px solid rgba(239,68,68,0.15); font-weight: 600;
    line-height: 1.8;
}

/* Ikona sukcesu / błędu */
.auth-status-icon {
    width: 64px; height: 64px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.auth-status-icon--success { background: rgba(34,197,94,0.12); color: #4ade80; }
.auth-status-icon--error { background: rgba(239,68,68,0.12); color: #f87171; }
.auth-status-icon--info { background: rgba(79,70,229,0.15); color: #818cf8; }
.auth-status-icon svg { width: 28px; height: 28px; }

/* Separator */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: #334155; font-size: 11px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px;
    background: rgba(255,255,255,0.06);
}

/* Linki dolne */
.auth-footer {
    margin-top: 24px; color: #475569; font-size: 13px; font-weight: 600;
}
.auth-footer a { color: #818cf8; font-weight: 700; text-decoration: none; transition: color 0.2s; }
.auth-footer a:hover { color: #c7d2fe; }

.auth-link {
    color: #818cf8; font-size: 12px; font-weight: 700;
    text-decoration: none; transition: color 0.2s;
}
.auth-link:hover { color: #c7d2fe; }

/* Checkboxy */
.auth-checkbox-group { margin: 16px 0 6px; font-size: 12px; color: #64748b; line-height: 1.6; text-align: left; }
.auth-checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; margin-bottom: 10px; padding: 8px 12px;
    border-radius: 10px; transition: background 0.2s;
}
.auth-checkbox-label:hover { background: rgba(255,255,255,0.02); }
.auth-checkbox-label input[type="checkbox"] {
    accent-color: #4f46e5; margin-top: 2px; flex-shrink: 0;
    width: 16px; height: 16px;
}
.auth-checkbox-label a { color: #818cf8; font-weight: 700; text-decoration: underline; }

.pass-grid { display: grid; grid-template-columns: 1fr; gap: 0; }

/* --- Publiczny footer (dark) --- */
.pub-footer {
    background: var(--indigo-dark);
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 40px 20px 32px;
    text-align: center;
    font-family: var(--font-family);
}
.pub-footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.pub-footer-logo {
    font-weight: 900; font-size: 18px;
    text-transform: uppercase; letter-spacing: -0.02em;
}
.pub-footer-logo .logo-olami { color: #475569; }
.pub-footer-logo .logo-pl { color: #334155; }
.pub-footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.pub-footer-links a {
    color: #475569; text-decoration: none;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    transition: color 0.2s;
}
.pub-footer-links a:hover { color: #94a3b8; }
.pub-footer-copy {
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    color: #1e293b;
}


/* ============================================================
   28. PANEL SAAS ADMIN
   ============================================================ */
body.page-admin { background: #f1f5f9; font-family: var(--font-family); }

/* Modal ogłoszeń SaaS */
#saas-central-ann { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); }
.ann-card { background: white; width: 90%; max-width: 450px; border-radius: 30px; padding: 40px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border-top: 8px solid #4f46e5; }
.ann-btn { background: #4f46e5; color: white; border: none; width: 100%; padding: 16px; border-radius: 16px; font-weight: 800; cursor: pointer; transition: 0.3s; margin-top: 20px; }


/* ============================================================
   29. RESPONSYWNOŚĆ — MEDIA QUERIES
   ============================================================ */

/* ---- DESKTOP BREAKPOINTS (min-width) ---- */

@media (min-width: 640px) {
    .btn-mega { width: auto; padding: 26px 64px; }
    .lp-hero { padding: 120px 0; }
    .cta-card { padding: 80px 40px; }
    .pass-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (min-width: 768px) {
    .f-grid { grid-template-columns: repeat(2, 1fr); }
    .p-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .session-manager { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .f-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .p-grid { grid-template-columns: repeat(3, 1fr); }
    /* Tabela sesji — widoczna tylko na desktop, karty mobilne ukryte */
    .s-table-container { display: block !important; }
    .s-mobile-list { display: none !important; }
}

@media (min-width: 1200px) {
    .manage-grid.has-uploader { grid-template-columns: 350px 1fr; }
}


/* ---- MOBILE / TABLET BREAKPOINTS (max-width) ---- */

/* --- PANEL LAYOUT --- */
@media (max-width: 1023px) {
    /* Sidebar: wysuwa się z lewej jako overlay */
    #pfp-sidebar {
        transform: translateX(-100%);
        position: fixed;
        height: 100vh;        /* fallback dla starszych przeglądarek */
        height: 100dvh;       /* dynamic viewport height — wyklucza pasek przeglądarki */
        z-index: 200;
        transition: transform 0.3s ease;
        overflow-y: auto;     /* sidebar sam w sobie scrollowalny jeśli treść nie mieści się */
    }
    #pfp-sidebar.open { transform: translateX(0); }

    /* Przyciemnienie tła gdy sidebar otwarty */
    #pfp-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 199;
        backdrop-filter: blur(2px);
    }
    #pfp-overlay.visible { display: block; }

    /* Główna treść — pełna szerokość */
    .flex.h-full.overflow-hidden > .flex-1 { min-width: 0; }

    /* Header — mniejszy padding */
    header.h-20 { padding-left: 16px !important; padding-right: 16px !important; }

    /* Main content — mniejszy padding */
    main.flex-1 { padding: 16px !important; }

    /* Panel topbar */
    .panel-topbar { padding: 10px 15px; }
    .panel-content { padding: 16px; }

    /* Sidebar stary panel */
    .panel-sidebar { left: -260px; transition: left 0.3s ease; z-index: 10000; box-shadow: 5px 0 15px rgba(0,0,0,0.2); }
    .panel-main { margin-left: 0 !important; width: 100%; }
    .sidebar-open .panel-sidebar { left: 0; }
    .sidebar-toggle { display: flex; }
}

/* --- SEKCJA STRONY — NAGŁÓWEK I STATYSTYKI --- */
@media (max-width: 767px) {
    /* Nagłówek strony — pionowy układ */
    .s-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .s-header-flex > * { width: 100%; }
    .s-header-flex .flex { width: 100%; justify-content: flex-start; flex-wrap: wrap; }

    /* Tytuł H1 — mniejszy na mobile */
    .s-h1 { font-size: 1.5rem !important; }
    .dashboard-header h1 { font-size: 1.5rem !important; }

    /* Statystyki — 2 kolumny na mobile */
    .s-stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .session-stats-grid { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

    /* Stat pill — kompaktowy */
    .s-stat-card { padding: 16px 18px; border-radius: 16px; }
    .s-stat-card h3 { font-size: 10px; margin-bottom: 8px; letter-spacing: 1.2px; }
    .s-stat-card p { font-size: 24px; }
    .stat-pill { padding: 16px 18px; border-radius: 16px; }
    .stat-pill h3 { font-size: 10px; margin-bottom: 8px; letter-spacing: 1.2px; }
    .stat-pill p { font-size: 24px; }
    .stat-card { padding: 16px; }
    .stat-card p { font-size: 22px; }

    /* Dashboard grid — jedna kolumna */
    .dashboard-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Karty — mniejszy padding */
    .card-modern { padding: 18px; border-radius: 20px; }
    .settings-card { padding: 18px; border-radius: 20px; }
    .activity-feed-container, .dashboard-section { padding: 18px; border-radius: 20px; }
    .uploader-section, .photos-section, .photo-card { padding: 18px; border-radius: 20px; }
}

/* --- FILTRY I WYSZUKIWARKA --- */
@media (max-width: 767px) {
    /* Filters bar — pionowy */
    .s-filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        border-radius: 16px;
    }
    /* Tagi kategorii */
    .s-filters-bar .flex { flex-wrap: wrap; gap: 6px; }
    /* Wyszukiwarka — pełna szerokość */
    .s-search { width: 100% !important; }
    .s-filters-bar form { width: 100%; }

    /* Dashboard filters */
    .dashboard-filters { flex-direction: column; align-items: stretch; gap: 8px; border-radius: 16px; }
    .dashboard-filters form { width: 100%; }
    .dashboard-filters input[type="text"] { width: 100%; }
}

/* --- TABELE — KARTY MOBILNE --- */
@media (max-width: 1023px) {
    /* Tabele panelu — ukryte, zastąpione kartami mobilnymi */
    .s-table-container { display: none !important; }
    .s-mobile-list { display: block !important; }

    /* Tabela zamówień — zamieniona na karty */
    .orders-table-container { display: none !important; }
    .orders-mobile-list { display: block !important; }

    /* Tabela klientów — zamieniona na karty */
    .client-card-container { display: none !important; }
    .clients-mobile-list { display: block !important; }

    /* Tabela konfiguracji odbitek */
    .pkg-table-container { display: none !important; }
    .pkg-mobile-list { display: block !important; }
}

/* --- FORMULARZ KONFIGURACJI I PROFIL — JEDNOKOLUMNOWY --- */
@media (max-width: 767px) {
    /* Grid formularza dodawania formatu */
    .card-modern form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Szerokość maks formularza konfiguracji */
    div[style*="max-width: 800px"] { max-width: 100% !important; }

    /* Tabela wewnątrz karty */
    .s-table-container { border-radius: 16px; }

    /* Profil — siatki jednokolumnowe */
    .profil-grid { grid-template-columns: 1fr !important; }
    .profil-grid .card-modern[style*="grid-column: span 2"] { grid-column: span 1 !important; }
    .profil-inner-grid { grid-template-columns: 1fr !important; }
    .pkg-form-grid { grid-template-columns: 1fr 1fr !important; }
    .pkg-form-grid button { grid-column: span 2; height: auto !important; padding: 12px !important; }
}

/* --- MANAGE SESJA — UPLOAD + GALERIA --- */
@media (max-width: 1023px) {
    /* Upload + galeria — jedna kolumna */
    .manage-grid { grid-template-columns: 1fr !important; }
    .manage-grid.has-uploader { grid-template-columns: 1fr !important; }
}

@media (max-width: 767px) {
    /* Galeria zdjęć — mniej kolumn */
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }

    /* Filtry galerii — wrap */
    .filter-pills { gap: 6px; }
    .filter-pill { font-size: 11px; padding: 6px 12px; }

    /* Nagłówek galerii */
    .photos-section > div:first-child { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Paginacja — kompaktowa */
    .pagination { margin-top: 20px; }
    .pagination ul { gap: 4px; flex-wrap: wrap; justify-content: center; }

    /* Poprawka nagłówka galerii */
    .photos-header h2 { flex-direction: column; align-items: flex-start; gap: 5px; }

    /* s-btn-action — pełna szerokość na wąskich ekranach */
    .s-actions-scroll { gap: 6px; }
}

/* --- NAGŁÓWEK ZARZADZAJ-SESJA --- */
@media (max-width: 767px) {
    .s-header-flex[style*="margin-bottom: 10px"] { gap: 10px; }
    .session-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .session-stats-grid .stat-pill { padding: 12px; }
    .session-stats-grid .stat-pill p { font-size: 18px; }
    .session-stats-grid .stat-pill h3 { font-size: 8px; }
}

/* --- TABELA ZAMÓWIEŃ — WIDOK MOBILNY (KARTY) --- */
.orders-mobile-list { display: none; }
.clients-mobile-list { display: none; }
.pkg-mobile-list { display: none; }

/* --- DROPDOWN POWIADOMIEŃ --- */
@media (max-width: 480px) {
    #pfp-notif-dropdown { width: calc(100vw - 32px); right: -60px; }
}

/* --- KALENDARZ --- */
@media (max-width: 767px) {
    .fc .fc-toolbar { flex-direction: column; gap: 10px; }
    .fc .fc-toolbar-title { font-size: 1.2rem !important; text-align: center; }
    .fc .fc-button { padding: 0.4em 0.6em !important; font-size: 0.85em !important; }
    .fc-toolbar-chunk { display: flex; justify-content: center; width: 100%; }
    .fc .fc-timegrid-axis-cushion, .fc .fc-timegrid-slot-label-cushion { font-size: 0.8em; }
}

/* --- LANDING PAGE --- */
@media (max-width: 767px) {
    .lp-hero { padding: 60px 20px; text-align: center; }
    .lp-hero h1 { font-size: 2.2rem; }
    .lp-hero p { font-size: 1rem; }
    .btn-mega { width: 100%; padding: 20px 32px; font-size: 1rem; }
    .hero-cta-group { flex-direction: column; align-items: center; gap: 12px; }
    .lp-section { padding: 60px 20px; }
    .lp-section h2 { font-size: 1.8rem; }
    .cta-card { padding: 40px 20px; border-radius: 24px; }
    .cta-card h2 { font-size: 1.8rem; }

    /* Nawigacja landing — kompaktowa na mobile */
    .pfp-nav-logo { font-size: 18px; }
}

/* --- AUTH — desktop: panel boczny widoczny --- */
@media (min-width: 769px) {
    .auth-side { display: flex; }
    .auth-card { padding: 48px 44px; }
}

/* --- AUTH — mobile --- */
@media (max-width: 768px) {
    #auth-page { padding: 20px 16px; }
    .auth-container { border-radius: 22px; }
    .auth-card { padding: 32px 24px; }
    .auth-h1 { font-size: 1.4rem; }
    .pass-grid { grid-template-columns: 1fr; gap: 0; }
    .auth-btn { padding: 14px; }
    .pfp-nav-inner { padding: 14px 16px; }
    .pfp-nav-logo { font-size: 18px; }
    .pfp-nav-a { font-size: 10px; padding: 7px 12px; }
}


/* --- PODSUMOWANIE WYBORU / ZAMÓW ODBITKI — MOBILE --- */
@media (max-width: 640px) {
    .pv-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .zw-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .po-print-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .po-sticky-inner { flex-direction: column; text-align: center; }
    .po-submit-btn { width: 100%; }
}
@media (max-width: 400px) {
    .pv-photo-grid { grid-template-columns: repeat(2, 1fr); }
    .zw-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- MÓJ TEAM / ZNAK WODNY — MOBILE --- */
@media (max-width: 900px) {
    .team-grid-responsive { grid-template-columns: 1fr !important; }
    #templates-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 768px) {
    .team-grid-responsive { grid-template-columns: 1fr !important; }
}
@media (max-width: 540px) {
    #templates-grid { grid-template-columns: 1fr 1fr !important; }
}


/* ============================================================
   30. ANIMACJE
   ============================================================ */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(79, 70, 229, 0.4); }
    50%       { box-shadow: 0 0 60px rgba(79, 70, 229, 0.7); }
}

@keyframes scroll-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes popup {
    from { transform: translateY(20px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0) scale(1);       opacity: 1; }
}

.animate-popup { animation: popup 0.8s 0.2s ease-out forwards; opacity: 0; }



/* ============================================================
   31. PORTFEL
   ============================================================ */

.wallet-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 20px;
    padding: 36px 40px;
    color: #fff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.wallet-hero::after {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.wallet-hero-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin: 0 0 8px;
}
.wallet-hero-amount {
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    margin: 0 0 6px;
}
.wallet-hero-sub {
    font-size: 13px;
    opacity: 0.75;
    margin: 0;
}

.wallet-topup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.wallet-topup-label {
    display: block;
    padding: 14px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
}
.wallet-topup-label:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}
.wallet-topup-label.selected,
input[type="radio"]:checked + .wallet-topup-label {
    border-color: #4f46e5;
    background: #ede9fe;
    color: #4f46e5;
    box-shadow: 0 4px 14px rgba(79,70,229,0.2);
}
.wallet-topup-radio { display: none; }

.wallet-tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.wallet-tx-table th {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.wallet-tx-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f8fafc;
    vertical-align: middle;
}
.wallet-tx-table tr:last-child td { border-bottom: none; }
.tx-amount-topup  { color: #16a34a; font-weight: 800; }
.tx-amount-charge { color: #dc2626; font-weight: 800; }
.tx-amount-bonus  { color: #4f46e5; font-weight: 800; }

.wallet-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

@media (max-width: 640px) {
    .wallet-hero { padding: 24px 20px; }
    .wallet-hero-amount { font-size: 36px; }
    .wallet-topup-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   KONFIGURACJA ODBITEK — PRINT FORMATS
   ============================================================ */

/* Toast */
.pf-toast { padding: 14px 20px; border-radius: 14px; font-weight: 700; font-size: 14px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.pf-toast-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.pf-toast-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.pf-toast-icon { font-size: 18px; flex-shrink: 0; }

/* Stats row */
.pf-stats-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.pf-stat-pill { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 100px; padding: 10px 20px; }
.pf-stat-num { font-size: 18px; font-weight: 900; font-style: italic; color: #4f46e5; }
.pf-stat-label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }

/* Add section */
.pf-add-section { background: #fff; border-radius: 24px; padding: 28px; border: 1px solid #e2e8f0; box-shadow: 0 4px 20px rgba(0,0,0,0.04); margin-bottom: 32px; }
.pf-add-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.pf-add-icon-wrap { width: 44px; height: 44px; background: linear-gradient(135deg, #4f46e5, #7c3aed); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-add-title { margin: 0; font-size: 16px; font-weight: 900; text-transform: uppercase; font-style: italic; color: #1e293b; letter-spacing: -0.5px; }
.pf-add-subtitle { margin: 4px 0 0; font-size: 13px; color: #94a3b8; font-weight: 600; }
.pf-add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.pf-add-grid .pf-field:last-child { grid-column: 1 / -1; }
.pf-add-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; background: linear-gradient(135deg, #4f46e5, #4338ca); color: #fff; border: none; border-radius: 14px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; font-style: italic; cursor: pointer; box-shadow: 0 4px 16px rgba(79,70,229,0.3); transition: all 0.2s; font-family: inherit; }
.pf-add-btn:hover { background: linear-gradient(135deg, #4338ca, #3730a3); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.4); }
.pf-add-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(79,70,229,0.2); }

/* Form fields */
.pf-field { display: flex; flex-direction: column; }
.pf-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 8px; }
.pf-input { padding: 12px 16px; border-radius: 12px; border: 1px solid #e2e8f0; font-size: 14px; color: #1e293b; background: #f8fafc; outline: none; font-family: inherit; transition: all 0.2s; }
.pf-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); background: #fff; }

/* Finish selector (radio cards) */
.pf-finish-selector { display: flex; gap: 10px; }
.pf-finish-option { cursor: pointer; flex: 1; }
.pf-finish-option input[type="radio"] { display: none; }
.pf-finish-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border-radius: 14px; border: 2px solid #e2e8f0; background: #f8fafc; transition: all 0.2s; text-align: center; }
.pf-finish-option input:checked + .pf-finish-card { border-color: #4f46e5; background: #eef2ff; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.pf-finish-card:hover { border-color: #c7d2fe; }
.pf-finish-name { font-size: 12px; font-weight: 800; color: #1e293b; text-transform: uppercase; letter-spacing: 0.5px; }

/* Finish icons — visual texture hints */
.pf-finish-icon { width: 32px; height: 32px; border-radius: 8px; display: block; }
.pf-finish-icon-mat { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); }
.pf-finish-icon-polysk { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); position: relative; overflow: hidden; }
.pf-finish-icon-polysk::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%); }
.pf-finish-icon-brak { background: #f1f5f9; border: 2px dashed #cbd5e1; box-sizing: border-box; }

/* List header */
.pf-list-header { margin-bottom: 16px; }

/* Empty state */
.pf-empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: 24px; border: 2px dashed #e2e8f0; }
.pf-empty-icon { margin-bottom: 20px; }
.pf-empty-title { font-size: 16px; font-weight: 900; color: #1e293b; text-transform: uppercase; font-style: italic; margin: 0 0 8px; }
.pf-empty-desc { font-size: 13px; color: #94a3b8; font-weight: 600; margin: 0; }

/* Format cards grid */
.pf-formats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pf-format-card { background: #fff; border-radius: 20px; border: 1px solid #e2e8f0; overflow: hidden; transition: all 0.25s; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.pf-format-card:hover { box-shadow: 0 8px 30px rgba(79,70,229,0.1); border-color: #c7d2fe; transform: translateY(-2px); }

/* Card top with finish stripe */
.pf-format-top { padding: 20px 20px 14px; position: relative; }
.pf-format-finish-stripe { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.pf-stripe-mat { background: linear-gradient(90deg, #94a3b8, #64748b); }
.pf-stripe-polysk { background: linear-gradient(90deg, #818cf8, #6366f1, #a78bfa); }
.pf-stripe-brak { background: #e2e8f0; }

.pf-format-name { font-size: 18px; font-weight: 900; font-style: italic; text-transform: uppercase; color: #1e293b; letter-spacing: -0.5px; margin-bottom: 8px; }

/* Finish badge */
.pf-format-finish-badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.pf-badge-mat { background: #f1f5f9; color: #64748b; }
.pf-badge-polysk { background: #eef2ff; color: #4f46e5; }
.pf-badge-brak { background: #f8fafc; color: #94a3b8; border: 1px dashed #cbd5e1; }

/* Price row */
.pf-format-price-row { padding: 14px 20px; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.pf-format-price-label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.pf-format-price { font-size: 20px; font-weight: 900; font-style: italic; color: #4f46e5; }
.pf-format-price small { font-size: 12px; font-weight: 700; font-style: normal; }

/* Finish preview strip */
.pf-format-preview { padding: 0 20px; margin-bottom: 14px; }
.pf-preview-inner { border-radius: 10px; height: 36px; display: flex; align-items: center; justify-content: center; }
.pf-preview-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }
.pf-preview-mat .pf-preview-inner { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); }
.pf-preview-mat .pf-preview-label { color: #475569; }
.pf-preview-polysk .pf-preview-inner { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); position: relative; overflow: hidden; }
.pf-preview-polysk .pf-preview-inner::after { content: ''; position: absolute; top: 0; left: -100%; width: 200%; height: 100%; background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%); animation: pf-shine 3s infinite; }
.pf-preview-polysk .pf-preview-label { color: #4f46e5; position: relative; z-index: 1; }
.pf-preview-brak .pf-preview-inner { background: #f8fafc; border: 1px dashed #e2e8f0; }
.pf-preview-brak .pf-preview-label { color: #94a3b8; }

@keyframes pf-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Card actions */
.pf-format-actions { padding: 12px 20px; border-top: 1px solid #f1f5f9; display: flex; gap: 8px; justify-content: flex-end; }
.pf-btn-edit, .pf-btn-delete { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; border: none; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; font-family: inherit; }
.pf-btn-edit { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.pf-btn-edit:hover { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(79, 70, 229, 0.12); }
.pf-btn-edit:active { transform: translateY(0); box-shadow: none; }
.pf-btn-delete { background: #fff; color: #dc2626; border: 1px solid #fecaca; }
.pf-btn-delete:hover { background: #fef2f2; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(239, 68, 68, 0.12); }
.pf-btn-delete:active { transform: translateY(0); box-shadow: none; }

/* Edit modal */
.pf-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pf-modal { background: #fff; border-radius: 24px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); overflow: hidden; }
.pf-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #f1f5f9; }
.pf-modal-header h3 { margin: 0; font-size: 16px; font-weight: 900; text-transform: uppercase; font-style: italic; color: #1e293b; }
.pf-modal-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc; color: #64748b; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.pf-modal-close:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.pf-modal-body { padding: 24px; }
.pf-btn-cancel { padding: 12px 24px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; color: #64748b; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s ease; }
.pf-btn-cancel:hover { background: #e2e8f0; transform: translateY(-1px); }
.pf-btn-cancel:active { transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .pf-stats-row { gap: 8px; }
    .pf-stat-pill { padding: 8px 14px; }
    .pf-stat-num { font-size: 15px; }
    .pf-add-grid { grid-template-columns: 1fr; }
    .pf-formats-grid { grid-template-columns: 1fr; }
    .pf-finish-selector { gap: 6px; }
    .pf-finish-card { padding: 10px 6px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROFIL — refresh strony "Mój profil"
   ═══════════════════════════════════════════════════════════════════════════ */
.profil-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(15,23,42,0.04);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.profil-hero-avatar {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    box-shadow: 0 8px 24px rgba(79,70,229,0.30);
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid #fff;
}
.profil-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profil-hero-meta { flex: 1; min-width: 0; }
.profil-hero-name {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 4px;
    word-break: break-word;
}
.profil-hero-email {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 14px;
    word-break: break-all;
}
.profil-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.profil-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid;
}
.profil-chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.profil-chip-indigo  { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.profil-chip-emerald { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.profil-chip-slate   { background: #f8fafc; color: #475569; border-color: #e2e8f0; }

.profil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.profil-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px 28px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.03);
    transition: box-shadow .22s ease, border-color .22s ease;
}
.profil-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 16px rgba(15,23,42,0.05); }
.profil-card-full { margin-bottom: 20px; }

.profil-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}
.profil-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid;
}
.profil-card-icon svg { width: 20px; height: 20px; }
.profil-card-icon-indigo  { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }
.profil-card-icon-amber   { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.profil-card-icon-emerald { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.profil-card-icon-slate   { background: #f8fafc; color: #475569; border-color: #e2e8f0; }

.profil-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 2px 0;
    line-height: 1.2;
    text-transform: none;
    font-style: normal;
}
.profil-card-sub {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.profil-form { display: flex; flex-direction: column; gap: 16px; }
.profil-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profil-dane-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.profil-dane-aside { order: -1; position: sticky; top: 20px; }
@media (max-width: 900px) {
    .profil-dane-grid { grid-template-columns: 1fr; }
    .profil-dane-aside { order: 0; position: static; }
}

.profil-field { display: flex; flex-direction: column; gap: 6px; }
.profil-field label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.profil-field input,
.profil-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
    font-family: inherit;
}
.profil-field input:focus,
.profil-field textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
}
.profil-field textarea { resize: vertical; min-height: 84px; }
.profil-field-help { font-size: 11px; color: #94a3b8; font-weight: 600; margin: 2px 0 0 0; }

.profil-btn {
    margin-top: 6px;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    align-self: flex-start;
    letter-spacing: 0.2px;
    color: #fff;
}
.profil-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.10); }
.profil-btn-indigo  { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.profil-btn-amber   { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.profil-btn-emerald { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.profil-btn-slate   { background: linear-gradient(135deg, #475569 0%, #334155 100%); }

.profil-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid;
}
.profil-alert::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.profil-alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.profil-alert-success::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M9 12l2 2 4-4'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M9 12l2 2 4-4'/></svg>");
}
.profil-alert-error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.profil-alert-error::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
}

@media (max-width: 768px) {
    .profil-hero { padding: 20px; gap: 16px; }
    .profil-hero-avatar { width: 64px; height: 64px; font-size: 24px; border-radius: 18px; }
    .profil-hero-name { font-size: 20px; }
    .profil-grid { grid-template-columns: 1fr; gap: 16px; }
    .profil-card { padding: 20px; border-radius: 18px; }
    .profil-row-2 { grid-template-columns: 1fr; }
}

/* ─── Konto — zakładki (segregator) — używane na wszystkich stronach grupy "Konto"  */
.acct-tabs {
    display: flex;
    gap: 6px;
    margin-top: 20px;
    margin-bottom: 28px;
    padding: 0 12px;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
}
/* Gdy pod paskiem zakładek znajduje się panel (Profil) — zniwelować odstęp i linię,
   bo panel ma już swój własny border i ma się "łączyć" z aktywną zakładką. */
.acct-tabs--linked { margin-bottom: 0; border-bottom-color: transparent; }
.acct-tabs--linked + .acct-tab-panels { margin-top: 0; }
.acct-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-bottom: 1px solid transparent;
    border-radius: 14px 14px 0 0;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: -1px;
    position: relative;
}
.acct-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.acct-tab:hover:not(.acct-tab-active) { background: #e2e8f0; color: #475569; transform: translateY(-2px); }
.acct-tab-active {
    background: #fff;
    color: #4f46e5;
    border-color: #e2e8f0;
    border-bottom-color: #fff;
    border-top: 3px solid #4f46e5;
    padding-top: 10px;
    font-weight: 800;
}
.acct-tab-short { display: none; }
.acct-tab-panels {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0 16px 16px 16px;
    padding: 28px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}

/* ─── Profil — sub-tabs (pill style, wewnętrzne) ────────────────────────── */
.profil-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}
.profil-subtab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: transparent;
    color: #64748b;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.profil-subtab svg { width: 14px; height: 14px; flex-shrink: 0; }
.profil-subtab:hover:not(.profil-subtab-active) { background: #e2e8f0; color: #475569; }
.profil-subtab-active {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}

/* Zakładka "Usuń konto" — ZAWSZE czerwona (aktywna czy nie) */
.profil-subtab-danger,
.profil-subtab-danger:hover,
.profil-subtab-danger.profil-subtab-active {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}
.profil-subtab-danger:hover { background: #b91c1c; }

.profil-subtab-panel { display: none; animation: profil-tab-fade 0.25s ease; }
.profil-subtab-panel.profil-subtab-panel-active { display: block; }
@keyframes profil-tab-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.profil-tab-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}
.profil-tab-panel-head .profil-card-icon { width: 44px; height: 44px; }
.profil-tab-panel-title { font-size: 18px; font-weight: 800; color: #0f172a; letter-spacing: -0.2px; }
.profil-tab-panel-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

@media (max-width: 768px) {
    .acct-tabs { gap: 4px; padding: 0 4px; }
    .acct-tab { padding: 10px 14px; font-size: 12px; gap: 6px; }
    .acct-tab-active { padding-top: 8px; }
    .acct-tab-panels { padding: 22px 18px; border-radius: 0 14px 14px 14px; }
    .profil-subtab { padding: 8px 12px; font-size: 12px; }
}
@media (max-width: 560px) {
    .acct-tab-long { display: none; }
    .acct-tab-short { display: inline; }
    .acct-tab { padding: 10px 12px; }
}

/* ─── Zarzadzaj sesją: meta line pod h1 ──────────────────────────────────── */
.zs-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.zs-meta-client {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    flex-wrap: wrap;
}
.zs-meta-client svg { width: 16px; height: 16px; color: #6366f1; flex-shrink: 0; }
.zs-meta-client strong { color: #0f172a; font-weight: 700; }
.zs-meta-email {
    color: #64748b;
    text-decoration: none;
    transition: color .18s ease;
}
.zs-meta-email:hover { color: #4f46e5; }
.zs-meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
}
.zs-meta-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.zs-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
    border: 1px solid;
    white-space: nowrap;
}
.zs-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.zs-badge-status { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.zs-badge-status-oczekuje-na-wybor { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.zs-badge-status-wybrane { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.zs-badge-status-zakonczone { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.zs-badge-status-anulowana { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

@media (max-width: 640px) {
    .zs-meta { gap: 8px; margin-top: 12px; }
    .zs-meta-client { font-size: 13px; gap: 6px; }
    .zs-meta-client svg { width: 14px; height: 14px; }
    .zs-meta-email { word-break: break-all; }
    .zs-meta-divider { display: none; }
    .zs-meta-badges { gap: 6px; }
    .zs-badge { font-size: 10px; padding: 4px 10px 4px 8px; gap: 6px; letter-spacing: 0.3px; }
    .zs-badge-dot { width: 5px; height: 5px; }
}

/* === Modul zapisow klientow — layout 2-kolumnowy + kompaktowy kalendarz === */
.bk-split{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;align-items:start;}
@media(max-width:960px){.bk-split{grid-template-columns:1fr;}}

/* Lewa kolumna — lista otwartych dni */
.bk-list-card{padding:24px;}
.bk-list-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:14px;}
.bk-list-title{margin:0;font-size:16px;font-weight:900;}
.bk-list-counter{font-size:12px;color:#64748b;font-weight:700;}
.bk-list-hint{margin:0 0 16px;color:#64748b;font-size:12px;line-height:1.5;}
.bk-list-empty{padding:32px 16px;text-align:center;color:#94a3b8;font-size:13px;background:#f8fafc;border-radius:14px;border:1.5px dashed #e2e8f0;}
.bk-list-day{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1.5px solid #e2e8f0;border-radius:14px;margin-bottom:10px;background:#fff;transition:all .12s;cursor:pointer;}
.bk-list-day:hover{border-color:#c7d2fe;background:#fafbff;}
.bk-list-day-date{flex:0 0 56px;text-align:center;background:#eef2ff;border-radius:10px;padding:8px 4px;}
.bk-list-day-d{font-size:22px;font-weight:900;color:#4f46e5;line-height:1;}
.bk-list-day-m{font-size:10px;font-weight:800;color:#4f46e5;text-transform:uppercase;letter-spacing:0.5px;margin-top:2px;}
.bk-list-day-info{flex:1;min-width:0;}
.bk-list-day-hrs{font-weight:800;font-size:14px;color:#0f172a;}
.bk-list-day-meta{font-size:12px;color:#64748b;margin-top:3px;}
.bk-list-day-bookings{flex:0 0 auto;padding:6px 12px;border-radius:100px;font-weight:800;font-size:12px;}
.bk-list-bk-zero{background:#f1f5f9;color:#94a3b8;}
.bk-list-bk-some{background:#dcfce7;color:#166534;}
.bk-list-bk-warn{background:#fef3c7;color:#92400e;}

/* Prawa kolumna — kompaktowy kalendarz z nawigacja */
.bk-cal-card{padding:22px;position:sticky;top:20px;}
.bk-cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.bk-cal-navbtn{width:32px;height:32px;border-radius:10px;border:1.5px solid #e2e8f0;background:#fff;font-size:16px;font-weight:900;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#475569;transition:all .12s;}
.bk-cal-navbtn:hover:not(:disabled){border-color:#4f46e5;color:#4f46e5;}
.bk-cal-navbtn:disabled{opacity:0.35;cursor:not-allowed;}
.bk-cal-navtitle{font-weight:900;font-size:15px;color:#1e293b;text-transform:capitalize;text-align:center;flex:1;}
.bk-cal-month{display:none;}
.bk-cal-month.bk-cal-month-active{display:block;}
.bk-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}
.bk-cal-dow{text-align:center;font-size:10px;font-weight:800;color:#94a3b8;text-transform:uppercase;padding:4px 0;}
.bk-cal-cell{aspect-ratio:1;min-height:46px;border-radius:8px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:5px 6px;font-size:13px;font-weight:700;position:relative;border:1.5px solid transparent;overflow:hidden;}
.bk-cal-empty{background:transparent;}
.bk-cal-num{line-height:1;font-size:13px;}
.bk-cal-past{background:#f8fafc;color:#cbd5e1;cursor:not-allowed;}
.bk-cal-free{background:#fff;border-color:#e2e8f0;border-style:dashed;color:#475569;cursor:pointer;transition:all .12s;}
.bk-cal-free:hover{border-color:#4f46e5;border-style:solid;color:#4f46e5;background:#fafbff;}
.bk-cal-free.bk-day-selected{background:#4f46e5;border-color:#4f46e5;border-style:solid;color:#fff;}
.bk-cal-saved{background:#c7d2fe;color:#312e81;cursor:pointer;border-color:#a5b4fc;font-weight:800;transition:all .12s;}
.bk-cal-saved:hover{background:#a5b4fc;border-color:#4f46e5;}
.bk-cal-saved-full{background:#fef3c7;color:#92400e;border-color:#fde68a;}
.bk-cal-saved-full:hover{background:#fde68a;border-color:#f59e0b;}
.bk-cal-stats{align-self:flex-end;font-size:10px;font-weight:800;background:rgba(255,255,255,0.75);color:inherit;padding:1px 5px;border-radius:6px;line-height:1.3;}
.bk-cal-stats-sep{opacity:0.6;margin:0 1px;}
.bk-cal-link{position:absolute;top:3px;right:4px;font-size:10px;line-height:1;opacity:0.85;}
.bk-cal-selbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding:10px 14px;background:#eef2ff;border-radius:12px;}
.bk-cal-selcount{font-weight:800;color:#4f46e5;font-size:12px;flex:1;}
.bk-cal-legend{display:grid;grid-template-columns:1fr;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid #f1f5f9;font-size:12px;color:#475569;}
.bk-cal-legend-item{display:flex;align-items:center;gap:10px;line-height:1.4;}
.bk-cal-legend-sw{flex:0 0 28px;height:28px;border-radius:6px;border:1.5px solid transparent;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;}
.bk-cal-legend-sw-free{background:#fff;border-color:#e2e8f0;border-style:dashed;color:#475569;}
.bk-cal-legend-sw-saved{background:#c7d2fe;border-color:#a5b4fc;color:#312e81;}
.bk-cal-legend-sw-full{background:#fef3c7;border-color:#fde68a;color:#92400e;}
.bk-cal-legend-sw-sel{background:#4f46e5;border-color:#4f46e5;color:#fff;}
.bk-cal-legend-sample{font-size:9px;font-weight:800;background:rgba(255,255,255,0.75);padding:0 3px;border-radius:3px;line-height:1.3;}

/* Formularze (modal + bulk) */
.bk-bulk-form{margin-top:14px;padding:14px;border:1.5px solid #c7d2fe;border-radius:14px;background:#fafbff;}
.bk-bulk-row{display:grid;grid-template-columns:1fr 1fr 100px;gap:10px;margin-bottom:10px;}
.bk-form-label{display:block;font-weight:700;font-size:11px;color:#475569;margin-bottom:4px;text-transform:uppercase;letter-spacing:0.3px;}
.bk-form-input{width:100%;padding:9px 11px;border:1.5px solid #e2e8f0;border-radius:9px;font-size:13px;}

.bk-pending-card{padding:20px;margin-bottom:14px;}
.bk-pending-when{font-weight:900;color:#4f46e5;font-size:14px;margin-bottom:4px;}
.bk-pending-who{font-weight:800;font-size:16px;margin-bottom:8px;}
.bk-pending-info{font-size:13px;color:#64748b;line-height:1.7;}
