:root {
    --primary: #5c60f5;
    --primary-hover: #484cdb;
    --primary-light: #eff0fe;
    --primary-border: #dadafa;
    --secondary: #6c757d;
    --dark-navy: #1f2244;
    --text-body: #3c4262;
    --text-muted: #858da3;
    --text-light: #b4bac9;
    --bg-page: #f5f6fb;
    --bg-card: #ffffff;
    --border-color: #eaedf7;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --shadow-subtle: 0 4px 18px rgba(92, 96, 245, 0.06);
    --shadow-card: 0 4px 18px rgba(31, 34, 68, 0.05);
    --shadow-elevated: 0 10px 30px rgba(92, 96, 245, 0.12);
    --bottom-nav-height: 64px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    background-color: #e5e8f2;
}

/* Container & Phone Frame */
.phone-viewport-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 10px;
}

.phone-screen {
    width: 100%;
    max-width: 440px;
    height: 860px;
    max-height: calc(100vh - 48px);
    background-color: var(--bg-page);
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(25, 28, 62, 0.18), 0 0 0 10px #1e2133;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Mobile & DevTools Mobile View: Native full-screen feel */
@media (max-width: 540px) {
    .phone-viewport-wrapper {
        padding: 0;
        min-height: 100%;
        height: 100%;
        align-items: flex-start;
    }

    .phone-screen {
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
    }

    .phone-status-bar {
        display: none !important;
    }
}

/* Status Bar (desktop frame only) */
.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-navy);
    background-color: var(--bg-page);
    flex-shrink: 0;
    z-index: 20;
}

.phone-status-bar .icons {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.95rem;
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px 10px;
    background-color: var(--bg-page);
    flex-shrink: 0;
    border-bottom: 1px solid rgba(234, 237, 247, 0.6);
}

.brand-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #5c60f5, #777bfb);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(92, 96, 245, 0.3);
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.header-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-user-info {
    text-align: right;
    line-height: 1.25;
}

.header-user-email {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark-navy);
}

.header-user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #5a6479;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Scrollable Content Area */
.app-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px calc(var(--bottom-nav-height) + 16px);
}

/* System Ribbon Bar (Wstążki systemowe pod nagłówkiem na pełną szerokość) */
.system-ribbons-stack {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    z-index: 15;
}

.system-ribbon-bar {
    background: linear-gradient(90deg, #4f53e8 0%, #686cf7 100%);
    color: white;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(79, 83, 232, 0.15);
    position: relative;
}

/* Wstążka zaproszenia (Ciepły akcent pilności z 24h timerem) */
.system-ribbon-bar.ribbon-invitation {
    background: linear-gradient(90deg, #d9480f 0%, #ea580c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(217, 72, 15, 0.22);
}

.system-ribbon-bar.ribbon-invitation .btn-ribbon-action {
    color: #c2410c;
}

.system-ribbon-bar.ribbon-invitation .btn-ribbon-action:hover {
    color: #9a3412;
}

.ribbon-badge-urgent {
    background: rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffe0b2 !important;
}

.ribbon-badge {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    line-height: 1.2;
    flex-shrink: 0;
}

.ribbon-text {
    font-size: 0.77rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ribbon-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
}

.btn-ribbon-action {
    background: rgba(255, 255, 255, 0.95);
    color: #4f53e8;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-ribbon-action:hover {
    background: white;
    transform: scale(1.03);
}

.btn-ribbon-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.btn-ribbon-close:hover {
    color: white;
}

/* Search Card */
.search-filter-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
}

.search-filter-icon {
    width: 42px;
    height: 42px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.search-filter-text h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-navy);
}

.search-filter-text small {
    color: var(--text-muted);
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tabs & Switchers */
.trips-tabs-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.nav-pills-custom {
    display: flex;
    gap: 6px;
}

.nav-pill-item {
    border: none;
    background: transparent;
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-pill-item.active {
    color: var(--primary);
    background-color: rgba(92, 96, 245, 0.09);
}

.nav-pill-item .badge-count {
    background: #e9ebf6;
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 99px;
}

.nav-pill-item.active .badge-count {
    background: var(--primary);
    color: white;
}

.view-toggle-group {
    background: white;
    border-radius: var(--radius-full);
    padding: 3px;
    display: flex;
    border: 1px solid var(--border-color);
}

.view-toggle-btn {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
}

.view-toggle-btn.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Trip Card */
.trip-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trip-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.trip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.trip-id-badge {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #5c60f5, #7579f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.trip-title-area {
    margin-left: 10px;
    flex-grow: 1;
}

.trip-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-navy);
    margin: 0 0 2px;
}

.trip-status-pill {
    text-align: right;
}

.badge-status {
    background-color: #edeefe;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.status-subtext {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.trip-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-body);
    margin-bottom: 8px;
}

.trip-info-row i {
    font-size: 1.05rem;
    color: #ef4444;
}

.trip-info-row i.bx-group {
    color: #3b82f6;
}

.trip-info-row i.bx-map {
    color: #10b981;
}

.trip-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f2f8;
    padding-top: 10px;
    margin-top: 10px;
}

.trip-code {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-details {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-details:hover {
    background: var(--primary);
    color: white;
}

/* Fixed Bottom Navigation Bar */
.bottom-nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 2px 10px 4px;
    flex-shrink: 0;
}

@media (max-width: 540px) {
    .bottom-nav-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding-bottom: max(4px, env(safe-area-inset-bottom));
        box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
    flex: 1;
    text-align: center;
}

.bottom-nav-item i {
    font-size: 1.45rem;
    margin-bottom: 2px;
    transition: transform 0.2s;
    display: block;
    line-height: 1;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

.bottom-nav-item .nav-indicator {
    position: absolute;
    top: 4px;
    right: calc(50% - 14px);
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
}

/* Profile Specific Components */
.profile-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f6f7fd 100%);
    border-radius: var(--radius-lg);
    padding: 20px 16px 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.profile-avatar-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
}

.profile-avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 14px rgba(92, 96, 245, 0.25);
}

.profile-verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #10b981;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 2px;
}

.profile-tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.rating-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fff9e6;
    color: #b45309;
    border: 1px solid #fef3c7;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.rating-badge-pill i {
    color: #f59e0b;
    font-size: 1rem;
}

.visibility-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-subtle);
}

/* Nowoczesny przełącznik widoczności w edycji profilu */
.visibility-status-pill-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
}

.status-indicator-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #cbd5e1;
    display: inline-block;
    transition: all 0.2s ease;
}

.status-indicator-dot.active {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.section-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chip-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f3fa;
    color: var(--text-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    margin: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
}

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

/* Media Gallery */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.media-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    background-color: #e9ebf6;
    position: relative;
    overflow: hidden;
}

.video-card-preview {
    width: 100%;
    height: 130px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1f2244, #3a3f70);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(31, 34, 68, 0.2);
}

.video-play-btn {
    width: 42px;
    height: 42px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 6px;
}

/* Kalendarz Wycieczek w widoku głównym (odtworzony ze zrzutów ekranu) */
.trips-calendar-container {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 16px 12px;
    margin-bottom: 16px;
}

.month-title-header {
    text-align: center;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--dark-navy);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 6px 2px;
}

.calendar-table td {
    height: 52px;
    vertical-align: top;
    text-align: center;
    padding: 3px 1px;
    font-size: 0.78rem;
    color: var(--dark-navy);
    border: 1px solid #f1f3f9;
    position: relative;
    cursor: pointer;
}

.calendar-table td.other-month {
    color: var(--text-light);
    background-color: #fafbfe;
}

.calendar-table td:hover {
    background-color: #f6f8ff;
}

.day-number {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Ciągła fioletowa wstęga wycieczki jak na zrzucie */
.trip-ribbon-bar {
    background-color: #5c60f5;
    color: white;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 3px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin: 1px -1px;
    cursor: pointer;
}

.trip-ribbon-start {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.trip-ribbon-end {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Bottom Sheet Modal jak na zrzucie */
.bottom-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.bottom-sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    padding: 14px 20px 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet-content.active {
    transform: translateY(0);
}

.sheet-drag-handle {
    width: 36px;
    height: 4px;
    background-color: #d1d5db;
    border-radius: 99px;
    margin: 0 auto 12px;
}

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

.calendar-day-header {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 4px;
}

.calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f8f9fd;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
}

.calendar-day-cell.other-month {
    color: var(--text-light);
    opacity: 0.5;
}

.calendar-day-cell.trip-day {
    background-color: #eff0fe;
    color: var(--primary);
    border-color: #c7caff;
    font-weight: 800;
}

.calendar-day-cell.blocked-day {
    background-color: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
    font-weight: 800;
}

.calendar-day-cell.free-day {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.calendar-day-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    position: absolute;
    bottom: 3px;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.74rem;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color-box {
    width: 11px;
    height: 11px;
    border-radius: 3px;
}

/* Form Controls */
.form-label-custom {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 5px;
    display: block;
}

.form-control-custom {
    width: 100%;
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: #fafbfe;
    font-size: 0.86rem;
    color: var(--text-body);
    transition: border-color 0.2s;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
}

/* Action Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #5c60f5, #6c70fc);
    border: none;
    color: white;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(92, 96, 245, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #4d51ec, #5c60f5);
    color: white;
    transform: translateY(-1px);
}

.btn-secondary-custom {
    background: #f1f3fa;
    border: 1px solid var(--border-color);
    color: var(--text-body);
    font-weight: 700;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary-custom:hover {
    background: #e4e7f3;
    color: var(--dark-navy);
}

/* ==========================================================================
   Moduł Zaproszeń i Powiadomień (TravelLeader Mobile 2026)
   ========================================================================== */

/* Dzwonek powiadomień w nagłówku */
.header-notif-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-navy);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(31, 34, 68, 0.04);
}

.header-notif-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-border);
}

.header-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #ff4757;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.4);
    animation: notif-pulse 2s infinite ease-in-out;
}

@keyframes notif-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Badge Alert w zakładce nawigacji */
.badge-count.badge-alert {
    background: #ff4757 !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.35);
}

/* ==========================================================================
   Moduł Zaproszeń i Powiadomień (TravelLeader Mobile 2026 - Wersja Minimalistyczna)
   ========================================================================== */

/* Dzwonek powiadomień w nagłówku */
.header-notif-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-navy);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(31, 34, 68, 0.04);
}

.header-notif-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-border);
}

.header-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #ff4757;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.4);
    animation: notif-pulse 2s infinite ease-in-out;
}

@keyframes notif-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Badge Alert w zakładce nawigacji */
.badge-count.badge-alert {
    background: #ff4757 !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.35);
}

/* ==========================================================================
   1. Ultrakompaktowy pasek na górze ekranu głównego (Zero drabinki, 1 linia)
   ========================================================================== */
.invitation-compact-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e223d, #2b3056);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 12px;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(30, 34, 61, 0.15);
    transition: all 0.2s ease;
}

.invitation-compact-bar:hover {
    background: linear-gradient(135deg, #252a4a, #343a68);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 34, 61, 0.22);
}

.inv-bar-left {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.8rem;
}

.inv-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff4757;
    flex-shrink: 0;
    box-shadow: 0 0 8px #ff4757;
    animation: notif-pulse 1.8s infinite;
}

.inv-bar-agency {
    font-weight: 800;
    color: #ffffff;
}

.inv-bar-divider {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

.inv-bar-title {
    color: #e2e8f0;
    font-weight: 500;
}

.inv-bar-rate {
    color: #2ed573;
    font-weight: 700;
    margin-left: 2px;
}

.inv-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.inv-bar-timer {
    background: rgba(255, 209, 102, 0.16);
    border: 1px solid rgba(255, 209, 102, 0.35);
    color: #ffd166;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.inv-bar-right i {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   2. Minimalistyczne kafelki w zakładce "Zaproszenia" (Single-Tap Row)
   ========================================================================== */
.invitation-compact-item {
    display: block;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    transition: all 0.18s ease;
    position: relative;
}

.invitation-compact-item:hover {
    border-color: var(--primary-border);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(92, 96, 245, 0.08);
}

.invitation-compact-item:active {
    transform: scale(0.99);
}

.invitation-compact-item.is-pending {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(to right, #fffdf8, #ffffff);
}

.invitation-compact-item.is-accepted {
    border-left: 4px solid #10b981;
}

.invitation-compact-item.is-rejected {
    border-left: 4px solid #ef4444;
    opacity: 0.8;
}

.inv-item-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff0fe;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
}

.inv-item-status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4757;
    border: 2px solid #ffffff;
}

.inv-item-content {
    flex: 1;
    min-width: 0;
}

.inv-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.inv-item-agency {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.inv-item-timer {
    font-size: 0.68rem;
    font-weight: 700;
    color: #d97706;
    background: #fef3c7;
    padding: 1px 5px;
    border-radius: 4px;
}

.inv-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.inv-item-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.inv-item-arrow {
    margin-left: 8px;
    flex-shrink: 0;
}

/* Pasek stałych decyzji na dole ekranu szczegółów */
.decision-sticky-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 10px 14px;
    box-shadow: 0 -4px 16px rgba(31, 34, 68, 0.08);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-decision-decline {
    background: #fdf3f4;
    border: 1px solid #fecdd3;
    color: #e11d48;
    font-size: 0.82rem;
    font-weight: 700;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-decision-decline:hover {
    background: #ffe4e6;
    color: #be123c;
}

.btn-decision-accept {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    flex-grow: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-decision-accept:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-decision-sos {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
    cursor: pointer;
    flex-grow: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-decision-sos:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-decision-call {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    transition: all 0.2s;
}

/* Kalendarz Dostępności: Styl dnia zarezerwowanego przez biuro w przód */
.calendar-day-cell.reserved-day {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    font-weight: 700;
}

.calendar-day-dot.bg-amber {
    background-color: #f59e0b !important;
}

/* Załączniki (Program wycieczki / Materiały kursu) */
.attachment-card {
    background: #f8fafd;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.attachment-card:hover {
    background: #eff5ff;
    border-color: var(--primary-border);
    transform: translateY(-1px);
}

.attachment-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Karta budżetu na szkolenia */
.training-budget-card {
    background: linear-gradient(135deg, #1f2347, #313866);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(31, 35, 71, 0.15);
}

/* Karta Giełdy Wycieczek Publicznych */
.public-trip-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
    transition: all 0.18s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.public-trip-card:hover {
    border-color: var(--primary-border);
    box-shadow: 0 4px 14px rgba(92, 96, 245, 0.08);
}

.public-trip-card:active {
    transform: scale(0.99);
}

/* Moduł negocjacji i kontroferty */
.counteroffer-panel {
    background: #fdfcfa;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 14px;
}

/* ==================== PIONOWY KALENDARZ SCROLLOWANY ==================== */
.vertical-calendar-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 24px;
}

.calendar-month-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(43, 48, 79, 0.04);
    scroll-margin-top: 60px;
}

/* Kafelki wyboru miesięcy w Bottom Sheet */
.month-tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.month-tile-btn {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.month-tile-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.month-tile-btn.active {
    background: #5c60f5;
    border-color: #5c60f5;
    color: #ffffff;
}

.month-tile-btn.has-events::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5c60f5;
}

.month-tile-btn.active.has-events::after {
    background: #ffffff;
}

.cal-month-header {
    text-align: center;
    padding: 14px 10px 10px;
    font-weight: 800;
    font-size: 0.96rem;
    letter-spacing: 0.8px;
    color: var(--dark-navy);
    text-transform: uppercase;
}

.cal-weekdays-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    padding: 7px 0;
    border-top: 1px solid #f1f3f7;
    border-bottom: 1px solid #f1f3f7;
    background: #fbfcfe;
}

.cal-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #ffffff;
}

/* Floating Sticky Topbar w widoku kalendarza */
.calendar-floating-topbar {
    position: sticky;
    top: -14px;
    z-index: 40;
    background: rgba(246, 248, 252, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin: -14px -16px 12px -16px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 16px rgba(43, 48, 79, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cal-cell {
    min-height: 58px;
    border-right: 1px solid #f1f3f7;
    border-bottom: 1px solid #f1f3f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 4px 0 2px;
    background: #ffffff;
    user-select: none;
    transition: background-color 0.15s ease;
}

.cal-cell:nth-child(7n) {
    border-right: none;
}

.cal-cell.is-clickable {
    cursor: pointer;
}

/* Dni wolne / dostępne dla biur - zielone podświetlenie tła */
.cal-cell.cal-cell-free {
    background-color: #f0fdf4;
}
.cal-cell.cal-cell-free:hover {
    background-color: #dcfce7;
}
.cal-cell.cal-cell-free .cal-day-num {
    color: #166534;
}

/* Wycieczka potwierdzona - fioletowe / błękitne podświetlenie tła */
.cal-cell.cal-cell-active-trip {
    background-color: #eff1ff;
}
.cal-cell.cal-cell-active-trip:hover {
    background-color: #e5e8ff;
}
.cal-cell.cal-cell-active-trip .cal-day-num {
    color: #4338ca;
}

/* Zarezerwowany przez biuro w przód - bursztynowe podświetlenie tła */
.cal-cell.cal-cell-reserved {
    background-color: #fffbeb;
}
.cal-cell.cal-cell-reserved:hover {
    background-color: #fef3c7;
}
.cal-cell.cal-cell-reserved .cal-day-num {
    color: #92400e;
}

/* Niedostępny / Urlop - czerwone podświetlenie tła */
.cal-cell.cal-cell-blocked {
    background-color: #fef2f2;
}
.cal-cell.cal-cell-blocked:hover {
    background-color: #fee2e2;
}
.cal-cell.cal-cell-blocked .cal-day-num {
    color: #991b1b;
}

/* Dni z innego miesiąca */
.cal-cell.cal-cell-other-month {
    background-color: #fbfcfe;
}

.cal-day-num {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 3px;
    line-height: 1;
}

.cal-day-num.other-month {
    color: #cbd5e1;
    opacity: 0.7;
}

.cal-day-num.today {
    background: var(--primary);
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

/* Paski wydarzeń na dniach (Continuous Multi-Day Event Bars) */
.cal-bar-slot {
    width: 100%;
    height: 22px;
    display: flex;
    align-items: center;
    margin-top: auto;
    margin-bottom: 4px;
}

.cal-bar {
    height: 22px;
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 0.66rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 22px;
    padding: 0 4px;
    text-decoration: none;
}

.cal-bar:hover {
    color: #ffffff;
    filter: brightness(1.06);
}

/* Warianty wydarzeń */
.cal-bar.bar-trip {
    background: #5c60f5; /* fiolet/indygo z makiety */
}

.cal-bar.bar-reserved {
    background: #f59e0b; /* bursztynowy dla rezerwacji biura */
}

.cal-bar.bar-blocked {
    background: #ef4444; /* czerwony dla urlopu */
}

/* Pozycjonowanie w wielodniowym bloku */
.cal-bar.bar-start {
    border-radius: 6px 0 0 6px;
    margin-left: 2px;
}

.cal-bar.bar-middle {
    border-radius: 0;
    margin-left: -1px;
    margin-right: -1px;
}

.cal-bar.bar-end {
    border-radius: 0 6px 6px 0;
    margin-right: 2px;
}

.cal-bar.bar-single {
    border-radius: 6px;
    margin: 0 2px;
}

/* ==========================================================================
   SOS EMERGENCY SYSTEM STYLES (Zastępstwa awaryjne & Dyżur SOS)
   ========================================================================== */

/* 1. Pulsująca wstążka SOS na samej górze ekranu */
.system-ribbon-bar.ribbon-sos {
    background: linear-gradient(90deg, #b91c1c 0%, #dc2626 55%, #ef4444 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 10px rgba(185, 28, 28, 0.3);
}

.ribbon-badge-sos {
    background: rgba(0, 0, 0, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    font-weight: 800;
}

.btn-ribbon-sos {
    color: #b91c1c !important;
    font-weight: 800;
}

.btn-ribbon-sos:hover {
    color: #991b1b !important;
}

/* 2. Karta zaproszenia SOS w zakładce "Zaproszenia" */
.invitation-compact-item.is-sos {
    border-left: 4px solid #dc2626 !important;
    border-color: #fecaca;
    background: linear-gradient(to right, #fff5f5, #ffffff);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

.invitation-compact-item.is-sos:hover {
    border-color: #f87171;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.12);
}

.inv-item-icon.is-sos {
    background: #fee2e2;
    color: #dc2626;
}

.inv-item-timer.is-sos {
    color: #dc2626;
    background: #fee2e2;
    font-weight: 800;
    border: 1px solid #fecaca;
}

/* 3. Karta zlecenia publicznego SOS na Giełdzie */
.public-trip-card.public-trip-card-sos {
    border-left: 4px solid #dc2626 !important;
    border-color: #fee2e2;
    background: #fffafa;
    position: relative;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.06);
}

.public-trip-card.public-trip-card-sos:hover {
    border-color: #fca5a5;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.1);
}

/* 4. Karta przełącznika Dyżuru SOS (Standby) w Kalendarzu */
.sos-standby-card {
    background: #ffffff;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.05);
    transition: all 0.25s ease;
}

.sos-standby-card.is-inactive {
    border-left-color: #f87171;
    border-color: #fee2e2;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.04);
}

.sos-pulse-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    display: inline-block;
    flex-shrink: 0;
    animation: sosPulseMobile 1.8s infinite ease-in-out;
}

.sos-pulse-indicator.is-inactive {
    background: #ffffff;
    border: 2px solid #ef4444;
    box-shadow: none;
    animation: none;
}

@keyframes sosPulseMobile {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
        box-shadow: 0 0 0 7px rgba(220, 38, 38, 0.05);
    }
}

/* 5. Kafelki wyboru smart presetów w modalu dyżuru SOS */
.sos-preset-option {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sos-preset-option:hover {
    border-color: #fca5a5;
    background: #fffafa;
}

.sos-preset-option.is-selected {
    border-color: #dc2626;
    background: #fef2f2;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.sos-preset-option input[type="radio"] {
    accent-color: #dc2626;
    cursor: pointer;
}
