/* ==========================================================================
   Superpilot Web — Layout Inspirowany Pracuj.pl (Standard UX/UI 2026)
   Spójny z tożsamością TravelLeader Mobile & Travel Manager
   ========================================================================== */

:root {
    /* Paleta barw spójna z aplikacją mobilną */
    --primary: #5c60f5;
    --primary-hover: #484cdb;
    --primary-light: #eff0fe;
    --primary-border: #dadafa;
    --dark-navy: #1f2244;
    --text-body: #3c4262;
    --text-muted: #7e879f;
    --text-light: #a9b1c3;
    --bg-page: #f5f6fb;
    --bg-card: #ffffff;
    --border-color: #e5e8f2;
    --border-subtle: #edf0f8;

    /* Akcenty */
    --success: #10b981;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;

    /* Zaokrąglenia i cienie */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-subtle: 0 2px 8px rgba(31, 34, 68, 0.04);
    --shadow-card: 0 4px 16px rgba(31, 34, 68, 0.05);
    --shadow-hover: 0 10px 24px rgba(31, 34, 68, 0.08);
}

body {
    background-color: var(--bg-page) !important;
    color: var(--text-body) !important;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Brand & Header */
.brand-superpilot {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.18rem;
    color: var(--dark-navy);
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand-superpilot .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #767bf7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(92, 96, 245, 0.25);
}

@keyframes sosPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.btn-sos {
    background: #fef2f2;
    color: #dc2626 !important;
    border: 1.5px solid #f87171;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: var(--radius-full);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
    transition: all 0.15s ease;
}

.btn-sos .sos-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    animation: sosPulse 1.8s infinite;
}

.btn-sos:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

.btn-sos.active {
    background: #ef4444 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
}

.btn-sos.active .sos-dot {
    background-color: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: none;
}

.btn-sos.active .badge {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Dedykowany nagłówek i subtelne wyróżniki widoku Dyżuru SOS */
.sos-header-card {
    background: #ffffff;
    border: 1px solid #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.04);
}

.search-bar-pracuj.sos-search-bar {
    border-color: #fecaca;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.04);
}

.pilot-offer-card.sos-card {
    border-left: 3.5px solid #10b981;
    transition: all 0.2s ease;
}

.pilot-offer-card.sos-card:hover {
    border-left-color: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.12);
}

.pilot-offer-card.sos-card.standby-urgent {
    border-left-color: #f59e0b;
}

.pilot-offer-card.sos-card.standby-urgent:hover {
    border-left-color: #d97706;
}

/* ==========================================================================
   Wyszukiwarka Główna w Stylu Pracuj.pl (Top Bar z Multiselectem Krajów)
   ========================================================================== */
.search-bar-pracuj {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    padding: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.search-field-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    position: relative;
}

.search-field-item:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.search-field-item .field-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.search-field-item .field-content {
    flex-grow: 1;
    min-width: 0;
}

.search-field-item .field-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.search-field-item input {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark-navy);
    width: 100%;
    outline: none;
}

.search-field-item input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Multiselect Dropdown Trigger w belce */
.multiselect-dest-trigger {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark-navy);
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    outline: none;
}

.multiselect-dest-trigger:focus {
    outline: none;
    box-shadow: none;
}

.multiselect-dest-trigger .trigger-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multiselect-dropdown-menu {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    padding: 12px 14px 10px;
    min-width: 360px;
    max-width: 440px;
    overflow: visible;
}

.dest-list-scroll {
    max-height: 270px;
    overflow-y: auto;
    padding-right: 4px;
}

.dest-list-scroll::-webkit-scrollbar {
    width: 5px;
}
.dest-list-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}
.dest-list-scroll::-webkit-scrollbar-track {
    background-color: #f8fafc;
}

.multiselect-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-body);
    transition: background-color 0.12s ease;
}

.multiselect-item-row:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.multiselect-item-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary);
}

.btn-search-pracuj {
    background-color: var(--primary);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-search-pracuj:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(92, 96, 245, 0.3);
}

@media (max-width: 991px) {
    .search-bar-pracuj {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }
    .search-field-item {
        width: 100%;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        padding: 8px 6px;
    }
    .btn-search-pracuj {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }
}

/* ==========================================================================
   Pasek Aktywnych Filtrów (Active Filter Chips nad listą)
   ========================================================================== */
.active-filters-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--dark-navy);
}

.active-filter-chip .chip-remove {
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s ease;
    font-size: 0.85rem;
    line-height: 1;
}

.active-filter-chip .chip-remove:hover {
    color: #ef4444;
}

/* ==========================================================================
   Lewy Panel Filtrów w Stylu Pracuj.pl (Sidebar bez duplikatu krajów)
   ========================================================================== */
.filters-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.filter-sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-accordion-item {
    border-bottom: 1px solid var(--border-subtle);
}

.filter-accordion-header {
    padding: 0.9rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.filter-accordion-header:hover {
    background-color: #fafbfe;
}

.filter-accordion-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--dark-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-accordion-title i {
    font-size: 1.1rem;
    color: var(--primary);
}

.filter-accordion-body {
    padding: 0.5rem 1.25rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-body);
    margin: 0;
}

.filter-checkbox-row:hover {
    color: var(--primary);
}

.filter-checkbox-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    accent-color: var(--primary);
}

.filter-count-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-sidebar-footer {
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
}

.btn-apply-filters {
    background-color: var(--primary);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-apply-filters:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(92, 96, 245, 0.25);
}

/* ==========================================================================
   Karty Pilotów w Stylu Pracuj.pl (Czyste, poziome)
   ========================================================================== */
.pilot-offer-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.pilot-offer-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.inquiry-pick {
    display: none;
    flex-shrink: 0;
    align-self: center;
    margin: 0;
    cursor: pointer;
}

.inquiry-pilot-check {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    accent-color: #5c60f5;
}

#pilotOffersList.is-multi-pick .inquiry-pick {
    display: flex;
}

#pilotOffersList.is-multi-pick .pilot-offer-card {
    cursor: pointer;
}

#pilotOffersList.is-multi-pick .pilot-offer-card.is-picked {
    border-color: #5c60f5;
    box-shadow: 0 0 0 1px #5c60f5;
    background: #f7f7ff;
}

#pilotOffersList.is-multi-pick .btn-offer-book {
    display: none;
}

.pilot-offer-avatar {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #767bf7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.35rem;
    flex-shrink: 0;
    position: relative;
}

.pilot-offer-avatar .pilot-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

.pilot-offer-avatar .verified-badge-mini {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--success);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid #ffffff;
    z-index: 2;
}

.pilot-card-gallery-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.pilot-card-gallery-preview img {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.pilot-card-gallery-preview img:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-subtle);
}

.pilot-card-gallery-preview .gallery-more-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 2px;
}

.pilot-offer-content {
    flex-grow: 1;
    min-width: 0;
}

.pilot-offer-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 2px;
}

.pilot-offer-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.25;
    margin: 0;
}

.pilot-offer-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.pilot-offer-name a:hover {
    color: var(--primary);
}

.pilot-offer-headline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 4px;
}

.pilot-offer-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.pilot-offer-meta-row .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Tagi technologii / specjalizacji w stylu Pracuj.pl */
.pilot-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tech-tag {
    font-size: 0.74rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.tech-tag.primary-dest {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-border);
}

.pilot-offer-bio {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stopka karty z przyciskami */
.pilot-offer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.pilot-academy-badge {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-offer-details {
    background: transparent;
    color: var(--text-body) !important;
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-offer-details:hover {
    background: #f8f9fd;
    border-color: #cbd5e1;
}

.btn-offer-book {
    background: var(--primary);
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-offer-book:hover {
    background: var(--primary-hover);
    box-shadow: 0 3px 10px rgba(92, 96, 245, 0.25);
}

.fav-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-fav-remove {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-fav-remove:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
}

.btn-save-pilot {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color 0.15s ease;
}

.btn-save-pilot:hover,
.btn-save-pilot.saved {
    color: #ef4444;
}

/* ==========================================================================
   Modal Dialogu Kalendarza (Wybór Zakresu Dat Wycieczki)
   ========================================================================== */
.date-picker-modal .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.date-picker-day-head {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 6px 0;
}

.date-picker-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
    border: 1px solid transparent;
}

.date-picker-cell:hover:not(.other-month) {
    background-color: var(--primary-light);
    color: var(--primary);
}

.date-picker-cell.other-month {
    color: #cbd5e1;
    cursor: default;
}

.date-picker-cell.selected-range {
    background-color: #eff0fe;
    color: var(--primary);
    border-radius: 0;
}

.date-picker-cell.range-start {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.date-picker-cell.range-end {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.date-quick-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.preset-chip {
    font-size: 0.76rem;
    font-weight: 600;
    background: #f8f9fd;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s ease;
}

.preset-chip:hover, .preset-chip.active {
    background: var(--primary-light);
    border-color: var(--primary-border);
    color: var(--primary);
}

/* ==========================================================================
   Profil Pilota (pilot-profile.php) — Standard UX/UI 2026
   Spójny z listą ofert i aplikacją mobilną
   ========================================================================== */
.profile-desktop-hero {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}

.profile-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-avatar-large {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, #767bf7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.75rem;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(92, 96, 245, 0.2);
}

.profile-avatar-large .profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    display: block;
}

.profile-avatar-large .large-verified-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2.5px solid #ffffff;
}

.profile-name {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0;
    line-height: 1.2;
}

.profile-badge-available {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid var(--success-border);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-badge-available .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success);
}

.profile-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-meta-rating {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.profile-meta-rating:hover {
    background: #fef3c7;
    color: #78350f;
}

.profile-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.profile-stat-box {
    background: #f8f9fd;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.9rem;
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.profile-stat-box .stat-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.2;
    white-space: nowrap;
}

.profile-stat-box .stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Karty sekcji profilu */
.profile-section-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.4rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-title i {
    font-size: 1.15rem;
    color: var(--primary);
}

.profile-section-body {
    padding: 1.4rem;
}

/* Języki obce */
.lang-card {
    background: #f8f9fd;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Wideo i Zdjęcia */
.profile-video-box {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 160px;
    background: linear-gradient(135deg, #1e2244 0%, #111827 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-video-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.profile-video-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(92, 96, 245, 0.4);
    transition: transform 0.15s ease;
}

.profile-video-box:hover .profile-video-play-btn {
    transform: scale(1.08);
}

.pilot-gallery-filters {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    background: #f1f3f9;
    color: var(--text-body);
    border: 1px solid var(--border-color);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.gallery-filter-btn:hover {
    background: #e6e9f5;
    color: var(--dark-navy);
}

.gallery-filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(92, 96, 245, 0.25);
}

.gallery-filter-btn .badge-count {
    font-size: 0.68rem;
    opacity: 0.85;
}

.gallery-photo-item {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-photo-item.is-hidden {
    display: none !important;
}

.profile-photo-thumb {
    height: 94px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.profile-photo-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-border);
}

.profile-photo-thumb .photo-tag-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.profile-photo-thumb .photo-tag-sub {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.profile-photo-thumb .photo-zoom-hint {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-photo-thumb:hover .photo-zoom-hint {
    opacity: 1;
    transform: scale(1.05);
}

/* Modal Zaawansowanej Galerii (Lightbox Pro) */
.gallery-modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-gallery-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.modal-filter-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.modal-filter-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.modal-filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(92, 96, 245, 0.4);
}

.modal-filter-btn .count {
    font-size: 0.7rem;
    opacity: 0.8;
}

.gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    max-height: 68vh;
    background: #070b14;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-stage img {
    max-height: 68vh;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease-in-out;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.gallery-nav-btn.prev {
    left: 12px;
}

.gallery-nav-btn.next {
    right: 12px;
}

.modal-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-gallery-thumb-item {
    width: 68px;
    height: 46px;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    opacity: 0.45;
    transition: all 0.2s ease;
    background-size: cover;
    background-position: center;
}

.modal-gallery-thumb-item:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.modal-gallery-thumb-item.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(92, 96, 245, 0.55);
    transform: scale(1.04);
}

/* Recenzje i opinie */
.rating-breakdown-card {
    background: #f8f9fd;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
}

.review-card-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.15rem;
    margin-bottom: 0.85rem;
    transition: border-color 0.15s ease;
}

.review-card-item:hover {
    border-color: var(--primary-border);
}

.review-agency-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pilot-reply-box {
    background: #f8f9fd;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
}

/* Sticky kalendarz w prawej kolumnie */
.booking-sticky-panel {
    position: sticky;
    top: 85px;
}

.calendar-widget-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.sp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.sp-cal-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 4px 0;
}

.sp-cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
    position: relative;
    border: 1px solid transparent;
}

.sp-cal-day.free {
    background: #f8f9fd;
    color: var(--dark-navy);
    border-color: var(--border-color);
}

.sp-cal-day.free:hover {
    background: var(--success-light);
    border-color: var(--success-border);
    color: #065f46;
}

.sp-cal-day.trip {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    border-color: var(--primary-border);
}

.sp-cal-day.blocked {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: line-through;
}

.sp-cal-day.other-month {
    color: #cbd5e1;
    cursor: default;
}

.sp-cal-day.selected {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

.sp-cal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-top: 2px;
}

/* ==========================================================================
   Dyżur SOS — Minimalistyczne style
   ========================================================================== */
.btn-sos-phone {
    background: #10b981;
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-sos-phone:hover {
    background: #059669;
    color: #ffffff !important;
}

.sos-dest-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    text-align: left;
    color: #0f172a;
}

.sos-dest-trigger.is-open {
    border-color: #fca5a5;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.sos-dest-trigger-label {
    font-weight: 700;
    font-size: 0.88rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sos-dest-trigger-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
}

.sos-dest-panel {
    margin-top: 6px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.sos-dest-list {
    max-height: 220px;
    border: none;
    border-radius: 0;
    background: transparent;
    margin-top: 6px;
    padding-right: 2px;
}

.sos-dest-row small {
    display: block;
    margin-top: 1px;
    font-weight: 400;
}

.sos-dest-row.is-selected {
    background: #fef2f2;
}

/* ==========================================================================
   Dwupoziomowy Topbar Systemowy (TravelManager) + Modułowy (Superpilot)
   ========================================================================== */
.system-topbar {
    background: #ffffff;
    height: 48px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.system-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.system-logo .logo-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.system-tenant-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.system-tenant-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.system-tenant-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.system-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.system-icon-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.system-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 9999px;
}

.system-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Modułowy Pasek Superpilot (Ciemny Granat #0b1e36) */
.module-topbar {
    background: #0b1e36;
    height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    position: sticky;
    top: 48px;
    z-index: 1025;
}

.agency-tabs.nav-tabs {
    gap: 2px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}
.agency-tabs.nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -1px;
    padding: 10px 14px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.agency-tabs.nav-tabs .nav-link i {
    font-size: 1.05rem;
    color: var(--text-light);
}
.agency-tabs.nav-tabs .nav-link:hover {
    color: var(--dark-navy);
    border-color: transparent;
    isolation: auto;
}
.agency-tabs.nav-tabs .nav-link:hover i {
    color: var(--primary);
}
.agency-tabs.nav-tabs .nav-link.active {
    color: var(--dark-navy);
    font-weight: 700;
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--primary);
}
.agency-tabs.nav-tabs .nav-link.active i {
    color: var(--primary);
}
.agency-tabs .tab-count {
    min-width: 1.15rem;
    padding: 1px 7px;
    border-radius: 999px;
    background: #f8f9fd;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.45;
}
.agency-tabs .nav-link.active .tab-count {
    background: var(--primary-light);
    color: var(--primary);
}

.module-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.module-nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.module-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.module-nav-link.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.module-tool-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.module-tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}




