body,
html {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-family: "Rubik", sans-serif;
    min-height: 100%;
    max-width: 100%;
    font-weight: 400;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    background-color: #6183c2;
    position: relative;
    min-height: 100vh;
    min-width: 320px;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin-bottom: 60px;
    background-color: transparent;
    /* hidden robi z body scroll container i wyłącza position:sticky u wszystkich potomków;
       clip klipuje tak samo, ale scrollportu nie tworzy (hidden zostaje jako fallback). */
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
}

#main_container {
    margin: 0;
    position: relative;
    padding-top: 0;
    min-width: 320px;
    overflow-x: clip;
}

#footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 4px solid #8ebe3f;
    font-family: "Rubik", sans-serif;
    box-sizing: border-box;
    padding: 0.75rem 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 1rem;
}

.footer-links a {
    color: #445982;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #8ebe3f;
    text-decoration: underline;
}

.footer-social {
    display: inline-flex;
    align-items: center;
}

.footer-social:hover {
    text-decoration: none;
}

.footer-social svg {
    transition: transform 0.2s ease;
}

.footer-social:hover svg {
    transform: scale(1.15);
}

.footer-copyright {
    color: #888;
    font-size: 13px;
}

.footer-translate {
    color: #8ebe3f;
    font-size: 13px;
}

#wrap {
    margin-bottom: 25px;
}

.box_top {
    border-top: 4px solid #b5ce8c;
    padding: 40px 50px 50px 50px;
    background-color: white;
    /*border-radius: 20px;*/
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    position: relative;
    overflow: hidden;
    margin-top: 25px;
}

/* ==== Zakładki nad box_top (poziom 1, foldery / segregator) ==== */
.box-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 25px;
    margin-bottom: 0;
    padding: 0 15px;
    align-items: flex-end;
}
.box-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px 14px 16px;
    background-color: rgba(255, 255, 255, 0.78);
    color: #445982;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-top: 4px solid #666;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.15s ease, border-top-color 0.15s ease, transform 0.15s ease;
    line-height: 1.3;
    position: relative;
    transform: translateY(10px);   /* schowany głęboko za box_top (z-index 1 box_top zasłania dolne 10px) */
}
.box-tabs__item:hover,
.box-tabs__item:focus {
    background-color: rgba(255, 255, 255, 0.92);
    color: #445982;
    text-decoration: none;
    transform: translateY(8px);    /* wysuwa się o 2px (wciąż schowany 8px za box_top) */
}
.box-tabs__item.active {
    background-color: #ffffff;
    /* Gdy box_top pod zakładkami nie jest biały (np. szary /program), ustaw --box-tabs-surface
       na kolor jego tła — dół aktywnej zakładki płynnie w niego przejdzie. Domyślnie biały = brak zmiany. */
    background-image: linear-gradient(180deg, #ffffff 30%, var(--box-tabs-surface, #ffffff) 100%);
    color: #333;
    border-top-color: #b5ce8c;
    cursor: default;
    pointer-events: none;
    z-index: 2;
    margin-bottom: -4px;           /* nachodzi na 4px border-top box_top */
    padding-bottom: 10px;
    transform: none;
}
/* Aktywna zakładka w podwidoku (drill-down) — klikalna, wraca do głównego widoku zakładki */
.box-tabs__item.active.box-tabs__item--link {
    pointer-events: auto;
    cursor: pointer;
}
.box-tabs + .box_top {
    margin-top: 0;
    z-index: 1;                  /* zasłania dolne 6px nieaktywnych zakładek */
}

/* ==== Nagłówek strony z nazwą konwentu (na niebieskim tle; hub, /stoiska) ==== */
.conv-page-head { text-align: center; color: #fff; padding: 18px 0 2px; }
.conv-page-head__name {
    font-size: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    margin: 2px 0 0; color: #fff;
    text-shadow: 0 1px 2px rgba(20, 33, 68, 0.6), 0 3px 14px rgba(20, 33, 68, 0.55);
}
.conv-page-head__date {
    font-size: 14px; font-weight: 500; color: #fff; margin-top: 2px;
    text-shadow: 0 1px 2px rgba(20, 33, 68, 0.6), 0 2px 8px rgba(20, 33, 68, 0.5);
}
@media (min-width: 768px) {
    .conv-page-head__name { font-size: 38px; }
}

/* Krótki label domyślnie ukryty — pokazuje się tylko na wąskich ekranach */
.box-tabs__label-short {
    display: none;
}

/* Średnie i wąskie ekrany — nieaktywne pokazują tylko ikonę, aktywna z labelem */
@media (max-width: 1100px) {
    .box-tabs__item:not(.active) .box-tabs__label,
    .box-tabs__item:not(.active) .box-tabs__label-short {
        display: none;
    }
    .box-tabs__item:not(.active) {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Wąskie ekrany — aktywna używa krótkiego labela (jeśli zdefiniowany) */
@media (max-width: 700px) {
    .box-tabs__item--has-short.active .box-tabs__label {
        display: none;
    }
    .box-tabs__item--has-short.active .box-tabs__label-short {
        display: inline;
    }
}

/* Bardzo wąskie ekrany — wszystkie taby (też aktywna) tylko ikona */
@media (max-width: 450px) {
    .box-tabs__item.active .box-tabs__label,
    .box-tabs__item.active .box-tabs__label-short,
    .box-tabs__item:not(.active) .box-tabs__label,
    .box-tabs__item:not(.active) .box-tabs__label-short {
        display: none;
    }
    .box-tabs__item,
    .box-tabs__item:not(.active) {
        padding-left: 8px;
        padding-right: 8px;
    }
    .box-tabs {
        padding: 0 4px;
    }
}
.box-tabs__item .glyphicon {
    font-size: 12px;
}

/* ==== Zakładki wewnątrz box_top (poziom 2) ==== */
.inner-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
    margin: -40px -50px 30px -50px;
    padding: 0 50px;
}
.inner-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.inner-tabs__item:hover,
.inner-tabs__item:focus {
    color: #445982;
    text-decoration: none;
}
.inner-tabs__item.active {
    color: #333;
    border-bottom-color: #8ebe3f;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

#header {
    padding: 0 1rem;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 600;
    font-style: normal;
    background: linear-gradient(135deg, #445982 0%, #5a6f9e 100%);
    border-bottom: 3px solid #8ebe3f;
    font-family: "Rubik", sans-serif;
    transition: box-shadow 0.3s ease;
}

.main-nav {
    display: flex;
    min-height: 60px;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 1140px;
    width: 100%;
    color: #ffffff;
    margin-right: auto;
    margin-left: auto;
    gap: 0.5rem;
    padding: 0.5rem 0;
    box-sizing: border-box;
}

.main-nav .menu-link a {
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.main-nav .menu-link a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #8ebe3f;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav .menu-link a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #8ebe3f;
}

.main-nav .menu-link a:hover::before {
    width: 100%;
}

.main-nav .menu-link a.active {
    background-color: rgba(142, 190, 63, 0.2);
    color: #8ebe3f;
    font-weight: 600;
}

.main-nav .menu-link a.active::before {
    width: 100%;
}

/* Nowe klasy dla struktury headera */
.main-nav__logo {
    order: 1;
    flex: 0 0 auto;
    padding-right: 1rem;
    margin-right: 1rem;
    border-right: 2px solid rgba(142, 190, 63, 0.5);
    transition: border-color 0.3s ease;
}

.main-nav__logo:hover {
    border-right-color: #8ebe3f;
}

.main-nav__logo img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.main-nav__logo:hover img {
    transform: scale(1.05);
}

.main-nav__menu {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 0;
}

/* Domyślnie (desktop) wrapper jest "przezroczysty" — children wpadają bezpośrednio do flex-row
   nawigacji; na mobile (≤850px) wrapper staje się scrollowalną strefą drawera. */
.main-nav__menu .main-nav__scrollable {
    display: contents;
}

.main-nav__menu .menu-link {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}

.main-nav__user {
    order: 3;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

#user_header .btn-group {
    display: flex;
    flex-direction: row;
}

#user_header .btn-group .btn {
    border-radius: 0;
}

#user_header .btn-group .btn:first-child {
    border-radius: 4px 0 0 4px;
}

#user_header .btn-group .btn:last-child {
    border-radius: 0 4px 4px 0;
}

#user_header .btn-group .btn:only-of-type {
    border-radius: 4px;
}

/* Responsywne przyciski logowania - skracaj tekst gdy brakuje miejsca */
@media (min-width: 1200px) and (max-width: 1700px) {
    #user_header .btn-group .btn {
        padding: 0.45rem 0.6rem;
        font-size: 13px;
    }
}

/* Style dla flag języków */
.language-flags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-flags a {
    text-decoration: none;
    padding: 0.3rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.05);
    line-height: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.language-flags a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.language-flags a.active {
    background-color: rgba(142, 190, 63, 0.25);
    box-shadow: 0 0 0 2px rgba(142, 190, 63, 0.5);
}

.language-flags .flag-icon {
    display: block;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Modernizacja przycisków użytkownika */
#user_header .btn {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(142, 190, 63, 0.3);
    color: #445982;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#user_header .btn:hover {
    background-color: #ffffff;
    border-color: #8ebe3f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#user_header .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    right: 0;
    left: auto;
    min-width: 200px;
    z-index: 1050;
}

#user_header .btn-group {
    position: relative;
}

#user_header {
    color: black;
}

.breadcrumbs-bar {
    border-top: 1px solid rgba(255, 244, 204, 0.25);
}

.breadcrumbs {
    font-size: 12px;
    padding: 0.8rem 0 1rem;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    overflow: hidden;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
}

.breadcrumbs span {
    cursor: default;
}

.breadcrumbs a, .breadcrumbs span {
    margin-right: 5px;
    color: #fff4cc;
    padding: 1px 4px;
    border-radius: 2px;
}
.aj-xl .aj-svg {
    height: 43px;
}

.aj-svg .cls-1 {
    fill: #333;
}

@media (min-width: 960px) {
    html {
        background-image: url("/img/2025-mojeani-tlo.svg");
        background-size: 120px;
        background-attachment: fixed;
    }

    #header {
        padding: 0;
    }

    .main-nav {
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 30px;
        box-sizing: border-box;
    }

    #main_container {
        padding: 0 30px 10px;
        margin: 0 auto;
        max-width: 1600px;
        box-sizing: border-box;
    }

    .breadcrumbs {
        max-width: 1600px;
        padding: 0.8rem 30px 1rem;
    }

    #footer {
        padding: 0.75rem 0;
    }

    .footer-content {
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 30px;
        box-sizing: border-box;
    }
    .box_top {
        /*margin-left: 0px;*/
        /*margin-right: 0px;*/
    }
}

@font-face {
    font-family: 'AnimatsuriG';
    src: url('../font/Anibang2.otf');
    font-weight: normal;
    font-style: normal;
}
[class*='aicon-']:before{
    display: inline-block;
    font-family: 'AnimatsuriG';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 0.85em;
}
.aicon-aj:before{content:'\00A5';}

.superscript { position: relative; top: -0.45em; left: 0.05em; font-size: 70%; }

/* ========================================
   TICKET CARD LIST (mobile-friendly)
   ======================================== */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    background: #fafafa;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
}

.ticket-card--muted {
    opacity: 0.6;
}

.ticket-card__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ticket-card__label {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.ticket-card__value {
    font-size: 13px;
    color: #333;
    word-break: break-word;
}

.ticket-card__actions {
    margin-left: auto;
}

.ticket-card__actions a {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .ticket-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ticket-card__actions {
        margin-left: 0;
        margin-top: 4px;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid #eee;
    }
}

/* Order summary list */
.order-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.order-summary__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    gap: 12px;
}

.order-summary__item--total {
    background: #f0f0f0;
    font-weight: bold;
    border-color: #ccc;
}

.order-summary__label {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.order-summary__price {
    white-space: nowrap;
    font-weight: 600;
}

/* Zwrot radio card */
.refund-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s;
}

.refund-card:hover {
    border-color: #999;
}

.refund-card input[type="radio"]:checked ~ .refund-card__body {
    /* handled via JS or adjacent selector won't work, use wrapper */
}

.refund-card--selected {
    border-color: #337ab7;
    background: #f7fbff;
}

.refund-card__body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
}

/* ========================================
   RESPONSYWNOŚĆ - MOBILE FIRST
   ======================================== */

/* Hamburger menu button (ukryty na desktop) */
.main-nav__hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
}

.main-nav__hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.main-nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.main-nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.main-nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Ukryj wybór języka w menu na desktop (są w górnym pasku) */
@media (min-width: 851px) {
    .menu-link--languages,
    .menu-link--admin-only,
    .menu-link--mobile-only {
        display: none !important;
    }
    /* Convention collapsible — na desktop „przezroczysty": toggle hidden, lista linków flat w nav */
    .menu-link--convention {
        display: contents;
    }
    .menu-submenu__toggle--convention {
        display: none !important;
    }
    .menu-submenu--convention {
        display: contents !important;
    }
}

/* MOBILE (≤ 850px) */
@media (max-width: 850px) {
    /* Zmniejsz margin-bottom dla body na mobile */
    body {
        margin-bottom: 70px;
    }

    /* Mniejszy padding w box_top na mobile */
    .box_top {
        padding: 20px 15px 25px 15px;
    }

    /* Zakładki nad box_top — mobile (proporcjonalnie mniejsze) */
    .box-tabs {
        padding: 0 6px;
        gap: 2px;
    }
    .box-tabs__item {
        padding: 7px 10px 11px 10px;
        font-size: 11px;
        gap: 4px;
    }
    .box-tabs__item.active {
        padding-bottom: 7px;
    }
    .box-tabs__item .glyphicon {
        font-size: 11px;
    }

    /* Tabele z klasą .responsive — scroll poziomy wewnątrz tabeli.
       Body ma overflow-x: clip, więc szeroka tabela bez własnego scrollportu
       jest obcinana i nie da się jej przewinąć (klasa .responsive to relikt
       nieładowanego pluginu responsive-tables — nadana w ~75 widokach). */
    table.responsive {
        display: block;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Zakładki wewnątrz box_top — mobile (negacja paddingu 20/15 + scroll poziomy) */
    .inner-tabs {
        margin: -20px -15px 20px -15px;
        padding: 0 15px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
    }
    .inner-tabs__item {
        padding: 12px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    /* Stopka mobile */
    #footer {
        padding: 0.5rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-links {
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-copyright {
        font-size: 11px;
    }

    #header {
        padding: 0 0.5rem;
    }

    .main-nav {
        flex-wrap: nowrap;
        min-height: 50px;
        position: relative;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    /* Logo - zmniejszony */
    .main-nav__logo {
        border-right: none;
        padding-right: 0;
        margin-right: auto;
        flex: 0 0 auto;
        order: 1;
    }

    .main-nav__logo img {
        max-height: 40px !important;
        height: 40px !important;
    }

    /* Menu - ukryj domyślnie, pokaż jako overlay */
    .main-nav__menu {
        position: fixed;
        top: 50px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 50px);
        background-color: #445982;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        gap: 0;
        overflow: hidden; /* drawer się nie scrolluje, tylko wewnętrzny scrollable */
        overscroll-behavior: contain; /* blokuje scroll-chain do body */
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
        z-index: 999;
        order: 2;
    }
    .main-nav__menu .main-nav__scrollable {
        display: block;
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        min-height: 0; /* żeby flex shrink mógł zadziałać */
    }

    .main-nav__menu.active {
        left: 0;
    }

    .main-nav__menu .menu-link {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav__menu .menu-link a {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: left;
        border-radius: 0;
    }

    .main-nav__menu .menu-link:last-child:not(.menu-link--languages) {
        border-bottom: none;
    }

    /* Hamburger zastępuje cały user_header na mobile — ukryj user_header (email + dropdown) */
    #user_header .btn-group {
        display: none;
    }

    /* Wyloguj się — separator nad nim, lekkie wyróżnienie */
    .menu-link--logout {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        flex-shrink: 0;
    }
    .menu-link--logout a {
        color: rgba(255, 255, 255, 0.85);
    }
    .menu-link--logout a .glyphicon {
        margin-right: 0.5rem;
        color: rgba(255, 255, 255, 0.6);
    }

    /* Email użytkownika jako pierwsza pozycja menu (mobile) — dwuwierszowy */
    .menu-link--user-email a {
        font-weight: 500;
    }
    .menu-link__user-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .menu-link__user-title {
        font-weight: 500;
        line-height: 1.2;
    }
    .menu-link--user-email .menu-link__email-text {
        font-size: 12px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.6);
        word-break: break-all;
        line-height: 1.2;
    }

    /* Submenu collapsible (admin/ekipa „Panel organizatora" + konwent „Animatsuri 2026") */
    .main-nav__menu .menu-link--admin-only,
    .main-nav__menu .menu-link--convention {
        background-color: #3a4d75;
    }
    .menu-submenu__toggle {
        width: 100%;
        background: none;
        border: none;
        color: #fff;
        font: inherit;
        text-align: left;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        cursor: pointer;
    }
    .menu-submenu__toggle:hover,
    .menu-submenu__toggle:focus {
        background-color: rgba(255, 255, 255, 0.05);
        outline: none;
    }
    .menu-submenu__label {
        font-weight: 500;
        letter-spacing: 0.3px;
    }
    .menu-submenu__caret {
        transition: transform 0.2s ease;
        font-size: 14px;
        flex-shrink: 0;
    }
    .menu-link--collapsible[data-collapsed="false"] .menu-submenu__caret {
        transform: rotate(180deg);
    }
    .menu-submenu {
        display: none;
        background-color: #2f4060;
        padding-bottom: 0.25rem;
    }
    .menu-link--collapsible[data-collapsed="false"] .menu-submenu {
        display: block;
    }
    .menu-submenu__group-label {
        padding: 0.6rem 1rem 0.3rem 1rem;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: rgba(255, 255, 255, 0.5);
    }
    .menu-submenu__item {
        display: block;
        padding: 0.7rem 1rem 0.7rem 1.5rem;
        color: rgba(255, 255, 255, 0.95);
        text-decoration: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 14px;
    }
    .menu-submenu__item:hover,
    .menu-submenu__item:focus {
        background-color: rgba(255, 255, 255, 0.08);
        color: #fff;
        text-decoration: none;
        outline: none;
    }
    .menu-submenu__item.active {
        background-color: rgba(142, 190, 63, 0.18);
        color: #fff;
        font-weight: 500;
    }
    .menu-submenu__item--root {
        font-weight: 500;
        padding-left: 1rem;
    }
    .menu-submenu__item--root .glyphicon {
        margin-right: 0.4rem;
        font-size: 12px;
    }

    /* User panel - zmniejszony i po prawej */
    .main-nav__user {
        order: 3;
        gap: 0.25rem;
        flex: 0 0 auto;
    }

    /* Ukryj flagi języków z górnego paska na mobile */
    .main-nav__user .language-flags {
        display: none !important;
    }

    #user_header .btn {
        padding: 0.35rem 0.5rem;
        font-size: 11px;
        min-width: auto;
    }

    /* Skróć długie emaile w buttonie usera na mobile */
    #user_header .dropdown-toggle {
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
    }

    #user_header .user-email-label {
        display: inline-block;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
    }

    #user_header .dropdown-toggle .caret {
        flex-shrink: 0;
    }

    #user_header .btn-group {
        flex-direction: row;
        gap: 0.25rem;
    }

    /* Flagi języków + ikonki tłumaczeń w hamburgerze (mobile) - na dole, sticky-flex */
    .menu-link--languages {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        margin-top: auto; /* spycha do dołu drawera flex-column */
        flex-shrink: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
        background-color: #3a4d75;
    }
    .main-nav__menu .menu-link--languages .translate-icons {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        margin-left: 0.5rem;
        padding-left: 0.5rem;
        border-left: 1px solid rgba(255, 255, 255, 0.15);
    }
    .main-nav__menu .menu-link--languages .translate-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        margin: 0;
        border-radius: 6px;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all 0.2s ease;
        line-height: 1;
    }
    .main-nav__menu .menu-link--languages .translate-icon:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
        text-decoration: none;
    }
    .main-nav__menu .menu-link--languages .translate-icon .glyphicon {
        font-size: 14px;
        line-height: 1;
        top: 0;
    }

    .language-label {
        color: rgba(255, 255, 255, 0.5);
        font-weight: 400;
        font-size: 11px;
        text-transform: uppercase;
        margin-right: 0.75rem;
        margin-bottom: 0;
        letter-spacing: 0.5px;
    }

    .language-flags--mobile {
        display: flex !important;
        gap: 0.5rem;
        justify-content: center;
    }

    .language-flags--mobile a {
        padding: 0.25rem;
        background-color: transparent;
        border-radius: 4px;
        transition: all 0.2s ease;
        opacity: 0.6;
    }

    .language-flags--mobile a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
        opacity: 1;
    }

    .language-flags--mobile a.active {
        opacity: 1;
        background-color: rgba(142, 190, 63, 0.15);
        box-shadow: 0 0 0 2px rgba(142, 190, 63, 0.6);
        border-radius: 6px;
        border: none;
    }

    .language-flags--mobile .flag-icon {
        width: 24px;
        height: auto;
        border-radius: 2px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    /* Hamburger - pokaż */
    .main-nav__hamburger {
        display: block;
        order: 4;
        flex: 0 0 auto;
    }

    /* Overlay dla zamknięcia menu */
    .main-nav__overlay {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        height: calc(100vh - 50px);
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .main-nav__overlay.active {
        display: block;
    }
}

/* VERY SMALL MOBILE (≤ 400px) */
@media (max-width: 400px) {
    .main-nav__logo img {
        max-height: 30px !important;
        height: 30px !important;
    }

    .main-nav__logo {
        padding-right: 0.5rem;
        margin-right: 0.5rem;
    }

    #user_header .btn {
        padding: 0.25rem 0.4rem;
        font-size: 10px;
    }
}

/* TABLET (851px - 1023px) */
@media (min-width: 851px) and (max-width: 1023px) {
    /* Zmniejsz margin-bottom dla body na tablet */
    body {
        margin-bottom: 60px;
    }

    /* Stopka tablet */
    #footer {
        padding: 0.5rem 1.5rem;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .main-nav {
        gap: 0.25rem;
    }

    .main-nav__logo {
        padding-right: 0.75rem;
        margin-right: 0.75rem;
    }

    .main-nav__logo img {
        max-height: 50px !important;
        height: 50px !important;
    }

    .main-nav .menu-link a {
        padding: 0.5rem 0.6rem;
        font-size: 13px;
    }

    #user_header .btn {
        padding: 0.4rem 0.6rem;
        font-size: 12px;
    }

    .language-flags .flag-icon {
        width: 22px;
        height: auto;
    }
}

/* MEDIUM DESKTOP (1024px - 1280px) - Prevent overflow on medium screens */
@media (min-width: 1024px) and (max-width: 1280px) {
    .main-nav {
        gap: 0.3rem;
    }

    .main-nav .menu-link a {
        padding: 0.5rem 0.6rem;
        font-size: 14px;
    }

    #user_header .btn {
        padding: 0.45rem 0.7rem;
        font-size: 13px;
        max-width: 180px;
    }

    .language-flags .flag-icon {
        width: 24px;
        height: auto;
    }
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {
    .main-nav {
        min-height: 60px;
    }

    .main-nav__logo img {
        max-height: 60px !important;
    }
}

/* LARGE DESKTOP (1400px+) */
@media (min-width: 1400px) {
    .main-nav {
        max-width: 1600px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner__text {
    flex: 1 1 400px;
    min-width: 0;
}

.cookie-banner__text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.cookie-banner__text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.cookie-banner__text a {
    color: #8ebe3f;
    text-decoration: underline;
}

.cookie-banner__text a:hover {
    color: #a8d957;
}

.cookie-banner__buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-banner__buttons .btn {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.cookie-banner__buttons .btn-default {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.cookie-banner__buttons .btn-default:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.cookie-banner__buttons .btn-success {
    background: #8ebe3f;
    border: 2px solid #8ebe3f;
    color: #fff;
}

.cookie-banner__buttons .btn-success:hover {
    background: #7aab32;
    border-color: #7aab32;
}

@media (max-width: 600px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-banner__buttons .btn {
        flex: 1;
        max-width: 180px;
    }
}

/* Select2 3.x — Bootstrap 3 integration */
.select2-container {
    display: block !important;
    max-width: 100% !important;
}

.select2-container .select2-choice {
    background-image: none !important;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    height: 34px !important;
    line-height: 20px !important;
    padding: 6px 12px !important;
    color: #555 !important;
    font-size: 13px !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075) !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    filter: none !important;
}

.select2-container.select2-container-active .select2-choice {
    border-color: #66afe9 !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6) !important;
}

.select2-container .select2-choice div {
    background: none !important;
    border-left: 1px solid #ccc !important;
    width: 30px !important;
}

.select2-container .select2-choice div b {
    display: none !important;
}

.select2-container .select2-choice div::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #888;
}

.select2-dropdown-open .select2-choice div::after {
    border-top: none;
    border-bottom: 5px solid #888;
    margin-top: -3px;
}

.select2-dropdown-open .select2-choice {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select2-drop {
    border-color: #66afe9 !important;
}

.select2-results .select2-highlighted {
    background-color: #337ab7 !important;
}

@media (max-width: 767px) {
    .btn-mobile-block {
        display: block !important;
        width: 100% !important;
        margin-bottom: 5px;
    }
}

/* ================================================================
   /ekipa volunteer hub — pasek wolontariusza, gotowość, akcje
   ================================================================ */

.volunteer-welcome {
    margin-bottom: 16px;
    position: relative;
}
.volunteer-welcome .close {
    position: absolute;
    top: 8px;
    right: 12px;
}

.volunteer-bar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
}
.volunteer-bar__meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}
.volunteer-bar__body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.volunteer-bar__photo {
    width: 72px;
    height: 72px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1.2;
    overflow: hidden;
}
.volunteer-bar__photo:hover,
.volunteer-bar__photo:focus {
    border-color: #8ebe3f;
    color: #8ebe3f;
    text-decoration: none;
}
.volunteer-bar__photo .glyphicon {
    font-size: 18px;
    margin-bottom: 2px;
}
.volunteer-bar__photo span {
    font-size: 10px;
}
.volunteer-bar__photo--placeholder {
    border-style: dashed;
}
.volunteer-bar__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.volunteer-bar__info {
    flex: 1;
    min-width: 0;
}
.volunteer-bar__nick {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
}
.volunteer-bar__name {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}
.volunteer-bar__line {
    font-size: 13px;
    color: #555;
    margin-top: 3px;
    word-wrap: break-word;
}
.volunteer-bar__label {
    color: #888;
    font-size: 12px;
}
.volunteer-bar__qr-btn {
    margin-top: 4px;
}

@media (min-width: 768px) {
    .volunteer-bar__photo {
        width: 96px;
        height: 96px;
    }
    .volunteer-bar__photo .glyphicon { font-size: 26px; }
    .volunteer-bar__photo span { font-size: 11px; }
    .volunteer-bar__qr-btn {
        display: inline-block;
        width: auto;
        min-width: 220px;
    }
}

.volunteer-section {
    margin-top: 24px;
}
.volunteer-section__title {
    margin: 0 0 12px;
    font-size: 18px;
}
.volunteer-section__subtitle {
    margin: 18px 0 8px;
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.volunteer-convention-info > div { margin-bottom: 4px; }
.volunteer-convention-info__actions {
    margin-top: 10px;
}

.volunteer-checklist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}
.volunteer-checklist__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.volunteer-checklist__item:last-child { border-bottom: none; }
.volunteer-checklist__icon {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
}
.volunteer-checklist__body { flex: 1; min-width: 0; }
.volunteer-checklist__label {
    font-weight: 600;
}
.volunteer-checklist__hint {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}
.volunteer-checklist__hint.text-danger { color: #a94442; }
.volunteer-checklist__hint.text-success { color: #3c763d; }
.volunteer-checklist__inline-cta {
    margin-top: 8px;
}
.volunteer-checklist__inline-cta .btn {
    margin-right: 4px;
}
.volunteer-checklist__shifts {
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid #e0e0e0;
}
.volunteer-checklist__shift {
    font-size: 13px;
    margin-top: 3px;
}
.volunteer-checklist__action {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .volunteer-checklist__item {
        flex-wrap: wrap;
    }
    .volunteer-checklist__action {
        width: 100%;
        margin-top: 6px;
        padding-left: 34px;
    }
}

.volunteer-actions .btn {
    margin-bottom: 8px;
    text-align: left;
}
.volunteer-actions .btn .glyphicon {
    margin-right: 6px;
}

/* Ogłoszenia ekipy — alerty na /ekipa */
.volunteer-announcement {
    background: #eaf3ff;
    border: 1px solid #c3d8ee;
    border-left: 4px solid #5a8dc4;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.volunteer-announcement__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    color: #445982;
    font-size: 12px;
}
.volunteer-announcement__head .glyphicon {
    color: #5a8dc4;
}
.volunteer-announcement__date {
    color: #888;
}
.volunteer-announcement__title {
    color: #333;
    font-size: 14px;
}
.volunteer-announcement__body {
    color: #333;
}

/* Akordeon "Wszystkie ogłoszenia" w sekcji Akcje */
.volunteer-announcements-history {
    margin-top: 16px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}
.volunteer-announcements-history > summary {
    cursor: pointer;
    color: #555;
    font-size: 13px;
    padding: 6px 0;
    list-style: none;
}
.volunteer-announcements-history > summary::-webkit-details-marker { display: none; }
.volunteer-announcements-history > summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.15s ease;
    margin-right: 4px;
}
.volunteer-announcements-history[open] > summary::before {
    transform: rotate(90deg);
}
.volunteer-announcements-history__list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}
.volunteer-announcements-history__item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.volunteer-announcements-history__item:last-child { border-bottom: none; }
.volunteer-announcements-history__item.is-read {
    opacity: 0.7;
}
.volunteer-announcements-history__head {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 4px;
}
.volunteer-announcements-history__body {
    color: #555;
    font-size: 13px;
}

/* Volunteer photo edit (form on /konto/edytujWolontariusza) */
.volunteer-photo-edit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.volunteer-photo-edit__preview {
    width: 96px;
    height: 96px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    overflow: hidden;
    flex-shrink: 0;
}
.volunteer-photo-edit__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.volunteer-photo-edit__preview .glyphicon {
    font-size: 40px;
}
.volunteer-photo-edit__actions {
    flex: 1;
    min-width: 0;
}
.volunteer-photo-edit__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
