﻿/* ============================================================
   TagMatch - style.css
   ============================================================ */

:root {
    --tm-primary: #FF9800;
    --tm-primary-hover: #F57C00;
    --tm-dark: #1a252f;
    --tm-light: #fff8f0;
    --tm-white: #ffffff;
    --tm-gray-bg: #f8f9fa;
    --tm-gray-light: #f1f3f5;
    --tm-border: #edf2f7;
    --tm-text-muted: #54667a;
    --tm-success: #27ae60;
    --tm-logo: #1a252f;

    /* Orange alias (używane w headerze i komponentach) */
    --tm-orange: #FF9800;     /* Bardzo jasny, radosny pomarańcz */
    --tm-orange-hover: #F57C00;
}

/* ============================================================
   1. GLOBALNE
   ============================================================ */
body {
    font-family: 'Inter', sans-serif;
    background: var(--tm-gray-bg);
    margin: 0;
    color: var(--tm-dark);
    line-height: 1.6;
}
/* ==========================================================================
   HOTFIX #2: OSTATECZNA NAPRAWA MOBILNA (Scroll, Modal, Nav)
   ========================================================================== */

/* 1. MORDUJEMY POZIOME PRZEWIJANIE NA AMEN */
html, body {
    overflow-x: hidden !important; 
    width: 100%;
    position: relative;
}

@media (max-width: 767px) {
    
    /* 2. UKRYWAMY DESKTOPOWE MENU (Koniec z rozpychaniem) */
    .auth-nav {
        display: none !important;
    }

    /* 3. PANCERNY MODAL NA PRAWDZIWYCH TELEFONACH */
    .modal-content {
        height: 90vh !important; /* Zmuszamy modal do sztywnej wysokości */
        display: flex !important;
        flex-direction: column !important;
    }

    .modal-body-wrapper {
        height: 100% !important; 
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important; /* Blokujemy główny suwak... */
    }

    /* Zdjęcie na górze */
    .modal-image-side {
        height: 35vh !important;
        min-height: 250px !important;
        flex: 0 0 auto !important; /* Zabrania zdjęciu rosnąć/maleć */
    }

    /* Prawa strona (teksty) pod zdjęciem */
    .modal-right-side {
        flex: 1 1 auto !important; /* Wypełnia całą resztę miejsca pod zdjęciem */
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* Tylko opisy mogą być scrollowane palcem! */
    .modal-info-side {
        flex: 1 1 auto !important;
        overflow-y: auto !important; /* ...i włączamy scroll TYLKO na tekście */
        padding: 20px 15px !important;
    }

    /* Przycisk CTA zawsze na samym dole modala */
    .modal-action-box {
        flex: 0 0 auto !important;
        position: relative !important;
    }
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* --- TŁO I OVERLAY MODALA (Krytyczne dla działania) --- */
.tm-modal {
    display: none; /* Ukryty na start, Twój JS to odkrywa */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Przyciemnienie tła */
    backdrop-filter: blur(8px); /* Eleganckie rozmycie TagMatch */
}

/* --- GŁÓWNE OKNO MODALA --- */
.modal-content {
    width: 95%;
    max-width: 900px; /* Domyślna szerokość (w formularzu nadpisuje ją .tm-add-modal na 650px) */
    max-height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    
    /* Kuloodporne centrowanie na środku ekranu */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}
/* ============================================================
   2. LOGO :: SNOFRU / TAGMATCH
   ============================================================ */
.tagmatch-logo {
    color: var(--tm-logo);
    display: inline-flex;
    align-items: center;
    font-family: 'Arial Black', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.tagmatch-logo .dot-orange { color: #FF8300; }
.tagmatch-logo .dot-dark { color: #FF0000; }

.tagmatch-logo:hover {
    transform: scale(1.15);
}

.tagmatch-logo:hover .dot-orange {
    text-shadow: 0 0 20px rgba(255, 131, 0, 0.6);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .tagmatch-logo {
        font-size: 2.2rem;
    }
}

/* ============================================================
   3. HEADER & NAWIGACJA DESKTOP
   ============================================================ */
.tm-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 60px;
}
/* =========================================
   SMART HEADER (Znikający Nagłówek Mobile)
   ========================================= */

/* Upewniamy się, że Twój główny header ma płynne przejście */
.tm-header {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    will-change: transform; /* Optymalizacja dla kart graficznych w telefonach */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Ta klasa będzie dodawana przez JavaScript, by ukryć pasek */
.tm-header.nav-up {
    transform: translateY(-100%);
    box-shadow: none; /* Pozbywamy się cienia, gdy pasek znika */
}
.auth-nav {
    display: none;
    align-items: center;
    gap: 15px;
}

@media (min-width: 768px) {
    .auth-nav {
        display: flex;
    }

    .nav-wrapper {
        padding: 0 20px;
        height: 70px;
    }

    .logo a {
        font-size: 20px;
    }
}

/* Przyciski Gość (Zaloguj / Dołącz) */
.guest-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login,
.btn-join {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-login {
    color: var(--tm-orange);
    border: 1px solid var(--tm-orange);
    background: transparent;
}

.btn-login:hover {
    background: #fff5ee;
}

.btn-join {
    background: var(--tm-orange);
    color: #fff;
    border: 1px solid var(--tm-orange);
}

.btn-join:hover {
    background: var(--tm-orange-hover);
    border-color: var(--tm-orange-hover);
}

/* User Dropdown (Zalogowany) */
.user-dropdown {
    position: relative;
}

.btn-user-toggle {
    background: none;
    border: 1px solid #e9ecef;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-height: 38px;
    transition: border-color 0.2s, background 0.2s;
}

.btn-user-toggle:hover {
    border-color: var(--tm-orange);
    background: #fff5ee;
}

.user-avatar-small {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--tm-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.user-name-text {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toggle-icon {
    font-size: 11px;
    color: #888;
    transition: transform 0.2s;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    min-width: 220px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 1010;
}

.user-dropdown-menu.show {
    display: flex;
}

.dropdown-header-block {
    padding: 14px 16px;
    background: #fff8f2;
    border-bottom: 1px solid #f0e8df;
}

.user-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.user-role-badge {
    font-size: 12px;
    font-weight: 700;
    background: var(--tm-orange);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
}

.msg-icon {
    position: relative;
    color: #888;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s;
}

.msg-icon:hover {
    color: var(--tm-orange);
}

.msg-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-display {
    font-size: 13px;
    color: #555;
}

.balance-display .value {
    font-weight: 700;
    color: var(--tm-success);
}

.staff-display {
    font-size: 13px;
    color: var(--tm-orange);
    font-weight: 600;
}

.dropdown-links-block {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

.dropdown-links-block a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.15s;
}

.dropdown-links-block a i {
    width: 16px;
    color: var(--tm-orange);
    text-align: center;
}

.dropdown-links-block a:hover {
    background: #f8f9fa;
}

.dropdown-footer-block {
    border-top: 1px solid #f0e8df;
    padding: 6px 0;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #e74c3c !important;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
}

.logout-link i {
    width: 16px;
    text-align: center;
}

.logout-link:hover {
    background: #fff5f5;
}
/* --- PREMIUM TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    bottom: 85px; /* Nad mobilnym menu (65px) + odstęp */
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Żeby nie blokowało klikania pod spodem */
}

.tm-toast {
    min-width: 250px;
    background: #fff;
    color: var(--tm-dark);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateX(120%); /* Ukryte po prawej stronie */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Efekt "odbicia/sprężyny" */
}

.tm-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Kolory ikon w toascie */
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.toast-success .toast-icon svg { color: var(--tm-success, #27ae60); }
.toast-error .toast-icon svg { color: var(--tm-danger, #e74c3c); }

/* Wersja mobilna - toasty na górze ekranu, by nie zasłaniały menu */
@media (max-width: 768px) {
    .toast-container {
        top: 20px;
        bottom: auto;
        right: 15px;
        left: 15px;
    }
    .tm-toast {
        width: 100%;
        transform: translateY(-120%);
    }
    .tm-toast.show {
        transform: translateY(0);
    }
}
/* ============================================================
   4. MOBILE MENU (Hamburger & Overlay)
   ============================================================ */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #fff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 16px 20px 30px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-header span {
    font-weight: 700;
    font-size: 16px;
    color: #222;
}

.mobile-menu-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #888;
    padding: 4px;
}

/* Kontrola rozmiaru ikon SVG w mobile menu */
.mobile-menu-overlay svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
}

/* Informacje o użytkowniku w Mobile Menu */
.mobile-user-info {
    background: #fff8f2;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid #ffe4cc;
}

.mobile-user-avatar {
    width: 56px;
    height: 56px;
    background: var(--tm-orange);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.mobile-user-name {
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
    font-size: 15px;
}

/* Stan Konta Widget (Mobile) */
.mobile-user-balance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--tm-gray-light, #f4f5f7);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    margin: 5px 0 15px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.mobile-user-balance .balance-icon {
    color: var(--tm-orange);
    display: flex;
    align-items: center;
}

.mobile-user-balance .balance-amount {
    color: var(--tm-dark);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.5px;
}

.mobile-user-balance .balance-amount .currency {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-left: 3px;
    text-transform: uppercase;
}

/* Linki mobilne */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 14px 10px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    gap: 14px;
    transition: background 0.15s;
}

.mobile-nav-links a i {
    width: 22px;
    color: var(--tm-orange);
    text-align: center;
    font-size: 16px;
}

.mobile-nav-links a:hover {
    background: #f8f9fa;
}

.mobile-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Sekcja języka w mobile */
.mobile-lang-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.mobile-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    margin: 0 0 10px 10px;
}

.mobile-lang-links {
    display: flex;
    gap: 8px;
    padding: 0 10px;
}

.mobile-lang-links a {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e9ecef;
    color: #333;
    transition: all 0.15s;
}

.mobile-lang-links a:hover,
.mobile-lang-links a.active {
    background: var(--tm-orange);
    color: #fff;
    border-color: var(--tm-orange);
}

@media (min-width: 768px) {
    .mobile-menu-overlay,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ==========================================================================
   MODAL DODAWANIA OFERTY (Idealnie dopasowany do HTML)
   ========================================================================== */

/* 1. Główne okno */
.tm-add-modal {
    max-width: 650px !important;
    height: auto !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
}

/* 2. Nagłówek */
.tm-add-modal .modal-header {
    padding: 20px 25px !important;
    background: var(--tm-gray-light, #f8f9fa) !important;
    border-bottom: 1px solid var(--tm-border, #eee) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

/* 3. Obszar przewijany (Kontener na formularz) */
.tm-add-modal .scrollable-body {
    padding: 0 !important; /* Zero paddingu, żeby przycisk przyklejał się do samej krawędzi */
    overflow-y: auto !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

#addOfferForm {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 4. Pola formularza (Odstępy dodajemy bezpośrednio do nich) */
.tm-add-modal .form-group,
.tm-add-modal .form-row {
    padding: 0 25px !important;
    margin-top: 25px !important;
    margin-bottom: 0 !important;
}

/* 5. Etykiety i Pola wprowadzania tekstu */
.tm-add-modal .form-label {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--tm-dark, #222) !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.tm-add-modal .form-control {
    width: 100% !important;
    padding: 14px 16px !important; /* Grube, wygodne pola */
    border: 2px solid var(--tm-border, #eee) !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

.tm-add-modal .form-control:focus {
    border-color: var(--tm-orange, #ff9800) !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1) !important;
    outline: none !important;
}

/* 6. Obszar zdjęcia (Drag & Drop UX) */
.tm-add-modal .file-upload-wrapper {
    position: relative !important;
    border: 2px dashed #ccc !important;
    background: #fafafa !important;
    border-radius: 12px !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.tm-add-modal .file-upload-wrapper:hover {
    border-color: var(--tm-orange, #ff9800) !important;
    background: rgba(255, 107, 0, 0.05) !important;
}

.tm-add-modal .form-control-file {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 10;
}

.tm-add-modal .upload-placeholder {
    text-align: center; color: #888; pointer-events: none;
}

/* 7. Wiersz z podziałem na 2 (Cena i Tagi) */
.tm-add-modal .form-row {
    display: flex !important;
    gap: 15px !important;
}

.tm-add-modal .col-half {
    flex: 1 !important;
    min-width: 0 !important;
}

/* 8. Dolny przycisk (Perfekcyjny Sticky Footer) */
.tm-add-modal .modal-action-box {
    padding: 20px 25px !important;
    background: #fff !important;
    border-top: 1px solid var(--tm-border, #eee) !important;
    margin-top: 25px !important; /* Odstęp od ostatniego pola (opisu) */
    position: sticky !important;
    bottom: 0 !important;
    z-index: 20 !important;
}

/* --- TELEFON (MOBILE) --- */
@media (max-width: 767px) {
    .tm-add-modal .form-group,
    .tm-add-modal .form-row {
        padding: 0 15px !important; /* Mniej po bokach na wąskim ekranie */
        margin-top: 20px !important;
    }
    
    .tm-add-modal .form-row {
        flex-direction: column !important; /* Cena i Tagi układają się w pionie */
        gap: 0 !important;
    }
    
    .tm-add-modal .col-half {
        margin-top: 20px !important;
    }
    
    .tm-add-modal .modal-action-box {
        padding: 15px !important;
    }
}
/* --- PRZYCISK ZAMYKANIA MODALA "X" (Premium UX) --- */
.close-modal-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 50 !important;
    background: #f1f3f5 !important; /* Delikatne, widoczne szare tło */
    border: none !important;
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--tm-dark, #1a252f) !important; /* Mocny, grafitowy "X" na start */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.close-modal-btn svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.5px !important;
    transition: transform 0.3s ease !important;
}

/* --- EFEKT NAJECHANIA (Hover) --- */
.close-modal-btn:hover {
    background: #ffe5e5 !important; /* Tło staje się bladoczerwone */
    color: #e74c3c !important; /* Ikonka staje się krwista */
    transform: scale(1.1) !important; /* Przycisk lekko rośnie */
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2) !important;
}

/* Magiczny detal: sam krzyżyk kręci się o 90 stopni przy najechaniu */
.close-modal-btn:hover svg {
    transform: rotate(90deg) !important;
}

/* --- EFEKT WCIŚNIĘCIA (Active) --- */
.close-modal-btn:active {
    transform: scale(0.95) !important; /* Fizyczne ugięcie guzika */
}
/* ============================================================
   6. STRONA KONTAKTOWA
   ============================================================ */
body.contact-page {
    background: #f4f6f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #222;
}

.contact-hero {
    background: linear-gradient(135deg, #222 0%, #4a5568 100%);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.contact-hero h1 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.contact-hero p {
    margin: 0 auto;
    opacity: 0.9;
    font-size: 0.95rem;
    max-width: 600px;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-card h2 {
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card h2 i {
    color: var(--tm-orange);
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-orange);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: #222;
}

.contact-text p,
.contact-text a {
    margin: 0;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-text a:hover {
    color: var(--tm-orange);
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #222;
    font-size: 0.95rem;
    min-height: 44px;
}

.faq-question i {
    color: var(--tm-orange);
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    margin-top: 10px;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-answer.show {
    display: block;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--tm-orange);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.btn-submit:hover {
    background: var(--tm-orange-hover);
}

.alert-contact {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-success {
    background: #e6fffa;
    color: #2c7a7b;
    border: 1px solid #b2f5ea;
}

.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

@media (min-width: 768px) {
    .contact-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-form-wrapper {
        flex: 2;
        min-width: 0;
    }

    .contact-sidebar {
        flex: 1;
        min-width: 300px;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-hero {
        padding: 50px 20px;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-hero p {
        font-size: 1.1rem;
    }

    .contact-card {
        padding: 30px;
    }
}

/* ============================================================
   7. ANIMACJE
   ============================================================ */
@keyframes fadeInSquare {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   8. STOPKA
   ============================================================ */
/* ==========================================================================
   APP BOTTOM NAVIGATION (Mobile Only)
   ========================================================================== */

/* Ukrywamy domyślnie na desktopie */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    
    /* 1. Ukrywamy starą stopkę u zalogowanych na telefonie */
    .hide-footer-on-mobile {
        display: none !important;
    }

    /* 2. Dajemy margines na dole strony, żeby menu nie zasłaniało treści */
    body {
        padding-bottom: 80px; 
    }

    /* 3. Pasek Nawigacji Dolnej */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: #ffffff;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08); /* Delikatny cień w górę */
        z-index: 9990; /* Poniżej modala (9999), ale nad całą resztą */
        justify-content: space-around;
        align-items: center;
        
        /* Zabezpieczenie dla nowoczesnych telefonów z notchem i dolnym paskiem (iPhone) */
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(65px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--tm-border);
    }

    /* 4. Pojedynczy link (Ikona + Tekst) */
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #888;
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 700;
        flex: 1;
        height: 100%;
        transition: all 0.2s ease;
        padding-top: 5px;
    }

    .bottom-nav-item svg {
        width: 22px;
        height: 22px;
        margin-bottom: 4px;
        stroke-width: 2px;
        transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Efekt po wciśnięciu / najechaniu */
    .bottom-nav-item:hover,
    .bottom-nav-item:active,
    .bottom-nav-item.active { /* Klasa .active jeśli chcesz w Smarty podkreślać obecną podstronę */
        color: var(--tm-orange);
    }

    .bottom-nav-item:active svg {
        transform: scale(0.85);
    }

    /* 5. Centralny przycisk "DODAJ" (Specjalny styl) */
    .nav-item-add {
        position: relative;
        top: -15px; /* Wystaje ponad pasek */
        color: var(--tm-dark);
    }

    .add-btn-circle {
        width: 50px;
        height: 50px;
        background: var(--tm-orange);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }

    .nav-item-add:active .add-btn-circle {
        transform: translateY(4px);
        box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
    }

    .nav-item-add svg {
        margin-bottom: 0;
        width: 26px;
        height: 26px;
        color: #fff !important;
        stroke-width: 2.5px;
    }
}
/* ==========================================================================
   HOTFIX: PANCERNA NAPRAWA MODALA I PASKA NA MOBILE
   Wklej to na samym dole pliku CSS, aby nadpisać wszystkie błędy!
   ========================================================================== */
@media (max-width: 767px) {
    
    /* --- 1. NAPRAWA PASKA DOLNEGO (Koniec z rozpychaniem ekranu) --- */
    .mobile-bottom-nav {
        width: 100vw !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Bezwzględnie odcina wszystko, co próbuje poszerzyć ekran */
    }

    .bottom-nav-item {
        flex: 1 1 0px !important; /* Zmusza 5 przycisków do sprawiedliwego, równego podziału miejsca */
        min-width: 0 !important; /* Krytyczne! Zabrania przyciskom być szerszymi niż przydzielone miejsce */
        padding: 5px 2px !important;
    }

    .bottom-nav-item span {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Jeśli tekst jest za długi, doda 3 kropki (...) zamiast rozpychać pasek */
        width: 100%;
        text-align: center;
        display: block;
    }

    .bottom-nav-item svg {
        max-width: 22px !important; /* Blokuje ikony przed niekontrolowanym rozrostem */
        flex-shrink: 0 !important;
    }

    /* --- 2. NAPRAWA MODALA (Wymuszenie układu pionowego) --- */
    .modal-content {
        width: 95% !important;
        height: auto !important;
        max-height: 90vh !important;
    }

    .modal-body-wrapper {
        flex-direction: column !important; /* Wymusza zdjęcie na górze, a tekst na dole */
        overflow-y: auto !important;
    }

    .modal-image-side {
        width: 100% !important;
        height: 35vh !important;
        min-height: 250px !important;
        border-bottom: 1px solid var(--tm-border, #eee) !important;
    }

    .modal-right-side, 
    .modal-info-side {
        width: 100% !important;
        height: auto !important;
        padding: 15px !important;
        overflow: visible !important;
    }

    /* Przycisk CTA Zawsze pod kciukiem */
    .modal-action-box {
        position: sticky !important;
        bottom: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
.tm-footer-minimal {
    background-color: var(--tm-white);
    padding: 40px 0 20px;
    border-top: 1px solid var(--tm-border);
    margin-top: 60px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left {
    font-size: 13px;
    color: var(--tm-text-muted);
}

.footer-logo {
    font-weight: 800;
    color: var(--tm-dark);
    text-decoration: none;
    margin-right: 10px;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--tm-dark);
    font-size: 13px;
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--tm-primary);
    text-decoration: underline;
}

.footer-tagline {
    text-align: center;
    width: 100%;
    font-size: 12px;
    color: var(--tm-dark);
    margin-top: 20px;
    font-style: italic;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
}