
     
    .compose-modal-card.note-mode .toggle-btn .toggle-text {
        
        background:transparent;
    }
    
    
    .compose-modal-card.note-mode .toggle-btn input[type="checkbox"]:checked + .toggle-text {
        
        background:red;color:white; border:none;
    }
    
     .compose-modal-card.note-mode .toggle-text {
        
        background:red;
    }
        /* Tryb notatki – mocne nadpisanie */
.compose-modal-card.note-mode {
      background-color: #f7e05e !important;
    color: #000000 !important;
    border-top: 2px solid #ff000075 !important;
    box-shadow: inset -1px 9px 11px 11px #f59e0b57;
}

.compose-modal-card.note-mode .cm-header {
    background: rgba(0,0,0,0.0) !important;
    border-bottom: 0px solid #ff0000 !important;
}

.compose-modal-card.note-mode .cm-textarea {
background: rgb(255 255 255 / 13%) !important;
    color: #000000 !important;
    border: 1px solid #f8e473 !important;
    border-radius: 22px;
    box-shadow: inset 1px 0px 12px 12px #f7e05e;
    padding: 29px;
}

.compose-modal-card.note-mode .cm-textarea::placeholder {
    color: #333333 !important;
    opacity: 1 !important;
}

.compose-modal-card.note-mode .cm-submit {
    
        background: #ffffff00 !important;
    color: #000000 !important;
    box-shadow: none;
}

.compose-modal-card.note-mode .cm-submit:disabled
 {
    
    opacity: 0!important;
}

.compose-modal-card.note-mode .cm-cancel {
    color: #000000 !important;
}

.compose-modal-card.note-mode .cm-tools i {
    color: #ff0000 !important;
}

.compose-modal-card.note-mode .mic-btn {
    background: #ff0000 !important;
    color: #ffffff !important;
}
  
    
        /* --- GLOBALNE --- */
        * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
        body {
            margin: 0; padding: 0;
            background-color: #121212; color: #ffffff;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            padding-bottom: 90px; padding-top: env(safe-area-inset-top);
            overflow-x: hidden;
        }
        /* --- SMACZKI: WZMIANKI (@) --- */
        .mention-dropdown {
            position: absolute; bottom: 100%; left: 0; width: 100%;
            background: rgba(22, 22, 37, 0.98); backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px 16px 0 0;
            max-height: 200px; overflow-y: auto; display: none; z-index: 10001;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
        }
        .mention-dropdown.active { display: block; animation: slideUpFade 0.2s ease-out; }
        .mention-item {
            display: flex; align-items: center; gap: 12px;
            padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.05);
            cursor: pointer; transition: 0.2s;
        }
        .mention-item:hover { background: rgba(255,255,255,0.1); }
        .mention-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
        .mention-name { font-size: 13px; font-weight: 700; color: white; }
        .mention-tag { font-size: 11px; color: var(--pink, #ff2a6d); margin-left: auto; }

        /* Podświetlenie tagów w wygenerowanym poście */
        .feed-text .user-mention {
            color: var(--pink, #ff2a6d); font-weight: 800; background: rgba(5, 217, 232, 0.1);
            padding: 2px 6px; border-radius: 8px; cursor: pointer;
        }
        /* --- HEADER & TABS --- */
        /* --- HEADER & TABS --- */
       /* --- HEADER & TABS --- */
   
        
        /* NOWE: klasa ukrywająca pasek (wypycha go o 100% jego wysokości do góry) */
        .feed-app-header.hidden {
            transform: translateY(-100%);
        }
        .header-top { padding: 0px 20px; display: flex; justify-content: space-between; align-items: center;   }
        .header-title { font-size: 18px; font-weight: 800; }
        .back-btn { background:none; border:none; color:var(--pink, #ff2a6d); font-size:20px; cursor:pointer; }
        
        .feed-tabs { display: flex; width: 100%; border-top: 1px solid rgba(255,255,255,0.02); }
        .feed-tab {
            flex: 1; text-align: center; padding: 12px 0; font-size: 13px; font-weight: 700;
            color: #888; cursor: pointer; transition: 0.3s; position: relative;
        }
        .feed-tab.active { color: #fff; }
        .feed-tab.active::after {
            content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
            width: 40px; height: 3px; background: var(--pink, #ff2a6d); border-radius: 3px 3px 0 0;
            box-shadow: 0 0 10px var(--pink, #ff2a6d);
        }

        .feed-container { padding: 10px; max-width: 600px; margin: 0 auto;margin-top:39px}

        /* --- KARTY --- */
        .glass-card { 
            background: rgba(22, 22, 26, 0.95); border-radius: 20px; margin-bottom: 15px; 
            border: 1px solid rgba(255,255,255,0.05); overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        }
        .feed-header { display: flex; align-items: center; gap: 12px; padding: 15px; }
        .feed-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.1);}
        .feed-info { flex: 1; }
        .feed-name { font-size: 14px; font-weight: 700; color: #fff; display:flex; align-items:center; gap:5px;}
        .feed-time { font-size: 11px; color: #888; margin-top: 2px; }
        .feed-text { padding: 0 15px 10px 15px; font-size: 14px; color: #ddd; line-height: 1.5; word-wrap: break-word; }
        .feed-media img, .feed-media video { width: 100%; max-height: 400px; object-fit: cover; display: block; }
        
        .feed-footer { padding: 10px 15px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.03); }
        .feed-btn {
            background: transparent; border: none; color: #aaa; font-weight: 600; font-size: 12px;
            display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 5px 10px; border-radius: 8px; transition: 0.2s;
        }
        .feed-btn:hover { background: rgba(255,255,255,0.05); }
        .feed-btn:active { transform: scale(0.9); }
        
        /* Aktywne stany przycisków */
        .feed-btn.liked { color: var(--pink, #ff2a6d); }
.feed-btn.shared { color: var(--pink, #ff2a6d); }
        /* Repost Header */
        .repost-header {
            padding: 3px 10px 0 7px; font-size: 11px; color: #888; display: flex; align-items: center; gap: 5px; font-weight: 600;
        }

        /* --- KARUZELE POZIOME (ZAGNIEŻDŻENIA) --- */
        .horizontal-section {
            margin: 15px 0 25px 0;
            padding-top: 10px;
            border-top: 1px solid rgba(255,255,255,0.02);
            border-bottom: 1px solid rgba(255,255,255,0.02);
        }
        .horizontal-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 0 15px; margin-bottom: 12px;
        }
        .horizontal-title { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: #fff; }
        .horizontal-subtitle { font-size: 12px; color: #888; font-weight: 600; cursor: pointer; }
        
        .horizontal-carousel {
            display: flex; gap: 12px; padding: 0 15px 10px 15px;
            overflow-x: auto; scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
        }
        .horizontal-carousel::-webkit-scrollbar { display: none; }
        
        .h-card {
            flex: 0 0 70%; scroll-snap-align: start;
            background: rgba(30, 30, 35, 0.95); border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.05); overflow: hidden;
            display: flex; flex-direction: column; position: relative;
        }
        .h-card-img { width: 100%; height: 120px; object-fit: cover; }
        .h-card-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
        .h-card-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .h-card-desc { font-size: 11px; color: #aaa; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .h-action-btn { margin-top: 10px; text-align: center; background: rgba(255,255,255,0.1); padding: 6px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #fff; cursor: pointer; transition: 0.2s; }
        .h-action-btn:hover { background: rgba(255,255,255,0.2); }
        .h-action-btn.primary { background: var(--pink, #ff2a6d); color: #000; }

        .h-card.friend-card { flex: 0 0 45%; padding: 15px; align-items: center; text-align: center; }
        .h-card.friend-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 2px solid var(--pink, #ff2a6d); }
        .h-card.friend-card .h-card-title { -webkit-line-clamp: 1; margin-bottom: 2px; }
        .h-card.friend-card .h-card-desc { font-size: 10px; }

        /* --- NOWE SMACZKI DO KART --- */
        .h-card.category-card { flex: 0 0 30%; background: transparent; border: none; align-items: center; text-align: center; }
        .h-card.category-card .cat-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center; font-size: 24px; color: var(--pink, #ff2a6d); margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.1); }
        .h-card.category-card .h-card-title { font-size: 11px; }

        .h-card.job-card { flex: 0 0 75%; background: linear-gradient(145deg, #1e1e24, #2a2a35); border-left: 3px solid var(--pink, #ff2a6d); }
        .job-badge { display: inline-block; background: rgba(5, 217, 232, 0.15); color: var(--pink, #ff2a6d); padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 800; margin-bottom: 8px; }
        .job-salary { font-size: 13px; font-weight: 800; color: #39ff14; margin-top: 5px; }

        .h-card.deal-card { flex: 0 0 65%; border: 1px solid var(--pink, #ff2a6d); }
        .deal-discount { position: absolute; top: 10px; right: 10px; background: var(--pink, #ff2a6d); color: white; padding: 5px 10px; border-radius: 20px; font-weight: 800; font-size: 12px; }

        /* --- FAB DO TWORZENIA POSTA --- */
        .fab-compose {
            position: fixed; bottom: 22px; right: 20px;
            width: 56px; height: 56px; border-radius: 50%;
            background: linear-gradient(135deg, var(--pink, #ff2a6d), var(--purple, #9d4edd));
            color: white; font-size: 24px; display: flex; align-items: center; justify-content: center;
            box-shadow: 0 10px 25px rgba(255, 42, 109, 0.6); cursor: pointer; z-index: 1000;
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
        }
        .fab-compose:hover { transform: scale(1.1) rotate(10deg); box-shadow: 0 15px 35px rgba(255, 42, 109, 0.8); }
        .fab-compose:active { transform: scale(0.9); }

        /* --- MODAL TWORZENIA POSTA --- */
        .compose-modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.85); backdrop-filter: blur(15px);
            z-index: 9999; display: none; align-items: flex-end; opacity: 0; transition: opacity 0.3s ease;
        }
        .compose-modal-overlay.active { display: flex; opacity: 1; }

        .compose-modal-card {
            width: 100%; max-width: 600px; margin: 0 auto; background: #1e1e24; border-radius: 24px 24px 0 0;
            padding: 20px; box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
            transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex; flex-direction: column; gap: 15px;
        }
        .compose-modal-overlay.active .compose-modal-card { transform: translateY(0); }

        .cm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .cm-cancel { background: none; border: none; color: #aaa; font-size: 16px; cursor: pointer; font-weight: 600; }
        .cm-submit { background: var(--pink, #ff2a6d); color: black; border: none; padding: 6px 18px; border-radius: 20px; font-weight: 800; font-size: 13px; cursor: pointer; box-shadow: 0 4px 15px rgba(5, 217, 232, 0.4); }
        .cm-submit:disabled { opacity: 0.5; box-shadow: none; cursor: not-allowed; }

        .cm-body { display: flex; gap: 15px; }
        .cm-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
        .cm-textarea { flex: 1; background: transparent; border: none; color: white; font-size: 18px; resize: none; min-height: 120px; outline: none; font-family: inherit; }
        .cm-textarea::placeholder { color: #666; }

        .cm-tools { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; display: flex; gap: 20px; }
        .cm-tools i { font-size: 20px; color: var(--pink, #ff2a6d); cursor: pointer; transition: 0.2s; }
        .cm-tools i:hover { transform: scale(1.2); }

        /* --- TOAST NOTIFICATIONS --- */
        #toast-container { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 10000; pointer-events: none; }
        .toast-msg { background: rgba(30, 30, 40, 0.95); backdrop-filter: blur(10px); color: white; padding: 12px 20px; border-radius: 30px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); animation: slideUpToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
        @keyframes slideUpToast { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes fadeOutToast { to { opacity: 0; transform: translateY(-10px); } }
        
        /* --- ANIMACJE SWIPE --- */
        .feed-anim-slide-left { animation: swipeLeftAnim 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
        .feed-anim-slide-right { animation: swipeRightAnim 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
        @keyframes swipeLeftAnim { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        @keyframes swipeRightAnim { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

        /* Zapobiegamy przypadkowemu przewijaniu w bok całej strony */
        body { overflow-x: hidden; }

        /* --- MENU 3 KROPEK --- */
        .post-opt-item { padding: 18px 20px; font-size: 15px; font-weight: 600; color: white; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: background 0.2s; }
        .post-opt-item:hover { background: rgba(255,255,255,0.05); }
        .post-opt-item i { font-size: 18px; width: 24px; text-align: center; }

        /* --- WIDOK PROFILU SPA (SLIDE FROM RIGHT) --- */
        .profile-slide-overlay { position: fixed; top: 0px;padding-top:22px; left: 0; width: 100%; height: 100%; background: #121212; z-index: 10005; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; }
        .profile-slide-overlay.active { transform: translateX(0); }
        .profile-slide-header { padding: 15px 20px; padding-top: max(15px, env(safe-area-inset-top)); background: rgba(18, 18, 20, 0.95); border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; }
        .profile-slide-content { flex: 1; overflow-y: auto; }
        .profile-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #888; }
        /* --- iSonikk Whisper & Local News --- */
            .whisper-badge {
                background: linear-gradient(90deg, var(--blue, #05d9e8), var(--purple, #9d4edd));
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                font-size: 10px;
                font-weight: 800;
                text-transform: uppercase;
                margin-left: 8px;
                letter-spacing: 0.5px;
            }
            .btn-engage {
                color: var(--blue, #05d9e8) !important;
            }
            .btn-engage i {
                filter: drop-shadow(0 0 5px var(--blue, #05d9e8));
            }
            .news-alert-card {
                border-left: 4px solid #ff453a !important; /* Czerwony pasek dla ostrzeżeń */
            }
            .news-badge {
                background: #ff453a;
                color: white;
                font-size: 9px;
                font-weight: 900;
                padding: 2px 6px;
                border-radius: 4px;
                margin-left: auto;
            }
            .feed-body1{
                    padding: 3px 19px;
            }
            /* --- MODAL SYMULACJI AI --- */
.ai-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9);
    z-index: 20000; display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.4s ease;
}
.ai-modal-overlay.active { display: flex; opacity: 1; }

.ai-modal-card {
    text-align: center; padding: 40px; width: 85%; max-width: 400px;
}

/* Animacja pulsu iSonikk */
.ai-pulse-circle {
    width: 80px; height: 80px; background: var(--pink, #ff2a6d);
    border-radius: 50%; margin: 0 auto 20px; position: relative;
    box-shadow: 0 0 20px var(--pink, #ff2a6d);
    animation: aiPulse 2s infinite;
}
.ai-pulse-circle::after {
    content: ''; position: absolute; inset: -10px; border-radius: 50%;
    border: 2px solid var(--pink, #ff2a6d); animation: aiOuterPulse 2s infinite;
}

@keyframes aiPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 40px var(--blue); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes aiOuterPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ai-status-text { font-size: 16px; font-weight: 800; color: white; margin-top: 15px; }
.ai-sub-text { font-size: 12px; color: #888; margin-top: 8px; }
         
     /* --- PRO & WHISPER ADVANCED --- */
.pro-badge-wrapper {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.pro-crown {
    font-size: 14px;
    color: #ffd700; /* Złoty */
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pro-crown:hover {
    transform: scale(1.3) rotate(15deg);
}

.whisper-pro-label {
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 10px;
    font-weight: 900;
    margin-left: 4px;
}

/* Styl listy TO-DO w poście */
.todo-mini-list {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
}
.todo-item {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    color: #ccc;
}
.todo-item i { color: var(--blue); font-size: 10px; }

/* Overlay dla PRO */
#proUpgradeOverlay .glass-card {
    border: 1px solid #ffd700;
    background: rgba(20, 15, 0, 0.95);
}    
         
         
         
         
         /* --- AI CALIBRATION CHECKPOINT --- */
.ai-checkpoint-card {
    background: linear-gradient(180deg, #121215 0%, rgba(5, 217, 232, 0.05) 100%);
    border: 1px solid var(--blue);
    border-radius: 24px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(5, 217, 232, 0.15);
    position: relative;
    overflow: hidden;
}

.ai-checkpoint-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.calibration-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.calibration-pulse {
    width: 20px; height: 20px; background: var(--blue); border-radius: 50%;
    box-shadow: 0 0 15px var(--blue); animation: aiPulse 1.5s infinite;
}

.adjustment-list {
    background: rgba(0,0,0,0.4); border-radius: 12px; padding: 15px;
    margin-bottom: 20px; border: 1px dashed rgba(255,255,255,0.1);
}
.adj-item { font-size: 12px; color: #aaa; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.adj-item i { color: #ff453a; }

.generated-loops-title { font-size: 11px; font-weight: 900; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }

.gen-loop-item {
    background: rgba(255,255,255,0.03); border-left: 3px solid var(--purple);
    padding: 12px; border-radius: 8px; margin-bottom: 10px;
}
.gen-loop-name { font-weight: 800; font-size: 13px; color: #fff; display: flex; align-items: center; justify-content: space-between; }
.gen-loop-reason { font-size: 11px; color: #888; margin-top: 5px; font-style: italic; }

.inject-btn {
    width: 100%; padding: 15px; background: rgba(5, 217, 232, 0.1);
    color: var(--blue); border: 1px solid var(--blue); border-radius: 12px;
    font-weight: 900; text-transform: uppercase; cursor: pointer; transition: 0.3s;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.inject-btn:hover { background: var(--blue); color: #000; box-shadow: 0 0 20px rgba(5, 217, 232, 0.4); }
         
/* --- KARTA CYTATU (QUOTE TWEET / PODAJ DALEJ) --- */
.quoted-post {
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
}
.quoted-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px 5px 15px;
}
.quoted-avatar-placeholder {
    width: 20px; 
    height: 20px;
    border-radius: 50%;
    background: var(--pink, #ff2a6d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #000;
}
.quoted-name { font-size: 13px; font-weight: 800; color: #fff; }
.quoted-body { padding: 5px 15px 12px 15px; }
.quoted-text { font-size: 14px; color: #ddd; line-height: 1.4; word-wrap: break-word; }
.quoted-media img, .quoted-media video {
    width: 100%; max-height: 300px; object-fit: cover; display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
         
         
         
         /* --- USER HEADER MENU --- */
        .header-avatar-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
        .header-avatar {
            width: 32px; /* Zmniejszyliśmy z 40px na 32px */
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid rgba(255,255,255,0.2);
            cursor: pointer;
            transition: transform 0.2s;
        }
        .header-avatar:active {
            transform: scale(0.9);
        }
        
        .header-dropdown {
            position: absolute;
            top: 130%; /* Ląduje tuż pod avatarem */
            right: 0;  /* Dociągnięte idealnie do prawej krawędzi */
            background: rgba(22, 22, 30, 0.95);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            min-width: 180px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
            display: none; /* Domyślnie ukryte */
            flex-direction: column;
            overflow: hidden;
            z-index: 1000;
            transform-origin: top right;
            animation: popInMenu 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }
        .header-dropdown.active {
            display: flex;
        }
        .header-dropdown-item {
            padding: 14px 16px;
            font-size: 13px;
            font-weight: 600;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .header-dropdown-item:hover {
            background: rgba(255, 255, 255, 0.08);
        }
      
        
        @keyframes popInMenu {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }
         
         
         
         /* --- BLOKADA TŁA PRZY OTWARTYM OVERLAYU --- */
body.overlay-open {
    overflow: hidden;
    touch-action: none; /* Blokuje gesty na urządzeniach mobilnych */
}
         
         
         
 
         
         
         /* Dodaliśmy 'svg' do selektora, żeby złapał naszą nową ikonę */
.header-dropdown-item i,
.header-dropdown-item svg {
    color: var(--pink, #ff2a6d);
    width: 20px; /* Lekko zwiększyłem z 16px, bo SVG ma więcej detali */
    height: 20px;
    text-align: center;
    flex-shrink: 0; /* Zapobiega zgniataniu ikony */
}
         
         
         
         
         /* --- INLINE COMPOSER (GÓRA FEEDU) --- */
        .inline-composer { 
            padding: 15px; margin-bottom: 20px; 
            border: 1px solid rgba(255,255,255,0.05);
        }
        .ic-top { 
            display: flex; align-items: center; gap: 12px; margin-bottom: 15px; cursor: text; 
        }
        .ic-avatar { 
            width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.1);
        }
        .ic-input-dummy { 
            flex: 1; background: rgba(255,255,255,0.05); padding: 12px 15px; border-radius: 20px; 
            color: #888; font-size: 14px; border: 1px solid rgba(255,255,255,0.05); transition: 0.2s; 
        }
        .ic-top:active .ic-input-dummy { background: rgba(255,255,255,0.1); }
        
        .ic-actions { 
            display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 5px;
        }
        .ic-actions::-webkit-scrollbar { display: none; }
        .ic-btn { 
            display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.3); padding: 8px 12px; 
            border-radius: 16px; font-size: 12px; font-weight: 700; color: #ccc; white-space: nowrap; 
            cursor: pointer; border: 1px solid rgba(255,255,255,0.05); transition: 0.2s; 
        }
        .ic-btn:active { transform: scale(0.95); background: rgba(255,255,255,0.1); }
         
         /* --- KONTROLKI PREFERENCJI (UI) --- */
        .pref-section {
            background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
            border-radius: 16px; padding: 15px; margin-bottom: 15px;
        }
        .pref-section-title { font-size: 11px; color: #888; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; margin-bottom: 15px; }
        
        /* Styl Switcha (Toggle) */
        .pref-switch-wrapper { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .pref-switch-label { font-size: 14px; font-weight: 700; color: white; }
        .pref-switch-sub { font-size: 11px; color: #888; margin-top: 2px; }
        .pref-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
        .pref-switch input { opacity: 0; width: 0; height: 0; }
        .pref-slider-ui { position: absolute; cursor: pointer; inset: 0; background-color: #333; transition: .3s; border-radius: 24px; }
        .pref-slider-ui:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
        .pref-switch input:checked + .pref-slider-ui { background-color: var(--pink, #ff2a6d); }
        .pref-switch input:checked + .pref-slider-ui:before { transform: translateX(20px); }

        /* Customowe Suwaki (Range) */
        .range-container { margin-bottom: 20px; }
        .range-header { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: white; margin-bottom: 8px; }
        .range-val { color: var(--pink, #ff2a6d); font-weight: 900; }
        input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
        input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%; background: white; cursor: pointer; margin-top: -8px; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
        input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; cursor: pointer; background: rgba(255,255,255,0.2); border-radius: 2px; }
        input[type=range]:focus { outline: none; }

        /* Chipy (Przyciski wielokrotnego wyboru) */
        .pref-chips { display: flex; flex-wrap: wrap; gap: 8px; }
        .pref-chip { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); color: #ccc; padding: 8px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; }
        .pref-chip.active { background: rgba(5,217,232,0.1); border-color: var(--pink, #ff2a6d); color: white; }

        /* Lista Ghost Mode */
        .ghost-friend-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .ghost-friend-item:last-child { border-bottom: none; }
        .gf-info { display: flex; align-items: center; gap: 10px; }
        .gf-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
        .gf-name { font-size: 14px; font-weight: 700; color: white; }
        .gf-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #888; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
        .gf-btn.active { border-color: #ff453a; color: #ff453a; background: rgba(255,69,58,0.1); }
        
        /* Record Audio Button */
        .audio-record-btn { width: 60px; height: 60px; border-radius: 50%; background: rgba(5,217,232,0.1); border: 2px solid var(--blue); color: var(--blue); font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 20px auto; cursor: pointer; transition: 0.3s; }
        .audio-record-btn:active { transform: scale(0.9); }
        .audio-record-btn.recording { animation: pulseRecord 1.5s infinite; background: var(--pink); border-color: var(--pink); color: white; }
        @keyframes pulseRecord { 0% { box-shadow: 0 0 0 0 rgba(255,42,109,0.7); } 70% { box-shadow: 0 0 0 20px rgba(255,42,109,0); } 100% { box-shadow: 0 0 0 0 rgba(255,42,109,0); } }
         
         /* Ambient gradient – tło pod całą zawartością */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
 
    background:var(--ambient-bg)!important;
    
 
    pointer-events: none;
    z-index: 1;
    will-change: background-position;
    transition: background-position 0.1s linear;
}
   .feed-app-header::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 217, 232, 0.15) 0%, transparent 80%);
    pointer-events: none;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.3s ease;
}
/* Subtelny glow pod pierwszym postem – nadaje głębi */
.feed-item-wrapper:first-child .glass-card {
    box-shadow:0 10px 30px -5px rgb(167 34 82 / 8%), 0 4px 20px rgba(0, 0, 0, 0.3);
}
/* Gdy header jest ukryty (klasa .hidden) delikatnie zmniejszamy intensywność */
.feed-app-header.hidden::before {
    opacity: 0.3;
}  

/* --- SMART HEADER --- */
.feed-app-header {
    position: sticky; 
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(18, 18, 20, 0.90); 
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    display: flex; 
    flex-direction: column;
    /* Płynna animacja wysuwania i chowania */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(0); /* Domyślna pozycja */
}

/* Kiedy ma klasę 'header-hidden', podnosi się do góry, ukrywając się */
.feed-app-header.header-hidden {
    transform: translateY(-100%);
}

/* Osobny efekt gradientu dla headera (to miałeś i było OK) */
.feed-app-header::before {
    content: '';
    position: absolute;margin-top:-22px;
     left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 42, 109, 0.15), transparent 70%);
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* --- BOTTOM NAV BAR --- */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(18, 18, 20, 0.90);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    /* Animacja dla dolnego paska */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(0); /* Domyślna pozycja */
}

/* Kiedy ma klasę 'footer-hidden', chowa się w dół za ekran */
.bottom-nav-bar.footer-hidden {
    transform: translateY(150px);
}

/* --- POPRAWKA FAB (Latający Pióropusz) --- */
.fab-compose {
    position: fixed; 
    right: 20px;
    /* Pozycja domyślna: nad dolnym paskiem menu */
    bottom: calc(75px + env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pink, #ff2a6d), var(--purple, #9d4edd));
    color: white; font-size: 24px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 42, 109, 0.6); cursor: pointer; z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Jeśli body ma informację, że pasek zniknął - pióropusz opada! */
/* Kiedy paski znikają przy scrollowaniu - całkowicie chowamy FAB */
body.nav-hidden .fab-compose {
    transform: scale(0) rotate(-45deg); /* Płynnie pomniejsza się i lekko obraca (fajny efekt!) */
    opacity: 0;                         /* Staje się przezroczysty */
    pointer-events: none;               /* Blokuje możliwość kliknięcia w trakcie znikania */
    bottom: calc(22px + env(safe-area-inset-bottom)); /* Opcjonalnie: lekko opada przy znikaniu */
}

/* Upewnij się też, że główna klasa .fab-compose ma dodane transition dla opacity: */
.fab-compose {
    /* (Twoje wcześniejsze style tu zostają, upewnij się tylko, że linijka transition wygląda tak:) */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease, bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}




/* Dodajemy osobny pseudo z gradientem i blur */
.feed-app-header::before {
    content: '';
    position: absolute;
  left: 0; width: 100%; height: 100%;
     background: radial-gradient(circle at 20% 20%, rgba(255, 42, 109, 0.15), transparent 70%);
    backdrop-filter: blur(20px); /* przenosimy blur na pseudo */
    z-index: -1;
}

/* --- KONTROLKI LOKALIZACJI W COMPOSERZE --- */
        .loc-action-btn {
            background: rgba(255, 69, 58, 0.1);
            border: 1px solid rgba(255, 69, 58, 0.3);
            color: #ff453a;
            padding: 8px 14px;
            border-radius: 16px;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: 0.2s;
        }
        .loc-action-btn:active {
            transform: scale(0.95);
            background: rgba(255, 69, 58, 0.2);
        }
/* --- KONTROLKI VIBE WHISPER W COMPOSERZE --- */
        .vibe-action-btn {
            background: rgba(5, 217, 232, 0.05);
            border: 1px solid rgba(5, 217, 232, 0.3);
            color: var(--blue, #05d9e8);
            padding: 8px 14px;
            border-radius: 16px;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: 0.2s;
        }
        .vibe-action-btn:hover { background: rgba(5, 217, 232, 0.15); }
        .vibe-action-btn:active { transform: scale(0.95); }
        
        .whisper-vibe-btn {
            background: rgba(5, 217, 232, 0.1);
            border: 1px solid var(--blue, #05d9e8);
            color: var(--blue, #05d9e8);
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.3s;
        }
        .whisper-vibe-btn.active {
            background: var(--blue, #05d9e8);
            color: #000;
            box-shadow: 0 0 15px rgba(5, 217, 232, 0.4);
        }
/* --- WHISPER COMPOSER TOOLS --- */
        .whisper-action-btn {
            background: rgba(5,217,232,0.05);
            border: 1px solid rgba(5,217,232,0.2);
            color: var(--blue, #05d9e8);
            padding: 8px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: 0.2s;
            white-space: nowrap;
        }
        .whisper-action-btn:active { transform: scale(0.95); }
        .whisper-action-btn.active { background: var(--blue); color: black; box-shadow: 0 0 10px rgba(5,217,232,0.3); }
        
        .whisper-action-btn.advanced { border-color: var(--purple, #9d4edd); color: var(--purple, #9d4edd); background: rgba(157, 78, 221, 0.05); }
        .whisper-action-btn.advanced.active { background: var(--purple); color: white; box-shadow: 0 0 10px rgba(157, 78, 221, 0.3); }

/* --- KONTROLKI HANGOUT W COMPOSERZE --- */
        .hangout-action-btn {
            background: rgba(255, 159, 67, 0.05);
            border: 1px solid rgba(255, 159, 67, 0.3);
            color: #ff9f43;
            padding: 8px 14px;
            border-radius: 16px;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: 0.2s;
            white-space: nowrap;
        }
        .hangout-action-btn:hover { background: rgba(255, 159, 67, 0.15); }
        .hangout-action-btn:active { transform: scale(0.95); }

        /* Customowy pomarańczowy switch dla Hangoutu */
        .hangout-switch input:checked + .pref-slider-ui { background-color: #ff9f43 !important; }
        .hangout-switch input:checked + .pref-slider-ui:before { transform: translateX(20px); }
/* --- MINI AVATAR W CHIPACH VIBE --- */
        .vibe-mini-avatar {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid var(--blue, #05d9e8);
            margin-right: 4px;
        }
/* --- KLASTRY HANGOUT --- */
        .cluster-chip { 
            position: relative;
            padding-right: 35px !important; /* Miejsce na licznik */
        }
        .cluster-chip.active { 
            background: rgba(255, 159, 67, 0.1); 
            border-color: #ff9f43; 
            color: white; 
        }
        .cluster-count {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: #ff9f43;
            color: black;
            border-radius: 10px;
            padding: 2px 6px;
            font-size: 10px;
            font-weight: 900;
        }
        .ai-cluster-btn {
            border-color: var(--blue, #05d9e8) !important;
            color: var(--blue, #05d9e8) !important;
            background: rgba(5, 217, 232, 0.05) !important;
            display: flex; align-items: center; gap: 5px;
        }
        .ai-cluster-btn:active { transform: scale(0.95); }

        /* Przycisk Hexagon (Węzeł klastra) */
        .gf-btn.hex-btn {
            color: #ff9f43;
            border-color: rgba(255, 159, 67, 0.3);
        }
        .gf-btn.hex-btn.active {
            background: rgba(255, 159, 67, 0.2);
            color: #ff9f43;
            border-color: #ff9f43;
            box-shadow: 0 0 10px rgba(255, 159, 67, 0.4);
        }
        
        
        /* --- KONTROLKI ZAKŁADKI DATE (SILNIK DOPASOWANIA) --- */
        .date-info-box {
            background: rgba(255, 69, 58, 0.05);
            border: 1px solid rgba(255, 69, 58, 0.2);
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 15px;
            font-size: 12px;
            color: #ddd;
            line-height: 1.5;
        }
        .date-info-title {
            font-size: 11px;
            color: #ff453a;
            font-weight: 900;
            text-transform: uppercase;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
            letter-spacing: 0.5px;
        }
        .date-chart-container {
            background: rgba(0, 0, 0, 0.4);
            border: 1px dashed rgba(255, 69, 58, 0.3);
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }
        /* Animacja fal synchronizacji */
        .sync-wave {
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
        }
        .wave-1 { stroke: var(--blue, #05d9e8); animation: waveMove 3s infinite linear; }
        .wave-2 { stroke: #ff453a; animation: waveMove 4s infinite linear reverse; }
        
        @keyframes waveMove {
            0% { stroke-dashoffset: 0; }
            100% { stroke-dashoffset: 100; }
        }
        
        /* --- EFEKTY WIZUALNE: ISONIKK WHISPER & G.A.I.A. --- */
        .gaia-core-container {
            position: relative;
            width: 150px;
            height: 150px;
            margin: 20px auto 30px auto;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .gaia-ring {
            position: absolute;
            border-radius: 50%;
            border: 2px dashed var(--blue, #05d9e8);
            animation: spinRotate 10s linear infinite;
        }
        .gaia-ring.inner { width: 80px; height: 80px; border-color: var(--pink, #ff2a6d); animation-direction: reverse; animation-duration: 6s; }
        .gaia-ring.middle { width: 110px; height: 110px; opacity: 0.7; }
        .gaia-ring.outer { width: 150px; height: 150px; border-style: dotted; border-color: var(--purple, #9d4edd); animation-duration: 15s; opacity: 0.4; }
        
        .gaia-center {
            width: 40px; height: 40px; background: var(--blue, #05d9e8); border-radius: 50%;
            box-shadow: 0 0 30px var(--blue, #05d9e8), inset 0 0 10px #fff;
            animation: aiPulse 2s infinite; z-index: 10;
        }

        @keyframes spinRotate { 100% { transform: rotate(360deg); } }

        .whisper-lore-box {
            background: rgba(5, 217, 232, 0.05);
            border-left: 3px solid var(--blue, #05d9e8);
            padding: 15px;
            border-radius: 0 16px 16px 0;
            margin-bottom: 15px;
            backdrop-filter: blur(5px);
        }
        .whisper-lore-title {
            color: var(--blue, #05d9e8); font-size: 11px; font-weight: 900; text-transform: uppercase;
            letter-spacing: 2px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
        }
        .whisper-lore-text { font-size: 13px; color: #ccc; line-height: 1.6; }
        .text-highlight { color: #fff; font-weight: 800; }
        .text-pink { color: var(--pink, #ff2a6d); font-weight: 800; }

        .cyber-btn {
            background: transparent;
            border: 1px solid var(--blue, #05d9e8);
            color: var(--blue, #05d9e8);
            width: 100%; padding: 16px; border-radius: 12px; font-weight: 900; letter-spacing: 2px;
            text-transform: uppercase; cursor: pointer; transition: 0.3s;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            position: relative; overflow: hidden;
        }
        .cyber-btn::before {
            content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(5,217,232,0.4), transparent);
            transition: 0.5s;
        }
        .cyber-btn:hover::before { left: 100%; }
        .cyber-btn:active { transform: scale(0.98); background: rgba(5,217,232,0.2); }
        .cyber-btn.connected { background: var(--blue); color: #000; box-shadow: 0 0 20px rgba(5,217,232,0.4); }

        /* Terminal styl do symulacji połączenia */
        .terminal-box {
            background: #000; border: 1px solid #333; border-radius: 8px; padding: 15px;
            font-family: 'Courier New', Courier, monospace; font-size: 11px; color: #39ff14;
            height: 120px; overflow-y: auto; display: none; flex-direction: column; gap: 5px;
        }
        
        
        
        
        
        
        
        
        
        /* --- NOWY STYL REPOSTÓW (PRZEZROCZYSTA POWŁOKA) --- */
.glass-card.is-repost-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Wewnętrzna, solidna karta cytatu */
.glass-card.is-repost-wrapper .quoted-post {
    background: rgba(22, 22, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    cursor: pointer;
}

.is-repost-wrapper .feed-footer {
    border-top: none; /* Usuwamy kreskę nad przyciskami w przezroczystym widoku */
    padding-left: 0;
    padding-right: 0;
}

/* --- INLINE DROPDOWN DLA CYTATU (OBSERWUJ) --- */
.quote-dropdown-wrapper {
    position: relative;
    margin-left: auto;
}
.quote-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(30, 30, 35, 0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    min-width: 160px;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    animation: popInMenu 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.quote-dropdown-menu.active {
    display: block;
}
.quote-dropdown-item {
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.quote-dropdown-item:hover {
    background: rgba(255,255,255,0.05);
}
        
        
        
        
        /* --- ANIMACJA POLUBIENIA (MICRO-INTERAKCJA) --- */
@keyframes heartPopBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.5); }
    50% { transform: scale(0.85); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes heartGlow {
    0% { filter: drop-shadow(0 0 0 rgba(255, 42, 109, 0)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 42, 109, 0.8)); }
    100% { filter: drop-shadow(0 0 5px rgba(255, 42, 109, 0.4)); }
}

.feed-btn.liked i {
    color: var(--pink, #ff2a6d);
    /* Uruchamiamy dwie animacje jednocześnie: pompowanie i blask */
    animation: heartPopBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               heartGlow 0.8s ease forwards;
}
        
        
        
        .ai-spark-btn {
    position: relative;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
}
.ai-spark-btn:hover { transform: scale(1.2); }

.ai-ping {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 217, 232, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(5, 217, 232, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 217, 232, 0); }
}

.ai-suggestions-bar {
    padding: 10px;
    background: rgba(5, 217, 232, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
}

.ai-sugg-chip {
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(5, 217, 232, 0.3);
    border-radius: 15px;
    font-size: 12px;
    color: var(--blue);
    cursor: pointer;
}
.ai-sugg-chip:hover { background: rgba(5, 217, 232, 0.2); }
        /* --- X-STYLE REPLY MODAL (NOWY KOMPOZYTOR KOMENTARZY) --- */
        #replyComposerModal .compose-modal-card {
            height: 85vh; /* Wyższy modal, jak w X */
            display: flex;
            flex-direction: column;
        }
        .reply-context-area {
            display: flex;
            padding-top: 5px;
            position: relative;
        }
        .reply-left-col {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 45px;
            margin-right: 15px;
        }
        .thread-line {
            width: 2px;
            flex: 1;
            background: rgba(255, 255, 255, 0.15);
            margin-top: 8px;
            margin-bottom: -15px; /* Dociągnięcie linii do dolnego awatara */
            border-radius: 2px;
        }
        .reply-right-col {
            flex: 1;
            padding-bottom: 15px;
        }
        .reply-author-info {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 4px;
        }
        .reply-name { font-weight: 800; font-size: 15px; color: white; }
        .reply-time { font-size: 13px; color: #888; }
        .reply-text {
            font-size: 14px;
            color: #ddd;
            line-height: 1.4;
            margin-bottom: 8px;
            /* Ograniczenie tekstu oryginalnego posta do 4 linijek, żeby nie zajął całego ekranu */
            display: -webkit-box;
            -webkit-line-clamp: 4; 
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .replying-to { font-size: 13px; color: #888; }
        .replying-to span { color: var(--blue, #05d9e8); cursor: pointer; }
        /* --- BOTTOM NAV BAR --- */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(18, 18, 20, 0.90);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone notch support */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Klasa ukrywająca (ściąga pasek w dół ekranu) */
.bottom-nav-bar.hidden {
    transform: translateY(100%);
}
/* Zmieniamy klasę, by uniknąć konfliktów, i twardo wypychamy go o 150px w dół (żeby minął notch iPhone'a) */
/* Zmieniamy klasę, by uniknąć konfliktów, i twardo wypychamy go o 150px w dół (żeby minął notch iPhone'a) */
.bottom-nav-bar.scroll-hide {
    transform: translateY(150px);
}
.nav-item {
    color: #888;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: 0.2s;
}

.nav-item.active {
    color: var(--pink, #ff2a6d);
}

.nav-item:active {
    transform: scale(0.9);
}

.whisper-nav-item {
    color: #888888;
    filter: drop-shadow(0 0 8px rgba(5,217,232,0.4));
}

.relative-icon {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff453a;
    color: white;
    font-size: 9px;
    font-weight: 900;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #121214;
}

/* --- POPRAWKA FAB --- */
/* Zastąp stare .fab-compose tym: */
.fab-compose {
    position: fixed; 
    right: 20px;
    /* Domyślnie pływa NAD dolnym menu */
    bottom: calc(75px + env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pink, #ff2a6d), var(--purple, #9d4edd));
    color: white; font-size: 24px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 42, 109, 0.6); cursor: pointer; z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.fab-compose:hover { transform: scale(1.1) rotate(10deg); box-shadow: 0 15px 35px rgba(255, 42, 109, 0.8); }
.fab-compose:active { transform: scale(0.9); }

/* Gdy paski znikają, FAB opada elegancko w dół! */
body.nav-hidden .fab-compose {
    bottom: calc(22px + env(safe-area-inset-bottom));
}
/* --- SECRET WHISPER OVERLAY --- */
.secret-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.secret-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Animacja Headera (Wyjeżdża z góry) */
.secret-header {
    padding: max(20px, env(safe-area-inset-top)) 20px 20px;
    border-bottom: 1px dashed rgba(157, 78, 221, 0.3);
    display: flex; align-items: center; gap: 15px;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
    transition-delay: 0.1s;
}
.secret-overlay.active .secret-header { transform: translateY(0); opacity: 1; }

/* Animacja Środka (Płynnie rośnie) */
.secret-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}
.secret-overlay.active .secret-body { transform: scale(1); }

.secret-post-text {
    font-size: 18px; color: #fff; font-weight: 600; text-align: center;
    line-height: 1.5; margin-bottom: 40px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

/* Animacja 'Whisper about it' */
.secret-whisper-trigger {
    display: flex; flex-direction: column; align-items: center; cursor: pointer;
}
.whisper-orb {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(157, 78, 221, 0.2);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(157, 78, 221, 0.5);
    margin-bottom: 15px;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.3);
    animation: orbPulse 2s infinite alternate ease-in-out;
}
.orb-core {
    width: 20px; height: 20px; background: var(--purple, #9d4edd);
    border-radius: 50%; box-shadow: 0 0 20px #fff;
    animation: corePulse 1s infinite alternate;
}
.whisper-tiny-text {
    font-size: 9px; color: var(--purple, #9d4edd); text-transform: uppercase;
    letter-spacing: 4px; font-weight: 900; opacity: 0.7;
}

@keyframes orbPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 20px rgba(157, 78, 221, 0.2); }
    100% { transform: scale(1.1); box-shadow: 0 0 50px rgba(157, 78, 221, 0.6); border-color: var(--purple); }
}
@keyframes corePulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* Animacja Stopki (Wyjeżdża z dołu) */
.secret-footer {
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    display: flex; justify-content: center;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
    transition-delay: 0.2s;
}
.secret-overlay.active .secret-footer { transform: translateY(0); opacity: 1; }

.secret-close-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #aaa; padding: 12px 30px; border-radius: 30px; font-size: 11px;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
}
/* --- ISONIKK SHORTS --- */
.shorts-carousel {
    display: flex;
    gap: 15px;
    padding: 0 15px 20px 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.shorts-carousel::-webkit-scrollbar { display: none; }

.short-card {
    flex: 0 0 85%; /* Karta zajmuje 85% szerokości ekranu, widać krawędź następnej! */
    height: 70vh;  /* Duża wysokość - prawie cały ekran */
    max-height: 600px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: center;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.short-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.short-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.9) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 15px;
    pointer-events: none; /* Żeby kliknięcia przechodziły do wideo, chyba że to ikona */
}

.short-info {
    flex: 1;
    padding-right: 15px;
    pointer-events: auto;
}

.short-author {
    display: flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 15px; color: #fff; margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.short-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--pink, #ff2a6d); }

.short-desc {
    font-size: 13px; color: #eee; line-height: 1.4; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.short-music {
    font-size: 11px; font-weight: 700; color: var(--blue, #05d9e8);
    display: flex; align-items: center; gap: 5px;
}
.short-music i { animation: spinRotate 4s linear infinite; }

.short-actions {
    display: flex; flex-direction: column; gap: 15px; align-items: center;
    pointer-events: auto;
    padding-bottom: 10px;
}

.s-action {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: #fff; cursor: pointer; transition: 0.2s;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}
.s-action i { font-size: 24px; }
.s-action span { font-size: 11px; font-weight: 800; }
.s-action:active { transform: scale(0.8); }
.s-action:hover i { color: var(--pink, #ff2a6d); }
/* --- FULL-BLEED VIDEO POST --- */
.full-bleed-post {
    position: relative;
    /* Ujemne marginesy "łamią" siatkę i dotykają krawędzi ekranu telefonu */
    margin: 0 -10px 20px -10px; 
    width: calc(100% + 20px);
    height: 75vh; /* Wysokość na 3/4 ekranu */
    max-height: 800px;
    background: #000;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.full-bleed-post video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sound-toggle-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    pointer-events: none; /* Kliknięcie przechodzi na wideo pod spodem */
    z-index: 10;
}

.fb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 20%, transparent 50%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 15px;
    pointer-events: none; /* Pozwala klikać wideo, aby wyciszyć/odciszyć */
}

.fb-info {
    flex: 1;
    padding-right: 15px;
    pointer-events: auto;
}

.fb-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.fb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--pink);
}

.fb-follow-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.fb-desc {
    font-size: 14px;
    color: #eee;
    line-height: 1.4;
    margin-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.fb-music {
    font-size: 12px;
    color: var(--blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fb-music i { animation: spinRotate 4s linear infinite; }

.fb-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    pointer-events: auto;
    padding-bottom: 10px;
}

.fb-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}
.fb-action-btn i { font-size: 28px; }
.fb-action-btn span { font-size: 12px; font-weight: 800; }
.fb-action-btn:active { transform: scale(0.8); }
.fb-action-btn:hover i { color: var(--pink); }
    
    
    /* --- VOICE COMPOSER STYLES --- */
.voice-overlay {
    position: fixed; inset: 0;
    background: radial-gradient(circle at center, rgba(15, 10, 30, 0.98) 0%, #050508 100%);
    backdrop-filter: blur(20px);
    display: none; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease;
}
.voice-overlay.active { display: flex; opacity: 1; }

.voice-content { width: 85%; max-width: 400px; text-align: center; }

.voice-status {
    color: var(--blue); font-weight: 900; letter-spacing: 3px;
    text-transform: uppercase; font-size: 10px; margin-bottom: 30px;
}

/* Animacja fali */
.voice-wave-container {
    display: flex; justify-content: center; align-items: center; gap: 5px; height: 60px; margin-bottom: 40px;
}
.wave-bar {
    width: 4px; height: 10px; background: var(--blue); border-radius: 2px;
    animation: waveBounce 1s infinite ease-in-out;
}
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }

@keyframes waveBounce {
    0%, 100% { height: 10px; background: var(--blue); }
    50% { height: 50px; background: var(--purple); }
}

.voice-transcript-area {
    color: white; font-size: 18px; font-weight: 600; min-height: 80px;
    margin-bottom: 30px; line-height: 1.5; font-style: italic;
}

.voice-ai-tools {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px;
}

.voice-fixed-suggestions {
    display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.05);
}

.voice-cancel-btn {
    position: absolute; bottom: 40px; background: rgba(255,69,58,0.1);
    border: 1px solid #ff453a; color: #ff453a; padding: 12px 25px;
    border-radius: 30px; font-weight: 800; text-transform: uppercase; cursor: pointer;
}

/* Nowy chip dla wirtualnego asystenta */
.vibe-tag-active {
    background: var(--blue); color: black; padding: 8px 15px; border-radius: 12px;
    font-weight: 900; font-size: 12px; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    
    #shortsPlayerContainer {
    scrollbar-width: none; /* Ukrywa scrollbar */
    -ms-overflow-style: none;
}
#shortsPlayerContainer::-webkit-scrollbar { display: none; }

.fs-short-wrapper {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    background: #000;
}

.fs-short-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
    
    /* BLOKADA MENU SYSTEMOWEGO DLA PRZYCISKU HOME */
#homeNavBtn {
    -webkit-touch-callout: none; /* Blokuje popup na iOS */
    -webkit-user-select: none;   /* Blokuje zaznaczanie */
    user-select: none;
    cursor: pointer;
}
    
    
    
    /* --- STYLIZACJA HELP MENU W VOICE COMPOSERZE --- */
.voice-info-btn {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    right: 20px;
    font-size: 24px;
    color: var(--blue);
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    z-index: 10;
    padding: 10px;
}
.voice-info-btn:hover { opacity: 1; transform: scale(1.1); color: white; }

.voice-help-panel {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(5,217,232,0.3);
    border-radius: 24px 24px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
    display: flex; flex-direction: column;
    max-height: 75vh;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
}
.voice-help-panel.active { transform: translateY(0); }

.vh-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: white; }
.vh-close { background: rgba(255,255,255,0.1); width: 30px; height: 30px; border-radius: 50%; border: none; color: white; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.vh-toggle-row { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.03); padding: 12px 15px; border-radius: 12px; margin-bottom: 15px; color: #ccc; font-size: 13px; font-weight: 700; border: 1px solid rgba(255,255,255,0.05); }

.vh-content-area { overflow-y: auto; flex: 1; padding-bottom: env(safe-area-inset-bottom); scrollbar-width: none; }

.vh-list { list-style: none; padding: 0; margin: 0; display: none; }
.vh-list.active { display: block; animation: fadeIn 0.3s ease; }

/* Styl prostej listy */
#vh-simple-list li { 
    padding: 14px 15px; background: rgba(5,217,232,0.05); margin-bottom: 8px; 
    border-radius: 12px; color: var(--blue); font-weight: 700; font-size: 14px; 
    border: 1px solid rgba(5,217,232,0.2); display: block; align-items: center; gap: 12px; 
}
#vh-simple-list li i { font-size: 16px; width: 20px; text-align: center; }

/* Styl szczegółowej listy */
#vh-detailed-list li { 
    padding: 15px; background: rgba(0,0,0,0.3); margin-bottom: 10px; 
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); 
}
#vh-detailed-list strong { 
    color: var(--pink); display: flex; align-items: center; gap: 8px; 
    font-size: 13px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px;
}
#vh-detailed-list p { margin: 0; font-size: 12px; color: #aaa; line-height: 1.5; }

/* Aktywny switch ma świecić na niebiesko */
#voiceHelpToggle:checked + .pref-slider-ui { background-color: var(--blue) !important; }
    
    
    /* --- STYLIZACJA LISTY AKORDEONU W VOICE COMPOSERZE --- */
#vh-simple-list {
    list-style: none; padding: 0; margin: 0;
}

.vh-acc-item {
    background: rgba(5,217,232,0.05);
    border: 1px solid rgba(5,217,232,0.2);
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: background 0.3s;
}

.vh-acc-header {
    padding: 14px 15px;
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.vh-acc-header i:first-child {
    font-size: 16px; width: 25px; text-align: center;
}

.vh-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #aaa;
    transition: transform 0.3s ease;
}

.vh-acc-content {
    max-height: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    transition: max-height 0.4s ease-out;
}

/* Kiedy element jest rozwinięty */
.vh-acc-item.open {
    background: rgba(5,217,232,0.1);
    border-color: var(--blue);
}

.vh-acc-item.open .vh-arrow {
    transform: rotate(180deg);
    color: var(--blue);
}

.vh-acc-item.open .vh-acc-content {
    /* Ustawiamy bardzo dużą wartość max-height na czas trwania animacji, żeby zmieścić zawartość */
    max-height: 300px; 
}

/* Warianty opcji wewnątrz rozwiniętego menu */
.vh-sub-opt {
    padding: 10px 15px 10px 40px;
    font-size: 12px;
    color: #ccc;
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    cursor: pointer;
}

.vh-sub-opt:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

/* Dodajemy myślnik przed każdym opcją */
.vh-sub-opt::before {
    content: '-';
    position: absolute;
    left: 25px;
    color: var(--blue);
}
    
    /* Wymuszenie, aby modal opcji posta był ZAWSZE nad nakładką profilu */
#postOptionsModal {
    z-index: 25000 !important; 
}
    .compose-modal-overlay {
    z-index: 25000 !important; 
}
   
   
    
    /* --- STYL KART POWIADOMIEŃ --- */
    .notif-card {
        display: flex;
        gap: 15px;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.02);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        cursor: pointer;
        transition: 0.2s;
    }
    .notif-card:active { background: rgba(255, 255, 255, 0.08); transform: scale(0.98); }
    
    /* Podświetlenie nieprzeczytanych */
    .notif-card.unread { 
        background: rgba(5, 217, 232, 0.05); 
        border-left: 3px solid var(--blue); 
        padding-left: 17px; 
    }
    
    .notif-avatar {
        width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5);
        border: 1px solid rgba(255,255,255,0.1); position: relative;
    }
    
    /* Mała ikonka akcji nałożona na awatar */
    .notif-small-icon {
        position: absolute; bottom: -2px; right: -4px; width: 22px; height: 22px;
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        font-size: 10px; color: #000; border: 2px solid #121215;
    }
    
    .notif-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
    .notif-title { font-size: 13px; font-weight: 800; color: white; margin-bottom: 4px; }
    .notif-text { font-size: 12px; color: #aaa; line-height: 1.4; margin-bottom: 6px; }
    .notif-text strong { color: #ddd; font-weight: 700; }
    .notif-time { font-size: 10px; color: #666; font-weight: 600; }

.fa-crown {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
    animation: crownPulse 2s infinite alternate;
}

.fa-gem {
    filter: drop-shadow(0 0 5px rgba(5, 217, 232, 0.6));
}

@keyframes crownPulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}
/* --- LISTA PIONOWA ZNAJOMYCH (OVERLAY) --- */
.suggested-list-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: pointer;
}
.suggested-list-item:active { 
    background: rgba(255,255,255,0.05); 
}
.suggested-list-avatar {
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-right: 15px; 
    border: 2px solid rgba(5, 217, 232, 0.3);
}
.suggested-list-info { 
    flex: 1; 
    padding-right: 10px;
}
.suggested-list-name { 
    font-size: 15px; 
    font-weight: 800; 
    color: white; 
    margin-bottom: 4px; 
}
.suggested-list-desc { 
    font-size: 12px; 
    color: #888; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    line-height: 1.3;
} 

 
/* --- ANIMACJA SYNCHRONIZACJI AWATARA --- */
.sync-avatar-wrapper {
    position: relative;
    width: 46px; /* Lekko większe niż sam awatar */
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.sync-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none; /* Żeby kliknięcie przechodziło na wrapper */
}
.sync-progress-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg); /* Zaczyna od godz. 12:00 */
    z-index: 1;
    pointer-events: none;
}
.sync-ring-bg {
    fill: none;
    stroke: transparent;
    stroke-width: 2;
}
.sync-ring-fill {
    fill: none;
    stroke: #ffd700; /* Złoty kolor iSonikk Core */
    stroke-width: 3;
    stroke-dasharray: 145; /* Obwód koła */
    stroke-dashoffset: 145; /* Na starcie ukryte */
    transition: stroke-dashoffset 0s linear; 
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    border-radius: 50%;
}
/* Klasa dodawana z JS, gdy trzymasz palec */
.sync-avatar-wrapper.is-syncing .sync-ring-fill {
    transition: stroke-dashoffset 1.5s linear; /* Czas ładowania: 1.5 sekundy */
    stroke-dashoffset: 0;
}
.sync-avatar-wrapper.is-syncing .sync-avatar-img {
    transform: scale(0.9);
    transition: transform 1.5s ease;
}

/* Animacja pojawiania się nowej karty w Feedzie */
@keyframes slideDownScale {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
/* Modal dla mediów */
.media-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.media-modal-content {
    position: relative;
    z-index: 100001;
    max-width: 90%;
    max-height: 90vh;
    background: #1e1e24;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.media-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100002;
    transition: 0.2s;
}

.media-modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.media-modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    display: block;
}

.media-modal-prompt {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: #ccc;
    font-size: 13px;
    text-align: center;
}

.media-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.media-modal-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-modal-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(0.95);
}
 
    
    .mic-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--pink, #ff2a6d);
    border: none;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,42,109,0.3);
    transition: transform 0.2s;
    z-index: 10;
}
.mic-btn:hover {
    transform: scale(1.1);
}
    .post-options {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 12px;
}
.toggle-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.toggle-btn input[type="checkbox"] {
    display: none;
}
.toggle-btn .toggle-text {
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.toggle-btn input[type="checkbox"]:checked + .toggle-text {
    background: var(--blue, #05d9e8);
    color: #000;
    border-color: var(--blue);
}
    
    
    
    