:root { 
    --primary: #F56E00; 
    --bg-white: #FFFFFF;
    --bg-gray: #F9F9F9; 
    --bg-sidebar: #FFFFFF; 
    --text-dark: #222222;
    --text-light: #777777;
    --shadow: 0 4px 20px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; }

body { background-color: var(--bg-gray); color: var(--text-dark); height: 100vh; overflow: hidden; }

.app-container { display: flex; height: 100vh; width: 100vw; }

.main-wrapper { 
    flex: 1; 
    display: flex; 
    flex-direction: column;
    height: 100vh;
    background-color: var(--bg-gray); 
    overflow: hidden;
}

/* --- GÓRNY PASEK Z PRZYCISKAMI I PROFILEM --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: transparent;
    z-index: 20;
    width: 100%; 
    flex-shrink: 0; 
}

.bar-left { flex: 1; display: flex; justify-content: flex-start; }
.bar-center { flex: 1; display: flex; justify-content: center; }
.bar-right { flex: 1; display: flex; justify-content: flex-end; }

.btn-add, .btn-login {
    padding: 10px 25px; border: none; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 0.9rem;
}
.btn-login { background-color: var(--bg-white); color: var(--text-dark); border: 1px solid #eaeaea; }
.btn-login:hover { background-color: #f0f0f0; }
.btn-add { background-color: var(--text-dark); color: white; }
.btn-add:hover { background-color: var(--primary); transform: translateY(-2px); }

/* --- SIDEBAR - PANEL BOCZNY --- */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    border-right: 1px solid #eaeaea;
    z-index: 30;
    transition: width 0.3s ease;
    position: relative;
}

.sidebar-header { margin-bottom: 60px; }
.logo { 
    font-size: 26px; 
    font-weight: 800; 
    color: var(--text-dark); 
    text-decoration: none; 
    letter-spacing: -1px; 
    display: flex;         
    align-items: center;   
    gap: 15px;             
}

.logo-icon {
    flex-shrink: 0; 
}

.logo-text {
    transition: 0.3s;
}
.nav-links { list-style: none; }
.nav-links li { 
    padding: 15px 20px; 
    margin-bottom: 10px; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 600; 
    color: var(--text-light); 
    transition: 0.3s; 
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-links li:hover { background-color: #f5f5f5; color: var(--text-dark); }
.nav-links li.active { background-color: var(--primary); color: white; box-shadow: 0 4px 15px rgba(245, 110, 0, 0.2); }

.nav-icon {
    display: none !important; 
    font-size: 1.4rem;
    justify-content: center;
    width: 24px;
}
.nav-text {
    white-space: nowrap;
}

/* --- OBSZAR TREŚCI & MAGIA PODGLĄDU --- */
.content-area { padding: 30px 50px; overflow-y: auto; flex: 1; position: relative; }

.section-content { 
    position: absolute; 
    top: 30px; left: 50px; right: 50px;
    opacity: 0; 
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-content.active {
    position: relative; 
    top: 0; left: 0; right: 0;
    opacity: 1; 
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

body:has(.nav-links li:hover:not(.active)) .section-content.active {
    opacity: 0;
    transform: translateY(-20px);
}

body:has([data-target="section-search"]:hover) #section-search:not(.active),
body:has([data-target="section-pack"]:hover) #section-pack:not(.active),
body:has([data-target="section-messages"]:hover) #section-messages:not(.active),
body:has([data-target="section-my-rides"]:hover) #section-my-rides:not(.active),
body:has([data-target="section-calculator"]:hover) #section-calculator:not(.active),
body:has([data-target="section-guide"]:hover) #section-guide:not(.active),
body:has([data-target="section-terms"]:hover) #section-terms:not(.active) {
    opacity: 0.25;
    visibility: visible;
    transform: translateY(10px);
}

.sidebar-footer {
    margin-top: auto; /* Wypycha stopkę na sam dół paska! */
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    transition: 0.3s;
}

.circle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    background: var(--bg-gray);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.circle-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(245, 110, 0, 0.3);
}

/* Opcje wyboru języka w Modalu */
.lang-option {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 12px;
    transition: 0.2s;
    margin-bottom: 5px;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.lang-option:hover { background: #fbfbfb; border-color: #eaeaea; }
.lang-option.active { background: #FFF0E5; color: var(--primary); border: 1px solid rgba(245, 110, 0, 0.2); }

/* --- EFEKT PODGLĄDU ---*/
body:has(.nav-links li[data-target="section-search"]:hover:not(.active)) #section-search,
body:has(.nav-links li[data-target="section-pack"]:hover:not(.active)) #section-pack,
body:has(.nav-links li[data-target="section-messages"]:hover:not(.active)) #section-messages,
body:has(.nav-links li[data-target="section-my-rides"]:hover:not(.active)) #section-my-rides,
body:has(.nav-links li[data-target="section-calculator"]:hover:not(.active)) #section-calculator,
body:has(.nav-links li[data-target="section-terms"]:hover:not(.active)) #section-terms {
    visibility: visible;
    opacity: 0.6; 
    transform: translateY(0); 
    z-index: 5;
    pointer-events: none; 
}

/* --- NAGŁÓWKI SEKCJI --- */
.section-header { margin-bottom: 40px; }
.section-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 5px; letter-spacing: -1px; }
.section-header p { color: var(--text-light); font-size: 1rem; }

/* --- PIGUŁKA WYSZUKIWARKI --- */
.minimal-search-pill {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid #eaeaea;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.minimal-search-pill.large-pill { max-width: 800px; margin-bottom: 40px; }
.minimal-search-pill:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(245, 110, 0, 0.1);
}

.minimal-search-pill input { border: none; background: transparent; outline: none; flex: 1; padding: 10px; font-size: 0.95rem; color: var(--text-dark); font-weight: 500;}
.minimal-search-pill input[type="date"] { color: var(--text-light); cursor: pointer; }
.minimal-search-pill select { padding: 10px; appearance: none; border:none; outline:none; background:transparent; font-size: 0.95rem; font-family: 'Montserrat'; font-weight: 500; cursor: pointer; }

.separator-line { width: 1px; height: 24px; background: #e0e0e0; margin: 0 5px; }

.btn-pill-search {
    background: var(--text-dark); color: white; border: none; border-radius: 50px; padding: 12px 30px; font-weight: 700; cursor: pointer; transition: 0.3s; flex-shrink: 0;
}
.btn-pill-search:hover { background: var(--primary); }

/* --- KARTY --- */
.rides-container { max-width: 800px; }
.ride-card {
    background: var(--bg-white); border-radius: 16px; padding: 22px 28px; margin-bottom: 15px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; border: 1px solid #eaeaea; transition: all 0.3s ease; opacity: 0; animation: revealCard 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.ride-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ddd; z-index: 2; }

@keyframes revealCard {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.ride-info { display: flex; flex-direction: column; gap: 8px;}
.ride-info .route { font-size: 1.2rem; font-weight: 700; color: var(--text-dark);}
.ride-info .route span { color: #ccc; font-weight: 400; margin: 0 10px; }
.ride-info .details { display: flex; gap: 20px; color: var(--text-light); font-size: 0.85rem; font-weight: 500;}
.ride-price { font-size: 1.6rem; font-weight: 800; color: var(--primary); }

/* --- KALKULATOR --- */
.calculator-minimal { max-width: 650px; background: var(--bg-white); padding: 35px; border-radius: 20px; border: 1px solid #eaeaea;}
.minimal-divider { text-align: center; margin: 30px 0; position: relative; }
.minimal-divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #eaeaea; z-index: 1; }
.minimal-divider span { background: var(--bg-white); padding: 0 15px; color: #bbb; font-size: 0.75rem; font-weight: 600; position: relative; z-index: 2; text-transform: uppercase; letter-spacing: 1px; }

.minimal-inputs { display: flex; gap: 20px; margin-bottom: 35px; flex-wrap: wrap; }
.min-field { flex: 1; min-width: 130px; display: flex; flex-direction: column; }
.min-field label { font-size: 0.75rem; color: #888; margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.min-field input, .min-field select { padding: 12px; border: 1px solid #eaeaea; border-radius: 10px; outline: none; transition: 0.3s; background: #fbfbfb; width: 100%; font-weight: 500;}
.min-field input:focus, .min-field select:focus { border-color: var(--primary); background: #fff; }

.min-price-group { display: flex; gap: 5px; }
.min-price-group input { flex: 2; }
.min-price-group select { flex: 1; min-width: 70px; padding: 12px 5px;}

.minimal-results { display: flex; justify-content: space-around; background: #fafafa; padding: 25px; border-radius: 16px; transition: 0.4s ease; border: 1px solid transparent; }
.res-block { display: flex; flex-direction: column; align-items: center; }
.res-label { font-size: 0.75rem; color: #888; margin-bottom: 5px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }
.res-value { font-size: 2rem; font-weight: 800; }
.res-value.money { color: var(--primary); }
.res-value.co2 { color: #222; }

.waiting-for-data { opacity: 0.3; filter: grayscale(100%); pointer-events: none; border-color: #eee; }
.waiting-for-data.active-data { opacity: 1; filter: grayscale(0%); pointer-events: auto; background: var(--bg-white); border-color: #eaeaea; box-shadow: 0 4px 15px rgba(0,0,0,0.02);}

/* --- REGULAMIN --- */
.terms-content { background: var(--bg-white); padding: 40px; border-radius: 20px; line-height: 1.8; border: 1px solid #eaeaea; max-width: 800px; }
.terms-content h3 { margin: 25px 0 10px 0; font-size: 1.1rem; }
.terms-content p { color: var(--text-light); }

/* --- TOAST --- */
#toast-container { position: fixed; top: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; }
.toast { background: var(--bg-white); color: var(--text-dark); padding: 16px 24px; border-radius: 12px; border-left: 6px solid var(--primary); box-shadow: 0 10px 40px rgba(0,0,0,0.1); font-weight: 500; font-size: 0.95rem; transform: translateX(120%); opacity: 0; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; align-items: center; gap: 10px; max-width: 340px; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast strong { color: var(--primary); }
.toast--message { border-left-color: var(--primary); }
.toast--message strong { color: var(--primary); }
.toast--success { border-left-color: var(--text-dark); }
.toast--success strong { color: var(--text-dark); }
.toast--error { border-left-color: #e74c3c; }
.toast--error strong { color: #e74c3c; }
.toast--clickable { cursor: pointer; }
.toast--clickable:hover { box-shadow: 0 14px 50px rgba(0,0,0,0.15); transform: translateX(-4px); }

/* --- PROFIL W NAGŁÓWKU --- */
.user-profile-menu { display: flex; align-items: center; gap: 20px; }
.profile-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-dark); font-weight: 700; transition: 0.3s; font-size: 0.95rem; }
.profile-link:hover { color: var(--primary); }
.profile-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #eaeaea; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* Dzwonek powiadomień */
.notif-bell-btn {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #eaeaea;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.notif-bell-btn:hover { background: #fff3eb; border-color: var(--primary); color: var(--primary); }
.notif-bell-btn .material-symbols-outlined { font-size: 1.2rem; color: #555; transition: color 0.15s; }
.notif-bell-btn:hover .material-symbols-outlined { color: var(--primary); }
.notif-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    min-width: 18px; height: 18px;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}

/* Wiadomości systemowe - lista w modalu */
.notif-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #fafafa; }
.notif-item.unread { background: #fff8f3; border-left: 3px solid var(--primary); }
.notif-item-subject { font-weight: 700; font-size: 0.88rem; color: #222; margin-bottom: 4px; }
.notif-item-preview { font-size: 0.78rem; color: #888; line-height: 1.4; }
.notif-item-time { font-size: 0.72rem; color: #bbb; margin-top: 5px; }

/* --- ETYKIETY --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.7rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-driver { background-color: var(--primary); }
.badge-sender { background-color: var(--text-dark); }

/* --- GWIAZDKI FILTRÓW --- */
.star-filter { font-size: 1.5rem; cursor: pointer; color: #ddd; transition: color 0.12s; line-height: 1; user-select: none; }
.star-filter:hover, .star-filter.active { color: #f1c40f; }

/* --- CUSTOM SELECT (filtry) --- */
.cs-wrapper { position: relative; display: inline-block; }
.cs-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border: 1px solid #eaeaea; border-radius: 8px;
    cursor: pointer; background: #fff; user-select: none; white-space: nowrap;
    font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 600;
    color: var(--text-dark); transition: border-color 0.15s, color 0.15s;
}
.cs-btn:hover, .cs-wrapper.cs-open .cs-btn { border-color: var(--primary); color: var(--primary); }
.cs-panel {
    display: none; position: absolute; top: calc(100% + 4px); left: 0;
    min-width: 100%; background: #fff; border: 1px solid #eaeaea;
    border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9999; overflow: hidden;
}
.cs-wrapper.cs-open .cs-panel { display: block; }
.cs-option {
    padding: 10px 14px; cursor: pointer;
    font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 600;
    color: var(--text-dark); transition: background 0.12s, color 0.12s;
}
.cs-option:hover { background: #fff3eb; color: var(--primary); }
.cs-option.cs-selected { background: var(--primary); color: #fff; }

.cs-btn-compact {
    padding: 4px 8px !important;
    font-size: 0.82rem !important;
    border-radius: 6px !important;
    border-color: transparent !important;
    background: transparent !important;
}
.cs-btn-compact:hover { background: #fff3eb !important; border-color: var(--primary) !important; }
.cs-wrapper.cs-open .cs-btn-compact { background: #fff3eb !important; border-color: var(--primary) !important; }
.flatpickr-current-month .cs-wrapper { vertical-align: middle; }

.flatpickr-current-month input.cur-year {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    color: var(--text-dark) !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    padding: 4px 6px !important;
    outline: none !important;
    background: transparent !important;
    transition: border-color 0.15s, background 0.15s !important;
}
.flatpickr-current-month input.cur-year:hover,
.flatpickr-current-month input.cur-year:focus {
    border-color: var(--primary) !important;
    background: #fff3eb !important;
    color: var(--primary) !important;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--primary) !important;
}

.btn-pill-add {
    background: var(--text-dark);
    color: white; 
    border: none; 
    border-radius: 50px; 
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.3s; 
    flex-shrink: 0;
    white-space: nowrap;
}
.btn-pill-add:hover { 
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 110, 0, 0.3);
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease;
    padding: 20px; 
    box-sizing: border-box;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-white); 
    padding: 30px; 
    border-radius: 20px;
    width: 100%; 
    max-width: 500px; 
    position: relative;
    transform: translateY(30px); 
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-height: 100%; 
    overflow-y: auto; 
    display: flex;
    flex-direction: column;
}

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-thumb { background: #dddddd; border-radius: 10px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.modal-close {
    position: absolute; 
    top: 20px; 
    right: 20px;
    background: #f0f0f0; 
    color: #333;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: 0.3s;
}
.modal-close:hover { background: #eaeaea; color: var(--primary); }

.checkbox-group { 
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px; 
    font-size: 0.9rem; font-weight: 600; color: var(--text-dark); cursor: pointer;
}
.checkbox-group input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

/* ==========================================
   KALENDARZ (FLATPICKR)
   ========================================== */
.flatpickr-calendar {
    font-family: 'Montserrat', sans-serif !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    border: 1px solid #eaeaea !important;
    padding: 10px !important;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, 
.flatpickr-day.endRange.nextMonthDay {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

.flatpickr-day:hover {
    background: #fbfbfb !important;
    border-color: #eaeaea !important;
    border-radius: 12px !important;
}

.flatpickr-day.today {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
}

.flatpickr-day.today:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.flatpickr-time {
    border-top: 1px solid #eaeaea !important;
    margin-top: 6px !important;
}

.flatpickr-time input {
    color: var(--text-dark) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    accent-color: var(--primary) !important;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
    background: #fff3eb !important;
    color: var(--primary) !important;
    outline: none !important;
}

.flatpickr-time .numInputWrapper:hover,
.flatpickr-time .numInputWrapper:focus-within {
    background: #fff3eb !important;
    border-radius: 8px !important;
}

.flatpickr-time .numInputWrapper span.arrowUp::after {
    border-bottom-color: var(--primary) !important;
}

.flatpickr-time .numInputWrapper span.arrowDown::after {
    border-top-color: var(--primary) !important;
}

.flatpickr-time .flatpickr-time-separator {
    font-weight: 700 !important;
    color: var(--text-dark) !important;
}

.flatpickr-am-pm:hover,
.flatpickr-am-pm:focus {
    background: #fff3eb !important;
    color: var(--primary) !important;
}

input[type="date"], input[type="datetime-local"] {
    cursor: pointer;
    background-color: transparent !important;
}

/* ==========================================
   KOMUNIKATOR — BlaBlaCar Style
   ========================================== */
.chat-container {
    display: flex;
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid #eaeaea;
    height: 640px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 1100px;
}

/* --- Sidebar (lista rozmów) --- */
.chat-sidebar {
    width: 320px;
    border-right: 1px solid #eaeaea;
    overflow-y: auto;
    background: #fafafa;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.chat-sidebar-header {
    padding: 16px 18px;
    border-bottom: 1px solid #eaeaea;
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-dark);
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.chat-contact {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
    background: #fafafa;
    border-left: 3px solid transparent;
}
.chat-contact:hover { background: #fff; border-left-color: #eaeaea; }
.chat-contact.active { background: #fff; border-left-color: var(--primary); }

.chat-contact-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eaeaea;
    flex-shrink: 0;
    transition: 0.2s;
}
.chat-contact.active .chat-contact-avatar { border-color: var(--primary); }

.chat-contact-body { flex: 1; min-width: 0; }
.chat-contact-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}
.chat-contact-name {
    font-weight: 700; font-size: 0.86rem;
    color: var(--text-dark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 140px;
}
.chat-contact-time {
    font-size: 0.67rem; color: #bbb; font-weight: 600; flex-shrink: 0; margin-left: 5px;
}
.chat-contact-route {
    font-size: 0.72rem; font-weight: 700; color: var(--primary);
    margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-contact-preview {
    font-size: 0.74rem; color: #999;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500;
}
.chat-contact-badge {
    background-color: var(--primary); color: white;
    font-size: 0.65rem; font-weight: 800;
    padding: 2px 7px; border-radius: 50px;
    position: absolute; top: 10px; right: 11px;
    min-width: 18px; text-align: center;
}

/* --- Okno czatu --- */
.chat-window { flex: 1; display: flex; flex-direction: column; background: #fff; min-width: 0; }

.chat-header {
    padding: 13px 18px;
    border-bottom: 1px solid #eaeaea;
    background: #fff;
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
}
.chat-header-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--primary); cursor: pointer; transition: 0.2s; flex-shrink: 0;
}
.chat-header-avatar:hover { transform: scale(1.06); }
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name {
    font-weight: 800; font-size: 0.96rem; color: var(--text-dark);
    cursor: pointer; transition: 0.2s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-header-name:hover { color: var(--primary); }
.chat-header-route {
    font-size: 0.76rem; color: var(--primary); font-weight: 700; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- Wiadomości --- */
.chat-messages {
    flex: 1; padding: 16px 18px;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 6px;
    background: #f8f9fa;
}
.chat-bubble {
    max-width: 62%; padding: 10px 14px;
    border-radius: 18px; font-size: 0.87rem; line-height: 1.5; word-wrap: break-word;
}
.chat-bubble.sent {
    background: var(--primary); color: white;
    align-self: flex-end; border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(245,110,0,0.18);
}
.chat-bubble.received {
    background: #ffffff; color: var(--text-dark);
    align-self: flex-start; border-bottom-left-radius: 4px;
    border: 1px solid #eaeaea;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.chat-bubble .msg-status {
    display: block; text-align: right;
    font-size: 0.6rem; opacity: 0.75; margin-top: 4px; font-weight: 600;
}

/* --- Wiadomości systemowe --- */
.chat-bubble.system {
    background: #ffffff; color: var(--text-dark);
    align-self: center; border: 1px solid #eaeaea;
    border-radius: 16px; text-align: center;
    width: 88%; max-width: 460px;
    margin: 10px 0; padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    font-size: 0.87rem;
}
.chat-bubble.system strong {
    color: var(--text-dark); font-size: 0.96rem; display: block; margin-bottom: 6px;
}

/* --- Pole do pisania --- */
.chat-input-area {
    padding: 11px 14px; border-top: 1px solid #eaeaea;
    display: flex; gap: 9px; background: #fff;
    align-items: center; flex-shrink: 0;
}
.chat-input-wrap {
    flex: 1; background: #f4f4f4; border-radius: 50px;
    display: flex; align-items: center; padding: 0 15px;
    border: 1.5px solid transparent; transition: 0.2s;
}
.chat-input-wrap:focus-within {
    border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 3px rgba(245,110,0,0.08);
}
.chat-input-wrap input {
    flex: 1; border: none; background: transparent;
    padding: 12px 0; outline: none;
    font-family: 'Montserrat'; font-size: 0.87rem;
    font-weight: 500; color: var(--text-dark);
}
.chat-send-btn {
    width: 40px; height: 40px;
    background: var(--primary); color: white;
    border: none; border-radius: 50%; cursor: pointer;
    transition: all 0.2s; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245,110,0,0.25);
}
.chat-send-btn:hover { background: #e46600; transform: scale(1.08); }
.chat-send-btn .material-symbols-outlined { font-size: 1.2rem; }

.chat-placeholder {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    height: 100%; gap: 8px;
}

/* --- Badge nieprzeczytane --- */
.badge-unread {
    background-color: var(--primary); color: white;
    font-size: 0.72rem; font-weight: 800;
    padding: 2px 8px; border-radius: 50px;
}
.nav-links li.has-unread:not(.active) {
    background-color: #FFF0E5;
    color: var(--primary);
    border-radius: 12px;
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    animation: pulse-unread 2s ease-in-out infinite;
}

@keyframes pulse-unread {
    0%   { outline-color: rgba(245,110,0,0.9); box-shadow: 0 0 0 0 rgba(245,110,0,0.35); }
    50%  { outline-color: rgba(245,110,0,0.4); box-shadow: 0 0 0 8px rgba(245,110,0,0); }
    100% { outline-color: rgba(245,110,0,0.9); box-shadow: 0 0 0 0 rgba(245,110,0,0); }
}

/* --- Przyciski systemowe --- */
.sys-btn-group {
    display: flex; justify-content: center; gap: 10px; margin-top: 14px;
}
.sys-btn {
    padding: 9px 22px; border: none; border-radius: 50px;
    font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 0.82rem;
    font-family: 'Montserrat', sans-serif;
}
.sys-btn.accept {
    background: var(--primary); color: #fff;
    box-shadow: 0 3px 8px rgba(245,110,0,0.2);
}
.sys-btn.accept:hover { background: #e46600; transform: translateY(-2px); }
.sys-btn.reject {
    background: #f5f5f5; color: var(--text-dark); border: 1px solid #eaeaea;
}
.sys-btn.reject:hover { background: #eaeaea; transform: translateY(-2px); }

/* ==========================================
   ZWIJANY SIDEBAR (DESKTOP)
   ========================================== */
.sidebar.collapsed {
    width: 90px;
    padding: 40px 10px;
    align-items: center;
}
.sidebar.collapsed .logo-text { display: none; }
.sidebar.collapsed .logo { justify-content: center; padding: 0; }

@keyframes orbit-animation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rockets-group { transform-origin: 50px 50px; }
.sidebar.collapsed .rockets-group { animation: orbit-animation 4s linear infinite; }
.sidebar.collapsed .logo-icon { animation: orbit-animation 6s linear infinite; display: block; }
.sidebar.collapsed .logo-icon .planet-core { fill: var(--primary); transition: 0.3s; }
.sidebar.collapsed .nav-text { display: none; }

.sidebar.collapsed .nav-links li {
    justify-content: center;
    padding: 0;
    width: 50px;
    height: 50px;
    margin: 0 auto 12px auto;
    border-radius: 14px; 
}

.sidebar.collapsed .nav-icon {
    display: block !important;
    font-size: 1.6rem; 
    margin: 0;
}

.sidebar.collapsed .badge-unread {
    position: absolute;
    right: -4px; 
    top: -4px;
    font-size: 0.65rem;
    padding: 3px 6px;
    border: 2px solid var(--bg-sidebar); 
}

.toggle-sidebar-btn {
    position: absolute;
    top: 20px;
    right: -15px;
    background: var(--text-dark);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 40;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.toggle-sidebar-btn:hover { background: var(--primary); }

.sidebar.collapsed .sidebar-footer {
    flex-direction: column; /* Ustawia przyciski jeden pod drugim */
    border-top: none;
    padding-top: 10px;
    gap: 10px;
}
.sidebar.collapsed .circle-btn {
    width: 40px;
    height: 40px;
}

/* Ukrycie przycisku zamykania modala na desktopie */
.mobile-close-btn { display: none !important; }

/* ==========================================
   NOWOCZESNE MENU WYBORU (CUSTOM SELECT)
   ========================================== */
.modern-select { display: none !important; /* Ukrywamy brzydki systemowy wybierak */ }

.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    width: 100%;
    padding: 15px 20px;
    background-color: #fbfbfb;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.custom-select-trigger.open {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 110, 0, 0.1);
}

.custom-select-trigger::after {
    content: "expand_more";
    font-family: 'Material Symbols Outlined';
    font-size: 1.2rem;
    color: #888;
    transition: transform 0.3s;
}

.custom-select-trigger.open::after {
    transform: rotate(180deg);
    color: var(--primary);
}

.custom-select-options {
    position: absolute;
    display: block;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(-10px);
    max-height: 280px;
    overflow-y: auto;
}

/* Własny suwak dla opcji */
.custom-select-options::-webkit-scrollbar { width: 6px; }
.custom-select-options::-webkit-scrollbar-thumb { background: #dddddd; border-radius: 10px; }

.custom-select-options.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}

/* OTO MAGIA - Kolor naszej marki po najechaniu! */
.custom-option:hover {
    background-color: #FFF0E5; 
    color: var(--primary);
    padding-left: 25px; /* Przyjemny efekt wcięcia */
    font-weight: 700;
}

.custom-optgroup {
    padding: 15px 20px 8px 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: default;
    background: #fafafa;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 5px;
}

/* Dopasowanie pięknego selecta do Pigułki Wyszukiwarki (usuwa tło i podwójne ramki) */
.minimal-search-pill .custom-select-wrapper {
    flex: 1;
}
.minimal-search-pill .custom-select-trigger {
    background: transparent;
    border: none;
    padding: 10px;
}
.minimal-search-pill .custom-select-trigger.open {
    box-shadow: none;
}

/* ==========================================
   NOWOCZESNE MENU WYBORU W FORMULARZACH
   ========================================== */
.modern-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 15px 20px;
    background-color: #fbfbfb;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    /* Własna, ładna strzałka w dół */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23222222%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.modern-select:hover, .modern-select:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 110, 0, 0.1);
}

/* Wymuszenie ładnej czcionki i kolorów wewnątrz rozwiniętej listy */
.modern-select optgroup {
    font-weight: 800;
    color: var(--primary);
    font-style: normal;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
}

.modern-select option {
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================
   RESPONSYWNOŚĆ (TELEFONY I TABLETY - poniżej 900px)
   ========================================== */
@media (max-width: 900px) {
    .app-container { flex-direction: column; }
    
    /* ==========================================
       NAPRAWA SCROLLOWANIA NA TELEFONACH
       ========================================== */
       
    /* 1. Odblokowujemy naturalne przewijanie całej strony */
    body, .app-container, .main-wrapper {
        height: auto !important;
        min-height: 100dvh !important;
        overflow: visible !important;
        display: block !important; /* Wyłącza blokowanie flexboxa */
    }

    .content-area {
        overflow: visible !important;
        height: auto !important;
        padding-bottom: 120px !important; /* Zostawia miejsce na dolny pasek Supportu */
    }

    /* 2. Przyklejamy Logo i Zakładki nawigacyjne do samej góry ekranu */
    .sidebar {
        position: sticky !important;
        top: 0 !important;
        background: var(--bg-white) !important;
        z-index: 100 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
        padding: 10px 10px 0 10px !important; /* Zmniejsza puste przestrzenie */
    }

    /* Ukrywa niepotrzebne marginesy pod przewijanymi zakładkami */
    .nav-links {
        padding-bottom: 10px !important;
        margin-bottom: 0 !important;
    }


    .sidebar {
        width: 100% !important;
        height: auto;
        padding: 15px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
        z-index: 100;
    }
    
    .sidebar-footer {
        position: fixed !important;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        border-top: 1px solid #eaeaea;
        padding: 10px 0 calc(10px + env(safe-area-inset-bottom)) 0 !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 20px;
        z-index: 900; 
    }
    
    .content-area {
        padding-bottom: 90px !important; /* Zapobiega zasłanianiu treści przez nowy dolny pasek */
    }

    .toggle-sidebar-btn { display: none; }
    .sidebar-header { margin-bottom: 15px; }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        margin: 0;
        padding-bottom: 5px;
        width: 100%;
    }

    .nav-links li {
        margin-bottom: 0;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .bar-left, .bar-center, .bar-right { width: 100%; justify-content: center; }
    .content-area { padding: 15px; }
    .section-content { left: 15px; right: 15px; top: 15px; }

    .minimal-search-pill, 
    .minimal-search-pill.large-pill {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
        gap: 10px;
        background: var(--bg-white);
    }

    .minimal-search-pill input, 
    .minimal-search-pill select {
        width: 100%;
        background: #f9f9f9;
        border-radius: 10px;
        padding: 15px;
        border: 1px solid #eaeaea;
    }

    .separator-line { display: none; }
    .btn-pill-search { width: 100%; padding: 15px; border-radius: 10px; margin-top: 5px; }

    div[style*="justify-content: space-between; gap: 50px;"] {
        flex-direction: column;
        gap: 20px !important;
    }

    div[style*="width: 350px;"] { width: 100% !important; margin-left: 0 !important; }
    div[style*="display: flex; gap: 15px; align-items: center;"] { flex-direction: column; align-items: stretch !important; }
    .btn-pill-add { width: 100%; }
    
    .modal-overlay { padding: 10px; }
    .modal-content { padding: 20px; }
}

/* =========================================
   📱 OPTYMALIZACJA MOBILNA (SMARTFONY < 768px)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Ekstremalnie kompaktowy pasek górny */
    .top-bar {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 5px 10px !important; 
        min-height: auto !important;  
        margin-bottom: 0 !important;
    }

    .bar-left { display: none !important; }
    .bar-center { margin: 0 !important; }

    .profile-link { 
        font-size: 0.95rem !important; 
        color: var(--text-dark) !important; 
        gap: 8px !important; 
    }
    
    .profile-avatar { 
        width: 36px !important; 
        height: 36px !important; 
        margin-right: 0 !important; 
    }

    .bar-right { 
        width: 100% !important; 
        flex: 1 1 100% !important; /* Siłą zmusza pasek do rozciągnięcia się na całą szerokość ekranu */
        display: flex !important; 
        justify-content: space-between !important; /* Rozpycha elementy na skrajne boki */
        align-items: center !important;
        padding: 10px 20px !important; /* Robi ładne marginesy po bokach, żeby nie dotykały samej ramki telefonu */
        box-sizing: border-box !important;
    }

    .profile-link { 
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        font-size: 0.95rem !important; 
        color: var(--text-dark) !important; 
        gap: 10px !important; 
        margin: 0 !important; /* Usuwa ukryte marginesy blokujące wyrównanie do lewej */
    }
    
    .bar-right button {
        padding: 8px 12px !important;
        font-size: 0.75rem !important; 
        border-radius: 8px !important;
        flex: none !important;
    }

    /* 2. Zmniejszenie nagłówka */
    .section-header { margin-bottom: 15px !important; }
    .section-header h1 { font-size: 1.6rem !important; margin-top: 10px !important; margin-bottom: 5px !important; }
    .section-header p { font-size: 0.9rem !important; margin-bottom: 10px !important; }
    
    /* 3. Pionowa wyszukiwarka */
    .minimal-search-pill { flex-direction: column; border-radius: 20px !important; padding: 15px !important; }
    .minimal-search-pill input, .minimal-search-pill select, .minimal-search-pill button {
        width: 100%; border-radius: 12px !important; margin: 5px 0; font-size: 16px !important; padding: 16px !important;
    }
    .separator-line { display: none !important; }

    /* --- NAPRAWA OKIENEK (MODALI) NA TELEFONIE --- */
    .modal-overlay.active {
        display: flex !important;
        align-items: center !important; 
        justify-content: center !important;
        padding: 0 !important; /* CAŁKOWICIE USUWA IRYTUJĄCY ODSTĘP NA GÓRZE */
    }

    .modal-content {
        width: 100% !important;
        height: 100% !important; /* Wymusza pełny ekran */
        max-height: 100dvh !important; /* dvh naprawia ucinanie dołu na Safari i Chrome! */
        margin: 0 !important; 
        padding: 20px 20px calc(40px + env(safe-area-inset-bottom)) 20px !important; 
        overflow-y: auto !important;
        border-radius: 0 !important; /* Usunięto zaokrąglenia dla trybu pełnoekranowego */
        position: relative !important; 
    }

    .modal-close {
        position: fixed !important; /* Zatrzymuje krzyżyk u góry, nawet gdy użytkownik przewija stronę */
        top: 15px !important;
        right: 15px !important;
        background: #f0f0f0 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        width: 35px !important;
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important;
    }

    /* Powiększenie tekstów */
    .modal-content p, .modal-content span, .modal-content label, .modal-content div {
        font-size: 1.05rem !important; line-height: 1.5;
    }

    .responsive-flex { flex-direction: column !important; gap: 10px !important; }
    
    /* Pokazuje duży przycisk zamykania TYLKO na telefonach */
    .mobile-close-btn { display: block !important; }
}

/* ==========================================
   KREATOR DODAWANIA OGŁOSZENIA (WIZARD)
   ========================================== */
.wizard-step { 
    display: none; 
    animation: fadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
.wizard-step.active { 
    display: block; 
}

.modal-rocket-anim {
    text-align: center;
    margin-bottom: 20px;
}
.modal-rocket-anim svg {
    width: 90px;
    height: 90px;
}
.modal-rocket-anim .rockets-group {
    transform-origin: 50px 50px;
    animation: orbit-animation 4s linear infinite;
}

.wizard-header-text {
    text-align: center;
    margin-bottom: 30px;
}
.wizard-header-text h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.wizard-header-text p {
    color: #888;
    font-size: 0.95rem;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 600px) {
    .choice-grid { grid-template-columns: 1fr; }
}

.choice-card {
    background: #fbfbfb;
    border: 2px solid #eaeaea;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.choice-card:hover {
    border-color: var(--primary);
    background: #FFF0E5;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(245, 110, 0, 0.15);
}
.choice-card .icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 15px;
}
.choice-card h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.choice-card p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
}

.btn-back-wizard {
    background: transparent;
    border: none;
    color: #888;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    transition: 0.3s;
    font-size: 0.95rem;
    padding: 5px 10px;
    border-radius: 10px;
}
.btn-back-wizard:hover {
    color: var(--text-dark);
    background: #f0f0f0;
}

/* ==========================================
   MAPA LEAFLET — STYL OnMyWAY
   ========================================== */

/* Kontener mapy — lekkie obramowanie i cień marki */
#ride-map-container {
    border-radius: 14px !important;
    border: 1px solid #eaeaea !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Kafelki — ciepły filtr nałożony bezpośrednio na pane */
#ride-map-container .leaflet-tile-pane {
    filter: sepia(0.14) brightness(0.965) contrast(1.03);
}

/* Przyciski zoom — styl OnMyWAY */
#ride-map-container .leaflet-control-zoom a {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    color: var(--text-dark) !important;
    background: #fff !important;
    border: 1px solid #eaeaea !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: 0.2s !important;
}
#ride-map-container .leaflet-control-zoom a:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
#ride-map-container .leaflet-control-zoom {
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Geocoder (lupka) — wyrównanie do stylu strony */
#ride-map-container .leaflet-control-geocoder {
    border: 1px solid #eaeaea !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
    overflow: hidden;
}
#ride-map-container .leaflet-control-geocoder-form input {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    border: none !important;
    color: var(--text-dark) !important;
    outline: none !important;
}
#ride-map-container .leaflet-control-geocoder-icon {
    background-color: var(--primary) !important;
    border-radius: 0 !important;
}

/* Popup — styl OnMyWAY */
.onmyway-popup .leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    padding: 0 !important;
    border: 1px solid #eaeaea;
}
.onmyway-popup .leaflet-popup-content {
    margin: 12px 16px !important;
}
.onmyway-popup .leaflet-popup-tip {
    box-shadow: none !important;
}

/* Atrybucja — dyskretna */
#ride-map-container .leaflet-control-attribution {
    background: rgba(255,255,255,0.75) !important;
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    border-radius: 6px 0 0 0 !important;
    backdrop-filter: blur(4px);
}

/* ==========================================
   MOBILE — DODATKOWE POPRAWKI
   ========================================== */
@media (max-width: 768px) {

    /* Czat — pełna szerokość, stack pionowy */
    .chat-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 80vh;
        border-radius: 14px !important;
    }
    .chat-sidebar {
        width: 100% !important;
        max-height: 220px;
        border-right: none !important;
        border-bottom: 1px solid #eaeaea;
        overflow-y: auto;
    }
    .chat-sidebar-header {
        position: sticky;
        top: 0;
        z-index: 2;
    }
    .chat-contact-avatar {
        width: 38px !important;
        height: 38px !important;
    }
    .chat-window {
        min-height: 420px;
    }
    .chat-messages {
        padding: 10px 12px !important;
    }
    .chat-bubble {
        max-width: 85% !important;
        font-size: 0.84rem !important;
        padding: 9px 13px !important;
    }
    .chat-input-area {
        padding: 8px 10px !important;
    }
    .chat-input-wrap input {
        font-size: 16px !important; /* zapobiega autozoomowi na iOS */
    }
    .chat-send-btn {
        width: 38px !important;
        height: 38px !important;
    }
    .chat-header {
        padding: 10px 14px !important;
    }
    .chat-header-name {
        font-size: 0.88rem !important;
    }
    .chat-bubble.system {
        width: 95% !important;
        padding: 13px 14px !important;
    }

    /* Mapa — pełna szerokość na mobile */
    #ride-map-container {
        height: 220px !important;
        border-radius: 12px !important;
    }

    /* Kalkulator — pionowo */
    .minimal-inputs {
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Modal anulowania — pełny ekran */
    #cancel-reason-input {
        font-size: 16px !important; /* zapobiega autozoomowi na iOS */
    }

    /* Logo tekst — nie łam */
    .logo-text {
        font-size: 1.1rem !important;
        letter-spacing: -0.5px !important;
    }

    /* Sekcja Moje ogłoszenia — stack kart */
    .ride-card {
        padding: 14px !important;
    }
    .ride-card .route {
        font-size: 0.95rem !important;
    }
}