/* ==========================================================================
   DODAVATELENASVATBU.CZ - GLOBÁLNÍ DESIGN SYSTÉM A HLAVNÍ STYLY (main.css)
   ========================================================================== */

:root {
    --bg-main: #FCFBF9;       
    --bg-card: #FFFFFF;       
    --text-main: #1A1A1A;     
    --text-muted: #666666;    
    --rose-accent: #FF7A79;   
    --rose-light: #FFF0F0;    
    --gradient-start: #FF7A79;
    --gradient-end: #EFA698;   
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(255, 122, 121, 0.12);
    --border-light: #e2e8f0;
    --clock-bg: #2C2A29;      
    --clock-text: #FFFFFF;    
}

/* --- GLOBÁLNÍ ZVÝRAZNĚNÍ RÁMEČKŮ PRO MOBILNÍ DISPLEJE --- */
.summary-card, .progress-block, .event-counter, .calc-inputs-container, .time-phase-box {
    border-color: #cbd5e1 !important;
}



/* --- ODZNAČEK PROCENTA PŘÍPRAV V HLAVIČCE --- */
.header-progress-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--rose-light);
    color: var(--gradient-start);
    border: 1px solid rgba(255, 122, 121, 0.3);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-left: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.header-progress-badge:hover {
    transform: scale(1.04);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
}

h1, h2, h3 { 
    line-height: 1.25 !important; 
    letter-spacing: -1px; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

.text-gradient { 
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    display: inline-block; 
}

/* --- GLOBÁLNÍ ZTMAVOVACÍ OVERLAY --- */
.global-dark-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); 
    z-index: 9999; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s ease; 
}

.global-dark-overlay.active { 
    opacity: 1; 
    pointer-events: auto; 
}

/* --- TOP NAVBAR --- */
.top-navbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    background: rgba(253, 252, 251, 0.85); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border-bottom: 1px solid var(--border-light); 
    z-index: 10000; 
    padding: 14px 0; 
    transition: padding 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease; 
}

.top-navbar.nav-open { 
    background: rgba(253, 252, 251, 0.98) !important; 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; 
}

.logo { 
    font-size: 1.35rem; 
    font-weight: 800; 
    color: var(--text-main); 
    text-decoration: none; 
    letter-spacing: -0.5px; 
    line-height: 1.1; 
    display: flex; 
    align-items: center; 
    flex-shrink: 0; 
}

.logo span { 
    color: var(--rose-accent); 
    margin-left: 4px; 
}

.logo-img { 
    height: 44px; 
    width: auto; 
    border-radius: 12px; 
    margin-right: 12px; 
    box-shadow: 0 4px 12px rgba(255, 122, 121, 0.15); 
    transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.2s ease; 
}

.logo:hover .logo-img { 
    transform: scale(1.03); 
}

.mobile-actions-wrapper { 
    display: none; 
}

.menu-toggle { 
    display: none; 
    flex-direction: column; 
    justify-content: space-between; 
    width: 24px; 
    height: 18px; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    padding: 0; 
    z-index: 10001; 
}

.menu-toggle span { 
    width: 100%; 
    height: 2px; 
    background-color: var(--text-main); 
    border-radius: 2px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

.nav-menu { 
    display: flex; 
    gap: 28px; 
    align-items: center; 
    list-style: none; 
}

.nav-menu-link { 
    color: var(--text-muted); 
    font-size: 0.92rem; 
    font-weight: 600; 
    text-decoration: none; 
    transition: color 0.3s ease; 
    position: relative; 
    padding: 6px 0; 
}

.nav-menu-link::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%); 
    transition: width 0.3s ease, opacity 0.3s ease; 
}

.nav-menu-link:hover { 
    color: var(--text-main); 
}

.nav-menu-link:hover::after { 
    width: 100%; 
}

.nav-menu-link.active { 
    color: var(--text-main); 
}

.nav-menu-link.active::after { 
    width: 100%; 
    opacity: 0.35; 
}

/* --- COOKIE LIŠTA --- */
#cookie-banner { 
    display: none; 
    position: fixed; 
    bottom: 24px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 90%; 
    max-width: 750px; 
    background: #ffffff; 
    padding: 24px 30px; 
    border-radius: 24px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
    z-index: 99999; 
    border: 1px solid var(--border-light); 
    align-items: center; 
    justify-content: space-between; 
    gap: 20px; 
}

.cookie-text { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    line-height: 1.5; 
}

.cookie-text strong { 
    color: var(--text-main); 
    display: block; 
    margin-bottom: 6px; 
    font-size: 1.05rem; 
}

.cookie-buttons { 
    display: flex; 
    gap: 12px; 
    flex-shrink: 0; 
}

.btn-cookie { 
    padding: 12px 24px; 
    border-radius: 50px; 
    font-size: 0.85rem; 
    font-weight: 700; 
    cursor: pointer; 
    border: none; 
}

.btn-cookie-accept { 
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%); 
    color: white; 
    box-shadow: 0 4px 15px rgba(255, 122, 121, 0.25); 
}

.btn-cookie-reject { 
    background: var(--bg-main); 
    color: var(--text-muted); 
    border: 1px solid var(--border-light); 
}

/* --- GLOBÁLNÍ ODPOČET A EDITACE --- */
.wedding-countdown-bar { 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translate(-50%, -10%); 
    margin-top: 5px; 
    z-index: 10005; 
    opacity: 1; 
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
}

.countdown-flex-col { 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    background: #FFFFFF; 
    border: 1px solid rgba(255, 122, 121, 0.22); 
    padding: 24px 28px; 
    border-radius: 24px; 
    box-shadow: 0 10px 35px rgba(255, 122, 121, 0.18); 
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
}

.hdr-countdown-title { 
    font-size: 1.15rem; 
    font-weight: 800; 
    color: var(--text-main); 
    margin-bottom: 4px; 
    text-align: center; 
}

.hdr-countdown-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    text-align: center;
    line-height: 1.4;
}

.hdr-setup-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hdr-setup-row-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.hdr-field-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hdr-field-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hdr-field-box .hdr-unified-field {
    width: 100% !important;
    height: 44px !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.hdr-field-box .hdr-unified-field:hover,
.hdr-field-box .hdr-unified-field:focus {
    border-color: var(--gradient-start) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 121, 0.15) !important;
}

.hdr-field-box .hdr-unified-select-wrapper {
    width: 100% !important;
}

.hdr-field-box .hdr-unified-select-wrapper .select2-container {
    width: 100% !important;
}

.hdr-field-box .hdr-unified-select-wrapper .select2-container--default .select2-selection--single {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.hdr-field-box .hdr-unified-select-wrapper .select2-container--default:hover .select2-selection--single,
.hdr-field-box .hdr-unified-select-wrapper .select2-container--open .select2-selection--single {
    border-color: var(--gradient-start) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 121, 0.15) !important;
}

.hdr-field-box .hdr-unified-select-wrapper .select2-selection__rendered {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    text-align: center !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hdr-setup-sliders {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff8f8;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 122, 121, 0.18);
}

.hdr-slider-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hdr-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hdr-slider-badge {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--gradient-start);
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(255, 122, 121, 0.2);
    border: 1px solid rgba(255, 122, 121, 0.2);
    transition: transform 0.15s;
}

.hdr-slider-badge:hover {
    transform: scale(1.05);
}

input[type=range].rev-range-slider,
.rev-range-slider {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #e2e8f0 !important;
    outline: none;
    margin: 8px 0;
    cursor: pointer;
}

.rev-range-slider::-webkit-slider-runnable-track {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #e2e8f0 !important;
    border: none !important;
}

.rev-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 122, 121, 0.4) !important;
    border: 2px solid white !important;
    transition: transform 0.1s;
    margin-top: -8px !important;
}

.rev-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.rev-range-slider::-moz-range-track {
    height: 8px;
    border-radius: 10px;
    background: #e2e8f0 !important;
    border: none !important;
}

.rev-range-slider::-moz-range-thumb {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 122, 121, 0.4) !important;
    border: 2px solid white !important;
    transition: transform 0.1s;
}

.hdr-unified-btn {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 122, 121, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hdr-unified-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 122, 121, 0.45);
}

.hdr-input-group-unified { 
    display: flex; 
    align-items: center; 
    background: #fff; 
    border: 1px solid rgba(0,0,0,0.1); 
    border-radius: 50px; 
    padding: 6px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.04); 
}

.hdr-unified-field { 
    border: none; 
    padding: 0 15px; 
    font-family: 'Inter', sans-serif; 
    font-size: 0.95rem; 
    font-weight: 600; 
    outline: none; 
    background: transparent; 
    cursor: pointer; 
    color: var(--text-main); 
    text-align: center; 
    height: 42px; 
}

#wedding-date-input { width: 130px; }
.hdr-unified-select-wrapper { width: 170px; }
#wedding-budget-input { width: 140px; text-align: left; }
.hdr-divider { width: 1px; height: 24px; background: rgba(0,0,0,0.1); margin: 0 5px; }

.hdr-unified-select-wrapper .select2-container--default .select2-selection--single { 
    border: none !important; 
    background: transparent !important; 
    height: 42px !important; 
    display: flex; 
    align-items: center; 
    outline: none !important; 
    box-shadow: none !important; 
}

.hdr-unified-select-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered { 
    font-family: 'Inter', sans-serif; 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--text-main) !important; 
    padding-left: 15px !important; 
    padding-right: 20px !important; 
}

.hdr-unified-select-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow { 
    height: 100% !important; 
    top: 0 !important; 
    right: 10px !important; 
}

.hdr-unified-btn { 
    background: var(--gradient-start); 
    color: white; 
    border: none; 
    height: 42px; 
    padding: 0 25px; 
    border-radius: 50px; 
    font-weight: 700; 
    cursor: pointer; 
    box-shadow: 0 4px 10px rgba(255,122,121,0.3); 
    margin-left: 5px; 
}

.countdown-capsule.active-capsule { 
    background: #FFFFFF; 
    border: 1px solid rgba(255, 122, 121, 0.22); 
    padding: 10px 25px; 
    border-radius: 50px; 
    box-shadow: 0 10px 30px rgba(255, 122, 121, 0.12); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
}

.flip-clock-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.flip-unit-box { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

/* HW AKCELERACE PRO ODPOČET */
.flip-card { 
    position: relative; 
    background: var(--clock-bg); 
    color: var(--clock-text); 
    font-size: 1.35rem; 
    font-weight: 800; 
    padding: 6px 10px; 
    border-radius: 6px; 
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15); 
    line-height: 1; 
    min-width: 46px; 
    text-align: center; 
    overflow: hidden; 
    perspective: 200px; 
    transform: translateZ(0); 
    backface-visibility: hidden; 
    will-change: transform; 
}

.flip-card::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    top: 50%; 
    width: 100%; 
    height: 1px; 
    background: rgba(0, 0, 0, 0.4); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.12); 
}

.flip-unit-label { 
    font-size: 0.58rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--text-muted); 
    letter-spacing: 0.8px; 
    margin-top: 4px; 
}

.card-turning { 
    animation: flip-mechanic 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

@keyframes flip-mechanic { 
    0% { transform: translateZ(0) rotateX(0deg); } 
    100% { transform: translateZ(0) rotateX(-360deg); } 
}

/* --- GLOBÁLNÍ POPTÁVKOVÝ MODAL --- */
.welcome-modal-overlay { 
    display: none; 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    right: 0 !important; 
    bottom: 0 !important; 
    background: rgba(0,0,0,0.75) !important; 
    backdrop-filter: blur(6px) !important; 
    z-index: 99999999 !important; 
    justify-content: center !important; 
    align-items: center !important; 
    padding: 15px !important; 
    text-align: center !important; 
    overflow-y: auto !important; 
}

.poptavka-modal-inner { 
    position: relative !important; 
    display: block; 
    margin: auto; 
    width: 100%; 
    max-width: 850px; 
    text-align: left; 
    padding: 0; 
}

.btn-modal-close-custom { 
    position: absolute !important; 
    top: -10px !important; 
    right: 0px !important; 
    cursor: pointer !important; 
    border: none !important; 
    background: #ffffff !important; 
    color: #64748b !important; 
    width: 40px !important;
    height: 40px !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    border-radius: 50% !important; 
    transition: all 0.2s !important; 
    z-index: 9999999 !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

.btn-modal-close-custom:hover { 
    color: white !important; 
    background: var(--rose-accent) !important; 
    transform: scale(1.1) !important; 
}

/* ==========================================================================
   MODERN DESIGN SYSTEM FOR SELECT2 DROPDOWNS SITEWIDE
   ========================================================================== */
.select2-container--open, .select2-container { z-index: 9999999999 !important; }
.flatpickr-calendar, .flatpickr-calendar.open { z-index: 9999999999 !important; }

.select2-dropdown {
    background: #ffffff !important;
    border: 1.5px solid rgba(255, 116, 16, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2), 0 6px 16px rgba(255, 116, 16, 0.08) !important;
    overflow: hidden !important;
    padding: 8px !important;
    margin-top: 6px !important;
    animation: select2FadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes select2FadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.select2-search--dropdown {
    padding: 6px 6px 10px 6px !important;
}

.select2-search--dropdown .select2-search__field {
    width: 100% !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: var(--text-main, #1e293b) !important;
    background: #f8fafc !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.select2-search--dropdown .select2-search__field:focus {
    background: #ffffff !important;
    border-color: var(--gradient-start, #ff7410) !important;
    box-shadow: 0 0 0 4px rgba(255, 116, 16, 0.15) !important;
}

.select2-results__options {
    max-height: 240px !important;
    padding: 4px 2px !important;
    margin: 0 !important;
}

.select2-results__options::-webkit-scrollbar {
    width: 6px !important;
}
.select2-results__options::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 10px !important;
}
.select2-results__options::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 10px !important;
}
.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-start, #ff7410) !important;
}

.select2-results__option {
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    margin-bottom: 3px !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, rgba(255,116,16,0.1) 0%, rgba(255,90,95,0.12) 100%) !important;
    color: var(--gradient-start, #ff7410) !important;
    font-weight: 700 !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: linear-gradient(135deg, var(--gradient-start, #ff7410) 0%, #ff5a5f 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.select2-results__message {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 0.88rem !important;
    color: #94a3b8 !important;
    padding: 16px 12px !important;
    text-align: center !important;
}

#global-poptavka-modal .select2-container { width: 100% !important; margin-bottom: 10px; }
#global-poptavka-modal .select2-container--default .select2-selection--single {
    height: 52px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

#global-poptavka-modal .select2-container--open .select2-selection--single { border-color: var(--rose-accent) !important; }
#global-poptavka-modal .select2-selection__rendered { font-family: 'Inter', sans-serif !important; font-size: 1rem !important; color: var(--text-main) !important; padding-left: 20px !important; line-height: normal !important; }
#global-poptavka-modal .select2-selection__placeholder { color: #888 !important; }
#global-poptavka-modal .select2-selection__arrow { top: 50% !important; transform: translateY(-50%) !important; right: 15px !important; height: auto !important; }

#global-poptavka-modal select {
    width: 100%; height: 52px; border-radius: 50px; border: 1px solid rgba(0,0,0,0.1); 
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 18px center; 
    background-size: 16px; padding: 0 40px 0 20px; font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-main); outline: none; appearance: none; -webkit-appearance: none; box-sizing: border-box;
}

#global-poptavka-modal select:focus { border-color: var(--rose-accent); }

/* FIX SELECT2 VYHLEDÁVAČE PRO ANDROID WEBVIEW / MOBILE APP */
.select2-container--open .select2-dropdown {
    border-radius: 18px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
    z-index: 9999999999 !important;
}
.select2-search--dropdown {
    padding: 10px !important;
}
.select2-search--dropdown .select2-search__field {
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}
.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--rose-accent, #ff7a79) !important;
    box-shadow: 0 0 0 3px rgba(255,122,121,0.15) !important;
    outline: none !important;
}

/* ==========================================================================
   VLASTNÍ UNIFIKOVANÁ LUXUSNÍ ROLETKA (GLOBAL CUSTOM DROPDOWN UI)
   ========================================================================== */
.custom-roletka-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.custom-roletka-trigger {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid var(--border-light, #e2e8f0);
    border-radius: 50px;
    padding: 13px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    outline: none;
    user-select: none;
    box-sizing: border-box;
}
.custom-roletka-trigger:hover, .custom-roletka-wrapper.open .custom-roletka-trigger {
    border-color: #ff7a79;
    box-shadow: 0 4px 14px rgba(255, 122, 121, 0.15);
}
.custom-roletka-trigger.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}
.custom-roletka-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-roletka-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}
.custom-roletka-wrapper.open .custom-roletka-chevron {
    transform: rotate(180deg);
}
.custom-roletka-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px;
    z-index: 99999;
    max-height: 280px;
    overflow-y: auto;
    animation: roletkaFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-roletka-wrapper.drop-up .custom-roletka-menu {
    top: auto;
    bottom: calc(100% + 8px);
}
@keyframes roletkaFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.custom-roletka-wrapper.open .custom-roletka-menu {
    display: block !important;
}
.custom-roletka-item {
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
    user-select: none;
    margin-bottom: 2px;
}
.custom-roletka-item:last-child {
    margin-bottom: 0;
}
.custom-roletka-item:hover {
    background: #f8fafc;
    color: #0f172a;
}
.custom-roletka-item.active {
    background: #fff0f0;
    color: #ff7a79;
    font-weight: 800;
}
.custom-roletka-check {
    display: none;
    flex-shrink: 0;
}
.custom-roletka-item.active .custom-roletka-check {
    display: block;
}

/* --- INCOGNITO REŽIM MODAL --- */
.incognito-modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.8); 
    backdrop-filter: blur(8px); 
    z-index: 9999999; 
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
}

.incognito-box { 
    background: white; 
    border-radius: 24px; 
    max-width: 500px; 
    padding: 40px 30px; 
    text-align: center; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.25); 
    border-top: 6px solid #d9534f; 
}

.incognito-icon { font-size: 3rem; margin-bottom: 15px; display: inline-block; }
.incognito-title { color: #d9534f; margin: 0 0 15px 0; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.5px; }
.incognito-text { color: #555; font-size: 1rem; line-height: 1.6; margin-bottom: 25px; }
.incognito-btn-primary { 
    display: block; 
    background: #ff7a79; 
    color: white !important; 
    padding: 16px 25px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 800; 
    margin-top: 20px; 
    transition: transform 0.2s, box-shadow 0.2s; 
    box-shadow: 0 5px 15px rgba(255,122,121,0.3); 
    border: none; 
    cursor: pointer; 
    width: 100%; 
    font-family: 'Inter', sans-serif;
}

/* --- RESPONZIVITA PRO MOBILY & TABLETY (AŽ DO 1024px) & SPODNÍ APP LIŠTA --- */
@media (max-width: 1024px) {
    body { padding-bottom: 85px; }
    #cookie-banner { bottom: 85px; }
    .top-navbar { padding: 14px 0; }
    .nav-container { flex-wrap: wrap; justify-content: space-between; position: relative; }
    .logo { display: flex; align-items: center; }
    .logo-text-wrapper { display: none !important; } 
    .logo-img { height: 34px; border-radius: 10px; margin-right: 4px; }
    .mobile-actions-wrapper { display: flex; align-items: center; gap: 10px; margin-left: auto; position: relative; z-index: 10001; }
    .menu-toggle { display: flex; position: relative; } 
    .nav-open #menuToggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-open #menuToggle span:nth-child(2) { opacity: 0; }
    .nav-open #menuToggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu { display: none; width: 100%; flex-direction: column; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(0, 0, 0, 0.04); text-align: center; margin-top: 14px; }
    .nav-menu-link { font-size: 1.05rem; display: block; width: 100%; }
    .nav-menu-link::after { display: none; }
    .nav-menu-link.active { color: var(--rose-accent) !important; font-weight: 700; }
    .nav-open .nav-menu { display: flex; }
    .countdown-flex-col { padding: 30px 20px 20px 20px; width: 92vw; max-width: 360px; }
    .hdr-setup-row-fields { grid-template-columns: 1fr; gap: 10px; }
    .hdr-input-group-unified { flex-direction: column; border-radius: 0; padding: 0; width: 100%; background: transparent; border: none; box-shadow: none; gap: 12px; }
    .hdr-unified-field, .hdr-unified-select-wrapper, .hdr-unified-btn { width: 100% !important; height: 50px !important; border-radius: 14px !important; box-sizing: border-box; text-align: center; }
    .hdr-unified-field { background: #fff !important; border: 1px solid rgba(0,0,0,0.12) !important; }
    .hdr-unified-select-wrapper .select2-container { width: 100% !important; display: block; }
    .hdr-unified-select-wrapper .select2-container--default .select2-selection--single { background: #fff !important; border: 1px solid rgba(0,0,0,0.12) !important; height: 50px !important; border-radius: 14px !important; justify-content: center; }
    
    #wedding-date-input, #wedding-guests-input, #wedding-budget-input { text-align: center !important; }
    .hdr-unified-select-wrapper .select2-selection__rendered { padding-left: 0 !important; padding-right: 0 !important; text-align: center !important; width: 100%; }
    
    .hdr-divider { display: none; }
    .wedding-countdown-bar.state-running { position: absolute; top: 19px; left: 50%; transform: translate(-50%, -50%); margin-top: 0; }
    .wedding-countdown-bar.state-running .countdown-capsule { border: none; box-shadow: none; background: transparent; padding: 0; }
    .wedding-countdown-bar.state-running .flip-card { font-size: 1.1rem; min-width: 32px; padding: 4px 6px; border-radius: 4px; }
    .wedding-countdown-bar.state-running .flip-unit-label { font-size: 0.5rem; letter-spacing: 0.2px; }
    .wedding-countdown-bar.state-running .flip-clock-wrapper { gap: 6px; }
    
    /* SPODNÍ LIŠTA NA MOBILU A TABLETU */
    .mobile-cta-bar { display: block; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -5px 25px rgba(0,0,0,0.08); z-index: 999999 !important; border-top: 1px solid rgba(0,0,0,0.06); }
    .mobile-bottom-nav { display: flex; justify-content: space-between; align-items: center; height: 65px; padding: 0 15px; max-width: 768px; margin: 0 auto; }
    .nav-tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94a3b8; text-decoration: none; gap: 4px; transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
    .nav-tab-item svg { width: 24px; height: 24px; stroke-width: 2; transition: transform 0.2s; }
    .nav-tab-item span { font-size: 0.72rem; font-weight: 600; letter-spacing: -0.2px; }
    .nav-tab-item.active { color: var(--gradient-start); }
    .nav-tab-item.active svg { transform: scale(1.1); }
    .nav-tab-item.highlight-tab { color: var(--gradient-start); }
    .nav-tab-item.highlight-tab svg { fill: var(--rose-light); stroke: var(--gradient-start); }
    
    #cookie-banner { flex-direction: column; width: 100%; border-radius: 24px 24px 0 0; padding: 24px; z-index: 99999; }
    .cookie-buttons { width: 100%; flex-direction: column; }
    .btn-cookie { width: 100%; text-align: center; }
    .btn-modal-close-custom { top: -20px !important; right: 10px !important; width: 34px !important; height: 34px !important; }
}

/* --- ZJEMNĚNÝ KONTRAST RÁMEČKŮ A ELEGANTNÍ STÍNY (CARD ELEVATION) --- */
.guest-container-box, 
.budget-container-box, 
.playlist-container-box, 
.seating-container-box, 
.hero-progress-wrapper {
    border: 1.5px solid rgba(255, 122, 121, 0.22) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

.capacity-slider-section, 
.budget-slider-section, 
.calc-inputs-container, 
.rev-header-grid {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
}

.summary-card, 
.progress-block, 
.time-phase-box, 
.pl-card, 
.event-counter,
.budget-row,
.guest-row {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    background: #ffffff !important;
}

.hdr-field-box .hdr-unified-field,
.hdr-field-box .hdr-unified-select-wrapper .select2-container--default .select2-selection--single {
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

@media (min-width: 1025px) { 
    .logo-mobile-wrapper { display: flex; align-items: center; } 
    .logo-text-wrapper { display: inline; } 
}

/* ==========================================================================
   UNIFIKOVANÝ DESIGN SYSTÉM PLÁNOVAČE (GLOBAL UNIFIED DESIGN SYSTEM TOKENS)
   ========================================================================== */
.app-card {
    background: #ffffff !important;
    border-radius: 28px !important;
    padding: 35px !important;
    border: 1px solid rgba(255, 122, 121, 0.18) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 30px !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
    width: 100% !important;
}

.btn-app-primary {
    background: linear-gradient(135deg, var(--gradient-start, #ff7a79) 0%, var(--gradient-end, #efa698) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 28px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 6px 18px rgba(255, 122, 121, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.btn-app-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(255, 122, 121, 0.45) !important;
}

.btn-app-secondary {
    background: #1e293b !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 28px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15) !important;
}
.btn-app-secondary:hover {
    background: #0f172a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(30, 41, 59, 0.25) !important;
}

.btn-app-outline {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: var(--text-main, #0f172a) !important;
    border-radius: 50px !important;
    padding: 13px 26px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.btn-app-outline:hover {
    border-color: var(--rose-accent, #ff7a79) !important;
    color: var(--rose-accent, #ff7a79) !important;
}

.app-input {
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-main, #0f172a) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}
.app-input:focus {
    border-color: var(--rose-accent, #ff7a79) !important;
    box-shadow: 0 0 0 4px rgba(255,122,121,0.15) !important;
}
.app-input.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.app-label {
    display: block !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: var(--text-main, #0f172a) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}

@media (max-width: 768px) {
    .app-card { padding: 25px 18px !important; border-radius: 20px !important; }
    .btn-app-primary, .btn-app-secondary, .btn-app-outline { padding: 13px 20px !important; width: 100% !important; }
    .app-modal-overlay { padding: 12px !important; align-items: center !important; }
    .app-modal-box { padding: 24px 16px 20px 16px !important; border-radius: 22px !important; max-height: 92vh !important; margin-top: auto !important; margin-bottom: auto !important; }
    .app-modal-close { top: 12px !important; right: 12px !important; width: 36px !important; height: 36px !important; font-size: 1.3rem !important; }
    .rv-progress-flex, .progress-info-flex { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
}

/* ==========================================================================
   GLOBÁLNÍ MODÁLNÍ SYSTÉM & UNIFIKOVANÉ UI PRVKY (GLOBAL MODALS & BADGES)
   ========================================================================== */
.app-modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999999 !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
.app-modal-overlay.open, .app-modal-overlay.active, .app-modal-overlay.show {
    display: flex !important;
}

.app-modal-box {
    background: #ffffff !important;
    border-radius: 28px !important;
    padding: 35px 30px !important;
    width: 100% !important;
    max-width: 520px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25) !important;
    border: 1px solid rgba(255, 122, 121, 0.2) !important;
    position: relative !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
    margin: auto !important;
}

.app-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 18px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    outline: none !important;
    z-index: 99 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    touch-action: manipulation !important;
}
.app-modal-close:hover, .app-modal-close:active {
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    border-color: #fca5a5 !important;
}

/* GLOBÁLNÍ ŠTÍTKY A ODZNAKY */
.app-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
}
.app-badge-rose { background: #fff0f0 !important; color: #ff7a79 !important; border: 1px solid rgba(255,122,121,0.25) !important; }
.app-badge-green { background: #f0fdf4 !important; color: #16a34a !important; border: 1px solid #bbf7d0 !important; }
.app-badge-orange { background: #fff7ed !important; color: #ea580c !important; border: 1px solid #fdba74 !important; }
.app-badge-gray { background: #f1f5f9 !important; color: #475569 !important; border: 1px solid #cbd5e1 !important; }

/* GLOBÁLNÍ SEGMENTOVANÝ PŘEPÍNAČ */
.app-segmented-control {
    display: inline-flex !important;
    background: #f1f5f9 !important;
    padding: 4px !important;
    border-radius: 50px !important;
    border: 1px solid #e2e8f0 !important;
    gap: 4px !important;
    box-sizing: border-box !important;
}
.app-segmented-btn {
    background: transparent !important;
    border: none !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}
.app-segmented-btn.active {
    background: #ffffff !important;
    color: var(--text-main, #0f172a) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}
