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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overflow-x: hidden;
}


body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-image: url('/pics/back/skypetia.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #e0d0ff;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #0d0a1e;
    padding: 20px 16px 100px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid #1a1440;
    z-index: 1200;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        left: -280px;
        width: 280px;
        max-width: 85vw;
        transition: left 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 4px 0 25px rgba(0,0,0,0.5);
        border-right: none;
        padding-bottom: 140px;
    }

        .sidebar.active {
            left: 0;
        }

        .sidebar:not(.active) {
            left: -280px;
            display: block;
        }
}

@media (min-width: 1025px) {
    .sidebar {
        position: relative;
        flex-shrink: 0;
    }
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #c4a0ff;
    text-align: center;
    width: 100%;
}

    .logo img {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        object-fit: cover;
    }

.logo-info {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #c4a0ff;
    text-align: center;
    width: 100%;
}
    .logo-info img {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        object-fit: cover;
    }   


.search {
    position: relative;
}

    .search input {
        width: 100%;
        padding: 12px 40px 12px 16px;
        border: none;
        border-radius: 30px;
        background: #1a1440;
        color: #e0d0ff;
        font-size: 15px;
    }

    .search i {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #a78bfa;
    }

nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #d0c0ff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.2s;
}

    nav a:hover,
    nav a.active {
        background: #2a1b4d;
        color: #fff;
    }

.footer-info {
    margin-top: auto;
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 6px;
}

/* Hamburger & Overlay */
.hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1300;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }
}

.hamburger span {
    display: block;
    width: 44px;
    height: 3px;
    background: #e0d0ff;
    margin: 5px auto;
    transition: all 0.3s;
    border-radius: 3px;
}

.sidebar.active + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.sidebar.active + .hamburger span:nth-child(2) {
    opacity: 0;
}

.sidebar.active + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

/* Video-Bereich & Feed – zentriert */
.video-main {
    flex: 1;
    position: relative;
    background-image: url('/pics/back/skypetia.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

@media (min-width: 1025px) {
    .video-main {
        padding: 20px;
    }

    .feed-container,
    .video-slide {
        width: 100%;
        max-width: 600px;
        height: 100vh;
        max-height: 90vh;
        margin: 0 auto;
        background: linear-gradient(135deg, #4396DD 0%, #7C7CD6 50%, #8A65C7 100%);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 0 40px rgba(0,0,0,0.6);
    }
}

@media (max-width: 1024px) {
    .video-main {
        margin-left: 0;
        padding: 0;
        position: fixed;
        inset: 0;
        height: 100dvh;
        width: 100dvw;
    }

    .feed-container,
    .video-slide {
        width: 100dvw;
        height: 100dvh;
    }
}

.feed-container {
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    pointer-events: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .feed-container::-webkit-scrollbar {
        display: none;
    }

.video-slide {
    scroll-snap-align: start;
    position: relative;
    background: #000;
}

.videoEl {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress-Bar */
.progress-bar {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.25);
    z-index: 50;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    transition: width 0.18s linear;
}

/* Rechte Action-Bar */
.right-bar {
    position: absolute;
    right: 16px;
    bottom: 200px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 40;
    text-align: center;
    pointer-events: auto;
    color: #fff !important;
}

    /* Action Icons */
    .action,
    .right-bar a.action,
    .right-bar a.action:link,
    .right-bar a.action:visited,
    .right-bar a.action:hover,
    .right-bar a.action:active,
    .right-bar a.action:focus {
        color: #fff !important;
        text-decoration: none !important;
        text-shadow: 0 2px 6px black;
    }

        /* Icon */
        .action i {
            font-size: 20px;
            margin-bottom: 6px;
            display: block;
            color: white;
        }

        /* Counter unter dem Icon */
        .action span {
            color: #fff;
        }

/* Action-Bar bei Promo ausblenden */
.video-slide[data-promo="true"] .right-bar {
    display: none;
}

/* Bottom User-Info */
.bottom-user {
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 40;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 16px;
    border-radius: 16px 16px 0 0;
    backdrop-filter: blur(6px);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #444 center/cover;
    border: 2px solid #a78bfa;
}

/* Promo-Videos: Logo statt Avatar */
.video-slide[data-promo="true"] .bottom-user .avatar {
    background: url('/skypetia-logo.png') center/cover no-repeat !important;
    border-color: #c084fc;
    background-color: transparent !important;
}

/* Sound-Toggle pro Video */
.video-slide .sound-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 60;
    backdrop-filter: blur(8px);
}

    .video-slide .sound-toggle.muted i {
        color: #ff4444;
    }

/* Globaler Sound-Toggle (oben rechts) */
.sound-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(26,20,64,0.7);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    z-index: 1400;
    transition: all 0.2s ease;
}

    .sound-toggle:hover {
        background: rgba(26,20,64,0.9);
        transform: scale(1.1);
    }

    .sound-toggle.muted i {
        color: #ff4444;
    }

/* Bottom Navigation – nur Mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1100;
    padding: 0 8px;
    pointer-events: auto;
}

@media (min-width: 1025px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Footer-Buttons in Sidebar (Desktop) */
@media (min-width: 1025px) {
    .nav-desktop-only {
        display: block;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

        .nav-desktop-only a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            color: #d0c0ff;
            text-decoration: none;
            font-size: 16px;
            border-radius: 12px;
            transition: all 0.2s;
        }

            .nav-desktop-only a:hover,
            .nav-desktop-only a.active {
                background: #2a1b4d;
                color: #fff;
            }

        .nav-desktop-only .plus {
            padding: 12px 16px;
        }
}

@media (max-width: 1024px) {
    .nav-desktop-only {
        display: none !important;
    }
}

/* =========================
   Bottom Navigation (Mobile)
   ========================= */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.12);
    z-index: 3000;
}

    /* Jeder Button im Footer */
    .bottom-nav .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
        color: rgba(255,255,255,0.85);
        font-size: 11px;
        font-weight: 400;
        text-decoration: none;
        user-select: none;
        cursor: pointer;
        pointer-events: auto;
        transition: color 0.15s ease, transform 0.15s ease;
    }

        /* Icons im Footer */
        .bottom-nav .nav-item i {
            font-size: 22px;
            line-height: 1;
        }

        /* Label */
        .bottom-nav .nav-item span {
            font-size: 11px;
            line-height: 1;
        }

        /* Active State */
        .bottom-nav .nav-item.active {
            color: #4396DD !important;
        }

        /* Optional: leichte Tap-Animation */
        .bottom-nav .nav-item:active {
            transform: scale(0.98);
        }

/* Optional: Hover für Desktop (falls Footer dort sichtbar) */
@media (hover: hover) {
    .bottom-nav .nav-item:hover {
        color: #ffffff;
    }
}

/* Falls du vorher eine Linie/::after hattest: hart deaktivieren */
.bottom-nav .nav-item::after,
.bottom-nav .nav-item.active::after {
    content: none !important;
    display: none !important;
}


/* Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .auth-modal-overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* Modal Box */
.auth-modal {
    background: rgba(26,20,64,0.85);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(167,139,250,0.2);
    z-index: 1200;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.modal-logo {
    text-align: center;
    margin-bottom: -40px;
}

    .modal-logo img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-bottom: 8px;
    }

    .modal-logo h2 {
        font-size: 28px;
        color: #c4a0ff;
        margin: 0;
    }

.auth-modal h3 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.modal-text {
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 24px;
    line-height: 1.5;
}

    .modal-text a {
        color: #a78bfa;
        text-decoration: underline;
    }

.modal-tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

    .modal-tabs button {
        flex: 1;
        padding: 12px;
        background: none;
        border: none;
        color: #d0c0ff;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.2s;
    }

        .modal-tabs button.active {
            background: rgba(167,139,250,0.3);
            color: #fff;
            font-weight: bold;
        }

.modal-form {
    display: none;
}

    .modal-form.active {
        display: block;
    }

.input-group {
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        opacity: 0.9;
    }

    .input-group input {
        width: 100%;
        padding: 14px 16px;
        border: 1px solid rgba(167,139,250,0.3);
        border-radius: 12px;
        background: rgba(26,20,64,0.5);
        color: #fff;
        font-size: 16px;
    }

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(167,139,250,0.4);
    }

.modal-or {
    text-align: center;
    margin: 16px 0;
    opacity: 0.6;
    font-size: 14px;
}

.btn-social {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

    .btn-social.google {
        background: #4285f4;
    }

    .btn-social.apple {
        background: #000;
    }

.auth-modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}
/* Logout-Button in Sidebar (Desktop) */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ff4444;
    text-decoration: none;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.2s;
    margin-top: 16px;
}

    .logout-btn:hover {
        background: rgba(255,68,68,0.15);
        color: #fff;
    }

    .logout-btn i {
        font-size: 24px;
    }

.auth-modal-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

    .auth-modal-overlay.show {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

.error-msg {
    color: #ff4444;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    padding: 8px;
    background: rgba(255,68,68,0.15);
    border-radius: 8px;
}

/* Bilder füllen den ganzen Slide wie Videos */
.video-slide .slide-img,
.video-slide .productImg,
.video-slide .image-wrapper > img,
.video-slide .image-wrapper > video {
    width: 100%;
    height: 100%;
    display: block;
}


/* -------------------------------------------
   Toggle Button (Kreis)
-------------------------------------------- */
.video-slide .bottom-user .info-toggle {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
}

/* -------------------------------------------
   2 Zeilen Standard (ALLE Geräte)
-------------------------------------------- */
.video-slide .bottom-user .info p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Expanded: kompletter Text */
.video-slide .bottom-user.expanded .info p {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
}

/* Pfeil drehen wenn expanded */
.video-slide .bottom-user.expanded .info-toggle i {
    transform: rotate(180deg);
}
/* ===== FIX: Avatar & Toggle NIE verzerren (Mobile + Desktop) ===== */
.video-slide .bottom-user {
    align-items: flex-start !important;
}

    .video-slide .bottom-user .avatar {
        flex: 0 0 50px !important;
        width: 50px !important;
        height: 50px !important;
        aspect-ratio: 1 / 1 !important;
        align-self: flex-start !important;
    }

    .video-slide .bottom-user .info-toggle {
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        aspect-ratio: 1 / 1 !important;
        align-self: flex-start !important;
    }

    .video-slide .bottom-user .info {
        flex: 1 1 auto;
        min-width: 0;
    }
/* Multi-Image Wrapper */
.image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-image: url('/pics/back/skypetia.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Bilder übereinander, nur active sichtbar */
.slide-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    object-fit: contain;
    object-position: center;
    
}

    .slide-img.active {
        opacity: 1;
    }

/* Counter oben */
.image-counter {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 20px;
    pointer-events: auto;
}

    .image-counter button {
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
    }

/* =====================================================
   MOBILE UI FIX – EINDEUTIG UND ÜBERSCHREIBEND
===================================================== */
@media (max-width: 1024px) {

    /* Footer Icons */
    .bottom-nav .nav-item i {
        font-size: 20px !important;
    }

    .bottom-nav .nav-item span {
        font-size: 10px !important;
    }



    /* Right Action Bar */
    .right-bar .action i {
        font-size: 32px !important;
        color: white;
    }

    .right-bar .action span {
        font-size: 20px !important;
        font-weight: 600;
    }

    /* Avatar */
    .video-slide .bottom-user .avatar {
        width: 54px !important;
        height: 54px !important;
    }

    /* Infotext TITEL Username*/
    .video-slide .bottom-user .info strong {
        font-size: 20px !important;
    }

    .video-slide .bottom-user .info p {
        font-size: 14px !important;
        line-height: 1.4;
        bottom: 68px !important;
    }

    /* Hamburger */
    .hamburger {
        width: 50px !important;
        height: 50px !important;
    }

        .hamburger span {
            width: 32px !important;
            height: 4px !important;
        }

    .image-counter {
        font-size: 16px !important;
        padding: 8px 14px !important;
    }

        .image-counter button i {
            font-size: 18px !important;
        }
}


@media (min-width: 1025px) {

    /* Textbox ganz nach unten */
    .video-slide .bottom-user {
        border-radius: 0 0 16px 16px;
        margin: 0;
        bottom: 0 !important;
    }

    /* Progress-Bar am Fuss */
    .video-slide .progress-bar {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0px !important;
    }

    /* Desktop: Avatar + Toggle-Button nicht verzerren */
    .video-slide .bottom-user {
        align-items: center;
    }

        .video-slide .bottom-user .avatar {
            flex: 0 0 50px;
            width: 50px;
            height: 50px;
            aspect-ratio: 1 / 1;
        }

        .video-slide .bottom-user .info-toggle {
            flex: 0 0 34px;
            width: 34px;
            height: 34px;
            aspect-ratio: 1 / 1;
        }
}

.video-slide .bottom-user {
    bottom: 4px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border-radius: 0 0 16px 16px !important;
}
/* ===== FINAL FIX: Bottom-User wirklich am Card-Fuss (Desktop+Mobile) ===== */
.video-slide {
    position: relative !important;
}

    /* Box ganz unten in der Slide */
    .video-slide .bottom-user {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0px !important;
        margin: 0 !important;
        border-radius: 0 0 16px 16px !important;
    }



    /* Progressbar am Fuss */
    .video-slide .progress-bar {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

/* ===== MOBILE: Info-Box + Progress-Bar über dem Footer platzieren ===== */
@media (max-width: 1024px) {

    /* Nicht-Promo-Slides (Bilder): Footer bleibt sichtbar -> UI nach oben schieben */
    .video-slide:not([data-promo="true"]) .bottom-user {
        bottom: calc(68px + 8px) !important;
        left: 16px !important;
        right: 16px !important;
    }

    .video-slide:not([data-promo="true"]) .progress-bar {
        bottom: 68px !important;
    }

    /* Promo-Slides (Videos): Footer wird ausgeblendet -> alles darf wieder ganz nach unten */
    .video-slide[data-promo="true"] .bottom-user {
        bottom: 8px !important;
    }

    .video-slide[data-promo="true"] .progress-bar {
        bottom: 0 !important;
    }
}

.flash-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 12px 40px 12px 16px;
    border-radius: 8px;
    z-index: 9999;
    cursor: pointer;
    font-size: 14px;
    max-width: 90%;
}

.flash-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.candle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.candle-card {
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    overflow: hidden;
}

    .candle-card img {
        width: 100%;
        height: 140px;
        object-fit: cover;
    }

.candle-info {
    padding: 12px;
    font-size: 13px;
}

.candle-user {
    margin-top: 6px;
    color: #ffb347;
}

.candle-total {
    margin-top: 4px;
    color: #ffa726;
}

/* ===== Mein Himmel Layout ===== */
.main-himmel {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #4396DD 0%, #7C7CD6 50%, #8A65C7 100%);
    min-width: 0;
    display: block;
    justify-content: center;
    align-items: flex-start;
    z-index: 1;
    overflow-y: auto;
    padding-top: 90px;
}

.mh-wrap {
    max-width: 600px;
    padding-top: 100px 14px 90px;
    margin: 0 auto;
    padding: 0px 14px 90px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto !important;
}

.mh-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 14px;
}

    .mh-card h2 {
        margin: 0 0 10px 0;
        font-size: 18px;
    }

    /* Forms in Mein Himmel etwas ordentlicher */
    .mh-card input[type="text"],
    .mh-card input[type="file"],
    .mh-card textarea {
        width: 100%;
        max-width: 100%;
        display: block;
        margin: 6px 0 10px;
    }

    .mh-card button {
        margin-top: 8px;
    }

/* Grid für Karten (Tierprofile / Kerzen) */
.mh-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 900px) {
    .mh-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .mh-grid {
        grid-template-columns: 1fr;
    }
}

/* Thumbnails in Cards */
.mh-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/*Avatar buttons*/
input[type="radio"]:checked + img {
    border: 30px solid #4396DD;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 10px;
    margin-top: 15px;
}

.grid-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Das erste Bild (groß) */
    .grid-item.main {
        grid-column: span 2;
        grid-row: span 2;
        border: 1px solid rgba(255,255,255,.14);
    }

    .grid-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Das Plus-Icon für leere Slots */
    .grid-item.empty i {
        font-size: 24px;
        color: rgba(255, 255, 255, 0.2);
    }

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-media {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
}

    .slide-media.active {
        display: block;
    }

.slide-video {
    background: #000;
    object-fit: contain;
    object-position: center;
}

.slide-sound {
    position: absolute;
    right: 16px;
    bottom: 120px;
    z-index: 5;
}

    .slide-sound.hidden {
        display: none;
    }

.feed-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.media-stage {
    position: relative;
    width: min(92vw, 520px);
    max-height: 88vh;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
}

    .media-stage img,
    .media-stage video {
        width: 100%;
        height: 100%;
        max-height: 88vh;
        object-fit: contain;
        display: block;
        border-radius: 18px;
    }

.media-actions {
    position: absolute;
    right: 12px;
    bottom: 24px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .action-btn span {
        font-size: 11px;
        margin-top: 2px;
    }

.feed-card,
.video-slide.image-slide {
    position: relative;
    overflow: hidden;
}

.comment-sidebar {
    position: absolute;
    top: 72px;
    right: 0;
    bottom: 80px; /* Platz für bottom-user */
    width: 320px;
    max-width: 88vw;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    border-left: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px 0 0 18px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 55;
    overflow: hidden;
}

    .comment-sidebar.open {
        transform: translateX(0);
    }

.comment-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 12px;
    min-height: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    background: rgba(10, 10, 10, 0.98);
}

    .comment-sidebar-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
    }

.comment-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.comment-list-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.comment-list {
    height: 100%;
    overflow-y: auto;
    padding: 12px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .comment-list::-webkit-scrollbar {
        display: none;
    }

.comment-login-hint {
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.4;
    flex-shrink: 0;
    background: rgba(10, 10, 10, 0.98);
}

.comment-form {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(10, 10, 10, 0.98);
    flex-shrink: 0;
}

    .comment-form input[type="text"] {
        flex: 1;
        border: 1px solid rgba(255,255,255,0.14);
        background: #1b1b1b;
        color: #fff;
        border-radius: 999px;
        padding: 10px 14px;
        outline: none;
    }

    .comment-form button {
        border: none;
        border-radius: 999px;
        padding: 0 14px;
        background: #ff4d6d;
        color: #fff;
        cursor: pointer;
    }
.comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
    .comment-item:last-child {
        border-bottom: none;
    }
.comment-avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    max-width: 38px;
    min-height: 38px;
    max-height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.comment-user {
    font-size: 13px;
    font-weight: 400; /* nicht fett */
    color: rgba(255,255,255,0.7);
    margin-bottom: 2px;
}

.comment-text {
    font-size: 15px;
    font-weight: 600; /* fett */
    color: #fff;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}

.comment-date {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
}
.comment-body {
    display: flex;
    flex-direction: column;
}

.action[data-action="boost"] i {
    display: block;
    transition: color 0.2s ease;
}

    /* Aktiv = kleine Flamme */
    .action[data-action="boost"] i.boost-animated {
        animation: flameFlicker 0.8s infinite alternate;
    }

/* Flackernde Farbe + Glow */
@keyframes flameFlicker {
    0% {
        color: #ffb347;
        text-shadow: 0 0 2px #ffb347, 0 0 6px #ff8000;
        transform: scale(1);
    }

    50% {
        color: #ff6a00;
        text-shadow: 0 0 4px #ff6a00, 0 0 10px #ff3300;
        transform: scale(1.08);
    }

    100% {
        color: #ffd27f;
        text-shadow: 0 0 3px #ffd27f, 0 0 8px #ff9900;
        transform: scale(1);
    }
}
.slide-message {
    position: absolute;
    left: 50%;
    bottom: 120px;
    transform: translateX(-50%);
    z-index: 3000;
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.72);
}

    .slide-message.success {
        background: rgba(20, 120, 40, 0.88);
    }

    .slide-message.error {
        background: rgba(170, 35, 35, 0.9);
    }
.candle-sidebar {
    position: absolute;
    top: 72px;
    right: 0;
    bottom: 150px;
    width: 320px;
    max-width: 88vw;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    border-left: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px 0 0 18px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 55;
    overflow: hidden;
}

    .candle-sidebar.open {
        transform: translateX(0);
    }

.candle-deco {
    text-align: center;
    padding: 10px 14px 4px;
    font-size: 24px;
    color: #ff7a00;
    flex-shrink: 0;
}

.candle-action-wrap {
    padding: 0 14px 12px;
    flex-shrink: 0;
}

.candle-light-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 12px 14px;
    background: #ff7a00;
    color: #fff;
    cursor: pointer;
}

.candle-list {
    height: 100%;
    overflow-y: auto;
    padding: 12px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .candle-list::-webkit-scrollbar {
        display: none;
    }
.candle-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.candle-inline-message {
    display: none;
    margin: 10px 12px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

    .candle-inline-message.show {
        display: block;
    }

    .candle-inline-message.error {
        background: rgba(255, 90, 90, 0.12);
        border: 1px solid rgba(255, 90, 90, 0.35);
        color: #ffb3b3;
    }

    .candle-inline-message.success {
        background: rgba(90, 200, 120, 0.12);
        border: 1px solid rgba(90, 200, 120, 0.35);
        color: #bff3c7;
    }
.candle-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;

    color: #071024;
    text-decoration: none;
    text-align: center;
    background: white; /* linear-gradient(135deg, #4396DD 0%, #7C7CD6 50%, #8A65C7 100%); */
}
.comment-delete-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
    margin-left: auto;
}

    .comment-delete-btn:hover {
        background: rgba(255,255,255,.18);
    }
.comment-status {
    display: none;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.35;
}

    .comment-status.is-success {
        display: block;
        border: 1px solid rgba(46, 204, 113, 0.35);
        background: rgba(46, 204, 113, 0.12);
        color: #d8ffe8;
    }

    .comment-status.is-error {
        display: block;
        border: 1px solid rgba(255, 92, 122, 0.45);
        background: rgba(255, 92, 122, 0.12);
        color: #ffe1e7;
    }