/* Styly chatu. Drive byly primo ve strance (109 KB v kazde odpovedi),
   takze se stahovaly znovu pri kazdem nacteni. Jako samostatny soubor
   se daji cachovat a stranka je o tuhle velikost lehci. */
/* Enhanced root variables with premium feel */
        :root {
            --primary-color: #FF5FA2;
            --primary-light: #FF8CC0;
            --primary-dark: #E8117F;
            --secondary-color: #FFC0CB;
            --accent-color: #F2C879;
            --background-color: #130c1b;
            --card-background: #221629;
            --text-color: #F2EAF3;
            --text-muted: #A898AE;
            --border-color: #3a2a45;
            --shadow: 0 4px 15px rgba(0,0,0,0.3);
            --shadow-hover: 0 8px 25px rgba(255, 105, 180, 0.4);
            --input-background: #241830;
            --hover-color: #2c1f38;
            --message-user-bg: linear-gradient(135deg, #FF5FA2, #E8117F);
            --message-bot-bg: #2a1d35;
            --success-color: #4CAF50;
            --warning-color: #FFA726;
        }

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

        body {
            font-family: 'Poppins', sans-serif;
            background: var(--background-color);
            color: var(--text-color);
            min-height: 100vh;
        }

        .container {
            display: flex;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
            gap: 30px;
            height: 100vh;
        }

        /* Enhanced Sidebar Panel */
        .chat-history {
            width: 320px;
            background: var(--card-background);
            border-radius: 20px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* Mobile Sidebar Close Button */
        .sidebar-close-btn {
            display: none; /* Hidden on desktop */
            width: 100%;
            padding: 16px 20px;
            background: linear-gradient(135deg, rgba(255, 105, 180, 0.15), rgba(147, 112, 219, 0.15));
            border: none;
            border-bottom: 1px solid rgba(255, 105, 180, 0.2);
            color: var(--text-color);
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
        }

        .sidebar-close-btn i {
            font-size: 1.1em;
            color: var(--primary-color);
        }

        .sidebar-close-btn:hover {
            background: linear-gradient(135deg, rgba(255, 105, 180, 0.25), rgba(147, 112, 219, 0.25));
        }

        .sidebar-close-btn:active {
            transform: scale(0.98);
        }

        /* Show close button on mobile */
        @media (max-width: 768px) {
            .sidebar-close-btn {
                display: flex;
            }
        }

        /* Sidebar Tabs */
        .sidebar-tabs {
            display: flex;
            background: var(--card-background);
            border-bottom: 2px solid var(--border-color);
        }

        .sidebar-tab {
            flex: 1;
            padding: 15px 10px;
            background: transparent;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            font-size: 0.9em;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }

        .sidebar-tab i {
            font-size: 1.2em;
        }

        .sidebar-tab.active {
            color: var(--primary-color);
        }

        .sidebar-tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--primary-color);
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from { transform: scaleX(0); }
            to { transform: scaleX(1); }
        }

        .sidebar-tab:hover:not(.active) {
            color: var(--primary-light);
            background: rgba(255, 105, 180, 0.05);
        }

        /* Tab Content */
        .sidebar-content {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .tab-panel {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .tab-panel.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Enhanced Profile Tab with Modern UI */
        .profile-section {
            padding: 20px;
        }

        .eliska-profile {
            text-align: center;
            margin-bottom: 20px;
            position: relative;
        }

        /* Glowing avatar with gradient border */
        .eliska-avatar {
            width: 110px;
            height: 110px;
            border-radius: 50%;
            margin: 0 auto 15px;
            border: 3px solid transparent;
            background: linear-gradient(var(--card-background), var(--card-background)) padding-box,
                        linear-gradient(135deg, #FF69B4, #9370DB, #FF69B4) border-box;
            box-shadow: 0 0 25px rgba(255, 105, 180, 0.4),
                        0 0 50px rgba(147, 112, 219, 0.2);
            object-fit: cover;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            animation: avatarGlow 3s ease-in-out infinite;
        }

        @keyframes avatarGlow {
            0%, 100% { 
                box-shadow: 0 0 25px rgba(255, 105, 180, 0.4),
                            0 0 50px rgba(147, 112, 219, 0.2);
            }
            50% { 
                box-shadow: 0 0 35px rgba(255, 105, 180, 0.6),
                            0 0 70px rgba(147, 112, 219, 0.3);
            }
        }

        .eliska-avatar:hover {
            transform: scale(1.08) rotate(2deg);
            box-shadow: 0 0 40px rgba(255, 105, 180, 0.7),
                        0 0 80px rgba(147, 112, 219, 0.4);
        }

        .eliska-name {
            font-size: 1.6em;
            font-weight: 700;
            background: linear-gradient(135deg, #FF69B4, #9370DB);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .eliska-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.08));
            border: 1px solid rgba(76, 175, 80, 0.3);
            border-radius: 25px;
            color: #4CAF50;
            font-size: 0.85em;
            font-weight: 600;
            letter-spacing: 0.3px;
            transition: all 0.3s ease;
        }

        .eliska-status-badge:hover {
            background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.15));
            transform: translateY(-1px);
        }

        .status-dot-sidebar {
            width: 8px;
            height: 8px;
            background: #4CAF50;
            border-radius: 50%;
            animation: pulse 2s infinite;
            box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
        }

        /* Enhanced Bio Section */
        .eliska-bio {
            background: linear-gradient(135deg, rgba(255, 105, 180, 0.08), rgba(147, 112, 219, 0.08));
            border: 1px solid rgba(255, 105, 180, 0.2);
            padding: 18px;
            border-radius: 16px;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .eliska-bio::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #FF69B4, #9370DB, #FF69B4);
            background-size: 200% 100%;
            /* Vlastni animace - „shimmer“ je jinde definovany s rotaci 45°
               a proužek se pak tahl šikmo přes celé bio */
            animation: bioProuzek 3s ease-in-out infinite;
        }
        @keyframes bioProuzek { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

        .eliska-bio:hover {
            border-color: rgba(255, 105, 180, 0.35);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 105, 180, 0.15);
        }

        @keyframes shimmer {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .eliska-bio p {
            margin: 0;
            line-height: 1.7;
            color: var(--text-color);
            font-size: 0.95em;
        }

        /* Context Controls */
        .context-controls {
            background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(255, 182, 193, 0.1));
            padding: 15px;
            border-radius: 12px;
            margin-top: 15px;
        }

        .context-controls h3 {
            margin: 0 0 15px 0;
            font-size: 1em;
            color: var(--text-color);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .context-select-group {
            margin-bottom: 15px;
        }

        .context-select-group:last-child {
            margin-bottom: 0;
        }

        .context-label {
            display: block;
            font-size: 0.9em;
            color: var(--text-color);
            margin-bottom: 10px;
            font-weight: 600;
        }

        .context-select {
            width: 100%;
            padding: 12px 14px;
            background: var(--card-background);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            color: var(--text-color);
            font-size: 1em;
            cursor: pointer;
            transition: all 0.3s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF69B4' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            padding-right: 40px;
        }

        .context-select:hover {
            border-color: var(--primary-color);
            background-color: var(--hover-color);
        }

        .context-select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
        }

        .apply-context-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            border: none;
            border-radius: 12px;
            color: white;
            font-weight: 600;
            font-size: 1.05em;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
        }

        .apply-context-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
        }

        .apply-context-btn:active {
            transform: translateY(0);
        }
        
        /* Mobile optimization for context controls */
        @media (max-width: 768px) {
            .context-controls {
                padding: 18px;
                margin-top: 20px;
                padding-bottom: 80px; /* Space for sticky button */
            }
            
            .context-controls h3 {
                font-size: 1.1em;
                margin-bottom: 18px;
            }
            
            .context-label {
                font-size: 0.95em;
                margin-bottom: 12px;
            }
            
            .context-select {
                padding: 16px 14px;
                font-size: 1.05em;
                border-radius: 14px;
                min-height: 52px;
                background-position: right 14px center;
            }
            
            .context-select-group {
                margin-bottom: 20px;
            }
            
            /* Tlacitko bylo prispendlene pres celou sirku dolu, takze viselo
               pres cely panel - i nad hrami a odkazy, se kterymi nema nic
               spolecneho. Vztahuje se jen k nalade a prostredi, tak sedi
               rovnou pod nimi a roluje s obsahem. */
            .chat-history .apply-context-btn {
                position: static;
                width: 100%;
                padding: 15px !important;
                font-size: 1.05em !important;
                margin: 4px 0 8px !important;
                border-radius: 12px !important;
                min-height: 52px;
            }
            
            /* Make select options larger on mobile */
            .context-select option {
                padding: 12px;
                font-size: 1em;
            }
            
            /* Ensure profile section has padding for sticky button */
            .profile-section {
                padding-bottom: 100px;
            }
            
            /* Add spacing at bottom of sidebar content for sticky button */
            .sidebar-content {
                padding-bottom: 70px;
            }
        }
        
        @media (max-width: 480px) {
            .context-controls {
                padding: 16px;
                padding-bottom: 90px;
            }
            
            .context-select {
                padding: 14px 12px;
                font-size: 1em;
                min-height: 48px;
            }
            
            .apply-context-btn {
                padding: 16px !important;
                font-size: 1.1em !important;
                min-height: 56px;
            }
        }
        
        /* Vysvetleni k srdickum pro neprihlaseneho. Bez nej cetl pruh
           "SRDICKA 0 + Koupit" jako "tady se plati" jeste driv, nez napsal
           prvni zpravu. */
        .srdicka-vysvetleni {
            /* Jeden radek zamerne - dva odsunuly Elisscin avatar pod okraj
               a ctvrty navrh odpovedi zmizel z obrazovky. */
            margin: 0 12px 6px;
            padding: 5px 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            border-radius: 10px;
            background: rgba(242, 200, 121, .1);
            border: 1px solid rgba(242, 200, 121, .22);
            color: #E8D6B0;
            font-size: .78rem;
            line-height: 1.45;
            text-align: center;
        }
        .srdicka-vysvetleni b { color: var(--gold, #F2C879); font-weight: 600; }

        /* Zamcene hry v panelu pro neprihlasene - vidi, ze existuji, ale
           klik je posle na registraci. */
        .panel-nav-item.zamceno { opacity: .62; }
        .panel-nav-item.zamceno .fa-lock { font-size: .78em; opacity: .7; }
        .zamceno-vyzva {
            margin: 8px 12px 0; font-size: .78rem; line-height: 1.4;
            color: var(--primary-color, #FF69B4); text-align: center;
        }

        /* Styly plovouciho tlacitka nalady odstraneny spolu s tlacitkem samotnym
           (24. 8. 2026) - bylo to druhe tlacitko do teze veci a lezelo na
           Elisscine profilovce u indikatoru psani. */


        /* History Tab kept for backwards compatibility */
        .history-actions {
            padding: 15px;
            border-bottom: 1px solid var(--border-color);
        }

        .history-list {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }

        .chat-item {
            position: relative;
            padding: 15px;
            background: var(--input-background);
            border-radius: 12px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-color);
        }

        .chat-item:hover {
            background: var(--hover-color);
            transform: translateX(5px);
        }

        .chat-item .date {
            font-size: 0.8em;
            opacity: 0.7;
            color: var(--text-muted);
        }

        .chat-item .preview {
            color: var(--text-muted);
        }

        .delete-btn {
            opacity: 0;
            background: none;
            border: none;
            color: #dc3545;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .chat-item:hover .delete-btn {
            opacity: 1;
        }

        .chat-item:hover .preview {
            color: var(--text-color);
        }

        .delete-btn:hover {
            background: rgba(220, 53, 69, 0.1);
            transform: scale(1.1);
        }

        /* Confirmation modal styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: var(--card-background);
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            max-width: 400px;
            width: 90%;
            color: var(--text-color);
        }

        .modal-buttons {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }

        .modal-btn {
            padding: 8px 20px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .confirm-btn {
            background: #dc3545;
            color: white;
        }

        .cancel-btn {
            background: #6c757d;
            color: white;
        }

        .modal-btn:hover {
            transform: translateY(-2px);
        }

        /* Registration modal styles */
        .registration-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            /* Okno je vyssi nez maly displej. Pri align-items:center trcelo
               nahoru i dolu mimo obrazovku - krizek a prihlaseni pres Google
               byly nedosazitelne. */
            align-items: flex-start;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 12px 0;
            animation: fadeIn 0.3s ease;
        }

        .registration-modal.active {
            display: flex;
        }

        @media (min-height: 900px) {
            .registration-modal { align-items: center; }
        }

        .registration-modal-content {
            position: relative;
            background: var(--card-background);
            padding: 30px;
            border-radius: 20px;
            text-align: center;
            max-width: 450px;
            width: 90%;
            color: var(--text-color);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
            animation: popIn 0.4s ease;
        }

        .registration-modal h2 {
            margin: 0 0 10px 0;
            font-size: 1.8em;
            background: linear-gradient(135deg, var(--primary-color), #9370DB);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .registration-modal .subtitle {
            color: var(--text-muted);
            margin-bottom: 25px;
            font-size: 1em;
        }

        .registration-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .registration-form input {
            width: 100%;
            padding: 14px 18px;
            background: var(--input-background);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            color: var(--text-color);
            font-size: 1em;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .registration-form input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
        }

        .registration-form input::placeholder {
            color: var(--text-muted);
        }

        .register-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
        }

        .register-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
        }

        .register-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .login-link {
            margin-top: 20px;
            color: var(--text-muted);
            font-size: 0.9em;
        }

        .login-link a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
        }

        .login-link a:hover {
            text-decoration: underline;
        }

        .registration-error {
            color: #dc3545;
            font-size: 0.9em;
            margin-top: 10px;
            display: none;
        }

        /* Anonymous message counter banner */
        .anonymous-banner {
            background: linear-gradient(135deg, rgba(255, 105, 180, 0.15), rgba(147, 112, 219, 0.15));
            border: 1px solid rgba(255, 105, 180, 0.3);
            border-radius: 12px;
            padding: 12px 20px;
            margin: 10px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            animation: fadeIn 0.5s ease;
        }

        /* Banner o zamitnute karte nese celou vetu, ne dve slova jako
           pocitadlo zprav. Na telefonu se do jedne radky nevesel a tlacitko
           „Zaplatit znovu" vytlacil mimo obrazovku - proto se zalamuje. */
        #graceBanner {
            flex-wrap: wrap;
            gap: 10px;
        }

        #graceBanner .message-counter {
            /* pocitadlo zprav je flex a na uzkem displeji ma white-space:
               nowrap, aby se „Jeste 3 zpravy" nezlomilo. Tady je to ale cela
               veta, ktera se zalomit musi - jinak utece z obrazovky. */
            display: block;
            flex: 1 1 100%;
            line-height: 1.45;
            white-space: normal;
        }

        .anonymous-banner .message-counter {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-color);
            font-size: 0.95em;
        }

        .anonymous-banner .counter-number {
            font-weight: 700;
            color: var(--primary-color);
        }

        .anonymous-banner .register-prompt-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 0.9em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .anonymous-banner .register-prompt-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
        }

        /* Main Chat Area */
        .main-chat {
            flex: 1;
            background: var(--card-background);
            border-radius: 20px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .chat-header {
            padding: 12px 16px;
            min-height: 50px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            color: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            display: flex;
            justify-content: space-between;
            align-items: center;
            /* mezera mezi ikonou profilu/registrace a pilulkou se srdicky -
               bez ni se dotykaly na kazde sirce, kde pilulka sedi vpravo */
            gap: 12px;
            position: relative;
            overflow: hidden;
        }
        
        /* Add animated gradient background to header */
        .chat-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                45deg,
                transparent,
                rgba(255, 255, 255, 0.1),
                transparent
            );
            animation: shimmerSikmo 3s infinite;
        }
        
        @keyframes shimmerSikmo {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .chat-header h2 {
            font-size: 1.2em;
            font-weight: 500;
            flex: 1;
            text-align: center;
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        /* Add status indicator for Eliška */
        .eliska-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75em;
            opacity: 0.9;
            background: rgba(255, 255, 255, 0.15);
            padding: 4px 10px;
            border-radius: 20px;
            margin-left: 8px;
        }
        
        .status-dot {
            width: 8px;
            height: 8px;
            background: var(--success-color);
            border-radius: 50%;
            animation: pulse-glow 2s infinite;
        }
        
        @keyframes pulse-glow {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
            }
            50% {
                transform: scale(1.1);
                box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
            }
        }
        
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.15);
                color: #ff69b4;
            }
        }

        .chat-header-btn {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.2em;
            cursor: pointer;
            padding: 8px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .chat-header-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .chat-header-btn.menu-btn {
            display: none; /* Hide on desktop by default */
        }

        .profile-link {
            color: white;
            text-decoration: none;
        }

        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: var(--background-color);
        }

        .chat-input {
            padding: 20px;
            background: var(--card-background);
            border-top: 1px solid var(--border-color);
            display: flex;
            gap: 10px;
        }

        .chat-input input {
            flex: 1;
            padding: 12px 20px;
            border: 2px solid var(--border-color);
            border-radius: 25px;
            outline: none;
            font-size: 1em;
            transition: border-color 0.3s ease;
            background: var(--input-background);
            color: var(--text-color);
        }

        .chat-input input::placeholder {
            color: var(--text-muted);
        }

        .chat-input input:focus {
            border-color: var(--primary-color);
        }

        .gift-button {
            background: linear-gradient(135deg, #FFD700, #FFA500);
            color: white;
            border: none;
            border-radius: 50%;
            width: 46px;
            height: 46px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            margin-right: 8px;
            position: relative;
            overflow: hidden;
        }

        .gift-button:hover {
            transform: scale(1.05) rotate(5deg);
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
        }

        /* Photo Upload Button */
        .photo-upload-btn {
            background: linear-gradient(135deg, #9C27B0, #7B1FA2);
            color: white;
            border: none;
            border-radius: 50%;
            width: 46px;
            height: 46px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            margin-right: 8px;
            position: relative;
            overflow: hidden;
        }

        .photo-upload-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(156, 39, 176, 0.6);
        }

        .photo-upload-btn i {
            font-size: 1.2em;
        }

        /* Photo Messages in Chat */
        .photo-message {
            max-width: 70% !important;
        }

        .photo-wrapper {
            margin: 8px 0;
            position: relative;
        }

        .chat-photo {
            max-width: 400px;
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 12px;
            display: block;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .chat-photo:hover {
            transform: scale(1.02);
        }

        .photo-caption {
            margin-top: 6px;
            font-size: 0.85em;
            opacity: 0.8;
            color: var(--text-muted);
        }

        .user-message .photo-caption {
            text-align: right;
        }

        .bot-message .photo-caption {
            text-align: left;
        }

        /* Mobile responsive for photos */
        @media (max-width: 768px) {
            .photo-message {
                max-width: 85% !important;
            }

            .chat-photo {
                max-width: 350px;
                border-radius: 10px;
            }

            .photo-caption {
                font-size: 0.75em;
            }
        }

        @media (max-width: 480px) {
            .photo-message {
                max-width: 90% !important;
            }

            .chat-photo {
                max-width: 280px;
            }

            .photo-upload-btn {
                width: 40px;
                height: 40px;
                margin-right: 6px;
            }

            .photo-upload-btn i {
                font-size: 1.1em;
            }
        }

        .gift-button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .gift-button:active::before {
            width: 200px;
            height: 200px;
        }

        .gift-button i {
            font-size: 1.2em;
            animation: giftPulse 2s ease-in-out infinite;
        }

        @keyframes giftPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .send-button {
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 46px;
            height: 46px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .send-button:hover {
            transform: scale(1.05);
            background: #ff4da6;
        }

        @media (max-width: 768px) {
            :root {
                --mobile-header-height: 40px;
                --mobile-input-height: 45px;
                --bottom-nav-height: 0px;
            }

            body {
                padding-bottom: var(--bottom-nav-height);
            }

            .container {
                flex-direction: column;
                padding: 0;
                gap: 0;
                height: 100vh;
                /* dvh je tady KLICOVE: tohle je jedina vyska, ktera na mobilu
                   o chatu rozhoduje (.main-chat ma flex:1, takze jeho vlastni
                   height se ignoruje). Se 100vh koncil scroller ~110 px pod
                   ohybem iOS Safari a u kratke konverzace pak scrollHeight
                   == clientHeight, takze scroll nedelal vubec nic. */
                height: 100dvh;
                overflow: hidden;
            }

            .chat-history {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%; /* Full width instead of 80% */
                height: 100%;
                max-width: none; /* Remove max-width limit */
                z-index: 200;
                transform: translateX(-100%);
                transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
                background: var(--card-background);
                border-radius: 0;
                box-shadow: none;
                display: flex;
                flex-direction: column;
            }
            
            .chat-history.active {
                transform: translateX(0);
            }
            
            /* Make header more prominent */
            .history-header {
                display: flex;
                padding: 15px;
                background: var(--primary-color);
                color: white;
                align-items: center;
                min-height: 60px;
            }
            
            .history-header h2 {
                color: white;
                margin: 0;
                flex: 1;
                text-align: center;
                font-size: 1.3em;
                font-weight: 500;
            }
            
            /* Make new chat button more prominent */
            .history-actions {
                display: block;
                padding: 15px;
                border-bottom: 1px solid var(--border-color);
                background: var(--background-color);
            }
            
            .new-chat-btn {
                width: 100%;
                padding: 15px;
                border-radius: 12px;
                font-size: 1.1em;
                font-weight: 500;
            }
            
            /* Better styling for history list */
            .history-list {
                flex: 1;
                overflow-y: auto;
                padding: 15px;
                background: var(--card-background);
            }
            
            /* Improve chat item appearance */
            .chat-item {
                padding: 12px;
                margin-bottom: 10px;
                background: var(--input-background);
                border-radius: 12px;
                transition: all 0.2s ease;
            }
            
            .chat-item .title {
                font-size: 1em;
                font-weight: 500;
                margin-bottom: 5px;
            }
            
            .chat-item .preview {
                font-size: 0.85em;
                margin-top: 4px;
                color: var(--text-muted);
            }
            
            .chat-item .date {
                font-size: 0.8em;
                color: var(--text-muted);
                margin-top: 4px;
            }
            
            /* Better back button styling */
            .back-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                background: transparent;
                border: none;
                color: white;
                font-size: 1.3em;
                cursor: pointer;
                padding: 10px;
                width: 44px;
                height: 44px;
            }
            
            .chat-item:hover {
                background: var(--hover-color);
                transform: translateX(5px);
            }

            .main-chat {
                height: calc(100vh - var(--bottom-nav-height));
                /* dvh: 100vh na iOS pocita i listu prohlizece a spodek
                   chatu koncil pod ohybem / pod fixnim pruhem paywallu */
                height: calc(100dvh - var(--bottom-nav-height));
                width: 100%;
                border-radius: 0;
                display: flex;
                flex-direction: column;
            }

            .chat-header {
                padding: 8px 12px;
                min-height: 45px;
            }

            .chat-header h2 {
                font-size: 1em;
            }

            .chat-header-btn.menu-btn {
                display: flex; /* Show on mobile */
                margin-right: 8px;
            }
            
            .chat-header-btn {
                width: 36px;
                height: 36px;
                font-size: 1.1em;
            }
            
            /* Add animation for menu button */
            .chat-header-btn.menu-btn .bar {
                display: block;
                width: 18px;
                height: 2px;
                background: white; /* Keep white for visibility on pink header */
                position: relative;
                transition: all 0.3s ease;
            }
            
            .chat-header-btn.menu-btn .bar::before,
            .chat-header-btn.menu-btn .bar::after {
                content: '';
                position: absolute;
                left: 0;
                width: 18px;
                height: 2px;
                background: white; /* Keep white for visibility on pink header */
                transition: all 0.3s ease;
            }
            
            .chat-header-btn.menu-btn .bar::before {
                top: -6px;
            }
            
            .chat-header-btn.menu-btn .bar::after {
                bottom: -6px;
            }
            
            /* Animated hamburger when drawer is open */
            .chat-header-btn.menu-btn.active .bar {
                background: transparent;
            }
            
            .chat-header-btn.menu-btn.active .bar::before {
                transform: rotate(45deg);
                top: 0;
            }
            
            .chat-header-btn.menu-btn.active .bar::after {
                transform: rotate(-45deg);
                bottom: 0;
            }

            .chat-messages {
                flex: 1;
                padding: 12px;
                padding-bottom: 70px; /* Make room for input */
                overflow-y: auto;
            }

            .message {
                margin: 6px 0;
                gap: 6px;
                max-width: 90%;
            }

            .message-avatar {
                width: 28px;
                height: 28px;
                border-width: 1px;
            }

            .message-content {
                padding: 8px 12px;
                font-size: 0.9em;
                line-height: 1.35;
                border-radius: 14px;
            }

            .user-message .message-content {
                border-bottom-right-radius: 4px;
            }

            .bot-message .message-content {
                border-bottom-left-radius: 4px;
            }

            .chat-input {
                position: fixed;
                bottom: 0px;
                left: 0;
                right: 0;
                padding: 8px 10px;
                background: var(--card-background);
                z-index: 101;
                margin: 0;
                box-shadow: none;
                border-top: 1px solid var(--border-color);
                display: flex;
                align-items: center;
                gap: 8px;
            }

            .chat-input input {
                height: 40px;
                padding: 8px 16px;
                font-size: 0.95em;
            }

            /* Odeslani drzi 46x46 jako darek - mobilni zmensovani zruseno
               (Adam 25. 8.: "at je tlacitko na odeslani stejne jako na darky") */
            .send-button i {
                font-size: 1.2em;
            }

            .profile-btn {
                padding: 4px 6px;
                font-size: 0.75em;
                border-radius: 12px;
                height: 26px;
            }

            .typing-indicator {
                margin: 12px 0;
                gap: 10px;
            }
            
            .typing-avatar {
                width: 40px;
                height: 40px;
            }
            
            .typing-bubble {
                padding: 14px 18px;
                border-radius: 18px 18px 18px 4px;
                min-width: 65px;
            }

            .typing-indicator .dot {
                width: 8px;
                height: 8px;
            }

            .back-btn {
                display: flex; /* Show on mobile */
                align-items: center;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            :root {
                --mobile-header-height: 35px;
                --mobile-input-height: 40px;
            }

            .chat-history {
                height: 30vh;
                min-height: 140px;
            }

            .history-header {
                min-height: 35px;
            }

            .history-header img {
                width: 24px;
                height: 24px;
            }

            .profile-btn {
                padding: 3px 5px;
                font-size: 0.7em;
                height: 24px;
            }

            .chat-item {
                padding: 4px 6px;
                margin-bottom: 2px;
            }

            .chat-item .title {
                font-size: 0.85em;
            }

            .chat-item .preview {
                font-size: 0.75em;
                margin-bottom: 2px;
            }

            .chat-item .date {
                font-size: 0.7em;
            }

            .message {
                margin: 4px 0;
                gap: 5px;
                max-width: 94%;
            }

            .message-avatar {
                width: 24px;
                height: 24px;
                border-width: 1px;
            }

            .message-content {
                padding: 6px 10px;
                font-size: 0.85em;
                line-height: 1.3;
                border-radius: 12px;
            }

            .chat-input {
                padding: 8px;
            }

            .chat-input input {
                /* 30 px vedle 46px tlacitek vypadalo rozbite a bylo pod
                   doporucenym dotykovym cilem; 16px pismo brani tomu,
                   aby iOS pri fokusu zoomoval stranku */
                padding: 10px 14px;
                font-size: 16px;
                height: 46px;
            }

            /* Odeslani drzi 46x46 jako darek - mobilni zmensovani zruseno
               (Adam 25. 8.: "at je tlacitko na odeslani stejne jako na darky") */
            .send-button i {
                font-size: 1.2em;
            }

            /* Payment modal adjustments */
            .payment-requirement-card {
            position: relative;
                width: 95%;
                max-height: 80vh;
                border-radius: 18px;
            }

            .card-header {
                padding: 20px 16px 14px;
                border-radius: 18px 18px 0 0;
            }

            .card-header i {
                font-size: 1.8em;
                margin-bottom: 8px;
            }

            .card-header h2 {
                font-size: 1.4em;
                margin: 0 0 6px 0;
            }

            .card-content {
                padding: 16px;
            }

            .premium-features li {
                font-size: 0.9em;
                margin-bottom: 8px;
                padding: 0;
            }

            .price-block .amount {
                font-size: 2.2em;
            }

            .upgrade-button {
                padding: 13px 20px;
                font-size: 1.05em;
            }

            .paywall-photo-teaser {
                height: 170px;
            }
        }

        @media (max-width: 360px) {
            .payment-requirement-card {
                width: 98%;
                max-height: 85vh;
            }

            .paywall-photo-teaser {
                height: 140px;
            }

            .card-header {
                padding: 16px 12px 12px;
            }

            .card-header i {
                font-size: 1.6em;
            }

            .card-header h2 {
                font-size: 1.2em;
            }

            .card-content {
                padding: 14px;
            }

            .premium-features li {
                font-size: 0.85em;
                margin-bottom: 6px;
            }

            .price-block .amount {
                font-size: 2em;
            }

            .upgrade-button {
                padding: 12px 16px;
                font-size: 1em;
            }
        }

        /* Message Styles */
        .message {
            max-width: 75%;
            display: flex;
            align-items: flex-end;
            gap: 8px;
            margin: 10px 0;
            position: relative;
        }

        /* Back button - hidden on desktop by default */
        .back-btn {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.2em;
            cursor: pointer;
            padding: 8px;
            display: none; /* Hide on desktop */
        }

        .bot-message {
            align-self: flex-start;
            margin-right: auto;
        }

        .user-message {
            align-self: flex-end;
            margin-left: auto;
            flex-direction: row-reverse;
        }

        .message-avatar {
            width: 32px;
            height: 32px;
            min-width: 32px;
            border-radius: 50%;
            border: 1.5px solid var(--primary-color);
        }

        .bot-message .message-content {
            background: var(--message-bot-bg);
            color: var(--text-color);
            border-bottom-left-radius: 4px;
            margin-left: 0;
        }

        .user-message .message-content {
            background: var(--message-user-bg);
            color: white;
            border-bottom-right-radius: 4px;
            margin-right: 0;
            box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
        }

        .message-content {
            padding: 12px 16px;
            border-radius: 18px;
            font-size: 0.95em;
            line-height: 1.4;
            overflow: hidden;
            max-width: 100%;
            word-wrap: break-word;
            animation: messageSlideIn 0.3s ease-out;
            position: relative;
        }
        
        /* Smooth message appearance animation */
        @keyframes messageSlideIn {
            from {
                opacity: 0;
                transform: translateY(10px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        /* Add message reaction hover effect */
        .message-content:hover {
            transform: translateY(-1px);
            transition: transform 0.2s ease;
        }

        .message-content img {
            max-width: 100%;
        }

        .user-message::after {
            right: 8px;
        }

        .bot-message::after {
            left: 8px;
        }

        .message::after {
            content: attr(data-time);
            position: absolute;
            bottom: -16px;
            font-size: 0.7em;
            color: var(--text-muted);
            opacity: 0.7;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Enhanced Typing Indicator with Avatar */
        .typing-indicator {
            display: none;
            align-items: flex-end;
            margin: 15px 0;
            gap: 12px;
            animation: fadeIn 0.3s ease-in-out;
        }
        
        .typing-indicator.active {
            display: flex;
        }
        
        .typing-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
            border: 2px solid var(--primary-color);
            box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .typing-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .typing-bubble {
            background: var(--message-bot-bg);
            padding: 16px 20px;
            border-radius: 20px 20px 20px 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-width: 70px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.15);
            position: relative;
        }
        
        /* Subtle glow effect */
        .typing-bubble::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: 20px 20px 20px 4px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            opacity: 0;
            animation: glowPulse 2s ease-in-out infinite;
            z-index: -1;
        }
        
        @keyframes glowPulse {
            0%, 100% { opacity: 0; }
            50% { opacity: 0.3; }
        }

        .dot {
            width: 10px;
            height: 10px;
            background: linear-gradient(135deg, var(--primary-color), #FF1493);
            border-radius: 50%;
            animation: typingBounce 1.4s infinite ease-in-out;
            box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
        }

        .dot:nth-child(1) { animation-delay: 0s; }
        .dot:nth-child(2) { animation-delay: 0.2s; }
        .dot:nth-child(3) { animation-delay: 0.4s; }

        @keyframes typingBounce {
            0%, 60%, 100% { 
                transform: translateY(0) scale(1);
                opacity: 0.7;
            }
            30% { 
                transform: translateY(-10px) scale(1.2);
                opacity: 1;
            }
        }
        
        @keyframes bounce {
            0%, 60%, 100% { 
                transform: translateY(0) scale(1);
            }
            30% { 
                transform: translateY(-8px) scale(1.15);
            }
        }

        .history-actions {
            padding: 15px;
            border-bottom: 1px solid var(--border-color);
        }

        .new-chat-btn {
            width: 100%;
            padding: 12px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
        }

        .new-chat-btn:hover {
            background: #ff4da6;
        }

        .chat-item.active {
            background: var(--primary-color);
            color: white;
        }

        .chat-item-content {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .chat-item .preview {
            font-size: 0.8em;
            opacity: 0.7;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .profile-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: var(--primary-color);
            color: white;
            border-radius: 25px;
            text-decoration: none;
            transition: all 0.3s ease;
            margin-left: auto;
        }

        .profile-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
            background: #ff4da6;
        }

        .profile-btn i {
            font-size: 1.2em;
        }

        .profile-text {
            font-size: 0.9em;
            font-weight: 500;
        }

        /* Add subtle bounce animation on hover */
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-2px); }
        }

        .profile-btn:hover i {
            animation: bounce 0.5s ease infinite;
        }

        @media (max-width: 768px) {
            .profile-btn {
                padding: 6px 12px;
            }
            
            .profile-text {
                font-size: 0.8em;
            }
        }

        .online-status .dot {
            width: 8px;
            height: 8px;
            background: #4CAF50;
            border-radius: 50%;
            display: inline-block;
            margin-right: 5px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
            }
            70% {
                transform: scale(1);
                box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
            }
            100% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
            }
        }

        .eliska-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary-color);
            box-shadow: 0 2px 8px rgba(255,105,180,0.3);
            transition: transform 0.3s ease;
        }

        .eliska-avatar:hover {
            transform: scale(1.05);
        }

        /* Fallback background for image loading */
        .eliska-avatar {
            background: #FFF0F5;
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        @keyframes fadeOut {
            from {
                opacity: 1;
            }
            to {
                opacity: 0;
            }
        }

        .subscription-check-loading {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--card-background);
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1000;
        }

        .loading-spinner {
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .subscription-status-toast,
        .subscription-error-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: slideIn 0.3s ease;
            z-index: 1000;
        }

        .subscription-status-toast {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .subscription-error-toast {
            background: #ffebee;
            color: #c62828;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* Payment requirement overlay styles */
        .payment-requirement-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            backdrop-filter: blur(8px);
            padding: 20px;
            overflow-y: auto;
        }

        .payment-requirement-card {
            background: linear-gradient(160deg, #2a2a3e 0%, #130c1b 100%);
            border: 1px solid rgba(200, 149, 108, 0.2);
            border-radius: 20px;
            width: 90%;
            max-width: 380px;
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
            animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
            margin: auto;
            position: relative;
        }

        .card-header {
            background: linear-gradient(145deg, #c8956c, #a87b5a 40%, #3a2a4a 100%);
            padding: 24px 24px 16px;
            text-align: center;
            color: white;
            position: relative;
        }

        .tips-strip {
            position: relative;
            display: flex; align-items: center; gap: 10px;
            padding: 8px 8px 8px 14px;
            background: rgba(255,105,180,.07);
            border-bottom: 1px solid rgba(255,105,180,.14);
            font-size: .84rem; line-height: 1.4;
        }
        .tip-ikona { font-size: 1.15rem; flex: 0 0 auto; }
        .tip-text { flex: 1 1 auto; min-width: 0; }
        .tip-text b { font-weight: 600; }
        .tip-text #tipPopis { opacity: .75; }
        .tip-poradi { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .5; }
        .tip-dalsi {
            flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
            border: 1px solid rgba(255,105,180,.35); background: transparent;
            color: #FF69B4; font-size: 1.2rem; line-height: 1; cursor: pointer;
        }
        .tip-dalsi:hover { background: rgba(255,105,180,.12); }
        .tips-track {
            display: flex; gap: 8px; overflow-x: auto;
            scrollbar-width: none; -webkit-overflow-scrolling: touch;
        }
        .tips-track::-webkit-scrollbar { display: none; }
        .tip-card {
            flex: 0 0 auto; max-width: 230px;
            background: var(--card-background, #fff);
            border: 1px solid rgba(255,105,180,.22);
            border-radius: 12px; padding: 9px 12px;
            font-size: .8rem; line-height: 1.4;
            text-align: left;
            font-family: inherit; color: inherit;
        }
        /* Styly .world-entry-btn a .world-link odstraneny: obe tlacitka
           zmizela pri prestavbe panelu (commit 4a2b455) a CSS po nich
           zustalo viset jako mrtvy kod. */

        .tips-title {
            font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
            opacity: .55; margin: 0 0 7px 2px;
        }
        .tip-card b { display: block; font-size: .84rem; margin-bottom: 2px; }
        .tip-card span { opacity: .72; }
        .tips-close {
            flex: 0 0 auto; min-width: 40px; min-height: 40px;
            background: none; border: none; font-size: 1.3rem;
            line-height: 1; color: #999; cursor: pointer; padding: 2px 6px;
        }


        .modal-google-divider {
            display: flex; align-items: center; gap: 10px;
            margin: 14px 0 10px; color: #999; font-size: .82rem;
        }
        .modal-google-divider::before, .modal-google-divider::after {
            content: ""; flex: 1; height: 1px; background: #e2e2e2;
        }
        .modal-google-btn {
            display: flex; align-items: center; justify-content: center; gap: 10px;
            width: 100%; min-height: 48px; padding: 12px;
            border: 1px solid #dadce0; border-radius: 8px;
            background: #fff; color: #3c4043;
            font-size: .95rem; font-weight: 500; text-decoration: none;
            box-sizing: border-box;
        }
        .modal-google-btn:hover { background: #f8f9fa; }
        .modal-google-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

        /* Blurred teaser inside the registration modal */
        #paywallBar {
            position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
            background: linear-gradient(135deg, #FF69B4, #FF1493);
            padding: 12px 14px; box-shadow: 0 -4px 20px rgba(0,0,0,.3);
        }
        .paywall-bar-inner {
            display: flex; align-items: center; justify-content: center;
            gap: 12px; flex-wrap: wrap; max-width: 640px; margin: 0 auto;
            color: #fff; font-size: .9rem; font-weight: 500;
        }
        .paywall-bar-inner button {
            background: #fff; color: #FF1493; border: none; border-radius: 30px;
            padding: 9px 20px; font-family: inherit; font-size: .9rem;
            font-weight: 700; cursor: pointer; min-height: 42px; white-space: nowrap;
        }

        .modal-close {
            position: absolute; top: 10px; right: 12px; z-index: 5;
            width: 34px; height: 34px; border-radius: 50%;
            background: rgba(0,0,0,.45); color: #fff; border: none;
            font-size: 1.5rem; line-height: 1; cursor: pointer;
            display: grid; place-items: center; padding: 0;
        }
        .modal-close:hover { background: rgba(0,0,0,.65); }
        /* U registrace ma byt krizek nenapadny - neni to cesta, kterou chceme
           nabizet, jen pojistka */
        .registration-modal .modal-close {
            width: 24px; height: 24px; font-size: 1.05rem;
            background: rgba(0,0,0,.22); opacity: .7;
        }

        .reg-photo-teaser {
            position: relative;
            width: calc(100% + 60px);
            margin: -30px -30px 18px;
            height: 150px;
            overflow: hidden;
            border-radius: 20px 20px 0 0;
        }
        .reg-photo-teaser img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 20%;
            filter: blur(2px);   /* fotka uz prichazi rozmazana ze serveru */
            transform: scale(1.15);
        }
        .reg-photo-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,.25);
            color: #fff;
            font-weight: 600;
            font-size: .95rem;
            text-shadow: 0 2px 8px rgba(0,0,0,.4);
        }
        .password-hint {
            font-size: .8rem;
            opacity: .65;
            margin: -6px 0 4px;
            text-align: left;
        }

        /* Dedicated blurred teaser photo section */
        .paywall-photo-teaser {
            position: relative;
            width: 100%;
            height: 200px;
            overflow: hidden;
        }

        .paywall-photo-teaser img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 20%;
            filter: blur(2px);   /* fotka uz prichazi rozmazana ze serveru */
            transform: scale(1.18);
            animation: photoReveal 0.8s ease-out;
        }

        .paywall-photo-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(
                180deg,
                rgba(42, 42, 62, 0.15) 0%,
                rgba(42, 42, 62, 0.1) 50%,
                rgba(30, 30, 46, 0.7) 100%
            );
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .paywall-photo-overlay i {
            font-size: 2em;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
            animation: lockPulse 2s ease-in-out infinite;
        }

        .paywall-photo-overlay span {
            font-size: 0.9em;
            color: rgba(255, 255, 255, 0.85);
            font-weight: 600;
            text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        @keyframes photoReveal {
            /* Konec animace musi sedet se statickou hodnotou v .paywall-photo-teaser img,
               jinak by fotku na konci rozmazala zpatky na puvodnich 26 px. */
            from { opacity: 0; filter: blur(10px); transform: scale(1.3); }
            to { opacity: 1; filter: blur(2px); transform: scale(1.18); }
        }

        @keyframes lockPulse {
            0%, 100% { transform: scale(1); opacity: 0.9; }
            50% { transform: scale(1.1); opacity: 1; }
        }

        .card-header i {
            font-size: 2em;
            margin-bottom: 10px;
            display: block;
            opacity: 0.9;
        }

        .card-header h2 {
            font-size: 1.6em;
            margin: 0 0 8px 0;
            font-weight: 700;
            letter-spacing: -0.02em;
        }

        .card-header .limit-message {
            font-size: 0.9em;
            color: rgba(255, 255, 255, 0.7);
            margin: 0;
            line-height: 1.4;
        }

        .card-content {
            padding: 24px 24px 20px;
            overflow-y: auto;
            max-height: calc(100vh - 200px);
        }

        .limit-message {
            text-align: center;
            font-size: 1.1em;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .special-offer-badge {
            background: linear-gradient(135deg, #FF4E50, #F9D423);
            color: white;
            padding: 10px 15px;
            border-radius: 30px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 15px;
            font-size: 1.1em;
            position: relative;
            box-shadow: 0 4px 10px rgba(255, 78, 80, 0.3);
            transform: rotate(-2deg);
        }

        .special-offer-badge span {
            display: block;
            animation: pulse 1.5s infinite;
        }

        /* Price Block */
        .price-block {
            background: transparent;
            padding: 4px 0 0 0;
            margin: 0 0 20px 0;
            text-align: center;
        }

        .price-main {
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 6px;
        }

        .price-block .amount {
            font-size: 2.8em;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.02em;
        }

        .price-block .period {
            font-size: 1.1em;
            color: rgba(255, 255, 255, 0.5);
            font-weight: 400;
        }

        .price-anchor {
            font-size: 0.85em;
            color: rgba(255, 255, 255, 0.4);
            margin: 4px 0 0 0;
            font-style: normal;
        }

        /* Trust Signals */
        .trust-signals {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 4px;
            font-size: 0.78em;
            color: rgba(255, 255, 255, 0.35);
        }

        .trust-signals i {
            margin-right: 4px;
        }

        /* Button */
        .button-container {
            text-align: center;
            margin: 0 0 22px 0;
        }

        .upgrade-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 15px 24px;
            background: linear-gradient(135deg, #c8956c, #b07a52);
            color: #fff;
            font-size: 1.15em;
            font-weight: 700;
            border: none;
            border-radius: 14px;
            text-decoration: none;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            box-shadow: 0 4px 20px rgba(200, 149, 108, 0.35);
        }

        .upgrade-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 24px rgba(200, 149, 108, 0.45);
        }

        .upgrade-button:active {
            transform: translateY(0);
        }

        .upgrade-button span {
            color: #fff;
        }

        .upgrade-button i {
            font-size: 0.9em;
            color: #fff;
        }

        .premium-features {
            list-style: none;
            padding: 0;
            margin: 0 0 16px 0;
        }

        .premium-features li {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
            font-size: 0.95em;
            color: rgba(255, 255, 255, 0.75);
            padding: 0;
        }

        .premium-features li i {
            color: #c8956c;
            font-size: 1em;
            width: 20px;
            text-align: center;
            flex-shrink: 0;
        }
        .premium-features li b { color: #c8956c; font-weight: 600; }

        .price-tag {
            text-align: center;
            margin: 20px 0;
            padding: 20px;
            background: rgba(255, 105, 180, 0.1);
            border-radius: 16px;
            border: 1px solid rgba(255, 105, 180, 0.2);
            position: relative;
        }

        .original-price {
            display: inline-block;
            color: #888;
            font-size: 1.3em;
            font-weight: 500;
            text-decoration: line-through;
            margin-right: 8px;
            position: relative;
            top: -8px;
        }

        .discount-badge {
            background: #FF4E50;
            color: white;
            font-size: 0.8em;
            padding: 4px 10px;
            border-radius: 20px;
            font-weight: bold;
            position: absolute;
            top: -10px;
            right: -10px;
            transform: rotate(5deg);
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .amount {
            font-size: 2.2em;
            font-weight: 700;
            color: var(--primary-color);
            display: block;
            line-height: 1;
        }

        .period {
            font-size: 1em;
            color: #666;
            margin-top: 5px;
        }

        .upgrade-button {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 1.2em;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            transition: all 0.3s ease;
            margin-top: 20px;
            position: sticky;
            bottom: 0;
            box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        }

        .offer-timer {
            text-align: center;
            margin-top: 12px;
            font-size: 0.9em;
            color: #666;
        }

        .offer-timer span {
            color: #FF4E50;
            font-weight: bold;
        }

        .upgrade-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
        }

        .upgrade-button i {
            transition: transform 0.3s ease;
        }

        .upgrade-button:hover i {
            transform: translateX(5px);
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        @keyframes popIn {
            0% { 
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            100% { 
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        body.payment-popup-active {
            overflow: hidden;
        }

        /* Special photo styling */
        .special-photo {
            max-width: 250px;
            height: auto;
            border-radius: 12px;
            margin-bottom: 10px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
            display: block;
        }

        .special-photo:hover {
            transform: scale(1.05);
            cursor: pointer;
        }

        /* Photo modal */
        .photo-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            animation: fadeIn 0.3s ease;
        }

        .photo-modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
        }

        .full-size-photo {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        .close-modal {
            position: absolute;
            top: -20px;
            right: -20px;
            background: var(--card-background);
            border: 2px solid var(--primary-color);
            color: var(--text-color);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(255, 105, 180, 0.4);
            transition: transform 0.2s ease;
        }

        .close-modal:hover {
            transform: scale(1.1);
        }

        /* Add mobile menu styles */
        .mobile-nav-toggle {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary-color);
            color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            border: none;
            z-index: 100;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .mobile-nav-toggle:hover {
            transform: scale(1.05);
            background: #ff4da6;
        }

        .bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: var(--card-background);
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            z-index: 100;
            align-items: center;
            justify-content: space-around;
            border-top: 1px solid var(--border-color);
            margin-top: 0;
        }

        .bottom-nav-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #666;
            text-decoration: none;
            padding: 8px;
            transition: all 0.2s ease;
        }

        .bottom-nav-btn i {
            font-size: 1.4em;
            margin-bottom: 4px;
        }

        .bottom-nav-btn span {
            font-size: 0.7em;
        }

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

        @media (max-width: 768px) {
            .chat-input {
                margin: 0 !important;
                bottom: 0px !important;
                border-bottom: 0 !important;
            }
        }

        /* Add overlay for drawer background */
        .drawer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 199;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .drawer-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Notification styles */
        .notification {
            background: var(--card-background);
            color: var(--text-color);
            border-left: 4px solid var(--primary-color);
        }

        .notification.error {
            border-left-color: #dc3545;
        }

        .notification.success {
            border-left-color: #28a745;
        }

        /* Enhanced Mobile Chat History UI for better appearance */
        @media (max-width: 768px) {
            /* Full viewport history panel */
            .chat-history {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                border-radius: 0;
                background: var(--background-color);
                margin: 0;
                padding: 0;
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }
            
            /* Pink header with back button and title */
            .history-header {
                padding: 15px 20px;
                display: flex;
                align-items: center;
                background: var(--primary-color);
                min-height: 60px;
                position: sticky;
                top: 0;
                z-index: 10;
                box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            }
            
            .history-header h2 {
                font-size: 1.3em;
                font-weight: 600;
                flex: 1;
                text-align: center;
                color: white;
                margin: 0;
            }
            
            /* Back button as a circle */
            .back-btn {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background: rgba(255,255,255,0.15);
                color: white;
                display: flex;
                align-items: center;
                justify-content: center;
                border: none;
                font-size: 1.2em;
                cursor: pointer;
            }
            
            /* Correct the New conversation button */
            .history-actions {
                padding: 15px;
                background: var(--background-color);
                border-bottom: none;
                margin-bottom: 0;
            }
            
            .new-chat-btn {
                width: 100%;
                padding: 16px;
                border-radius: 30px;
                font-size: 1.1em;
                font-weight: 500;
                background: var(--primary-color);
                color: white;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 10px;
                box-shadow: 0 2px 10px rgba(255,105,180,0.25);
            }
            
            /* Improved conversation list */
            .history-list {
                flex: 1;
                overflow-y: auto;
                padding: 15px;
                background: var(--background-color);
            }
            
            /* Conversation item styling */
            .chat-item {
                background: var(--card-background);
                border-radius: 16px;
                padding: 15px;
                margin-bottom: 15px;
                position: relative;
                overflow: hidden;
                box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            }
            
            /* No hover effects on mobile */
            .chat-item:hover {
                transform: none;
            }
            
            /* Active conversation styling */
            .chat-item.active {
                background: var(--card-background);
                border-left: 4px solid var(--primary-color);
            }
            
            /* Conversation content layout */
            .chat-item-content {
                display: flex;
                flex-direction: column;
                gap: 6px;
            }
            
            /* Title styling */
            .chat-item .title {
                font-size: 1.1em;
                font-weight: 600;
                color: var(--text-color);
            }
            
            /* Preview text styling */
            .chat-item .preview {
                font-size: 0.9em;
                color: var(--text-muted);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 90%;
            }
            
            /* Date with time styling */
            .chat-item .date {
                font-size: 0.8em;
                color: var(--text-muted);
                text-align: right;
                margin-top: 5px;
            }
            
            /* Better trash button */
            .delete-btn {
                position: absolute;
                right: 10px;
                top: 10px;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                background: rgba(220, 53, 69, 0.1);
                color: #dc3545;
                border: none;
                display: flex;
                align-items: center;
                justify-content: center;
                opacity: 0.8;
            }
            
            /* Empty state styling */
            .empty-history {
                text-align: center;
                padding: 40px 20px;
                color: var(--text-muted);
            }
            
            .empty-history i {
                font-size: 3.5em;
                margin-bottom: 20px;
                color: var(--primary-color);
                opacity: 0.5;
            }
            
            .empty-history p {
                margin-bottom: 25px;
                font-size: 1.1em;
            }
            
            /* Fix drawer overlay */
            .drawer-overlay.active {
                z-index: 199;
            }
            
            /* New message timestamp styling - matching design */
            .message::after {
                content: attr(data-time);
                position: absolute;
                bottom: -20px;
                font-size: 0.7em;
                color: var(--text-muted);
                opacity: 0.7;
            }
            
            .user-message::after {
                right: 8px;
            }
            
            .bot-message::after {
                left: 8px;
            }
        }

        /* Extra small screens */
        @media (max-width: 360px) {
            .history-header {
                padding: 12px 15px;
                min-height: 55px;
            }
            
            .history-header h2 {
                font-size: 1.2em;
            }
            
            .back-btn {
                width: 36px;
                height: 36px;
            }
            
            .new-chat-btn {
                padding: 14px;
                font-size: 1em;
            }
            
            .chat-item {
                padding: 12px;
            }
            
            .chat-item .title {
                font-size: 1em;
            }
        }

        /* Profile icon styling for desktop */
        @media (min-width: 769px) {
            .profile-link {
                display: flex;
                width: 42px;
                height: 42px;
                border-radius: 50%;
                background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
                justify-content: center;
                align-items: center;
                transition: all 0.3s ease;
                box-shadow: 0 2px 10px rgba(255, 105, 180, 0.3);
                position: relative;
            }
            
            .profile-link:hover {
                transform: translateY(-2px) scale(1.05);
                box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
                background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
            }
            
            .profile-link i {
                font-size: 1.2em;
                color: white;
            }
            
            /* Add a subtle pulse animation */
            @keyframes profilePulse {
                0%, 100% { box-shadow: 0 2px 10px rgba(255, 105, 180, 0.3); }
                50% { box-shadow: 0 2px 15px rgba(255, 105, 180, 0.5); }
            }
            
            .profile-link:hover {
                animation: profilePulse 2s ease-in-out infinite;
            }
        }

        /* Show profile icon on mobile */
        @media (max-width: 768px) {
            .profile-link {
                display: flex;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                align-items: center;
                justify-content: center;
                transition: background-color 0.2s ease;
            }
            
            .profile-link:active {
                background-color: rgba(255, 255, 255, 0.2);
            }
        }

        /* Improved responsive payment popup */
        @media (max-width: 768px) {
            .payment-requirement-overlay {
                padding: 0;
                align-items: flex-end;
            }

            .payment-requirement-card {
                width: 100%;
                max-width: 100%;
                border-radius: 20px 20px 0 0;
                border: none;
                margin-bottom: 0;
                max-height: 90vh;
                animation: slideUpPayment 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            }

            .card-header {
                padding: 24px 20px 16px;
                border-radius: 20px 20px 0 0;
            }

            .card-header h2 {
                font-size: 1.4em;
            }

            .card-content {
                padding: 20px;
                max-height: calc(90vh - 100px);
                overflow-y: auto;
            }

            .premium-features li {
                font-size: 0.9em;
                padding: 0;
                margin-bottom: 10px;
                gap: 10px;
            }

            .price-block .amount {
                font-size: 2.4em;
            }

            .trust-signals {
                gap: 12px;
                font-size: 0.72em;
            }

            /* Drag indicator at top of modal */
            .payment-requirement-card::before {
                content: '';
                position: absolute;
                top: 8px;
                left: 50%;
                transform: translateX(-50%);
                width: 36px;
                height: 4px;
                background: rgba(255, 255, 255, 0.3);
                border-radius: 2px;
                z-index: 10;
            }

            @supports (-webkit-touch-callout: none) {
                .payment-requirement-card {
                    padding-bottom: env(safe-area-inset-bottom, 15px);
                }
            }

            @keyframes slideUpPayment {
                from { transform: translateY(100%); }
                to { transform: translateY(0); }
            }
        }

        @media (max-width: 480px) {
            .payment-requirement-card {
                max-height: 92vh;
            }

            .card-header {
                padding: 20px 16px 14px;
            }

            .card-content {
                padding: 16px;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
            }

            .premium-features li {
                font-size: 0.88em;
            }

            .price-block .amount {
                font-size: 2.2em;
            }

            .upgrade-button {
                padding: 14px 20px;
                font-size: 1.05em;
            }
        }

        /* Add swipe dismiss functionality */
        .payment-requirement-card.swiping {
            transition: transform 0.2s ease;
        }

        /* Make the upgrade button fixed at the bottom of the payment popup for easier access */
        @media (max-width: 768px) {
            /* Prevent scrolling on body when payment popup is active */
            body.payment-popup-active {
                overflow: hidden !important;
                position: fixed !important;
                width: 100% !important;
                height: 100% !important;
            }

            /* Ensure the payment overlay takes up the full screen */
            .payment-requirement-overlay {
                z-index: 10000 !important;
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100vw !important;
                height: 100vh !important;
                height: 100dvh !important;
                overflow: hidden !important;
                display: flex !important;
                align-items: flex-end !important;
                justify-content: center !important;
            }

            /* Obsah karty byl uriznuty a nedal se dorolovat: .card-content mel
               max-height: calc(85vh - 120px), jenze nad nim sedi hlavicka
               (~130 px) a fotka (200 px), dohromady 330 px. Rezerva byla o dve
               stovky pixelu mensi, nez ma byt, box se proto nikdy nepretekl,
               scroll se nezapnul a spodek okna zmizel pod overflow:hidden.
               Zmereno na 375x659: 119 px obsahu bylo natrvalo nedostupnych -
               vcetne seznamu vyhod a radku o bezpecne platbe.

               Ted je karta flex sloupec: hlavicka a fotka si drzi svou vysku,
               obsah dostane presne to, co zbyde, a roluje sam. */
            .payment-requirement-card {
                padding-bottom: 20px !important;
                overflow: hidden !important;
                max-height: 85vh !important;
                max-height: 85dvh !important;
                display: flex !important;
                flex-direction: column !important;
                position: relative !important;
                width: 100% !important;
                margin-bottom: 0 !important;
                z-index: 10001 !important;
            }

            .payment-requirement-card > .card-header,
            .payment-requirement-card > .paywall-photo-teaser {
                flex: 0 0 auto !important;
            }

            .card-content {
                padding-bottom: 20px !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
                overscroll-behavior: contain !important;
                flex: 1 1 auto !important;
                min-height: 0 !important;
                max-height: none !important;
                position: relative !important;
            }

            /* Proporce. I kdyz uz obsah rolovat sel, bylo z 560px karty
               60 % dekorace (hlavicka 138 + fotka 200) a na cenu, tlacitko
               a vyhody zbylo 202 px, do kterych se clovek musel doscrollovat.
               Zmereno na 375x659; po teto uprave se vejde uplne vsechno
               a rolovat netreba vubec. */
            .payment-requirement-card {
                max-height: 92dvh !important;
            }
            .paywall-photo-teaser {
                height: min(140px, 15dvh) !important;
            }
            .card-header {
                padding: 14px 20px 12px !important;
            }
            .card-header h2 {
                font-size: 1.22em !important;
                margin: 6px 0 4px !important;
            }
            .card-header i {
                font-size: 1.5em !important;
            }
            .card-header .limit-message {
                font-size: .84em !important;
            }
            .card-content {
                padding-top: 14px !important;
            }
        }

        /* Fix zooming issue on input focus on mobile devices */
        @media (max-width: 768px) {
            /* Prevent zooming when focusing on input field */
            .chat-input input {
                font-size: 16px !important; /* Minimum font size to prevent zoom on iOS */
            }
            
            /* Ensure the viewport doesn't zoom */
            meta[name="viewport"] {
                content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no";
            }
            
            /* Maintain chat visibility when keyboard appears */
            .chat-messages {
                height: calc(100vh - 120px); /* Adjust based on your header and input sizes */
                position: relative;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            /* Fixed position for input but allow content to scroll behind it */
            .chat-input {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                background: var(--card-background);
                padding: 10px;
                z-index: 100;
            }
            
            /* Add additional JS to handle keyboard appearance */
        }

        /* Make header fixed at the top on mobile */
        @media (max-width: 768px) {
            .chat-header {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 100;
                box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            }
            
            /* Adjust the chat messages area to account for fixed header */
            .chat-messages {
                margin-top: 45px; /* Height of the header */
                padding-top: 15px;
                height: calc(100vh - 45px - 60px); /* Viewport height minus header and input heights */
            }
            
            /* Ensure main-chat container allows for fixed header */
            .main-chat {
                padding-top: 0;
                margin-top: 0;
            }

            /* Odsazeni pod fixni hlavicku mely jen .chat-messages, takze
               vse, co je nad nimi (pas napoved, banner s poctem zprav),
               se schovalo za hlavicku. Odsazeni dostane prvni z nich,
               dalsi uz navazuje normalne. */
            .tips-strip,
            .anonymous-banner {
                /* hlavicka je podle obsahu 52-63 px vysoka, 68 ji spolehlive mine */
                margin-top: 68px;
            }

            /* Odsazeni banner ztraci jen kdyz je pas napoved OPRAVDU videt.
               Driv stacilo, ze je v DOM (byt display:none), a banner tim
               zmizel pod hlavickou uplne. */
            .tips-strip.je-videt + .anonymous-banner {
                margin-top: 0;
            }

            /* Oznameni o zamitnute karte stoji uplne nahore, takze odsazeni
               pod hlavicku patri jemu a to, co nasleduje, uz navazuje.
               (Pas napoved byva schovany, takze na nej se spolehnout neda.) */
            #graceBanner {
                margin-top: 68px;
            }

            #graceBanner ~ .tips-strip,
            #graceBanner ~ .anonymous-banner {
                margin-top: 0;
            }

            /* Zpravy mely pevnou vysku pocitanou bez banneru, takze s nim
               obsah pretekal a cela stranka se posunula pod hlavicku.
               Pozor: NEplati jen pro anonymy - tridu .anonymous-banner ma
               i #freeBanner prihlaseneho neplatice, takze pravidlo dopada
               i na nej (a prebiji pripadne height u .chat-messages). */
            .tips-strip.je-videt + .chat-messages,
            .anonymous-banner + .chat-messages,
            .srdicka-vysvetleni + .chat-messages {
                margin-top: 0 !important;
                height: auto !important;
                flex: 1 1 auto;
                min-height: 0;
            }
            
            /* Ensure proper stacking with other fixed elements */
            .chat-input {
                z-index: 99;
            }
            
            /* Fix history panel layout with fixed header */
            .chat-history {
                top: 0;
                padding-top: 0;
            }
            
            .history-header {
                position: sticky;
                top: 0;
                z-index: 10;
            }
        }

        /* Payment button on mobile */
        @media (max-width: 768px) {
            .payment-requirement-overlay .upgrade-button {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 8px !important;
                position: relative !important;
                bottom: auto !important;
                left: auto !important;
                right: auto !important;
                width: 100% !important;
                height: auto !important;
                margin: 0 auto !important;
                padding: 15px 24px !important;
                border-radius: 14px !important;
                z-index: 1 !important;
                font-size: 1.1em !important;
                font-weight: 700 !important;
                text-align: center !important;
                background: linear-gradient(135deg, #c8956c, #b07a52) !important;
                color: white !important;
                border: none !important;
                text-decoration: none !important;
                box-shadow: 0 4px 20px rgba(200,149,108,0.35) !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: none !important;
            }

            .payment-requirement-overlay .upgrade-button:active {
                transform: scale(0.98) !important;
            }

            /* Druha kopie tehoz pravidla, a protoze je v souboru pozdeji,
               vyhrava - musi tedy mit stejnou vysku jako uprava vyse, jinak
               kartu zase zmensi na 85 % a obsah se nevejde. */
            .payment-requirement-card {
                padding-bottom: 20px !important;
                overflow: hidden !important;
                max-height: 92vh !important;
                max-height: 92dvh !important;
                margin-bottom: 0 !important;
            }

            .button-container {
                text-align: center !important;
                margin: 0 0 22px 0 !important;
            }

            .payment-requirement-overlay .upgrade-button span {
                color: white !important;
                font-weight: 700 !important;
            }
            
            .payment-requirement-overlay .upgrade-button i {
                color: white !important;
                margin-left: 8px !important;
                font-size: 0.9em !important;
            }
        }

        /* Extra enhancement for small screens */
        @media (max-width: 380px) {
            .upgrade-button {
                padding: 18px !important;
                font-size: 1.2em !important;
            }
        }
        
        
        /* Floating hearts animation for special moments */
        .floating-heart {
            position: fixed;
            font-size: 24px;
            pointer-events: none;
            animation: floatHeart 3s ease-out forwards;
            z-index: 9999;
        }
        
        @keyframes floatHeart {
            0% {
                opacity: 1;
                transform: translateY(0) rotate(0deg);
            }
            100% {
                opacity: 0;
                transform: translateY(-200px) rotate(360deg);
            }
        }
        
        /* Message milestone celebration */
        .milestone-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            color: white;
            padding: 30px 40px;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(255, 105, 180, 0.5);
            text-align: center;
            z-index: 10000;
            animation: celebrationPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
        }
        
        @keyframes celebrationPop {
            0% {
                transform: translate(-50%, -50%) scale(0) rotate(-180deg);
                opacity: 0;
            }
            70% {
                transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
            }
            100% {
                transform: translate(-50%, -50%) scale(1) rotate(0deg);
                opacity: 1;
            }
        }
        
        .milestone-popup h3 {
            font-size: 1.8em;
            margin-bottom: 10px;
        }
        
        .milestone-popup p {
            font-size: 1.1em;
            opacity: 0.9;
        }
        
        /* Mobile responsive milestone popup */
        @media (max-width: 768px) {
            .milestone-popup {
                width: 85%;
                padding: 25px 30px;
            }
            
            .milestone-popup h3 {
                font-size: 1.5em;
            }
            
            .milestone-popup p {
                font-size: 1em;
            }
        }
        
        @media (max-width: 480px) {
            .milestone-popup {
                width: 90%;
                padding: 20px 25px;
            }
            
            .milestone-popup h3 {
                font-size: 1.3em;
            }
            
            .milestone-popup p {
                font-size: 0.95em;
            }
        }
        
        /* Enhanced input with focus glow */
        .chat-input input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
            transition: all 0.3s ease;
        }
        
        /* Send button enhanced animation */
        .send-button {
            position: relative;
            overflow: hidden;
        }
        
        .send-button::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .send-button:active::after {
            width: 200px;
            height: 200px;
        }

        /* Empty State for Chat */
        .chat-empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            /* min-height, ne height: na nizkem displeji byl obsah vyssi nez
               kontejner a pretekal orezany nahore i dole - scroll o nem
               nevedel (Adam, mobil 26. 8.) */
            min-height: 100%;
            height: auto;
            padding: 24px 20px 40px;
            animation: fadeIn 0.5s ease;
        }

        .empty-state-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            overflow: hidden;
            border: 3px solid var(--primary-color);
            box-shadow: 0 0 30px rgba(255, 105, 180, 0.4);
            margin-bottom: 24px;
            flex-shrink: 0;   /* jinak se pri delsim obsahu zmackne do elipsy */
        }

        .empty-state-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .empty-state-greeting {
            color: var(--text-color);
            font-size: 1.2em;
            text-align: center;
            margin-bottom: 24px;
        }

        .conversation-starters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            max-width: 400px;
        }

        .starter-btn {
            background: rgba(255, 105, 180, 0.15);
            border: 1px solid var(--primary-color);
            color: var(--text-color);
            padding: 10px 18px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.95em;
            transition: all 0.2s ease;
        }

        .starter-btn:hover {
            background: linear-gradient(135deg, #FF69B4, #FF8CD4);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
        }

        .welcome-starters {
            padding-left: 57px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
            animation: fadeIn 0.5s ease;
        }

        .welcome-starters .starter-btn {
            padding: 8px 16px;
            font-size: 0.9em;
        }

        @media (max-width: 768px) {
            .welcome-starters {
                padding-left: 52px;
            }
        }
    
        /* Na uzkem displeji se titulek schovaval pod pilulku s tokeny */
        .empty-state-nudge {
            margin-top: 18px;
            font-size: 0.95em;
            color: var(--primary-color);
            animation: fadeIn 0.6s ease;
        }

        .chat-title-short { display: none; }
        @media (max-width: 768px) {
            /* Do hlavicky se na mobilu tlaci menu, titulek, odznak Online,
               vstup do „Pro moje nejblizsi", profil a pilulka se srdicky.
               Titulek jen opakuje, kde uzivatel je - ustoupi jako prvni,
               odznak Online zustava, protoze nese informaci. */
            .chat-title-full, .chat-title-short { display: none; }

            .chat-header {
                gap: 4px;
                padding-left: 8px;
                padding-right: 8px;
            }

            .chat-header h2 {
                justify-content: flex-start;
                max-width: 105px;
                min-width: 0;
                white-space: nowrap;
                overflow: hidden;
            }

            .chat-header .token-balance-display { margin-left: 0; }
        }

        /* ---- jednorazove oznameni o novinkach ---- */
        .update-notice {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .72);
            z-index: 2100;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            overflow-y: auto;
            padding: 16px 0;
            -webkit-overflow-scrolling: touch;
            animation: fadeIn .3s ease;
        }

        @media (min-height: 780px) {
            .update-notice { align-items: center; }
        }

        .update-notice-card {
            position: relative;
            background: var(--card-background);
            color: var(--text-color);
            width: 90%;
            max-width: 420px;
            border-radius: 20px;
            padding: 30px 26px 26px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
            animation: popIn .4s ease;
        }

        .update-notice-hearts {
            display: inline-block;
            background: linear-gradient(135deg, #F2C879, #E39A7B);
            color: #4a2c17;
            font-weight: 700;
            font-size: 1.25rem;
            padding: 8px 20px;
            border-radius: 50px;
            margin-bottom: 14px;
        }

        .update-notice-card h3 {
            margin: 0 0 10px;
            font-size: 1.35rem;
        }

        .update-notice-lead {
            margin: 0 0 18px;
            font-size: .97rem;
            line-height: 1.6;
            opacity: .9;
        }

        .update-notice-sub {
            margin: 0 0 12px;
            font-size: .88rem;
            opacity: .65;
        }

        .update-notice-list {
            list-style: none;
            margin: 0 0 22px;
            padding: 0;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .update-notice-list li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: .9rem;
            line-height: 1.45;
            opacity: .92;
        }

        .update-notice-list span {
            flex-shrink: 0;
            font-size: 1.05rem;
        }

        .update-notice-cta {
            display: block;
            background: linear-gradient(135deg, #FF69B4, #FF1493);
            color: #fff;
            font-weight: 600;
            text-decoration: none;
            padding: 15px;
            border-radius: 50px;
            min-height: 50px;
            line-height: 1.4;
        }

        .update-notice-later {
            display: block;
            width: 100%;
            margin-top: 10px;
            background: none;
            border: none;
            color: inherit;
            opacity: .55;
            font-size: .87rem;
            padding: 10px;
            cursor: pointer;
            font-family: inherit;
        }

        .update-notice-later:hover { opacity: .85; }

        /* Na opravdu uzkych displejich uz odznak misto nema */
        @media (max-width: 380px) {
            .chat-header h2 { display: none; }
        }

        /* Pilulka se srdicky byla absolutne umistena na right:60px a lezela
           pres vstup do „Pro moje nejblizsi" - klik na ikonu knihy trefil
           tlacitko Koupit. Ted je z ni bezna polozka radku ve vsech sirkach. */
        .chat-header .token-balance-display {
            position: static;
            transform: none;
            right: auto;
            top: auto;
            flex: 0 0 auto;
            margin-left: auto;
        }

        /* Odkaz uvnitr Elisciny zpravy (napr. do Odkryvej me pri limitu fotek) */
        .message.bot .chat-odkaz, .chat-odkaz {
            color: #ff6fb0; font-weight: 600; text-decoration: underline;
            text-underline-offset: 2px;
        }

        /* Kdyz je hlavicka plna (mobil), auto-margin pilulky nema z ceho brat
           a ikona profilu/registrace se jí dotýkala. Pevna mezera u ikony
           plati vzdycky; je tady dole, aby ji nic pozdejsiho neprebilo. */
        .chat-header .profile-link,
        .chat-header .chat-header-btn[title="Registrace"] { margin-right: 10px; }

        .chat-header .menu-btn { margin-right: auto; }


        /* Hlavicka panelu byla na vysku pres 350 px, nez zacal obsah.
           Avatar, jmeno a stav davame do jedne rady. */
        .chat-history .eliska-profile {
            display: flex;
            align-items: center;
            gap: 12px;
            text-align: left;
            margin-bottom: 18px;
        }

        .chat-history .eliska-avatar {
            width: 52px;
            height: 52px;
            margin: 0;
            flex-shrink: 0;
        }

        .chat-history .eliska-name {
            font-size: 1.15em;
            margin-bottom: 2px;
        }

        .chat-history .eliska-status-badge {
            padding: 3px 10px;
            font-size: .78rem;
        }

        /* Odznak Online je sam o sobe flex - musi zustat v rade,
           jinak se tecka postavi nad text. */
        .chat-history .eliska-status-badge {
            flex-direction: row;
            align-items: center;
        }

        /* ---- levy panel: sekce ----
           Drive tu byl jen dlouhy blok s naladami a vstup do „Pribehy a hry"
           visel nad zalozkami, kam nepatril. Ted ma panel dve rovnocenne
           sekce a pribehy jsou nahore, protoze jsou dulezitejsi nez prostredi. */
        .panel-section { margin-bottom: 22px; }

        .panel-section-title {
            font-size: .72rem;
            letter-spacing: .1em;
            text-transform: uppercase;
            opacity: .5;
            margin: 0 0 9px 2px;
            font-weight: 600;
        }

        .panel-nav {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .panel-nav-item {
            display: flex;
            align-items: center;
            gap: 11px;
            padding: 11px 12px;
            border-radius: 12px;
            background: rgba(255, 105, 180, .08);
            border: 1px solid rgba(255, 105, 180, .16);
            color: inherit;
            text-decoration: none;
            transition: background .2s ease;
        }

        .panel-nav-item:hover,
        .panel-nav-item:focus-visible {
            background: rgba(255, 105, 180, .18);
        }

        .panel-nav-icon { font-size: 1.2rem; flex-shrink: 0; }

        .panel-nav-text {
            display: flex;
            flex-direction: column;
            line-height: 1.3;
            flex: 1;
            min-width: 0;
        }

        .panel-nav-text b { font-size: .9rem; }
        .panel-nav-text small { font-size: .74rem; opacity: .62; }
        .panel-nav-item .fa-chevron-right { font-size: .78rem; opacity: .45; }

        /* Nadpis uvnitr sekci uz nese .panel-section-title */
        .panel-section .context-controls > h3 { display: none; }

        /* Na uzkem displeji se banner lamal do dvou radku */
        @media (max-width: 420px) {
            .anonymous-banner { padding: 10px 12px; gap: 8px; }
            .anonymous-banner .message-counter {
                font-size: .85em;
                white-space: nowrap;
            }
            .anonymous-banner .register-prompt-btn {
                white-space: nowrap;
                font-size: .85em;
                padding: 9px 12px;
            }
        }

/* Skryto vizualne, ale ctecky obrazovky a vyhledavace to prectou. */
.jen-pro-ctecky {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Placena brana na mobilu - kompozice
   --------------------------------------------------------------------------
   Tenhle soubor ma sedm ruznych pravidel pro vysku .payment-requirement-card
   rozhazenych po peti blocich s @media a ctyri z nich maji !important. Kazda
   oprava jinde v souboru se dala prebit necim, co je nize. Tenhle blok je
   proto uplne na konci, aby vyhral poradim.

   Co resi: karta mela 92 % vysky, takze nad ni zbyval pruh tmaveho pozadi,
   ktery vypadal jako chyba. Ted je to cely list od horni hrany dolu. Uchyt
   na tazeni (ta svetla carka nahore) nic nedelal - jen mate, ze se s oknem
   da hybat - a je pryc.
   ========================================================================== */
@media (max-width: 768px) {
    .payment-requirement-card {
        max-height: 100dvh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
    }

    .payment-requirement-card::before {
        display: none !important;
    }

    .card-header {
        padding: 18px 20px 14px !important;
        border-radius: 0 !important;
    }

    .paywall-photo-teaser {
        height: min(170px, 19dvh) !important;
    }
}

/* ==========================================================================
   Historie zprav na mobilu
   --------------------------------------------------------------------------
   .chat-messages melo height: calc(100vh - 45px - 60px). Na iOS Safari ale
   100vh pocita s vyskou VCETNE listy prohlizece, takze je o zhruba 150 px
   vyssi nez viditelna plocha. Kontejner se zpravami tim presahoval obrazovku:
   spodek zmizel za ruzovym pruhem s vyzvou k platbe a starsi zpravy byly
   mimo zaber - vypadalo to, ze historie chybi a jsou videt jen posledni dve.

   dvh pocita skutecnou viditelnou vysku. vh zustava jako zaloha pro stara
   zarizeni, ktera dvh neznaji.

   Pravidla jsou na konci souboru zamerne - .chat-messages ma v tomhle
   souboru pet ruznych definic vysky a kazda oprava jinde se dala prebit.
   ========================================================================== */
@media (max-width: 768px) {
    .chat-messages {
        height: calc(100vh - 45px - 60px);
        height: calc(100dvh - 45px - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Kdyz dole sedi pruh s vyzvou k platbe, musi mit zpravy misto nad nim -
       jinak se za nim posledni zpravy schovaji. */
    body.paywall-bar-visible .chat-messages {
        /* !important kvuli inline paddingu z adjustInputPosition: ta po
           schovani .chat-input spocita 10 px. 100 px proto, ze se pruh
           na uzkem displeji zalomi na dva radky (~97 px). */
        padding-bottom: 100px !important;
    }
}

/* ==========================================================================
   Registracni a platebni okno na nizkem displeji
   --------------------------------------------------------------------------
   POUCENI: honit se za tim, aby se vsechno veslo nad ohyb, delalo z oken
   nacpanou kasi - fotka Elisky, ktera je cely smysl okna ("Tohle uvidis"),
   se scvrkla na tmavy prouzek. Rolovat SE SMI. Dulezite je, aby hlavni vec
   (fotka + prvni pole + tlacitko) byla videt a aby to bylo hezke; zbytek
   (Google, "mam ucet") se muze dorolovat.

   Okno se proto lepi k hornimu okraji a scrolluje jako celek. Fotka zustava
   velka (160 px), pole komfortni. Podminka je na vysku, ne sirku - na
   vysokem telefonu a desktopu se nemeni nic.
   ========================================================================== */
@media (max-height: 720px) {
    /* --- registrace --- */
    #registrationModal {
        align-items: flex-start !important;
        padding: 0 !important;
        overflow-y: auto !important;
    }

    .registration-modal-content {
        margin: 0 !important;
        padding: 0 24px 20px !important;
        border-radius: 0 0 20px 20px !important;
    }

    .reg-photo-teaser {
        height: 130px !important;
        width: 100% !important;
        margin: 0 0 14px !important;
        border-radius: 0 !important;
    }

    .registration-modal-content h2,
    .registration-modal-content .reg-title {
        font-size: 1.4rem !important;
        margin: 0 0 8px !important;
    }

    .registration-modal-content p {
        font-size: .88rem !important;
        margin: 0 0 12px !important;
    }

    .registration-modal-content input {
        padding: 11px 16px !important;
        margin-bottom: 8px !important;
        font-size: 1rem !important;   /* pod 16px by iOS pri fokusu zoomoval */
    }

    .registration-modal-content button {
        padding: 12px !important;
    }

    /* Krizek splyval s fotkou - dame mu tmavy podklad, at je videt. */
    #registrationModal .modal-close,
    #registrationModal .reg-close {
        background: rgba(0,0,0,.45) !important;
        border-radius: 50% !important;
    }

    /* --- platba ---
       Volna vyska + prilepeni nahoru nechavala pod kartou pruh tmy pres pul
       obrazovky. Platebni okno je list pres celou vysku: hlavicka a fotka si
       drzi svoje, obsah dostane zbytek a roluje uvnitr. */
    .payment-requirement-card {
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .payment-requirement-overlay {
        align-items: stretch !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
    .payment-requirement-card > .card-header,
    .payment-requirement-card > .paywall-photo-teaser {
        flex: 0 0 auto !important;
    }
    .payment-requirement-card > .card-content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .paywall-photo-teaser {
        height: clamp(120px, 22dvh, 190px) !important;
    }
    .card-header {
        padding: 14px 20px 12px !important;
    }
    .card-header h2 {
        font-size: 1.25em !important;
        margin: 6px 0 4px !important;
    }
}

/* Darek "odemceno zadarmo" patri ke hre, na kterou odkazuje - je to
   stitek uvnitr jeji dlazdice a dlazdice sama se zvyrazni. Samostatna
   radka vypadala jako dalsi hra. */
.panel-nav-item.ma-zdarma {
    border: 1px solid rgba(255, 107, 157, 0.45);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.10), rgba(196, 69, 105, 0.10));
}
.zdarma-stitek {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: #fff;
    font-size: 0.76em;
    font-weight: 600;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Registrace pres Google je jeden klik, proto stoji NAD formularem
   a je vyraznejsi - na mobilu ji lide pod poli nedoscrollovali. */
.modal-google-btn.modal-google-hlavni {
    margin: 0 0 4px;
    padding: 13px 16px;
    font-weight: 600;
    font-size: 1.02em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.modal-google-divider {
    margin: 12px 0;
}


/* Pocet napsanych zprav v levem panelu. Stoji samostatne nad hrami -
   odemykaji se podle nej zapisky i roleplaye a je to cislo, ktere clovek
   sleduje sam o sobe. */
.panel-pocitadlo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 12px 14px;
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.pocitadlo-cislo {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    opacity: .95;
    font-variant-numeric: tabular-nums;
}
.pocitadlo-popis {
    font-size: .74rem;
    line-height: 1.3;
    opacity: .6;
}

/* Karta udalosti v roce (Halloween, Vanoce...) - Eliscina zvlastni zprava v chatu */
.udalost-karta .message-content {
    position: relative;
    background: linear-gradient(135deg, #fff0f6 0%, #ffe3ef 100%);
    border: 1px solid #ffb3cf;
    color: #3a2430;
    padding: 14px 16px 12px;
    /* Bez pevne sirky se bublina smrskla podle nejdelsiho slova (~55 % displeje) */
    width: 100%;
    max-width: 440px;
}
/* .message ma max 75 % - na telefonu karta vysla na sloupecek */
.message.udalost-karta { max-width: 94%; width: 100%; }
.udalost-karta .udalost-hlava { font-weight: 700; font-size: 1.02em; margin-bottom: 6px; }
.udalost-karta .message-content { position: relative; }
.udalost-karta .udalost-x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.08); color: inherit; font-size: 18px; line-height: 28px; cursor: pointer; opacity: .7; }
.udalost-karta .udalost-x:hover { opacity: 1; }
.udalost-karta .udalost-hlava { padding-right: 30px; }
.udalost-karta .udalost-text { margin: 0 0 10px; line-height: 1.45; }
.udalost-karta .udalost-darek {
    display: inline-block; background: #fff; border: 1px solid #ffb3cf; border-radius: 999px;
    padding: 6px 12px; font-weight: 700; font-size: 0.92em; color: #c44569; margin-bottom: 10px;
}
.udalost-karta .udalost-popisek { font-size: 0.85em; color: #8a5a70; margin-bottom: 6px; }
.udalost-karta .udalost-tlacitka { display: flex; flex-wrap: wrap; gap: 6px; }
.udalost-karta .udalost-btn {
    display: inline-block; border-radius: 999px; padding: 7px 12px; font-size: 0.85em; font-weight: 600;
    background: linear-gradient(135deg, #ff6b9d, #c44569); color: #fff; text-decoration: none;
}
.udalost-karta .udalost-odepsat {
    display: block; margin-top: 10px; padding: 0; background: none; border: none; font: inherit;
    font-size: 0.85em; color: #c44569; font-weight: 600; cursor: pointer; text-align: left;
}

/* Fotka pres celou obrazovku (otevriFotku v conversations.html) */
.fotka-nahled {
    position: fixed; inset: 0; z-index: 10050;
    background: rgba(10, 8, 16, 0.92);
    display: flex; align-items: center; justify-content: center;
    padding: 56px 12px 24px;
    animation: fotkaNahledIn .2s ease both;
    cursor: zoom-out;
}
.fotka-nahled img {
    max-width: min(100%, 900px); max-height: 100%;
    object-fit: contain; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    cursor: default;
}
.fotka-nahled-zavrit {
    position: absolute; top: 12px; right: 12px;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12); color: #fff;
    font-size: 28px; line-height: 1; cursor: pointer;
}
.fotka-nahled-zavrit:hover { background: rgba(255, 105, 180, .35); }
@keyframes fotkaNahledIn { from { opacity: 0; } to { opacity: 1; } }
#chatMessages img.chat-photo, #chatMessages img.special-photo { cursor: zoom-in; }
#chatMessages .bot-message > img.message-avatar { cursor: zoom-in; }

/* Uvitani po registraci: veta s prepoctem a ukazani zustatku po zavreni */
.update-notice-tip { font-size: .86em; opacity: .8; margin: 4px 0 14px; text-align: center; }
button.update-notice-cta { border: none; font: inherit; cursor: pointer; width: 100%; }
a.update-notice-later { display: block; text-align: center; text-decoration: none; }
.zvyrazneni-srdicek { animation: zvyrazneniSrdicek 1.4s ease-in-out 3; border-radius: 999px; }
@keyframes zvyrazneniSrdicek {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0); }
    50% { box-shadow: 0 0 0 6px rgba(255, 105, 180, .55); }
}

.reg-podminky { font-size: .76rem; opacity: .65; margin: 8px 0 0; text-align: center; }
.reg-podminky a { color: inherit; text-decoration: underline; }

/* Jeji tvar v uvitacich oknech - rozhodnuti „zustanu“ padne snaz, kdyz ji vidi */
.update-notice-eliska { display: block; width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 10px; border: 3px solid #FF69B4; box-shadow: 0 6px 22px rgba(255,105,180,.35); }

/* Registrace na nizkem telefonu (iPhone SE/8, 667 px): vejde se tlacitko bez posouvani */
@media (max-height: 720px) {
    .reg-photo-teaser { height: 96px !important; margin-bottom: 10px !important; }
    .registration-modal-content h2 { font-size: 1.25rem !important; margin-bottom: 6px !important; }
    .registration-modal-content .subtitle { font-size: .86rem !important; margin-bottom: 10px !important; line-height: 1.4 !important; }
    .registration-form input { padding: 11px 14px !important; margin-bottom: 8px !important; }
}

/* ---------- Prosinec: vánoční chat (Adam 9. 10. 2026) ---------- */
.advent-link { position: relative; text-decoration: none; font-size: 1.15em; display: inline-flex; align-items: center; justify-content: center; }
.advent-tecka { position: absolute; top: 3px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #FF2D55; border: 2px solid #fff; box-sizing: border-box; }
/* Lista "okenko ceka" nad chatem - jeden radek, na mobilu se nezalamuje */
.advent-lista { display: flex; align-items: center; gap: 4px; margin: 8px 12px 0; padding: 7px 6px 7px 8px; border-radius: 16px;
    background: linear-gradient(120deg, #9B1B3F 0%, #6A1238 55%, #3B0D2E 100%); border: 1px solid rgba(242,200,121,.5);
    box-shadow: 0 4px 16px rgba(120,15,45,.35); position: relative; z-index: 3; }
.advent-lista a { flex: 1; min-width: 0; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.advent-lista-ikona { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem;
    background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(242,200,121,.45); }
.advent-lista-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.advent-lista-text b { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.advent-lista-text small { font-size: .74rem; color: #F2C879; margin-top: 2px; }
.advent-lista-tl { flex: none; padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #3B0D2E;
    background: linear-gradient(135deg, #FBE3A6, #E9B95C); box-shadow: 0 2px 8px rgba(233,185,92,.4); }
.advent-lista button { flex: none; background: none; border: none; color: rgba(255,255,255,.55); font-size: 1.15rem; line-height: 1;
    cursor: pointer; width: 28px; height: 28px; padding: 0; }

/* Vanocni pozadi chatu: teply svit shora, rozostrena svetylka v rozich,
   jemne snezeni (za zpravami nic neprekryva - snih je nad nimi, ale
   ridky a pruhledny, klik projde) */
body.prosinec .chat-messages {
    background-color: var(--background-color);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27900%27 height=%27110%27 viewBox=%270 0 900 110%27%3E%3Cg fill=%27rgba(80,190,130,.10)%27%3E%3Cpolygon points=%2758,35 45,64 70,64%27/%3E%3Cpolygon points=%2758,54 42,84 73,84%27/%3E%3Cpolygon points=%2758,74 40,100 76,100%27/%3E%3C/g%3E%3Cpolygon points=%2758,35 54,48 62,48%27 fill=%27rgba(255,255,255,.25)%27/%3E%3Cg fill=%27rgba(80,190,130,.10)%27%3E%3Cpolygon points=%27185,46 174,70 195,70%27/%3E%3Cpolygon points=%27185,62 172,86 198,86%27/%3E%3Cpolygon points=%27185,78 170,100 200,100%27/%3E%3C/g%3E%3Cpolygon points=%27185,46 181,57 188,57%27 fill=%27rgba(255,255,255,.25)%27/%3E%3Cg fill=%27rgba(80,190,130,.10)%27%3E%3Cpolygon points=%27234,30 221,62 248,62%27/%3E%3Cpolygon points=%27234,51 218,82 251,82%27/%3E%3Cpolygon points=%27234,72 215,100 254,100%27/%3E%3C/g%3E%3Cpolygon points=%27234,30 230,44 239,44%27 fill=%27rgba(255,255,255,.25)%27/%3E%3Cg fill=%27rgba(80,190,130,.10)%27%3E%3Cpolygon points=%27443,52 434,74 452,74%27/%3E%3Cpolygon points=%27443,66 432,88 455,88%27/%3E%3Cpolygon points=%27443,81 430,100 456,100%27/%3E%3C/g%3E%3Cpolygon points=%27443,52 440,62 446,62%27 fill=%27rgba(255,255,255,.25)%27/%3E%3Cg fill=%27rgba(80,190,130,.10)%27%3E%3Cpolygon points=%27573,51 564,73 583,73%27/%3E%3Cpolygon points=%27573,66 562,88 585,88%27/%3E%3Cpolygon points=%27573,80 560,100 587,100%27/%3E%3C/g%3E%3Cpolygon points=%27573,51 570,61 577,61%27 fill=%27rgba(255,255,255,.25)%27/%3E%3Cg fill=%27rgba(80,190,130,.10)%27%3E%3Cpolygon points=%27622,21 607,57 637,57%27/%3E%3Cpolygon points=%27622,45 603,80 640,80%27/%3E%3Cpolygon points=%27622,68 600,100 643,100%27/%3E%3C/g%3E%3Cpolygon points=%27622,21 617,37 627,37%27 fill=%27rgba(255,255,255,.25)%27/%3E%3Cg fill=%27rgba(80,190,130,.10)%27%3E%3Cpolygon points=%27794,49 784,72 804,72%27/%3E%3Cpolygon points=%27794,64 782,87 806,87%27/%3E%3Cpolygon points=%27794,80 780,100 808,100%27/%3E%3C/g%3E%3Cpolygon points=%27794,49 791,59 797,59%27 fill=%27rgba(255,255,255,.25)%27/%3E%3Cpath d=%27M0,100 Q225,92 450,100 T900,100 V110 H0 Z%27 fill=%27rgba(255,255,255,.07)%27/%3E%3C/svg%3E"),
        radial-gradient(circle 10px at 5% 7%, rgba(255,214,140,.6), transparent 100%),
        radial-gradient(circle 16px at 13% 3%, rgba(255,80,115,.4), transparent 100%),
        radial-gradient(circle 7px at 21% 10%, rgba(255,214,140,.55), transparent 100%),
        radial-gradient(circle 13px at 33% 2%, rgba(90,210,140,.3), transparent 100%),
        radial-gradient(circle 6px at 45% 6%, rgba(255,214,140,.5), transparent 100%),
        radial-gradient(circle 11px at 58% 3%, rgba(255,80,115,.35), transparent 100%),
        radial-gradient(circle 8px at 69% 8%, rgba(255,214,140,.55), transparent 100%),
        radial-gradient(circle 15px at 80% 4%, rgba(255,214,140,.45), transparent 100%),
        radial-gradient(circle 18px at 93% 10%, rgba(90,210,140,.3), transparent 100%),
        radial-gradient(ellipse 100% 320px at 50% -90px, rgba(200,30,70,.38), transparent 72%),
        radial-gradient(circle 340px at -60px 100%, rgba(30,140,85,.2), transparent 70%),
        radial-gradient(circle 340px at calc(100% + 60px) 92%, rgba(242,180,90,.2), transparent 70%);
    background-repeat: repeat-x, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: left bottom, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    background-size: 900px 110px, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto;
}
.snih { position: fixed; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.snih::before, .snih::after { content: ''; position: absolute; left: 0; right: -60px; top: -380px; height: calc(100% + 380px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27320%27 height=%27320%27%3E%3Ccircle cx=%2730%27 cy=%2740%27 r=%272.2%27 fill=%27white%27/%3E%3Ccircle cx=%27120%27 cy=%27150%27 r=%271.6%27 fill=%27white%27/%3E%3Ccircle cx=%27210%27 cy=%2770%27 r=%272.6%27 fill=%27white%27/%3E%3Ccircle cx=%27280%27 cy=%27230%27 r=%271.8%27 fill=%27white%27/%3E%3Ccircle cx=%2770%27 cy=%27270%27 r=%272.2%27 fill=%27white%27/%3E%3Ccircle cx=%27170%27 cy=%27300%27 r=%271.4%27 fill=%27white%27/%3E%3Ccircle cx=%27250%27 cy=%2715%27 r=%271.5%27 fill=%27white%27/%3E%3Ccircle cx=%2715%27 cy=%27180%27 r=%271.8%27 fill=%27white%27/%3E%3Cg stroke=%27white%27 stroke-width=%271.3%27 stroke-linecap=%27round%27 opacity=%270.9%27%3E%3Cline x1=%27154.0%27 y1=%2795.0%27 x2=%27166.0%27 y2=%2795.0%27/%3E%3Cline x1=%27157.0%27 y1=%2789.8%27 x2=%27163.0%27 y2=%27100.2%27/%3E%3Cline x1=%27163.0%27 y1=%2789.8%27 x2=%27157.0%27 y2=%27100.2%27/%3E%3C/g%3E%3Cg stroke=%27white%27 stroke-width=%271.3%27 stroke-linecap=%27round%27 opacity=%270.8%27%3E%3Cline x1=%2755.5%27 y1=%27205.0%27 x2=%2764.5%27 y2=%27205.0%27/%3E%3Cline x1=%2757.8%27 y1=%27201.1%27 x2=%2762.2%27 y2=%27208.9%27/%3E%3Cline x1=%2762.2%27 y1=%27201.1%27 x2=%2757.8%27 y2=%27208.9%27/%3E%3C/g%3E%3Cg stroke=%27white%27 stroke-width=%271.3%27 stroke-linecap=%27round%27 opacity=%270.85%27%3E%3Cline x1=%27285.0%27 y1=%27140.0%27 x2=%27295.0%27 y2=%27140.0%27/%3E%3Cline x1=%27287.5%27 y1=%27135.7%27 x2=%27292.5%27 y2=%27144.3%27/%3E%3Cline x1=%27292.5%27 y1=%27135.7%27 x2=%27287.5%27 y2=%27144.3%27/%3E%3C/g%3E%3C/svg%3E"); background-repeat: repeat; will-change: transform; }
.snih::before { opacity: .32; background-size: 380px 380px; animation: snih 30s linear infinite; }
.snih::after { display: none; }
/* Zpravy nad snehem - snih nesmi padat pres text */
body.prosinec .chat-messages > * { z-index: 3; }
body.prosinec .chat-messages > .typing-indicator, body.prosinec .chat-messages > .empty-state { position: relative; }
@keyframes snih { to { transform: translate3d(-40px, 380px, 0); } }
@media (prefers-reduced-motion: reduce) { .snih::before, .snih::after { animation: none; } }
/* Svetylka na spodnim okraji hlavicky (.chat-header uz je fixed/relative - nemenit, na mobilu je fixni) */
body.prosinec .chat-header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; pointer-events: none; z-index: 1;
    background:
        radial-gradient(ellipse 4px 5.5px at 12px 6px, #FFD27A 85%, transparent 100%) 0 0 / 72px 12px,
        radial-gradient(ellipse 4px 5.5px at 36px 6px, #FF3B6B 85%, transparent 100%) 0 0 / 72px 12px,
        radial-gradient(ellipse 4px 5.5px at 60px 6px, #43D08A 85%, transparent 100%) 0 0 / 72px 12px;
    filter: drop-shadow(0 0 4px rgba(255,210,120,.9));
    animation: svetylka 2.6s ease-in-out infinite;
}
@keyframes svetylka { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { body.prosinec .chat-header::after { animation: none; } }
/* Na mobilu je hlavicka fixni - lista adventu musi pod ni (jako pas napoved) */
@media (max-width: 768px) {
    .advent-lista { margin-top: 68px; }
    .advent-lista ~ .tips-strip, .advent-lista ~ .anonymous-banner { margin-top: 0; }
    .snih { top: 60px; bottom: 70px; }
    /* zpravy na mobilu sahaji pod pole psani - stromky nad nej */
    body.prosinec .chat-messages { background-position: left bottom 74px, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
}
/* Dlazdice adventu v menu chatu */
.advent-dlazdice { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 12px 12px 12px 12px; border-radius: 18px;
    color: #fff; text-decoration: none; position: relative; overflow: hidden;
    background: linear-gradient(125deg, #9B1B3F 0%, #6A1238 50%, #2E0B26 100%); border: 1px solid rgba(242,200,121,.55);
    box-shadow: 0 6px 18px rgba(142,21,56,.35); }
.advent-dlazdice::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: radial-gradient(1.5px 1.5px at 20px 15px, #fff, transparent), radial-gradient(1px 1px at 90px 60px, #fff, transparent),
                      radial-gradient(1.5px 1.5px at 160px 22px, #fff, transparent), radial-gradient(1px 1px at 220px 64px, #fff, transparent),
                      radial-gradient(circle 60px at 100% 0, rgba(242,200,121,.25), transparent 70%); }
.advent-dlazdice-foto { flex: none; width: 52px; height: 52px; border-radius: 50%; padding: 2px; position: relative;
    background: linear-gradient(135deg, #FBE3A6, #E9B95C); }
.advent-dlazdice-foto img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 2px solid #5A0F32; box-sizing: border-box; }
.advent-dlazdice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; line-height: 1.25; }
.advent-dlazdice-stitek { font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: #F2C879; font-weight: 600; }
.advent-dlazdice-text b { font-size: .98rem; margin-top: 2px; }
.advent-dlazdice-text small { font-size: .76rem; color: rgba(255,255,255,.72); margin-top: 1px; }
.advent-dlazdice-tl { flex: none; position: relative; padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #3B0D2E;
    background: linear-gradient(135deg, #FBE3A6, #E9B95C); }
.advent-dlazdice .fa-chevron-right { color: #F2C879; position: relative; }
.advent-dlazdice.ceka .fa-chevron-right { display: none; }
/* Na pocitaci je menu uzke (320 px) - bez tlacitka, jen sipka; snih
   jen nad chatem, menu ma vlastni pozadi */
@media (min-width: 769px) {
    .advent-dlazdice { gap: 10px; padding: 11px 10px; }
    .advent-dlazdice-foto { width: 46px; height: 46px; }
    .advent-dlazdice-tl { display: none; }
    .advent-dlazdice.ceka .fa-chevron-right { display: inline-block; }
    body.prosinec .chat-history { position: relative; z-index: 4; }
}
.advent-dlazdice.ceka { animation: adventTep 2.4s ease-in-out infinite; }
@keyframes adventTep { 50% { box-shadow: 0 6px 26px rgba(242,200,121,.5); } }
@media (prefers-reduced-motion: reduce) { .advent-dlazdice.ceka { animation: none; } }
/* Oznameni adventu (1.–23. 12., kazdemu jednou) */
.advent-oznameni { position: fixed; inset: 0; z-index: 3000; background: rgba(10,4,14,.78); display: flex;
    align-items: center; justify-content: center; padding: 14px; }
.advent-ozn-okno { position: relative; width: 100%; max-width: 420px; max-height: 94vh; overflow-y: auto; border-radius: 22px;
    background: linear-gradient(170deg, #3a1230 0%, #1d0f22 55%, #140a18 100%); border: 1px solid rgba(242,200,121,.5);
    box-shadow: 0 20px 60px rgba(0,0,0,.55); color: #f5eef8; }
.advent-ozn-foto { height: 250px; background-size: cover; background-position: center 30%; border-radius: 21px 21px 0 0; position: relative; }
.advent-ozn-foto::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 55%, #2a1028 100%); }
.advent-ozn-telo { padding: 2px 18px 18px; }
.advent-ozn-stitek { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #F2C879;
    border: 1px solid rgba(242,200,121,.5); border-radius: 999px; padding: 3px 10px; margin: -14px 0 8px; position: relative; background: #2a1028; }
.advent-ozn-telo h3 { font-size: 1.3rem; margin: 0 0 6px; line-height: 1.25; }
.advent-ozn-telo p { font-size: .92rem; line-height: 1.5; margin: 0 0 10px; opacity: .92; }
.advent-ozn-telo ul { list-style: none; padding: 0; margin: 0 0 10px; }
.advent-ozn-telo li { font-size: .88rem; line-height: 1.45; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.advent-ozn-telo li { display: flex; gap: 10px; align-items: flex-start; }
.advent-ozn-telo li > span { flex: none; width: 22px; text-align: center; }
@media (max-height: 860px) {
    .advent-ozn-foto { height: 190px; background-position: center 22%; }
    .advent-ozn-telo h3 { font-size: 1.18rem; }
    .advent-ozn-telo p, .advent-ozn-telo li { font-size: .84rem; }
    .advent-ozn-telo li { padding: 4px 0; }
    .advent-ozn-tl { padding: 12px; }
}
.advent-ozn-telo li:last-child { border-bottom: none; }
.advent-ozn-telo b { color: #fff; }
.advent-ozn-pozn { font-size: .82rem !important; font-style: italic; color: #F2C879; }
.advent-ozn-tl { display: block; text-align: center; padding: 14px; border-radius: 14px; color: #fff; font-weight: 700; font-size: 1rem;
    text-decoration: none; background: linear-gradient(135deg, #FF69B4, #E8117F); box-shadow: 0 8px 22px rgba(232,17,127,.4); }
.advent-ozn-pozdeji { display: block; width: 100%; margin-top: 8px; background: none; border: none; color: rgba(255,255,255,.6);
    font: inherit; font-size: .88rem; padding: 8px; cursor: pointer; }
.advent-ozn-zavrit { position: absolute; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(0,0,0,.45); color: #fff; font-size: 1.3rem; cursor: pointer; }

/* ---------- Okna prodejni cesty (Adam 10. 10. 2026): stejny styl jako uvod -
   tmava noc, ruzova a zlata, fotky Elisky. Prebiji starsi pravidla vyse. ---------- */
/* Zed po zpravach zdarma */
.payment-requirement-card.pw { background: linear-gradient(175deg, #2a1230 0%, #170d20 55%, #120a18 100%) !important;
    border: 1px solid rgba(255,95,162,.35) !important; color: #F7EFF6; padding: 0 !important; overflow-x: hidden; }
.pw .pw-hlava { position: relative; height: 230px; overflow: hidden; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pw .pw-foto { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.pw .pw-hlava::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,10,24,.15) 0%, transparent 40%, #24102b 100%); }
.pw .pw-bublina { position: absolute; left: 16px; bottom: 18px; z-index: 2; max-width: 78%; padding: 10px 14px; border-radius: 18px; border-bottom-left-radius: 5px;
    background: rgba(38,26,50,.92); border: 1px solid rgba(255,255,255,.12); font-size: .9rem; line-height: 1.35; color: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.pw .modal-close { z-index: 3; background: rgba(0,0,0,.45) !important; color: #fff !important; }
.pw .card-content { padding: 4px 20px 20px !important; }
.pw .pw-nadpis { font-size: 1.35rem; font-weight: 700; margin: 6px 0 6px; color: #fff; text-align: center; }
.pw .pw-text { font-size: .92rem; line-height: 1.5; color: rgba(247,239,246,.78); text-align: center; margin: 0 0 14px; }
.pw .pw-soukrome { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; margin-bottom: 16px;
    background: rgba(255,95,162,.1); border: 1px solid rgba(255,95,162,.3); }
.pw .pw-nahledy { display: flex; flex: none; }
.pw .pw-nahledy img { width: 40px; height: 52px; object-fit: cover; border-radius: 9px; border: 2px solid #24102b; margin-left: -12px; }
.pw .pw-nahledy img:first-child { margin-left: 0; transform: rotate(-6deg); }
.pw .pw-nahledy img:last-child { transform: rotate(6deg); }
.pw .pw-soukrome-text { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.pw .pw-soukrome-text b { font-size: .9rem; color: #fff; }
.pw .pw-soukrome-text span { font-size: .8rem; color: #F2C879; }
.pw .price-block { text-align: center; margin-bottom: 14px; background: none !important; border: none !important; padding: 0 !important; }
.pw .price-main { color: #fff !important; }
.pw .price-stara { font-size: 1.2em; font-weight: 600; opacity: .55; text-decoration: line-through; margin-right: 8px; vertical-align: middle; }
.pw .price-main .amount { color: #fff !important; -webkit-text-fill-color: #fff; }
.pw .price-main .period { color: rgba(247,239,246,.7) !important; }
.pw .price-eur { display: inline-block; margin-left: 8px; font-size: .62em; opacity: .65; white-space: nowrap; vertical-align: middle; }
.pw .price-anchor { color: rgba(247,239,246,.65) !important; font-size: .8rem !important; margin: 4px 0 0 !important; }
.pw .price-odpocet { margin: 6px 0 0; font-size: .82rem; font-weight: 600; color: #F2C879; }
.pw .price-odpocet span { font-variant-numeric: tabular-nums; }
.pw .upgrade-button { background: linear-gradient(135deg, #FF5FA2, #E8117F) !important; color: #fff !important; border-radius: 999px !important;
    box-shadow: 0 12px 30px rgba(232,17,127,.45) !important; border: none !important; }
.pw .premium-features { margin: 16px 0 12px !important; }
.pw .premium-features li { color: rgba(247,239,246,.85) !important; font-size: .88rem !important; }
.pw .premium-features li i { color: #FF8CC0 !important; }
.pw .premium-features b { color: #fff; }
.pw .trust-signals { color: rgba(247,239,246,.55) !important; font-size: .76rem !important; }
@media (max-height: 760px) { .pw .pw-hlava { height: 160px; } .pw .premium-features li { font-size: .82rem !important; } }
/* registrace: vlastni odsazeni, at fotka sedi pres celou sirku karty */
.registration-modal-content.rg { padding: 0 24px 22px !important; }
.rg .rg-hlava { margin-left: -24px !important; margin-right: -24px !important; width: auto !important; }

/* Registrace po 3 zpravach */
.registration-modal-content.rg { background: linear-gradient(175deg, #2a1230 0%, #170d20 60%, #120a18 100%) !important;
    border: 1px solid rgba(255,95,162,.35) !important; color: #F7EFF6; padding-top: 0 !important; overflow-x: hidden; }
.rg .rg-hlava { position: relative; height: 190px !important; margin: 0 -24px 14px !important; border-radius: 0 !important; overflow: hidden !important; }
.rg .rg-hlava > img#regTeaserPhoto { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; border-radius: 0; filter: none !important; transform: none !important; }
.rg .rg-hlava .reg-photo-overlay { inset: 0; display: flex !important; align-items: flex-end !important; justify-content: flex-start !important;
    padding: 0 16px 14px !important; background: linear-gradient(180deg, transparent 45%, rgba(36,16,43,.85) 100%) !important; border-radius: 0; }
.rg .rg-hlava .reg-photo-overlay span { font-size: .85rem !important; font-weight: 600; color: #fff !important; text-shadow: none;
    background: rgba(38,26,50,.92); border: 1px solid rgba(255,255,255,.12); padding: 8px 12px; border-radius: 16px; border-bottom-left-radius: 5px; }
.rg h2 { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; font-size: 1.4rem !important; margin-bottom: 6px !important; }
.rg .subtitle { color: rgba(247,239,246,.75) !important; }
.rg .rg-dary { margin: 0 0 14px !important; font-size: .82rem !important; font-weight: 600; color: #F2C879 !important; text-align: center; }
.rg .register-btn { background: linear-gradient(135deg, #FF5FA2, #E8117F) !important; border-radius: 999px !important; box-shadow: 0 10px 26px rgba(232,17,127,.4); }
.rg .modal-google-btn { border-radius: 999px !important; }
.rg .registration-form input { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.16) !important; color: #fff !important; border-radius: 12px !important; }
.rg .login-link, .rg .reg-podminky { color: rgba(247,239,246,.6) !important; }
.rg .modal-close { z-index: 3; background: rgba(0,0,0,.45) !important; color: #fff !important; }
@media (max-width: 480px) { .rg .rg-hlava { height: 170px !important; } }
@media (max-height: 700px) { .rg .rg-hlava { height: 120px !important; } }

/* Uvitani po registraci / po zaplaceni - nahore fotka */
.update-notice-card.s-fotkou { padding-top: 0 !important; overflow: hidden; }
.update-notice-card.s-fotkou .un-foto { height: 170px; margin: 0 -26px; background-size: cover; background-position: center 22%; position: relative; }
.update-notice-card.s-fotkou .un-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--card-background, #2a2433)); }
/* Fotka nahore je hlavni - druha tvar pod ni by byla navic */
.update-notice-card.s-fotkou .update-notice-eliska { display: none !important; }
.update-notice-card.s-fotkou .update-notice-hearts { margin-top: -26px !important; position: relative; z-index: 1; }
.update-notice-card.s-fotkou .modal-close { z-index: 3; background: rgba(0,0,0,.45) !important; color: #fff !important; }

/* Zed na notebooku: cela karta se vejde do okna, obsah pod fotkou se posouva */
.payment-requirement-card.pw { max-height: 94vh !important; height: auto !important; display: flex !important; flex-direction: column; }
.pw .pw-hlava { flex: none; }
.pw .card-content { flex: 1 1 auto; min-height: 0; overflow-y: auto !important; }
@media (max-height: 820px) and (min-width: 769px) { .pw .pw-hlava { height: 150px; } }
/* Registrace na notebooku (nizke okno): mensi fotka, at je videt i „Máš už účet?“ */
@media (max-height: 820px) and (min-width: 769px) { .rg .rg-hlava { height: 130px !important; } .rg .registration-form input { padding: 10px 14px !important; } }
#registrationModal .registration-modal-content.rg { max-height: 96vh; max-height: 96dvh; overflow-y: auto; }

/* ---------- Novy kabat chatu (Adam 10. 10. 2026): barvy a styl jako uvodni stranka ---------- */
.chat-header { background: linear-gradient(180deg, rgba(34,20,44,.97), rgba(22,13,30,.97)) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.35) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chat-header h2, .chat-header .chat-title-full, .chat-header .chat-title-short { color: #fff !important; -webkit-text-fill-color: #fff; text-shadow: none !important; font-weight: 700; }
.chat-header .eliska-status { background: rgba(59,214,122,.12) !important; border: 1px solid rgba(59,214,122,.3) !important; color: #9BE8BC !important; }
.chat-header-btn { background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #fff !important; box-shadow: none !important; }
.chat-header-btn:hover { background: rgba(255,95,162,.18) !important; border-color: rgba(255,95,162,.45) !important; }
.chat-header .menu-btn .bar, .chat-header .menu-btn .bar::before, .chat-header .menu-btn .bar::after { background: #fff !important; }
/* Profil uplne vpravo, za srdicky - driv visel mezi nadpisem a srdicky */
.chat-header .profile-link { order: 20; }
.chat-header .token-balance-display { order: 10; }
/* Srdicka: tmava pilulka se zlatym cislem a ruzovym Koupit */
.chat-header .token-balance-display { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(242,200,121,.35) !important; border-radius: 999px !important;
    padding: 4px 4px 4px 12px !important; box-shadow: none !important; gap: 10px !important; }
.chat-header .token-balance-display .token-icon { font-size: 1.05rem !important; animation: none !important; }
.chat-header .token-balance-display .token-label { color: rgba(242,200,121,.75) !important; font-size: .6rem !important; letter-spacing: .08em; }
.chat-header .token-balance-display .token-amount, .chat-header .token-balance-display #token-amount-anon { color: #F2C879 !important; -webkit-text-fill-color: #F2C879; font-weight: 800 !important; }
.chat-header .buy-tokens-btn { background: linear-gradient(135deg, #FF5FA2, #E8117F) !important; color: #fff !important; border: none !important; border-radius: 999px !important;
    box-shadow: 0 6px 16px rgba(232,17,127,.35) !important; font-weight: 700 !important; }
body.prosinec .chat-header::after { bottom: 0; }
/* Karta udalosti a ukazatel nalady - doted svetle ruzove, ted jako zbytek (Adam 10. 10. 2026) */
.udalost-karta .message-content { background: linear-gradient(160deg, #2e1636 0%, #1d1026 100%) !important; border: 1px solid rgba(255,95,162,.45) !important; color: #F2EAF3 !important; }
.udalost-karta .udalost-hlava { color: #fff; }
.udalost-karta .udalost-darek { background: rgba(242,200,121,.12) !important; border-color: rgba(242,200,121,.45) !important; color: #F2C879 !important; }
.udalost-karta .udalost-popisek { color: rgba(242,234,243,.6) !important; }
.udalost-karta .udalost-btn { background: linear-gradient(135deg, #FF5FA2, #E8117F) !important; }
.udalost-karta .udalost-odepsat { color: #FF8CC0 !important; }
.current-mood-indicator { background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,95,162,.3) !important; }

/* Pozadi chatu podle prostredi (Adam 10. 10. 2026): rozmazane fotky se
   nelibily - misto nich jemna tapeta z linkovych ikonek v barve mista
   (hrnek, palmy, popcorn...; emoji se v CSS pozadi nevykresli) a barevny nadech. Bez animaci, text se cte
   jako na ciste tmave. V prosinci ma prednost vanocni pozadi. */
body:not(.prosinec) .chat-messages {
    background-color: #130c1b !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27360%27 height=%27360%27%3E%3Cg fill=%27none%27 stroke=%27%23FF8CC0%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 opacity=%27.14%27%3E%3Cg transform=%27translate(36.2 46.2) rotate(9 13.8 13.8) scale(1.15)%27%3E%3Cpath d=%27M12 20s-7-4.4-9.2-8.6A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 9.2 4.8C19 15.6 12 20 12 20z%27/%3E%3C/g%3E%3Cg transform=%27translate(215.2 125.2) rotate(8 14.8 14.8) scale(1.24)%27%3E%3Cpath d=%27M12 3l1.8 6.2L20 12l-6.2 1.8L12 20l-1.8-6.2L4 12l6.2-2.8z%27/%3E%3C/g%3E%3Cg transform=%27translate(105.9 265.9) rotate(5 14.1 14.1) scale(1.18)%27%3E%3Cpath d=%27M19 14.5A7.5 7.5 0 1 1 9.5 5a6 6 0 0 0 9.5 9.5z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255,95,162,.16), transparent 70%), linear-gradient(180deg, #170d1f, #130c1b) !important;
    background-size: 360px 360px, 100% 100%, 100% 100% !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    background-position: 0 0, 0 0, 0 0 !important;
}
html[data-prostredi="cafe"] body:not(.prosinec) .chat-messages {
    background-color: #130c1b !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27280%27 height=%27280%27%3E%3Cg fill=%27none%27 stroke=%27%23E8B98C%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 opacity=%27.16%27%3E%3Cg transform=%27translate(15.0 25.0) rotate(-9 15.0 15.0) scale(1.25)%27%3E%3Cpath d=%27M4 9h12v6a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z%27/%3E%3Cpath d=%27M16 10h2a2.5 2.5 0 0 1 0 5h-2%27/%3E%3Cpath d=%27M8 3c-1 1.5 1 2 0 3.5M12 3c-1 1.5 1 2 0 3.5%27/%3E%3C/g%3E%3Cg transform=%27translate(135.0 10.0) rotate(-20 15.0 15.0) scale(1.25)%27%3E%3Cpath d=%27M4 5h7a1 1 0 0 1 1 1v13a1 1 0 0 0-1-1H4z%27/%3E%3Cpath d=%27M20 5h-7a1 1 0 0 0-1 1v13a1 1 0 0 1 1-1h7z%27/%3E%3C/g%3E%3Cg transform=%27translate(225.2 85.2) rotate(17 14.8 14.8) scale(1.23)%27%3E%3Cpath d=%27M4 19h16v-7l-16-4z%27/%3E%3Cpath d=%27M4 12l16 0%27/%3E%3Ccircle cx=%279%27 cy=%276%27 r=%271.2%27/%3E%3C/g%3E%3Cg transform=%27translate(71.2 121.2) rotate(-16 13.8 13.8) scale(1.15)%27%3E%3Cpath d=%27M4 9h12v6a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z%27/%3E%3Cpath d=%27M16 10h2a2.5 2.5 0 0 1 0 5h-2%27/%3E%3Cpath d=%27M8 3c-1 1.5 1 2 0 3.5M12 3c-1 1.5 1 2 0 3.5%27/%3E%3C/g%3E%3Cg transform=%27translate(186.8 171.8) rotate(-9 13.2 13.2) scale(1.10)%27%3E%3Cpath d=%27M12 20s-7-4.4-9.2-8.6A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 9.2 4.8C19 15.6 12 20 12 20z%27/%3E%3C/g%3E%3Cg transform=%27translate(24.3 219.3) rotate(13 15.7 15.7) scale(1.31)%27%3E%3Cpath d=%27M8 20c-2-2 2-4 0-6s2-4 0-6M12 20c-2-2 2-4 0-6s2-4 0-6M16 20c-2-2 2-4 0-6s2-4 0-6%27/%3E%3C/g%3E%3Cg transform=%27translate(126.2 241.2) rotate(-8 13.8 13.8) scale(1.15)%27%3E%3Cpath d=%27M4 5h7a1 1 0 0 1 1 1v13a1 1 0 0 0-1-1H4z%27/%3E%3Cpath d=%27M20 5h-7a1 1 0 0 0-1 1v13a1 1 0 0 1 1-1h7z%27/%3E%3C/g%3E%3Cg transform=%27translate(239.6 239.6) rotate(-4 15.4 15.4) scale(1.28)%27%3E%3Cpath d=%27M4 9h12v6a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z%27/%3E%3Cpath d=%27M16 10h2a2.5 2.5 0 0 1 0 5h-2%27/%3E%3Cpath d=%27M8 3c-1 1.5 1 2 0 3.5M12 3c-1 1.5 1 2 0 3.5%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse 90% 55% at 50% 0%, rgba(214,150,90,.20), transparent 70%), linear-gradient(180deg, #1b120f, #130c1b) !important;
    background-size: 280px 280px, 100% 100%, 100% 100% !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    background-position: 0 0, 0 0, 0 0 !important;
}
html[data-prostredi="beach"] body:not(.prosinec) .chat-messages {
    background-color: #130c1b !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27280%27 height=%27280%27%3E%3Cg fill=%27none%27 stroke=%27%237FD6E6%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 opacity=%27.16%27%3E%3Cg transform=%27translate(14.1 24.1) rotate(-11 15.9 15.9) scale(1.33)%27%3E%3Cpath d=%27M12 21c0-5 .5-9 2-12%27/%3E%3Cpath d=%27M14 9c-2-3-6-3-8-1M14 9c1-3 5-4 7-2M14 9c-1-3-4-5-6-4M14 9c3-1 6 1 6 4%27/%3E%3C/g%3E%3Cg transform=%27translate(136.1 11.1) rotate(-1 13.9 13.9) scale(1.16)%27%3E%3Cpath d=%27M2 10c2.5-2 5-2 7.5 0s5 2 7.5 0 3-1.5 5-1M2 15c2.5-2 5-2 7.5 0s5 2 7.5 0 3-1.5 5-1%27/%3E%3C/g%3E%3Cg transform=%27translate(224.7 84.7) rotate(-12 15.3 15.3) scale(1.28)%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27/%3E%3Cpath d=%27M12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M5 19l2-2M17 7l2-2%27/%3E%3C/g%3E%3Cg transform=%27translate(71.6 121.6) rotate(-6 13.4 13.4) scale(1.12)%27%3E%3Cpath d=%27M12 20c-5 0-8-4-8-8a8 8 0 0 1 16 0c0 4-3 8-8 8z%27/%3E%3Cpath d=%27M12 20V5M8 19L9 6M16 19l-1-13%27/%3E%3C/g%3E%3Cg transform=%27translate(184.1 169.1) rotate(18 15.9 15.9) scale(1.33)%27%3E%3Cpath d=%27M12 21c0-5 .5-9 2-12%27/%3E%3Cpath d=%27M14 9c-2-3-6-3-8-1M14 9c1-3 5-4 7-2M14 9c-1-3-4-5-6-4M14 9c3-1 6 1 6 4%27/%3E%3C/g%3E%3Cg transform=%27translate(26.4 221.4) rotate(-13 13.6 13.6) scale(1.13)%27%3E%3Cpath d=%27M2 10c2.5-2 5-2 7.5 0s5 2 7.5 0 3-1.5 5-1M2 15c2.5-2 5-2 7.5 0s5 2 7.5 0 3-1.5 5-1%27/%3E%3C/g%3E%3Cg transform=%27translate(124.5 239.5) rotate(17 15.5 15.5) scale(1.29)%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27/%3E%3Cpath d=%27M12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M5 19l2-2M17 7l2-2%27/%3E%3C/g%3E%3Cg transform=%27translate(241.0 241.0) rotate(-3 14.0 14.0) scale(1.17)%27%3E%3Cpath d=%27M12 20s-7-4.4-9.2-8.6A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 9.2 4.8C19 15.6 12 20 12 20z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse 100% 45% at 50% 100%, rgba(255,140,90,.16), transparent 70%), linear-gradient(180deg, #0f1c2a, #161226 60%, #1c1022) !important;
    background-size: 280px 280px, 100% 100%, 100% 100% !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    background-position: 0 0, 0 0, 0 0 !important;
}
html[data-prostredi="bed"] body:not(.prosinec) .chat-messages {
    background-color: #130c1b !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27280%27 height=%27280%27%3E%3Cg fill=%27none%27 stroke=%27%23FF9CC8%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 opacity=%27.16%27%3E%3Cg transform=%27translate(15.5 25.5) rotate(12 14.5 14.5) scale(1.21)%27%3E%3Cpath d=%27M19 14.5A7.5 7.5 0 1 1 9.5 5a6 6 0 0 0 9.5 9.5z%27/%3E%3C/g%3E%3Cg transform=%27translate(134.8 9.8) rotate(-20 15.2 15.2) scale(1.27)%27%3E%3Cpath d=%27M12 3l2.6 5.6 6 .7-4.5 4.1 1.2 6L12 16.6 6.7 19.4l1.2-6L3.4 9.3l6-.7z%27/%3E%3C/g%3E%3Cg transform=%27translate(226.6 86.6) rotate(-13 13.4 13.4) scale(1.12)%27%3E%3Crect x=%273%27 y=%277%27 width=%2718%27 height=%2710%27 rx=%274%27/%3E%3Cpath d=%27M7 12h10%27/%3E%3C/g%3E%3Cg transform=%27translate(69.6 119.6) rotate(18 15.4 15.4) scale(1.28)%27%3E%3Crect x=%278%27 y=%2710%27 width=%278%27 height=%2710%27 rx=%271%27/%3E%3Cpath d=%27M12 10V7M12 3c1.5 1.5 1.5 3 0 4-1.5-1-1.5-2.5 0-4z%27/%3E%3C/g%3E%3Cg transform=%27translate(186.3 171.3) rotate(0 13.7 13.7) scale(1.14)%27%3E%3Cpath d=%27M12 20s-7-4.4-9.2-8.6A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 9.2 4.8C19 15.6 12 20 12 20z%27/%3E%3C/g%3E%3Cg transform=%27translate(25.2 220.2) rotate(18 14.8 14.8) scale(1.23)%27%3E%3Cpath d=%27M12 3l2.6 5.6 6 .7-4.5 4.1 1.2 6L12 16.6 6.7 19.4l1.2-6L3.4 9.3l6-.7z%27/%3E%3C/g%3E%3Cg transform=%27translate(125.1 240.1) rotate(-9 14.9 14.9) scale(1.24)%27%3E%3Cpath d=%27M19 14.5A7.5 7.5 0 1 1 9.5 5a6 6 0 0 0 9.5 9.5z%27/%3E%3C/g%3E%3Cg transform=%27translate(241.5 241.5) rotate(1 13.5 13.5) scale(1.12)%27%3E%3Cpath d=%27M12 3l1.8 6.2L20 12l-6.2 1.8L12 20l-1.8-6.2L4 12l6.2-2.8z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255,95,162,.22), transparent 70%), linear-gradient(180deg, #1d0d21, #130c1b) !important;
    background-size: 280px 280px, 100% 100%, 100% 100% !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    background-position: 0 0, 0 0, 0 0 !important;
}
html[data-prostredi="movie"] body:not(.prosinec) .chat-messages {
    background-color: #130c1b !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27280%27 height=%27280%27%3E%3Cg fill=%27none%27 stroke=%27%23FF7A8E%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 opacity=%27.16%27%3E%3Cg transform=%27translate(17.3 27.3) rotate(-7 12.7 12.7) scale(1.06)%27%3E%3Cpath d=%27M6 9l1.5 11h9L18 9z%27/%3E%3Cpath d=%27M10 9l.5 11M14 9l-.5 11%27/%3E%3Ccircle cx=%278%27 cy=%277%27 r=%272%27/%3E%3Ccircle cx=%2712%27 cy=%275.5%27 r=%272.2%27/%3E%3Ccircle cx=%2716%27 cy=%277%27 r=%272%27/%3E%3C/g%3E%3Cg transform=%27translate(137.2 12.2) rotate(-19 12.8 12.8) scale(1.07)%27%3E%3Crect x=%274%27 y=%273%27 width=%2716%27 height=%2718%27 rx=%271%27/%3E%3Cpath d=%27M8 3v18M16 3v18M4 8h4M4 13h4M4 18h4M16 8h4M16 13h4M16 18h4%27/%3E%3C/g%3E%3Cg transform=%27translate(225.5 85.5) rotate(-13 14.5 14.5) scale(1.21)%27%3E%3Cpath d=%27M3 8a2 2 0 0 0 0 4 2 2 0 0 1 0 4v2h18v-2a2 2 0 0 1 0-4 2 2 0 0 0 0-4V6H3z%27/%3E%3Cpath d=%27M14 6v12%27 stroke-dasharray=%272 2%27/%3E%3C/g%3E%3Cg transform=%27translate(71.4 121.4) rotate(-4 13.6 13.6) scale(1.13)%27%3E%3Cpath d=%27M12 3l2.6 5.6 6 .7-4.5 4.1 1.2 6L12 16.6 6.7 19.4l1.2-6L3.4 9.3l6-.7z%27/%3E%3C/g%3E%3Cg transform=%27translate(186.3 171.3) rotate(11 13.7 13.7) scale(1.14)%27%3E%3Cpath d=%27M6 9l1.5 11h9L18 9z%27/%3E%3Cpath d=%27M10 9l.5 11M14 9l-.5 11%27/%3E%3Ccircle cx=%278%27 cy=%277%27 r=%272%27/%3E%3Ccircle cx=%2712%27 cy=%275.5%27 r=%272.2%27/%3E%3Ccircle cx=%2716%27 cy=%277%27 r=%272%27/%3E%3C/g%3E%3Cg transform=%27translate(24.6 219.6) rotate(-14 15.4 15.4) scale(1.28)%27%3E%3Cpath d=%27M12 20s-7-4.4-9.2-8.6A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 9.2 4.8C19 15.6 12 20 12 20z%27/%3E%3C/g%3E%3Cg transform=%27translate(127.3 242.3) rotate(5 12.7 12.7) scale(1.05)%27%3E%3Crect x=%274%27 y=%273%27 width=%2716%27 height=%2718%27 rx=%271%27/%3E%3Cpath d=%27M8 3v18M16 3v18M4 8h4M4 13h4M4 18h4M16 8h4M16 13h4M16 18h4%27/%3E%3C/g%3E%3Cg transform=%27translate(241.8 241.8) rotate(9 13.2 13.2) scale(1.10)%27%3E%3Cpath d=%27M3 8a2 2 0 0 0 0 4 2 2 0 0 1 0 4v2h18v-2a2 2 0 0 1 0-4 2 2 0 0 0 0-4V6H3z%27/%3E%3Cpath d=%27M14 6v12%27 stroke-dasharray=%272 2%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255,60,90,.18), transparent 70%), linear-gradient(180deg, #140a10, #0f0a12) !important;
    background-size: 280px 280px, 100% 100%, 100% 100% !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    background-position: 0 0, 0 0, 0 0 !important;
}
html[data-prostredi="sauna"] body:not(.prosinec) .chat-messages {
    background-color: #130c1b !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27280%27 height=%27280%27%3E%3Cg fill=%27none%27 stroke=%27%23F2B66B%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 opacity=%27.16%27%3E%3Cg transform=%27translate(15.9 25.9) rotate(-18 14.1 14.1) scale(1.17)%27%3E%3Cpath d=%27M12 21c-4 0-6-3-6-6 0-4 4-6 4-10 3 2 4 5 4 7 1-1 1.5-2 1.5-3 2 2 2.5 4 2.5 6 0 3-2 6-6 6z%27/%3E%3C/g%3E%3Cg transform=%27translate(134.8 9.8) rotate(-8 15.2 15.2) scale(1.27)%27%3E%3Cpath d=%27M12 3s6 7 6 11a6 6 0 0 1-12 0c0-4 6-11 6-11z%27/%3E%3C/g%3E%3Cg transform=%27translate(226.3 86.3) rotate(-18 13.7 13.7) scale(1.14)%27%3E%3Cpath d=%27M8 20c-2-2 2-4 0-6s2-4 0-6M12 20c-2-2 2-4 0-6s2-4 0-6M16 20c-2-2 2-4 0-6s2-4 0-6%27/%3E%3C/g%3E%3Cg transform=%27translate(69.3 119.3) rotate(18 15.7 15.7) scale(1.31)%27%3E%3Cpath d=%27M5 19C5 10 11 5 20 4c-1 9-6 15-15 15z%27/%3E%3Cpath d=%27M5 19l9-9%27/%3E%3C/g%3E%3Cg transform=%27translate(185.0 170.0) rotate(4 15.0 15.0) scale(1.25)%27%3E%3Cpath d=%27M12 21c-4 0-6-3-6-6 0-4 4-6 4-10 3 2 4 5 4 7 1-1 1.5-2 1.5-3 2 2 2.5 4 2.5 6 0 3-2 6-6 6z%27/%3E%3C/g%3E%3Cg transform=%27translate(24.1 219.1) rotate(-12 15.9 15.9) scale(1.32)%27%3E%3Cpath d=%27M12 3s6 7 6 11a6 6 0 0 1-12 0c0-4 6-11 6-11z%27/%3E%3C/g%3E%3Cg transform=%27translate(126.1 241.1) rotate(4 13.9 13.9) scale(1.16)%27%3E%3Cpath d=%27M12 20s-7-4.4-9.2-8.6A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 9.2 4.8C19 15.6 12 20 12 20z%27/%3E%3C/g%3E%3Cg transform=%27translate(241.4 241.4) rotate(1 13.6 13.6) scale(1.13)%27%3E%3Cpath d=%27M8 20c-2-2 2-4 0-6s2-4 0-6M12 20c-2-2 2-4 0-6s2-4 0-6M16 20c-2-2 2-4 0-6s2-4 0-6%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse 100% 55% at 50% 100%, rgba(242,160,80,.20), transparent 70%), linear-gradient(180deg, #1c130e, #130c1b) !important;
    background-size: 280px 280px, 100% 100%, 100% 100% !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    background-position: 0 0, 0 0, 0 0 !important;
}
html[data-prostredi="nature"] body:not(.prosinec) .chat-messages {
    background-color: #130c1b !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27280%27 height=%27280%27%3E%3Cg fill=%27none%27 stroke=%27%238FE0A8%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 opacity=%27.16%27%3E%3Cg transform=%27translate(15.0 25.0) rotate(0 15.0 15.0) scale(1.25)%27%3E%3Cpath d=%27M12 3l6 8h-3l4 6H5l4-6H6z%27/%3E%3Cpath d=%27M12 17v4%27/%3E%3C/g%3E%3Cg transform=%27translate(133.8 8.8) rotate(3 16.2 16.2) scale(1.35)%27%3E%3Cpath d=%27M5 19C5 10 11 5 20 4c-1 9-6 15-15 15z%27/%3E%3Cpath d=%27M5 19l9-9%27/%3E%3C/g%3E%3Cg transform=%27translate(226.3 86.3) rotate(0 13.7 13.7) scale(1.14)%27%3E%3Cpath d=%27M2 20l7-11 4 6 3-4 6 9z%27/%3E%3C/g%3E%3Cg transform=%27translate(70.8 120.8) rotate(-13 14.2 14.2) scale(1.18)%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%272.5%27/%3E%3Ccircle cx=%2712%27 cy=%276.5%27 r=%273%27/%3E%3Ccircle cx=%2712%27 cy=%2717.5%27 r=%273%27/%3E%3Ccircle cx=%276.5%27 cy=%2712%27 r=%273%27/%3E%3Ccircle cx=%2717.5%27 cy=%2712%27 r=%273%27/%3E%3C/g%3E%3Cg transform=%27translate(184.1 169.1) rotate(20 15.9 15.9) scale(1.33)%27%3E%3Cpath d=%27M12 3l6 8h-3l4 6H5l4-6H6z%27/%3E%3Cpath d=%27M12 17v4%27/%3E%3C/g%3E%3Cg transform=%27translate(25.4 220.4) rotate(4 14.6 14.6) scale(1.21)%27%3E%3Cpath d=%27M5 19C5 10 11 5 20 4c-1 9-6 15-15 15z%27/%3E%3Cpath d=%27M5 19l9-9%27/%3E%3C/g%3E%3Cg transform=%27translate(126.9 241.9) rotate(-9 13.1 13.1) scale(1.09)%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%272.5%27/%3E%3Ccircle cx=%2712%27 cy=%276.5%27 r=%273%27/%3E%3Ccircle cx=%2712%27 cy=%2717.5%27 r=%273%27/%3E%3Ccircle cx=%276.5%27 cy=%2712%27 r=%273%27/%3E%3Ccircle cx=%2717.5%27 cy=%2712%27 r=%273%27/%3E%3C/g%3E%3Cg transform=%27translate(239.3 239.3) rotate(-6 15.7 15.7) scale(1.31)%27%3E%3Cpath d=%27M12 20s-7-4.4-9.2-8.6A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 9.2 4.8C19 15.6 12 20 12 20z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse 90% 55% at 50% 0%, rgba(110,200,140,.16), transparent 70%), linear-gradient(180deg, #0f1714, #130c1b) !important;
    background-size: 280px 280px, 100% 100%, 100% 100% !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    background-position: 0 0, 0 0, 0 0 !important;
}
html[data-prostredi="bath"] body:not(.prosinec) .chat-messages {
    background-color: #130c1b !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27280%27 height=%27280%27%3E%3Cg fill=%27none%27 stroke=%27%239FD4FF%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 opacity=%27.16%27%3E%3Cg transform=%27translate(16.6 26.6) rotate(6 13.4 13.4) scale(1.12)%27%3E%3Cpath d=%27M3 12h18v2a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5z%27/%3E%3Cpath d=%27M6 12V6a2 2 0 0 1 4 0%27/%3E%3C/g%3E%3Cg transform=%27translate(134.3 9.3) rotate(11 15.7 15.7) scale(1.31)%27%3E%3Cpath d=%27M12 3s6 7 6 11a6 6 0 0 1-12 0c0-4 6-11 6-11z%27/%3E%3C/g%3E%3Cg transform=%27translate(227.4 87.4) rotate(5 12.6 12.6) scale(1.05)%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%272.5%27/%3E%3Ccircle cx=%2712%27 cy=%276.5%27 r=%273%27/%3E%3Ccircle cx=%2712%27 cy=%2717.5%27 r=%273%27/%3E%3Ccircle cx=%276.5%27 cy=%2712%27 r=%273%27/%3E%3Ccircle cx=%2717.5%27 cy=%2712%27 r=%273%27/%3E%3C/g%3E%3Cg transform=%27translate(71.5 121.5) rotate(-6 13.5 13.5) scale(1.12)%27%3E%3Cpath d=%27M12 3l1.8 6.2L20 12l-6.2 1.8L12 20l-1.8-6.2L4 12l6.2-2.8z%27/%3E%3C/g%3E%3Cg transform=%27translate(184.5 169.5) rotate(-1 15.5 15.5) scale(1.29)%27%3E%3Cpath d=%27M12 3s6 7 6 11a6 6 0 0 1-12 0c0-4 6-11 6-11z%27/%3E%3C/g%3E%3Cg transform=%27translate(26.6 221.6) rotate(18 13.4 13.4) scale(1.11)%27%3E%3Cpath d=%27M12 20s-7-4.4-9.2-8.6A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 9.2 4.8C19 15.6 12 20 12 20z%27/%3E%3C/g%3E%3Cg transform=%27translate(125.0 240.0) rotate(-14 15.0 15.0) scale(1.25)%27%3E%3Cpath d=%27M3 12h18v2a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5z%27/%3E%3Cpath d=%27M6 12V6a2 2 0 0 1 4 0%27/%3E%3C/g%3E%3Cg transform=%27translate(242.2 242.2) rotate(7 12.8 12.8) scale(1.07)%27%3E%3Cpath d=%27M12 3s6 7 6 11a6 6 0 0 1-12 0c0-4 6-11 6-11z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse 90% 55% at 50% 0%, rgba(130,190,255,.16), transparent 70%), linear-gradient(180deg, #0f1322, #130c1b) !important;
    background-size: 280px 280px, 100% 100%, 100% 100% !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    background-position: 0 0, 0 0, 0 0 !important;
}

/* 💭 Nevím, co napsat (Adam 10. 10. 2026): nenápadné tlačítko u pole psaní,
   panel s návrhy nad ním. Nic neodesílá - návrh se vloží do pole. */
.chat-input { position: relative; }
.navrhy-btn {
    flex: 0 0 auto; width: 40px; height: 40px; align-self: center;
    border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
    background: rgba(255,255,255,.05); font-size: 19px; line-height: 1;
    cursor: pointer; opacity: .75; transition: opacity .2s, background .2s; padding: 0;
}
.navrhy-btn:hover, .navrhy-btn:focus-visible { opacity: 1; background: rgba(255,95,162,.15); }
.navrhy-panel {
    position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); z-index: 120;
    background: #221629; border: 1px solid rgba(255,95,162,.3); border-radius: 16px;
    padding: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.5);
    display: flex; flex-direction: column; gap: 8px; max-width: 560px;
}
.navrhy-panel[hidden], .navrhy-hint[hidden] { display: none; }
.navrhy-hlava { font-size: .85rem; color: #F7EFF6; font-weight: 600; }
.navrhy-hlava span { font-weight: 400; color: rgba(247,239,246,.55); margin-left: 4px; }
.navrhy-nacitam { font-size: .9rem; color: rgba(247,239,246,.6); }
.navrh {
    text-align: left; background: rgba(255,255,255,.06); color: #F7EFF6;
    border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
    padding: 10px 14px; font-size: .95rem; cursor: pointer; font-family: inherit; line-height: 1.35;
}
.navrh:hover, .navrh:focus-visible { border-color: #FF5FA2; background: rgba(255,95,162,.12); }
.navrhy-hint {
    position: absolute; left: 14px; bottom: calc(100% + 6px); z-index: 110;
    background: #FF5FA2; color: #fff; font-size: .85rem; font-weight: 600;
    padding: 7px 12px; border-radius: 12px; box-shadow: 0 8px 22px rgba(232,17,127,.4);
    animation: navrhyHint .3s ease-out;
}
.navrhy-hint::after { content: ''; position: absolute; left: var(--sipka, 28px); top: 100%; border: 6px solid transparent; border-top-color: #FF5FA2; }
@keyframes navrhyHint { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) {
    .navrhy-btn { width: 36px; height: 36px; font-size: 17px; }
    .navrhy-panel { left: 8px; right: 8px; }
}
.navrhy-hry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.navrhy-hry > span { font-size: .82rem; color: rgba(247,239,246,.6); margin-right: 2px; }
.navrh-hra { background: rgba(255,95,162,.12); color: #FFD0E4; border: 1px solid rgba(255,95,162,.3); border-radius: 999px;
    padding: 6px 12px; font-size: .85rem; cursor: pointer; font-family: inherit; }
.navrh-hra:hover, .navrh-hra:focus-visible { background: rgba(255,95,162,.25); color: #fff; }
.starter-hry-nadpis { margin: 16px 0 8px; font-size: .9rem; color: rgba(247,239,246,.65); text-align: center; }
.conversation-starters.starter-hry { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; }
.starter-hry .starter-btn { font-size: .85rem; padding: 7px 12px; }

/* Zamčená zpráva na platební zdi (app/services/zamcena_zprava.py) */
.pw-zamcena { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 12px 14px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,95,162,.35); border-radius: 16px; text-align: left; }
.pw-zamcena img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #FF5FA2; }
.pw-z-obsah { flex: 1; min-width: 0; }
.pw-z-hlava { font-size: .78rem; font-weight: 700; color: #FF8CC0; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.pw-z-text { font-size: .95rem; line-height: 1.4; color: #F7EFF6; max-height: 4.2em; overflow: hidden; position: relative; }
.pw-z-rozmazane { filter: blur(5px); user-select: none; -webkit-user-select: none; opacity: .85; }
.pw-z-pise { display: inline-flex; gap: 4px; padding: 6px 0; }
.pw-z-pise i { width: 7px; height: 7px; border-radius: 50%; background: #FF8CC0; animation: pwZPise 1.2s infinite ease-in-out; }
.pw-z-pise i:nth-child(2) { animation-delay: .15s; } .pw-z-pise i:nth-child(3) { animation-delay: .3s; }
@keyframes pwZPise { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.rg-zamcena { margin: 10px 0 6px; padding: 10px 12px; }
.rg-zamcena[hidden] { display: none; }
.rg-zamcena img { width: 32px; height: 32px; }
.rg-zamcena .pw-z-text { font-size: .9rem; max-height: 2.8em; }


.panel-domu { display: block; text-align: center; margin: 18px 0 6px; font-size: .85rem; opacity: .65; color: inherit; text-decoration: none; }
.panel-domu:hover { opacity: 1; }

/* Pruhy s celou vetou (platba neprosla, clenstvi konci): text se zalamuje jako
   veta, ne jako flex polozky (cislo „28“ samo ve sloupci, Adam 11. 10. 2026).
   Az na konci souboru, at prebije i nowrap z uzkeho displeje. */
#graceBanner, #koncimBanner { flex-wrap: wrap; gap: 10px 14px; align-items: center; }
#graceBanner .message-counter, #koncimBanner .message-counter {
    display: block; flex: 1 1 260px; line-height: 1.45; white-space: normal;
}
#koncimBanner .register-prompt-btn { white-space: nowrap; flex: 0 0 auto; }

/* Rocni clenstvi na platebni zdi (rocni_clenstvi.py) */
.pw-rocni { display: block; margin: 10px auto 4px; max-width: 360px; padding: 10px 14px; border-radius: 14px;
    border: 1px solid rgba(242,200,121,.55); background: rgba(242,200,121,.08); color: #F7EFF6; text-decoration: none; text-align: center; line-height: 1.3; }
.pw-rocni span { display: block; font-size: .95rem; }
.pw-rocni b { color: #F2C879; }
.pw-rocni small { display: block; margin-top: 3px; font-size: .74rem; color: rgba(247,239,246,.65); }
.pw-rocni:hover { background: rgba(242,200,121,.16); }

/* Fotka v karte udalosti (jmeniny, vyroci…) */
.udalost-karta .udalost-fotka { display: block; width: 100%; max-width: 260px; border-radius: 12px; margin: 4px 0 10px; cursor: zoom-in; }


/* Pocitadlo zprav + Nase dny vedle sebe (nase_dny.py) */
.panel-pocitadlo.dvoje { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.pocitadlo-pol { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nase-dny-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.nase-dny-btn .fa-circle-info { font-size: .7em; opacity: .6; }
.pocitadlo-info { display: none; flex-basis: 100%; margin: 4px 0 0; font-size: .78rem; line-height: 1.35; opacity: .8; }
.panel-pocitadlo.info .pocitadlo-info { display: block; }
.panel-plocha { margin-top: 16px; border-style: dashed !important; }
.panel-plocha[hidden] { display: none !important; }

/* Tlacitka u pole psani: vzdy kruhy stejne velikosti, nesmrstuji se (Adam 14. 10. 2026:
   na iPhonu byly darek, napady i odeslat zuzene). Posledni pravidlo vyhrava nad
   starsimi soubory (chat-mobile.css, mobile-responsive.css, chat-base.css). */
.chat-input .gift-button, .chat-input .send-button {
    flex: 0 0 46px !important; width: 46px !important; height: 46px !important; min-width: 46px !important;
    padding: 0 !important; border-radius: 50% !important; aspect-ratio: 1 / 1; display: inline-flex !important;
    align-items: center; justify-content: center; }
.chat-input .navrhy-btn { flex: 0 0 40px !important; width: 40px !important; height: 40px !important; min-width: 40px;
    display: inline-flex; align-items: center; justify-content: center; color: #F2C879; font-size: 17px; opacity: .9; }
.chat-input .gift-button i, .chat-input .send-button i { font-size: 18px; line-height: 1; margin: 0 !important; }
.chat-input #messageInput { min-width: 0; flex: 1 1 auto; }
@media (max-width: 380px) {
    .chat-input .gift-button, .chat-input .send-button { flex-basis: 42px !important; width: 42px !important; height: 42px !important; min-width: 42px !important; }
    .chat-input .navrhy-btn { flex-basis: 36px !important; width: 36px !important; height: 36px !important; min-width: 36px; }
}

/* iPhone: rolovani na konci nepredavat strance pod tim (viz static/js/ios-rolovani.js) */
.sidebar-content, .chat-messages, .card-content, .registration-modal-content, .navrhy-panel, .update-notice {
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Platebni zed - nove poradi (Adam 14. 10. 2026, navrh Fable): fotka, veta, cena, tlacitko,
   jistota, zamcena zprava, rocni, rozbalovaci „Co všechno získáš“ */
.pw .pw-jistota { margin: 8px 0 12px; text-align: center; font-size: .76rem; color: rgba(247,239,246,.55); }
.pw .pw-zamcena { margin: 4px 0 12px; }
.pw .pw-z-text { max-height: 2.9em; overflow: hidden; }
.pw .pw-vic { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; }
.pw .pw-vic > summary { cursor: pointer; list-style: none; text-align: center; font-size: .9rem; font-weight: 600;
    color: #FFB3D4; padding: 6px 0; }
.pw .pw-vic > summary::-webkit-details-marker { display: none; }
.pw .pw-vic > summary::after { content: ' ▾'; }
.pw .pw-vic[open] > summary::after { content: ' ▴'; }
.pw .pw-vic .pw-soukrome { margin-top: 8px; }
@media (max-width: 768px) {
    .pw .pw-hlava { height: 150px !important; }
    .pw .pw-bublina { font-size: .86rem; padding: 8px 12px; bottom: 12px; }
    .pw .pw-nadpis { font-size: 1.35rem !important; margin: 10px 0 4px !important; }
    .pw .pw-text { font-size: .9rem !important; margin-bottom: 10px !important; }
    .pw .upgrade-button { min-height: 52px; }
    .pw .price-odpocet { margin-top: 2px !important; font-size: .78rem !important; }
    .pw .pw-rocni small { display: none; }
    .pw .pw-rocni { padding: 8px 12px; }
}
.pw .upgrade-button span { white-space: nowrap; }

/* Napady na mobilu: 1 navrh + 1 hra + Dalsi */
.navrhy-hlava-mobil { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.navrhy-dalsi { background: none; border: 1px solid rgba(255,255,255,.18); color: #F7EFF6; border-radius: 999px;
    padding: 5px 12px; font: inherit; font-size: .8rem; cursor: pointer; }
@media (max-width: 768px) { .navrhy-panel { padding: 10px; gap: 6px; } .navrhy-hry { margin-top: 2px; padding-top: 6px; } }

/* Uvitaci okna na mobilu: fotka, nadpis, jedna veta, tlacitko (Adam 14. 10. 2026, navrh Fable) */
.un-jen-mobil { display: none; }
@media (max-width: 768px) {
    .un-jen-mobil { display: block; }
    .un-jen-pc, .update-notice .update-notice-list, .update-notice .update-notice-tip { display: none !important; }
    .update-notice .un-foto { height: 120px !important; }
}

/* Okno darku v novem designu (Adam 14. 10. 2026): tmave jako nakup srdicek,
   na mobilu 2 sloupce, cela dlazdice je tlacitko, potvrzeni primo v okne */
#gifts-modal .gifts-modal-content { background: linear-gradient(170deg, #22142a, #140b1c) !important; color: #F7EFF6 !important;
    border: 1px solid rgba(255,95,162,.25) !important; border-radius: 22px !important; max-width: 560px !important;
    max-height: 90dvh !important; overflow-y: auto !important; overscroll-behavior: contain; padding: 18px 16px 16px !important; }
#gifts-modal .gifts-modal-header { text-align: center; padding: 0 30px 6px !important; background: none !important; border: 0 !important; }
#gifts-modal .gifts-modal-header h2 { color: #fff !important; -webkit-text-fill-color: #fff; font-size: 1.3rem !important; margin: 0 0 4px !important; background: none !important; }
#gifts-modal .gifts-modal-header p { color: rgba(247,239,246,.7) !important; font-size: .86rem !important; margin: 0 !important; }
#gifts-modal .gifts-close-btn { background: rgba(255,255,255,.08) !important; color: #fff !important; border: 0 !important; }
#gifts-modal .gifts-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; padding: 12px 0 4px !important; }
#gifts-modal .gift-card { background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 16px !important;
    padding: 12px 8px !important; color: #F7EFF6 !important; box-shadow: none !important; transform: none !important; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#gifts-modal .gift-card:hover { border-color: rgba(255,95,162,.6) !important; background: rgba(255,95,162,.1) !important; }
#gifts-modal .gift-emoji { font-size: 2.1rem !important; line-height: 1.1; margin: 0 !important; }
#gifts-modal .gift-name { color: #fff !important; font-size: .92rem !important; font-weight: 700; margin: 0 !important; }
#gifts-modal .gift-price { color: #FFB3D4 !important; font-size: .95rem !important; font-weight: 800; margin: 0 !important; }
#gifts-modal .reward-badge { font-size: .68rem !important; padding: 3px 8px !important; border-radius: 999px !important; }
#gifts-modal .badge-message { background: rgba(255,255,255,.08) !important; color: rgba(247,239,246,.8) !important; }
#gifts-modal .badge-photo { background: rgba(242,200,121,.15) !important; color: #F2C879 !important; }
#gifts-modal .gift-send-btn { width: 100%; min-height: 38px; margin-top: 4px !important; border: 0 !important; border-radius: 999px !important;
    background: linear-gradient(135deg, #FF5FA2, #E8117F) !important; color: #fff !important; font-weight: 700; font-size: .85rem !important; }
#gifts-modal .gifts-modal-footer { display: none !important; }
#gifts-modal .gift-potvrzeni { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 2px; padding: 12px; border-radius: 14px;
    background: rgba(255,95,162,.1); border: 1px solid rgba(255,95,162,.4); }
#gifts-modal .gift-potvrzeni[hidden] { display: none; }
#gifts-modal .gp-darek { font-size: 2rem; }
#gifts-modal .gp-text { flex: 1; min-width: 180px; }
#gifts-modal .gp-text b { display: block; color: #fff; }
#gifts-modal .gp-text span { font-size: .8rem; opacity: .8; }
#gifts-modal .gp-tlacitka { display: flex; gap: 8px; width: 100%; }
#gifts-modal .gp-ano { flex: 2; min-height: 44px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #FF5FA2, #E8117F); color: #fff; font-weight: 800; font-size: .95rem; cursor: pointer; }
#gifts-modal .gp-ne { flex: 1; min-height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: none; color: #F7EFF6; cursor: pointer; }
@media (max-width: 768px) {
    #gifts-modal .gifts-grid { grid-template-columns: repeat(2, 1fr) !important; }
    #gifts-modal .gifts-modal-content { width: calc(100% - 20px) !important; }
}
#gifts-modal .gift-card { min-height: 0 !important; height: auto !important; justify-content: flex-start; }
#gifts-modal .gift-reward { margin: 2px 0 0 !important; min-height: 0 !important; }

/* Nalada a prostredi jako dlazdice (Adam 14. 10. 2026) */
.kontext-dlazdice { padding: 12px !important; }
.kontext-dlazdice .current-mood-indicator, .kontext-dlazdice > h3 { display: none !important; }
.kd-skupina + .kd-skupina { margin-top: 12px; }
.kd-nadpis { font-size: .8rem; font-weight: 600; color: rgba(247,239,246,.7); margin-bottom: 6px; }
.kd-volby { display: flex; flex-wrap: wrap; gap: 6px; }
.kd-volby button { padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
    color: #F7EFF6; font: inherit; font-size: .82rem; cursor: pointer; }
.kd-volby button.on { background: linear-gradient(135deg, #FF5FA2, #E8117F); border-color: transparent; color: #fff; font-weight: 600; }
.kontext-dlazdice .context-select-group[hidden] { display: none !important; }
/* Doma a Mila jako hlavni volba pres celou sirku (Adam 14. 10. 2026) */
/* Hlavni volba stejne velka jako ostatni, jen zvyraznena (Adam 14. 10. 2026) */
.kd-volby button.kd-hlavni { position: relative; border-color: rgba(255,95,162,.75); background: rgba(255,95,162,.12); font-weight: 600; }
.kd-volby button.kd-hlavni::after { content: '★'; position: absolute; top: -7px; right: -4px; width: 16px; height: 16px; border-radius: 50%;
    background: #FF5FA2; color: #fff; font-size: 9px; line-height: 16px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.kd-ulozit { display: block; width: 100%; margin-top: 12px; min-height: 44px; border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #FF5FA2, #E8117F); color: #fff; font: inherit; font-weight: 700; font-size: .92rem;
    box-shadow: 0 6px 18px rgba(232,17,127,.35); }
.kd-ulozit[hidden] { display: none !important; }

/* iOS Safari: 100vh pocita i s listou prohlizece - spodek leveho panelu (Uložit,
   Eliška do mobilu) byl pod okrajem. dvh = opravdu viditelna vyska. */
@media (max-width: 768px) {
    .chat-history { height: 100dvh !important; }
}

/* „nebo e-mailem ↓“ v registracnim okne - sbaleny formular (Google je hlavni, 15. 10. 2026) */
.modal-google-divider.rg-email-odkaz { display: flex; width: 100%; background: none; border: 0; color: inherit; font: inherit;
    font-size: .88rem; cursor: pointer; padding: 10px 0; min-height: 44px; opacity: .85; }
.modal-google-divider.rg-email-odkaz:hover { opacity: 1; }
.registration-form[hidden] { display: none !important; }
.modal-google-divider.rg-email-odkaz[hidden] { display: none !important; }

/* Fotky od uzivatelu (static/js/moje_fotka.js) */
.moje-fotka-btn { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06); color: #F7EFF6; display: grid; place-items: center; cursor: pointer; font-size: 16px; }
.moje-fotka-btn:disabled { opacity: .5; }
.moje-fotka-btn { position: relative; }
.moje-fotka-odznak { position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: rgba(255,255,255,.9); color: #3A1230; font: 700 10px/17px system-ui, sans-serif; text-align: center; pointer-events: none; }
.moje-fotka-odznak.placena { background: #E8117F; color: #fff; }
.moje-fotka-odznak[hidden] { display: none; }
.moje-fotka-zprava .message-content { padding: 6px !important; max-width: 260px; }
.moje-fotka-img { display: block; width: 100%; max-width: 248px; border-radius: 12px; }
.moje-fotka-popisek { padding: 6px 6px 2px; }
.moje-fotka-stav { padding: 6px 8px; font-size: .85rem; opacity: .85; }
.moje-fotka-zprava.odesila .moje-fotka-img { opacity: .6; }
.moje-fotka-zprava.chyba .moje-fotka-stav { color: #FFB3D4; }
@media (max-width: 768px) { .moje-fotka-btn { width: 36px; height: 36px; min-width: 36px; font-size: 15px; } }
.moje-fotka-clenstvi { display: block; width: 100%; margin-top: 6px; min-height: 36px; border: 1px solid rgba(255,95,162,.5);
    border-radius: 999px; background: transparent; color: #FFB3D4; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.moje-fotka-zaplatit { display: block; width: 100%; margin-top: 6px; min-height: 40px; border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg, #FF5FA2, #E8117F); color: #fff; font: inherit; font-weight: 700; }

/* Akce u pole psani (Adam 16. 10. 2026): darek, fotka a napady stejne kruhy
   40 px; na mobilu pod jednim „+“ jako rozbalovaci menu nad polem psani. */
.vstup-akce { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.vstup-akce-menu { display: flex; align-items: center; gap: 8px; }
.vstup-akce-popis { display: none; }
.chat-input .vstup-akce .vstup-akce-btn, .chat-input .vstup-plus {
    flex: 0 0 40px !important; width: 40px !important; height: 40px !important; min-width: 40px !important;
    margin: 0 !important; padding: 0 !important; border-radius: 50% !important; aspect-ratio: 1 / 1;
    border: 1px solid rgba(255,255,255,.14) !important; background: rgba(255,255,255,.06) !important;
    box-shadow: none !important; color: #F7EFF6; opacity: 1; overflow: visible;
    display: inline-flex !important; align-items: center; justify-content: center; cursor: pointer;
    font-size: 17px; transition: background .2s, border-color .2s; transform: none !important; }
.chat-input .vstup-plus { display: none !important; }
.chat-input .vstup-akce .vstup-akce-btn:hover, .chat-input .vstup-plus:hover,
.chat-input .vstup-akce .vstup-akce-btn:focus-visible { background: rgba(255,95,162,.15) !important; border-color: rgba(255,95,162,.45) !important; }
.chat-input .vstup-akce .vstup-akce-btn i { font-size: 17px; line-height: 1; margin: 0 !important; animation: none !important; }
.chat-input .vstup-akce .gift-button i, .chat-input .vstup-akce .navrhy-btn i { color: #F2C879; }
.chat-input .vstup-akce .gift-button::before { display: none; }
@media (max-width: 768px) {
    .chat-input .vstup-plus { display: inline-flex !important; }
    .chat-input .vstup-plus i { font-size: 16px; transition: transform .2s; }
    .vstup-akce.otevreno .vstup-plus i { transform: rotate(45deg); }
    .vstup-akce.otevreno .vstup-plus { background: rgba(255,95,162,.18) !important; border-color: rgba(255,95,162,.5) !important; }
    .vstup-akce-menu { display: none; position: absolute; left: 0; bottom: calc(100% + 12px); z-index: 130;
        flex-direction: column; align-items: stretch; gap: 4px; min-width: 210px; padding: 6px;
        background: #221629; border: 1px solid rgba(255,95,162,.3); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
    .vstup-akce.otevreno .vstup-akce-menu { display: flex; animation: navrhyHint .18s ease-out; }
    .chat-input .vstup-akce .vstup-akce-btn { flex: none !important; width: 100% !important; height: 46px !important; min-width: 0 !important;
        aspect-ratio: auto; border-radius: 12px !important; border-color: transparent !important; background: transparent !important;
        justify-content: flex-start; gap: 12px; padding: 0 12px !important; font: inherit; font-size: .95rem; }
    .chat-input .vstup-akce .vstup-akce-btn i { width: 20px; text-align: center; }
    .vstup-akce-popis { display: inline; color: #F7EFF6; }
    .vstup-akce .moje-fotka-odznak { position: static; margin-left: auto; }
}

/* Fotka pripravena k odeslani - nahled uvnitr pole zpravy, pod ni se pise (Adam 17. 10. 2026) */
.zprava-obal { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.zprava-obal #messageInput { width: 100%; }
.zprava-obal.s-prilohou { border: 1px solid rgba(255,95,162,.6); border-radius: 22px; background: rgba(255,255,255,.05); padding: 8px 8px 2px; gap: 4px; }
.zprava-obal.s-prilohou #messageInput { border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; }
.moje-fotka-priloha { position: relative; display: inline-flex; align-self: flex-start; }
.moje-fotka-priloha[hidden] { display: none; }
.moje-fotka-priloha img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; display: block; }
.moje-fotka-priloha button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0;
    background: #E8117F; color: #fff; font-size: 16px; line-height: 24px; cursor: pointer; padding: 0; }
/* Cislo zbyvajicich fotek na PC nerusi (Adam 17. 10. 2026) - zustava v popisku a v menu na mobilu */
@media (min-width: 769px) { .chat-input .moje-fotka-odznak { display: none !important; } }

.kd-pozn { font-size: .78rem; color: rgba(247,239,246,.55); margin: -2px 0 8px; }

/* Potvrzeni drazsiho darku jako male okno pres nabidku (Adam 17. 10. 2026) */
#gifts-modal .gift-potvrzeni { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3000; margin: 0;
    width: calc(100% - 40px); max-width: 380px; background: #2a1534; border: 1px solid rgba(255,95,162,.55);
    box-shadow: 0 24px 60px rgba(0,0,0,.6); }

/* Okna s fotkou: Eliska vic videt (Adam 17. 10. 2026) - vyssi hlavicky, kde je misto */
.reg-photo-teaser img { filter: none !important; transform: none !important; object-position: center 22% !important; }
@media (min-height: 760px) {
    .reg-photo-teaser { height: 210px !important; }
    .update-notice-card.s-fotkou .un-foto { height: 240px; background-position: center 20%; }
    .pw .pw-hlava { height: 270px; }
}
@media (min-height: 760px) and (max-width: 768px) {
    .pw .pw-hlava { height: 210px !important; }
    .reg-photo-teaser { height: 190px !important; }
}
/* Bublina s poctem fotek po najeti mysi (PC) - Adam 17. 10. 2026 */
@media (hover: hover) and (min-width: 769px) {
    .chat-input .moje-fotka-btn[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: -6px;
        transform: none; white-space: nowrap; background: #2a1534; color: #F7EFF6; border: 1px solid rgba(255,95,162,.5);
        padding: 6px 10px; border-radius: 10px; font-size: .8rem; font-weight: 600; box-shadow: 0 8px 22px rgba(0,0,0,.45);
        z-index: 200; pointer-events: none; }
    .chat-input .moje-fotka-btn { position: relative; }
}

/* Prostredi jako rozbalovaci zalozka (Adam 17. 10. 2026) - vypada jako ostatni polozky panelu (ikona, nadpis, aktualni pod nim) */
.kd-zalozka { border-radius: 12px; }
.kd-summary { list-style: none; cursor: pointer; }
.kd-summary::-webkit-details-marker { display: none; }
.kd-summary .panel-nav-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd-summary .fa-chevron-down { font-size: .78rem; opacity: .45; transition: transform .2s; }
.kd-zalozka[open] .kd-summary .fa-chevron-down { transform: rotate(180deg); }
.kd-zalozka[open] .kd-summary { margin-bottom: 10px; }
.kd-zalozka .context-controls { padding: 0 2px 4px; }
.kd-skupina[hidden] { display: none !important; }

/* Mobil: pocet fotek je v textu polozky menu, odznak by byl dvakrat */
@media (max-width: 768px) { .vstup-akce .moje-fotka-odznak { display: none !important; } }

/* Upozorneni na zdravi pod Eliscinou zpravou (Adam 18. 10. 2026) */
.zdravi-varovani { margin-top: 8px; font-size: .72rem; line-height: 1.35; opacity: .7; font-style: italic; }

/* Profilovka Elisky v hlavicce chatu (Adam 22. 10. 2026 - kvuli stories i na mobilu) */
.chat-header-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; cursor: pointer; margin: 0 10px 0 2px; }
.zapamatovano { margin-top: 6px; font-size: .7rem; line-height: 1.3; opacity: .55; font-style: italic; transition: opacity 1.5s ease, max-height 1.5s ease; max-height: 6em; overflow: hidden; }
.zapamatovano.mizi { opacity: 0; max-height: 0; margin-top: 0; }
