:root {
    --bg-color: #1e1e1e;
    --nav-bg: #2a2a2a;
    --post-bg: #222222;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --highlight: #5842F3;
    /* Lila kiemelés / gombok */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Instrument Serif', serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.logo-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 60px;
}

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

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 120px;
    animation: slideDownFade 0.8s ease-out forwards;
}

@keyframes slideDownFade {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    background-color: var(--nav-bg);
    border-radius: 80px;
    padding: 25px 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    gap: 50px;
    position: relative;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item i,
.emoji-icon {
    font-size: 28px;
}

.nav-item.active,
.nav-item:hover {
    color: var(--text-main);
}

.nav-item-avatar-wrap {
    position: relative;
}
.avatar-hunger-warning {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff4d4d;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}
.avatar-hunger-warning.avatar-hunger-flash {
    animation: avatarHungerFlash 0.8s ease-in-out infinite;
}
@keyframes avatarHungerFlash {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgba(255,77,77,0.6); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.15); box-shadow: 0 0 12px 4px rgba(255,77,77,0.5); }
}

.nav-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Floating Hat */
.nav-left {
    position: absolute;
    left: -80px;
    /* Moved further left to sit at the edge of the nav bar */
    top: -30px;
    z-index: 10;
}

.floating-hat {
    width: 100px;
    transform: rotate(-15deg);
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(-15deg);
    }

    50% {
        transform: translateY(-10px) rotate(-10deg);
    }

    100% {
        transform: translateY(0) rotate(-15deg);
    }
}

/* Balance */
.balance-container {
    background-color: var(--nav-bg);
    border-radius: 60px;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main) !important;
    text-decoration: none !important;
    position: relative;
    animation: balancePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: scale(0.5);
}

.balance-container:hover {
    color: var(--text-main) !important;
}

@keyframes balancePop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.balance-amount {
    font-size: 28px;
    font-family: 'Instrument Serif', serif;
}

/* GYÜMI változás animáció (+/-) */
.balance-change {
    position: absolute;
    right: 20px;
    top: -8px;
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
}

.balance-change--positive {
    color: #4ade80; /* zöld */
}

.balance-change--negative {
    color: #f97373; /* piros */
}

@keyframes balanceChangeFloat {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.9);
    }
    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-4px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
}

/* Post Container */
.feed {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.post {
    background-color: var(--post-bg);
    width: 600px;
    border-radius: 40px;
    /* Softer, larger border radius exactly like the image */
    padding: 30px 40px;
    /* Adjusted padding to match left alignment and top/bottom space */
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    font-family: 'Roboto', sans-serif;
}

.post-trending {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.post-content-layout {
    display: flex;
    justify-content: space-between;
}

.post-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.profile-pic {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    color: var(--text-muted);
    font-size: 18px;
    /* Slightly larger username */
}

/* Post Details */
.post-title {
    font-weight: 400;
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    margin: 0 0 12px 0;
}

.post-tags {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 20px;
    margin-top: 15px;
    /* Spacing down from tags */
}

.post-actions .fa-heart {
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.post-actions .fa-heart:hover {
    color: #ff4d4d;
}

.post-save-btn {
    margin-left: 12px;
    padding: 6px 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
}
.post-save-btn:hover {
    color: #5842F3;
}
.post-save-btn.saved,
.post-save-btn.saved:hover {
    color: #5842F3;
}

/* Media (Right side) – nincs kocka a kép körül, enyhe üveg fény */
.post-right {
    margin-left: 20px;
}

.post-right img,
.post-right video {
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: transparent;
}

.media-placeholder {
    width: 200px;
    /* Adapted from 220 to match right area width */
    height: 270px;
    background-color: #ffffff;
    border-radius: 20px;
    /* Matching the inner border radius visually inside the post */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    cursor: pointer;
    transition: transform 0.2s;
}

.media-placeholder:hover {
    transform: scale(1.02);
}

/* Post Detail Modal – másik user profilján: ugyanolyan esztétika mint a főoldali poszt */
.post-detail-modal-box {
    width: 92%;
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 24px 32px 32px;
}
.post-detail-close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
    transition: color 0.2s;
}
.post-detail-close-btn:hover {
    color: var(--text-primary, #fff);
}
#post-detail-content {
    width: 100%;
    margin-top: 36px;
    padding: 0;
}
#post-detail-content .post-detail-in-modal {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 30px 40px;
    border-radius: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: none;
}
#post-detail-content .post-detail-in-modal .post-content-layout {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
}
#post-detail-content .post-detail-in-modal .post-left {
    flex: 1;
    min-width: 0;
}
#post-detail-content .post-detail-in-modal .post-title {
    font-size: 32px;
    font-family: 'Instrument Serif', serif;
    margin: 0 0 12px 0;
}
#post-detail-content .post-detail-in-modal .post-tags {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
}
#post-detail-content .post-detail-in-modal .post-right {
    margin-left: 0;
    flex-shrink: 0;
}
#post-detail-content .post-detail-media {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
#post-detail-content .post-right .media-placeholder {
    min-height: 240px;
    width: 200px;
    height: 270px;
    font-size: 18px;
    font-family: 'Instrument Serif', serif;
}

.play-icon {
    font-size: 40px;
    color: #a0a0a0;
    margin-bottom: 12px;
}

.media-placeholder span {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
}

/* Active Viewers (Bears) */
.active-viewers {
    position: absolute;
    bottom: -25px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: -5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.active-viewers.visible {
    opacity: 1;
}

.polar-bear {
    width: 55px;
    height: auto;
    object-fit: contain;
    margin-left: -5px;
    /* Overlap slightly */
    animation: bearRun 10s infinite;
    animation-delay: calc(var(--delay) * 2);
    /* Slow down delay variation */
    display: inline-block;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
    position: absolute;
}

@keyframes bearRun {
    0% {
        transform: translateX(0) scaleX(1);
    }

    20% {
        transform: translateX(40px) scaleX(1);
    }

    25% {
        transform: translateX(40px) scaleX(-1);
    }

    45% {
        transform: translateX(-30px) scaleX(-1);
    }

    50% {
        transform: translateX(-30px) scaleX(1);
    }

    70% {
        transform: translateX(20px) scaleX(1);
    }

    75% {
        transform: translateX(20px) scaleX(-1);
    }

    95% {
        transform: translateX(0) scaleX(-1);
    }

    100% {
        transform: translateX(0) scaleX(1);
    }
}

/* Interactive Bubbles */
#bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.bubble {
    position: absolute;
    background-color: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    /* Re-enable pointer events for hover */
}

.bubble:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    /* Glow effect */
    background-color: rgba(50, 50, 50, 0.95);
    z-index: 105;
    /* Bring to front on hover */
}

.bubble.show {
    opacity: 1;
    transform: scale(1) rotate(var(--rot));
}

.bubble-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) rotate(var(--rot));
    }

    100% {
        transform: translateY(-10px) rotate(calc(var(--rot) + 5deg));
    }
}

/* New custom icons */
.nav-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.balance-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Adjustments for desktop */

/* ==================================
   Avatar Page Styles
   ================================== */

.avatar-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
    animation: slideDownFade 0.8s ease-out forwards;
}

.avatar-editor-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    width: 100%;
    margin-top: 40px;
}

.center-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-bear-img {
    height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
    z-index: 2;
    margin-bottom: -40px;
}

/* Glass UI Elements */
.glass-plate {
    background-color: rgba(40, 40, 40, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.avatar-name-plate {
    padding: 15px 80px;
    font-size: 36px;
    font-weight: 300;
    font-family: 'Instrument Serif', serif;
    z-index: 5;
    border-radius: 40px;
    background-color: rgba(40, 40, 40, 0.85);
}

.glass-icon-btn {
    width: 75px;
    height: 75px;
    border-radius: 25px;
    background-color: rgba(40, 40, 40, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    color: var(--text-main);
    z-index: 5;
}

.glass-icon-btn:hover {
    background-color: rgba(60, 60, 60, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.glass-icon-btn.active {
    border: 2px solid white;
    background-color: rgba(80, 80, 80, 0.9);
}

.glass-icon-btn svg {
    color: white;
}

/* Avatar Main Icons absolute positioning */
.pos-hat {
    position: absolute;
    top: 5px;
    right: 0px;
}

.pos-leather {
    position: absolute;
    top: 180px;
    left: -10px;
}

.pos-boot {
    position: absolute;
    bottom: 50px;
    right: 0px;
}

/* Avatar Feed & Melting UI */
.avatar-feed-container {
    position: absolute;
    bottom: -130px;
    /* Positioned below the bear and the name plate */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.avatar-feed-btn {
    width: auto;
    padding: 15px 40px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 69, 0, 0.4));
    border: 1px solid rgba(255, 165, 0, 0.4);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.avatar-feed-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.4), rgba(255, 69, 0, 0.6));
    border: 1px solid rgba(255, 165, 0, 0.8);
}

.feed-btn-text {
    font-size: 26px;
    font-family: 'Instrument Serif', serif;
    color: var(--text-main);
}

.feed-btn-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 15px;
    border-radius: 20px;
}

.feed-btn-price img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.feed-status-text {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: var(--text-muted);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s;
}

/* Avatar Melting Global Effect */
.avatar-melting-effect {
    transition: box-shadow 2s ease-in-out;
    border-radius: 40px;
    /* Box shadow is dynamically applied via inline JS based on intensity */
}

.badge-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================================
   Modals
   ================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Profilkép crop modál (Cropper.js) */
.profile-crop-modal-box {
    flex-direction: column;
}
.profile-crop-container {
    min-height: 280px;
    overflow: hidden;
}
.profile-crop-container img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
}

.modal-box.glass-panel {
    background-color: #1a1a1a;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 60px;
    display: flex;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(255, 255, 255, 0.02);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-box {
    transform: scale(1) translateY(0);
}

/* Saját poszt szerkesztő kártya – képpel megegyező design: fehér tartalom, ceruza/kuka ikonok, glass, animáció */
.my-post-edit-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.my-post-edit-overlay.show {
    opacity: 1;
}

.my-post-edit-overlay .my-post-edit-card {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.my-post-edit-overlay.show .my-post-edit-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.my-post-edit-card {
    background: rgba(22, 22, 22, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.my-post-edit-close {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 5;
}

.my-post-edit-close:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Tartalommező – sötét szürke, itt jelenik meg a poszt */
.my-post-edit-white {
    background: rgba(45, 45, 48, 0.95);
    border-radius: 20px;
    min-height: 260px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s ease;
}

.my-post-edit-white:focus-within {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.my-post-edit-view,
.my-post-edit-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-post-edit-title-text {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f0f0f0;
    line-height: 1.3;
}

.my-post-edit-desc-text {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.my-post-edit-media-wrap {
    width: 100%;
    max-height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(30, 30, 32, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-post-edit-media-wrap img,
.my-post-edit-media-wrap video {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border: none;
    background: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.my-post-edit-input,
.my-post-edit-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 15px;
    color: #f0f0f0;
    background: rgba(35, 35, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.my-post-edit-input::placeholder,
.my-post-edit-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.my-post-edit-input:focus,
.my-post-edit-textarea:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(40, 40, 43, 0.95);
}

.my-post-edit-textarea {
    resize: vertical;
    min-height: 70px;
}

.my-post-edit-save-inner {
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    align-self: flex-start;
}

.my-post-edit-save-inner:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.02);
}

/* Ceruza és kuka ikon gombok */
.my-post-edit-icon-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.my-post-edit-icon-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 2px solid;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.my-post-edit-icon-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.my-post-edit-icon-btn:active {
    transform: scale(0.98);
}

.my-post-edit-pencil {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.my-post-edit-pencil:hover {
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.my-post-edit-trash {
    border-color: rgba(255, 107, 107, 0.7);
    color: #ff6b6b;
}

.my-post-edit-trash:hover {
    border-color: #ff6b6b;
    background: rgba(255, 77, 77, 0.15);
    color: #ff6b6b;
}

/* Auth / Minimal Horizontal Modals */
.auth-modal-pill {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 80px;
    padding: 15px 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 900px;
    width: auto;
}

.modal-overlay.show .auth-modal-pill {
    transform: scale(1) translateY(0);
}

.amp-text-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.amp-title {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    color: white;
    margin: 0;
    white-space: nowrap;
}

.amp-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

.amp-input-group {
    display: flex;
}

.amp-input {
    background: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: black;
    width: 200px;
}

.amp-input::placeholder {
    color: #666;
}

.amp-input:focus {
    outline: 2px solid #5a5a5a;
}

.amp-action-group {
    display: flex;
    gap: 15px;
}

.amp-btn {
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 10px 25px;
    color: white;
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.amp-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.rules-pill {
    border-radius: 40px;
    padding: 20px 30px;
    gap: 30px;
    align-items: stretch;
}

.rules-content-horizontal {
    background: #0f0f0f;
    border-radius: 20px;
    padding: 20px 25px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    min-width: 300px;
}

.rules-content-horizontal p {
    margin: 0;
}

.huge-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 20px;
    padding: 0 40px;
}

.ghost-pill {
    border-radius: 40px;
    padding: 30px 40px;
    background: rgba(20, 10, 10, 0.95);
    border: 1px solid rgba(255, 50, 50, 0.1);
}

/* Cosmetics Modal Layout */
.cosmetics-modal-layout {
    gap: 50px;
}

.cm-left {
    background-color: rgba(40, 40, 40, 0.4);
    border-radius: 40px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
}

.modal-bear-img {
    height: 280px;
    object-fit: contain;
}

.cm-middle.cosmetics-grid {
    display: grid;
    grid-template-columns: repeat(4, 90px);
    grid-template-rows: repeat(3, 90px);
    grid-gap: 20px;
    align-items: start;
    align-content: start;
}

.empty-slot {
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.empty-slot:hover {
    background-color: rgba(50, 50, 50, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

/* Dinamikus kozmetikum slotok (kalap, csizma, bőr, kitűző) */
.cosmetic-slot {
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cosmetic-slot img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.cosmetic-slot-name {
    font-size: 11px;
    text-align: center;
    color: var(--text-muted);
    padding: 0 4px;
}

.cosmetic-slot:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.cm-right.cosmetics-tabs {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    margin-left: 20px;
}

/* Badge Modal Layout */
.badge-modal-layout {
    gap: 80px;
    align-items: center;
}

.bm-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.bm-user-block {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 40px;
    border-radius: 40px;
    background-color: rgba(40, 40, 40, 0.6);
}

.bm-bear-avatar {
    height: 100px;
    object-fit: contain;
}

.bm-username {
    font-size: 42px;
    font-family: 'Instrument Serif', serif;
    font-weight: 300;
}

.badge-btn-large {
    width: 110px;
    height: 110px;
    border-radius: 35px;
}

.badge-btn-large svg {
    width: 50px;
    height: 50px;
}

.bm-right.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    grid-gap: 25px;
}

@media (max-width: 900px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .balance-container {
        margin-left: 0;
        margin-top: 10px;
    }

    .main-nav {
        flex-direction: column;
    }
}

/* ==================================
   Messages Page Styles
   ================================== */

.messages-view {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    padding: 20px;
    animation: slideDownFade 0.8s ease-out forwards;
}

.messages-container {
    background-color: var(--post-bg);
    width: 600px;
    height: 700px;
    border-radius: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Empty State Placeholder (Matches clean dark rectangle) */
.empty-messages-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* List View */
.contact-list {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-y: auto;
}

.contact-list::-webkit-scrollbar,
.chat-messages-area::-webkit-scrollbar {
    width: 6px;
}

.contact-list::-webkit-scrollbar-thumb,
.chat-messages-area::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.contact-row {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    padding-right: 20px;
}

.contact-row:hover {
    transform: translateX(10px);
}

.contact-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-username {
    font-size: 26px;
    color: var(--text-main);
    font-family: 'Instrument Serif', serif;
}

.contact-lastmsg {
    font-size: 16px;
    color: var(--text-muted);
    font-family: 'Roboto', sans-serif;
}

.contact-send-icon {
    font-size: 28px;
    color: var(--text-muted);
}

/* Active Chat View */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    position: relative;
}

.chat-header .back-to-list {
    position: absolute;
    left: 40px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.chat-header .back-to-list:hover {
    color: var(--text-main);
}

.chat-header-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.chat-header-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header-username {
    font-size: 28px;
    font-family: 'Instrument Serif', serif;
    color: var(--text-main);
}

.chat-messages-area {
    flex: 1;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.chat-bubble-wrapper {
    display: flex;
    width: 100%;
}

.chat-bubble-wrapper.me {
    justify-content: flex-end;
}

.chat-bubble-wrapper.other {
    justify-content: flex-start;
}

.chat-bubble-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
}

.chat-bubble-wrapper.me .chat-bubble-row {
    justify-content: flex-end;
}

.chat-bubble-wrapper.other .chat-bubble-row {
    justify-content: flex-start;
}

/* Saját üzenet: ... menü (Szerkesztés / Törlés) */
.message-menu-wrap {
    position: relative;
    flex-shrink: 0;
}

.message-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.message-menu-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.message-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    bottom: 100%;
    margin-bottom: 6px;
    min-width: 140px;
    background: var(--post-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 25;
    overflow: hidden;
}

.message-menu-dropdown.show {
    display: flex;
    flex-direction: column;
}

.message-menu-option {
    padding: 10px 14px;
    text-align: left;
    border: none;
    background: none;
    color: var(--text-primary, #e0e0e0);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.message-menu-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.message-menu-option[data-action="delete"]:hover {
    color: #ff4d4d;
}

.chat-bubble {
    background-color: rgba(60, 60, 60, 0.6);
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    max-width: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
}

.chat-time {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

.chat-input-area {
    padding: 20px 40px 40px 40px;
}

.chat-input-wrapper {
    background-color: #1a1a1a;
    border-radius: 30px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    padding: 12px 10px;
    outline: none;
}

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

.send-message-btn {
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.send-message-btn:hover {
    color: var(--text-main);
}

/* ==================================
   Quests Page Styles
   ================================== */
.quests-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 20px 0 80px 0;
    animation: slideDownFade 0.8s ease-out forwards;
}

.quest-board {
    width: 700px;
    height: 300px;
    /* Adjust based on asset aspect ratio */
    background-image: url('assets/tabla.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    padding: 40px 50px;
    box-sizing: border-box;
    position: relative;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}

.quest-board:hover {
    transform: translateY(-5px);
}

.qb-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.qb-title {
    font-family: 'Instrument Serif', serif;
    font-size: 42px;
    font-weight: 300;
    margin: 0;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.qb-reward-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    color: #fff;
}

.qb-reward-badge {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.qb-reward-badge img {
    height: 30px;
}

.qb-accept-btn {
    background: rgba(100, 80, 70, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px 30px;
    color: #fff;
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: max-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.qb-accept-btn:hover {
    background: rgba(120, 95, 85, 0.8);
    transform: scale(1.05);
}

.qb-accept-btn:disabled {
    background: rgba(50, 50, 50, 0.6);
    color: #888;
    cursor: not-allowed;
    transform: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.qb-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.qb-desc-title {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    font-weight: 300;
    margin: 0 0 15px 0;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.qb-desc-text {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    color: #fff;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==================================
   Global Quest Tracker
   ================================== */
.global-quest-tracker {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 450px;
    height: 180px;
    background-image: url('assets/statusz.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.4s ease;
}

.global-quest-tracker.minimized {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: none;
    background-color: var(--nav-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
}

.global-quest-tracker.minimized:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.tracker-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.tracker-close-btn:hover {
    color: #fff;
}

.tracker-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: opacity 0.3s;
}

.global-quest-tracker.minimized .tracker-content {
    opacity: 0;
    pointer-events: none;
}

.tracker-title {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    font-weight: 300;
    margin: 0 0 5px 0;
}

.tracker-desc {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    cursor: pointer;
    transition: color 0.2s;
}

.tracker-desc:hover {
    color: #fff;
    text-decoration: underline;
}

.tracker-progress-container {
    display: flex;
    align-items: center;
    width: 80%;
    gap: 15px;
}

.tracker-progress-text {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
}

.tracker-progress-bar-bg {
    flex: 1;
    height: 15px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.tracker-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9800, #ffc107);
    width: 0%;
    transition: width 0.5s ease-out;
    border-radius: 10px;
}

.tracker-minimized {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--highlight);
}

.minimized-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--nav-bg);
}

/* ==================================
   Market Page Styles
   ================================== */

.market-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    animation: slideDownFade 0.8s ease-out forwards;
    width: 100%;
}

.market-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.market-search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 10px 20px;
    width: 300px;
    height: 50px;
    backdrop-filter: blur(10px);
}

.market-search-icon {
    width: 25px;
    height: 25px;
    opacity: 0.7;
    margin-right: 15px;
}

.market-search-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 18px;
    width: 100%;
    outline: none;
}

.market-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.market-add-btn {
    width: 80px;
    height: 80px;
    border-radius: 25px;
    font-size: 32px;
    transition: all 0.3s ease;
}

.market-add-btn:hover {
    transform: scale(1.05);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 40px;
    width: 100%;
    max-width: 1100px;
}

.market-card {
    background-color: var(--post-bg);
    border-radius: 35px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.market-card:hover {
    transform: translateY(-5px);
}

.mc-header {
    display: flex;
    align-items: center;
}

.mc-seller-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mc-stars {
    display: flex;
    gap: 2px;
}

.star-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.mc-seller-name {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    color: var(--text-muted);
}

.mc-body {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
}

.mc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mc-title {
    font-family: 'Instrument Serif', serif;
    font-size: 30px;
    font-weight: 300;
    margin: 0 0 5px 0;
    line-height: 1.1;
}

.mc-desc {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    color: var(--text-muted);
    margin: 0;
}

.mc-item-img-container {
    width: 130px;
    height: 130px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    flex-shrink: 0;
}

.mc-item-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.mc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.mc-msg-icon {
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    margin-left: 10px;
}

.mc-msg-icon:hover {
    color: var(--text-main);
}

.mc-buy-btn {
    width: auto;
    height: 50px;
    padding: 0 25px;
    border-radius: 20px;
    gap: 10px;
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
}

.mc-price {
    font-family: 'Instrument Serif', serif;
}

.mc-orange {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ==================================
   Add Market Item Modal Styles
   ================================== */
.add-market-modal-layout {
    width: 650px;
    flex-direction: column;
    padding: 40px;
    gap: 30px;
}

.ami-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ami-profile-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.ami-user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ami-stars {
    display: flex;
    gap: 3px;
}

.ami-username {
    font-family: 'Instrument Serif', serif;
    font-size: 26px;
    color: var(--text-muted);
}

.ami-form {
    display: flex;
    justify-content: space-between;
}

.ami-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    padding-right: 30px;
}

.ami-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Instrument Serif', serif;
    outline: none;
}

.ami-title-input {
    font-size: 34px;
    font-weight: 300;
}

.ami-title-input::placeholder {
    color: #ffffff;
    opacity: 0.9;
}

.ami-desc-input {
    font-size: 22px;
    resize: none;
    height: 120px;
    color: var(--text-muted);
}

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

.ami-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    width: 180px;
}

.ami-item-selector {
    width: 140px;
    height: 140px;
    border-radius: 35px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.8), rgba(20, 20, 20, 0.9));
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.ami-item-selector:hover {
    transform: scale(1.05);
}

.ami-item-selector.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.ami-item-selector img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.ami-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: flex-end;
}

.ami-send-btn {
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.ami-send-btn:hover {
    color: var(--text-main);
}

.ami-price-btn {
    width: auto;
    height: 50px;
    padding: 0 15px;
    border-radius: 15px;
    gap: 8px;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ami-price-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ami-price-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    width: 60px;
    outline: none;
    text-align: right;
}

.ami-price-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.ami-price-input::-webkit-outer-spin-button,
.ami-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ami-orange-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.ami-price-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 10px 0 0 0;
}

.ami-price-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 5px 15px;
    gap: 10px;
}

.ami-price-label {
    color: var(--text-muted);
    font-size: 18px;
    margin-right: 10px;
}

.ami-next-btn {
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.ami-next-btn:hover {
    color: var(--text-main);
    transform: translateX(5px);
}

.ami-dropdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1010;
    padding: 20px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.ami-dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
}

.ami-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ami-dropdown-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Raktár kártya modál – tárgyválasztó (glass, sötét szürke) */
.ami-picker-card {
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 40px 50px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(255, 255, 255, 0.02);
}

.ami-picker-title {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-main);
    margin: 0;
}

.ami-picker-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
}

.ami-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 16px;
    width: 100%;
    overflow-y: auto;
    max-height: 380px;
    padding-right: 8px;
}

.ami-picker-grid::-webkit-scrollbar {
    width: 6px;
}

.ami-picker-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.ami-picker-item {
    background: rgba(50, 50, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 140px;
}

.ami-picker-item:hover {
    background: rgba(70, 70, 70, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.ami-picker-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: none;
    background: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.ami-picker-item-title {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    color: var(--text-main);
    text-align: center;
    line-height: 1.2;
}

.ami-picker-item-cat {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
}

.ami-picker-close-btn {
    margin-top: 8px;
}

@media (max-width: 600px) {
    .ami-picker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .add-market-modal-layout {
        width: 90%;
        padding: 20px;
    }

    .ami-form {
        flex-direction: column;
    }

    .ami-right-col {
        width: 100%;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==================================
   Main Menu Modal Styles
   ================================== */
.main-menu-modal-layout {
    width: 350px;
    padding: 30px;
    border-radius: 40px;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 28px;
    font-family: 'Instrument Serif', serif;
    border-radius: 20px;
    transition: background 0.2s, transform 0.2s;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.menu-icon {
    font-size: 24px;
}

.logout-link {
    color: #ff4d4d;
    margin-top: 10px;
}

.logout-link:hover {
    background: rgba(255, 77, 77, 0.1);
}

/* ==================================
   Profile Page Styles
   ================================== */
.profile-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    animation: slideDownFade 0.8s ease-out forwards;
}

.profile-header {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.pf-back-btn {
    position: absolute;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.pf-settings-btn {
    position: absolute;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.pf-title {
    background-color: rgba(60, 60, 60, 0.5);
    padding: 10px 40px;
    border-radius: 30px;
    font-size: 24px;
    font-family: 'Instrument Serif', serif;
}

.pf-identity {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.pf-avatar-container {
    position: relative;
    display: inline-block;
}

.pf-avatar-img {
    height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

.pf-edit-avatar-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.pf-edit-avatar-btn:hover {
    background-color: rgba(60, 60, 60, 0.9);
    transform: scale(1.1);
}

.pf-username-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
}

.pf-username {
    font-size: 24px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-edit-name-icon {
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.pf-edit-name-icon:hover {
    color: var(--text-main);
}


.pf-edit-avatar-btn:hover {
    background-color: rgba(80, 80, 80, 0.7);
}

.pf-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 22px;
    font-family: 'Instrument Serif', serif;
}

.pf-actions {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.pf-action-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pf-action-col-bottom {
    justify-content: flex-end;
}

.pf-stars-display {
    display: flex;
    gap: 5px;
}

.pf-stars-display img,
.pf-stars-display .pf-star-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.glass-btn {
    background-color: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 15px 35px;
    border-radius: 25px;
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.glass-btn:hover {
    background-color: rgba(60, 60, 60, 0.8);
    transform: translateY(-2px);
}

.pf-btn-icon {
    width: 25px;
    height: auto;
    object-fit: contain;
}

.pf-btn-icon {
    width: 25px;
    height: 25px;
}

.pf-posts-count-banner {
    color: var(--text-muted);
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.pf-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    width: 100%;
    max-width: 800px;
}

.pf-post-placeholder {
    background-color: rgba(50, 50, 50, 0.4);
    aspect-ratio: 1;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
    transition: background 0.2s;
    cursor: pointer;
}

.pf-post-placeholder:hover {
    background-color: rgba(60, 60, 60, 0.6);
}

@media (max-width: 768px) {
    .app-container {
        max-width: 100%;
        padding: 16px 12px 40px;
    }

    .main-nav {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 60px;
    }

    .nav-menu {
        flex-wrap: wrap;
        padding: 14px 20px;
        gap: 16px;
        border-radius: 40px;
    }

    .nav-item {
        font-size: 16px;
        gap: 8px;
    }

    .balance-container {
        margin-left: 0;
        margin-top: 16px;
        padding: 12px 18px;
    }

    .balance-amount {
        font-size: 20px;
    }

    .feed {
        align-items: stretch;
    }

    .post {
        width: 100%;
        max-width: 100%;
        border-radius: 24px;
        padding: 20px;
    }

    .pf-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pf-actions {
        flex-direction: column;
        align-items: center;
    }

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

/* ==================================
   Settings Page Styles
   ================================== */
.settings-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    animation: slideDownFade 0.5s ease-out forwards;
}

.settings-header {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 50px;
}

.settings-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.settings-section {
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 30px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.st-section-title {
    font-family: 'Instrument Serif', serif;
    font-size: 28px;
    margin: 0;
    color: var(--highlight);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.st-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    color: #e0e0e0;
}

.st-input,
.st-select,
.st-btn {
    background-color: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
    outline: none;
    transition: border-color 0.2s;
}

.st-input:focus,
.st-select:focus {
    border-color: var(--highlight);
}

.st-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.st-btn:hover {
    background-color: rgba(40, 40, 40, 0.8);
}

/* Toggle Switch */
.st-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.st-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.st-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(100, 100, 100, 0.5);
    transition: .4s;
    border-radius: 34px;
}

.st-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.st-slider {
    background-color: var(--highlight);
}

input:checked+.st-slider:before {
    transform: translateX(26px);
}

/* Light Theme Variables */
body.light-theme {
    --bg-color: #f5f5f5;
    --nav-bg: #ffffff;
    --post-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
}

body.light-theme .glass-panel,
body.light-theme .glass-icon-btn,
body.light-theme .pf-title,
body.light-theme .pf-edit-avatar-btn,
body.light-theme .glass-btn,
body.light-theme .settings-section {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .st-input,
body.light-theme .st-select,
body.light-theme .st-btn {
    background-color: rgba(240, 240, 240, 1);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* ==================================
   Feed Updates (Header, Search, Post Modal)
   ================================== */

.feed-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: -80px;
    margin-bottom: 60px;
    width: 600px;
    z-index: 10;
}

.feed-add-btn {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    font-size: 24px;
}

.feed-search-wrap {
    position: relative;
}

.feed-search-user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 280px;
    max-width: 320px;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    z-index: 200;
    overflow: hidden;
}

.feed-search-user-dropdown.is-visible {
    display: block;
}

.feed-search-user-dropdown-loading,
.feed-search-user-dropdown-empty {
    padding: 16px 20px;
    color: var(--text-muted);
    font-size: 15px;
    text-align: center;
}

.feed-search-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-search-user-card:last-child {
    border-bottom: none;
}

.feed-search-user-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.feed-search-user-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-search-user-card-info {
    flex: 1;
    min-width: 0;
}

.feed-search-user-card-name {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    color: var(--text-main);
}

.feed-search-user-card-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.feed-search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 10px 20px;
    gap: 10px;
    width: 250px;
    transition: width 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.feed-search-bar:focus-within {
    width: 300px;
    background-color: rgba(60, 60, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.feed-search-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.feed-search-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
    width: 100%;
    outline: none;
}

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

#feed-posts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    align-items: center;
}

/* New Post Modal Layout */
.new-post-modal-layout {
    flex-direction: column;
    width: 750px;
    padding: 50px 70px;
    gap: 30px;
}

.np-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.np-profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.np-username {
    font-size: 32px;
    color: var(--text-muted);
    font-weight: 300;
}

.np-form {
    display: flex;
    gap: 40px;
}

.np-left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.np-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Instrument Serif', serif;
    outline: none;
    width: 100%;
}

.np-title-input {
    font-size: 42px;
}

.np-title-input::placeholder {
    color: #f5f5f5;
}

.np-desc-input {
    font-size: 22px;
    color: var(--text-muted);
    height: 120px;
    resize: none;
}

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

.np-right-col {
    width: 280px;
}

.np-media-upload {
    background-color: #333333;
    border-radius: 30px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    font-size: 20px;
    text-align: center;
    gap: 15px;
}

.np-media-upload:hover {
    background-color: #444444;
    transform: scale(1.02);
}

.np-upload-icon {
    font-size: 40px;
}

.np-submit-btn {
    align-self: center;
    background-color: #1a1a1a;
    border: 3px solid #2b2b40;
    color: var(--text-main);
    font-family: 'Instrument Serif', serif;
    font-size: 36px;
    padding: 15px 60px;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(80, 80, 200, 0.4);
    transition: all 0.3s ease;
    margin-top: 10px;
    outline: none;
}

.np-submit-btn:hover {
    transform: scale(1.05);
    background-color: #2b2b40;
    box-shadow: 0 0 25px rgba(100, 100, 255, 0.7);
    border-color: #4a4a70;
}

.np-submit-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(100, 100, 255, 0.4);
}

/* ==================================
   Purchase & Review Modals Styles
   ================================== */
.sp-modal-layout {
    width: 500px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.sp-title {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-main);
    text-align: center;
    margin: 0;
}

.sp-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.sp-action-btn {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    justify-content: flex-start;
}

.sp-action-btn span {
    color: var(--text-muted);
    transition: color 0.2s;
}

.sp-action-btn:hover span {
    color: var(--text-main);
}

.sp-btn-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.sp-btn-star {
    width: 15px;
    height: 15px;
    animation: starPulse 1.5s infinite var(--delay) ease-in-out;
}

@keyframes starPulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-5px) scale(1.2);
        opacity: 1;
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    }
}

.sp-btn-fa {
    font-size: 20px;
    color: var(--text-muted);
}

.wr-modal-layout {
    width: 500px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.wr-title {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    font-weight: 300;
    margin: 0;
}

.wr-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.wr-stars-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
}

.wr-star {
    width: 36px;
    height: 36px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.wr-star:hover {
    transform: scale(1.15);
    filter: brightness(1.15);
}

.wr-star.wr-star-filled {
    animation: wrStarPop 0.3s ease;
}

@keyframes wrStarPop {
    0% { transform: scale(0.9); opacity: 0.8; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.wr-input-area {
    width: 100%;
    position: relative;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
}

.wr-textarea {
    width: 100%;
    height: 120px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    resize: none;
    outline: none;
}

.wr-char-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.wr-send-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.wr-send-btn:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

/* Confetti effect */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    background-color: #f00;
    opacity: 0;
    top: -20px;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================================
   Reviews Page Styles
   ================================== */
.reviews-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    animation: slideDownFade 0.5s ease-out forwards;
}

.reviews-header {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    position: relative;
    padding-top: 20px;
}

.rv-title-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: rgba(50, 50, 50, 0.8);
    border-radius: 40px;
    padding: 15px 40px;
    font-size: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.rv-title-icon {
    width: 60px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.rv-search-bar-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.rv-search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(60, 60, 60, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 10px 20px;
    gap: 10px;
    width: 250px;
    transition: width 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.rv-search-bar:focus-within {
    width: 300px;
    background-color: rgba(80, 80, 80, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.rv-search-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.rv-search-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
    width: 100%;
    outline: none;
}

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

.reviews-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.review-card {
    background-color: rgba(30, 30, 30, 0.6);
    border-radius: 40px;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.rc-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 180px;
}

.rc-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.rc-username {
    color: #e0e0e0;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
}

.rc-text-container {
    flex: 1;
    text-align: center;
}

.rc-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--text-muted);
}

.rc-stars-container {
    display: flex;
    gap: 5px;
    min-width: 100px;
    justify-content: flex-end;
}

.rv-star-icon {
    width: 18px;
    height: 18px;
}

body.light-theme .rv-title-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .rv-search-bar {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .rv-search-input {
    color: var(--text-main);
}

body.light-theme .review-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ==================================
   Purchases Page Styles
   ================================== */
.purchases-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    animation: slideDownFade 0.5s ease-out forwards;
}

.pv-title-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: rgba(50, 50, 50, 0.8);
    border-radius: 40px;
    padding: 15px 40px;
    font-size: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Instrument Serif', serif;
}

.pv-title-icon {
    font-size: 30px;
}

.purchases-list-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin-top: 20px;
}

.purchase-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.purchase-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(20, 20, 20, 0.6);
    border-radius: 30px;
    padding: 25px 30px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.pc-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.pc-seller-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-label {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    color: #e0e0e0;
}

.pc-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.pc-username {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--text-muted);
}

.pc-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
}

.pc-price-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-orange-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.pc-item-preview {
    width: 60px;
    height: 60px;
    background-color: rgba(50, 50, 50, 0.6);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.pc-item-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.pc-date {
    text-align: center;
    font-family: 'Instrument Serif', serif;
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 15px;
    letter-spacing: 0.5px;
}

.pc-review-btn {
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 30px;
    gap: 10px;
}

.pc-review-icon {
    width: 30px;
    height: auto;
    object-fit: contain;
}

.pc-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pc-action-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s;
}

.pc-action-icon:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.pc-action-icon-delete:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

body.light-theme .purchase-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .pc-label {
    color: var(--text-main);
}

body.light-theme .pc-divider {
    background-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .pv-title-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ==================================
   Inventory Page Styles
   ================================== */
.inventory-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    animation: slideDownFade 0.5s ease-out forwards;
}

.inventory-header {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    position: relative;
    padding-top: 20px;
}

.inv-title-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.inv-title-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: rgba(50, 50, 50, 0.8);
    border-radius: 20px;
    padding: 10px 40px;
    font-size: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Instrument Serif', serif;
}

.inv-search-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.inv-search-bar {
    display: flex;
    align-items: center;
    background-color: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 5px 20px;
    gap: 10px;
    width: 250px;
    transition: width 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.inv-search-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.inv-search-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    width: 100%;
    outline: none;
}

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

/* Mentett posztok oldal */
.saved-posts-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    min-height: 80vh;
}
.saved-header {
    width: 100%;
    max-width: 620px;
    position: relative;
    margin-bottom: 24px;
    padding-top: 12px;
}
.saved-header .pf-back-btn {
    position: absolute;
    left: 0;
    top: 12px;
}
.saved-title {
    font-family: 'Instrument Serif', serif;
    font-size: 28px;
    font-weight: 400;
    margin: 0;
    text-align: center;
    color: var(--text-main);
}
.saved-title .fa-bookmark {
    margin-right: 10px;
    color: var(--text-muted);
}
.saved-posts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 620px;
    align-items: center;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    width: 100%;
    max-width: 900px;
}

@media (max-width: 900px) {
    .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.inv-card {
    background-color: #1a1a1a;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.inv-card:hover {
    transform: translateY(-5px);
    background-color: #2a2a2a;
}

.inv-card-img-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    font-family: 'Instrument Serif', serif;
}

.inv-card-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border: none;
    background: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.inv-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.inv-card-category {
    font-size: 12px;
    color: var(--text-muted);
}

.inv-card-title {
    font-size: 16px;
    color: white;
    font-family: 'Instrument Serif', serif;
}

/* Inventory Item Detail Modal */
.idm-modal-layout {
    width: 400px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.idm-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.idm-image {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border: none;
    background: transparent;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.idm-info {
    text-align: center;
}

.idm-category {
    font-size: 14px;
    color: var(--text-muted);
}

.idm-title {
    font-size: 28px;
    color: white;
    font-family: 'Instrument Serif', serif;
    margin-top: 5px;
}

.idm-sell-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 20px;
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    outline: none;
    margin-top: 10px;
    width: 100%;
}

.idm-sell-btn:hover {
    background-color: #ff3333;
    transform: scale(1.05);
}

.idm-sell-btn:active {
    transform: scale(0.95);
}

/* ==================================
   GYUMI View Styles
   ================================== */
.gyumi-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    animation: slideDownFade 0.5s ease-out forwards;
}

.gyumi-header {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 20px;
    margin-bottom: 40px;
}

.gy-title {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    color: var(--text-main);
    text-align: center;
}

.gyumi-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .gyumi-cards-grid {
        grid-template-columns: 1fr;
    }
}

.gyumi-card {
    background-color: #222222;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gy-card-top {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gy-text-gyumi {
    font-family: 'Instrument Serif', serif;
    font-size: 28px;
    color: var(--text-main);
}

.gy-amount-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gy-amount {
    font-family: 'Instrument Serif', serif;
    font-size: 36px;
    color: var(--text-main);
}

.gy-orange-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.gy-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
}

.gy-info-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.2;
}

.gy-price-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gy-price {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    color: var(--text-main);
}

.gy-cart-icon {
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.gy-cart-icon:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

.gy-donation-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.gy-donation-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #222222;
    padding: 15px 30px;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gy-donation-btn:hover {
    background-color: #333333;
    transform: scale(1.02);
}

.gy-don-text {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    color: var(--text-main);
}

.gy-don-icon {
    font-size: 24px;
    color: var(--text-muted);
}

/* ==================================
   GYUMI Specific Purchase View
   ================================== */
.gyumi-purchase-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    width: 100%;
    animation: slideDownFade 0.5s ease-out forwards;
    position: relative;
}

.gy-spec-layout {
    display: flex;
    gap: 80px;
    max-width: 1000px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

@media (max-width: 800px) {
    .gy-spec-layout {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
}

.gy-spec-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gy-spec-amount-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gy-spec-amount {
    font-family: 'Instrument Serif', serif;
    font-size: 60px;
    color: var(--text-main);
}

.gy-spec-orange {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.gy-spec-title {
    font-family: 'Instrument Serif', serif;
    font-size: 70px;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 20px;
}

.gy-spec-desc {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    color: var(--text-main);
    line-height: 1.4;
}

.gy-spec-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gy-spec-info-text {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    color: var(--text-main);
    line-height: 1.4;
}

.gy-spec-show-address-btn {
    align-self: flex-start;
    padding: 10px 25px;
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.gy-spec-show-address-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.3);
}

.gy-spec-soon-box {
    background-color: #222222;
    padding: 30px 40px;
    border-radius: 40px;
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    color: var(--text-main);
    text-align: center;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================================
   Donation View
   ================================== */
.donation-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    width: 100%;
    animation: slideDownFade 0.5s ease-out forwards;
    position: relative;
    padding: 20px;
}

.don-header-area {
    text-align: left;
    width: 100%;
    max-width: 900px;
    margin-bottom: 50px;
}

.don-main-title {
    font-family: 'Instrument Serif', serif;
    font-size: 60px;
    color: var(--text-main);
    margin: 0 0 10px 0;
    font-weight: 400;
}

.don-subtitle {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    line-height: 1.2;
}

.don-options-container {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    justify-content: space-between;
}

@media (max-width: 800px) {
    .don-options-container {
        flex-direction: column;
        align-items: center;
    }
}

.don-card {
    background-color: #1a1a1a;
    border-radius: 20px;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.don-card.soon-card {
    opacity: 0.8;
}

.don-card-active {
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.don-card-active:hover {
    transform: translateY(-5px);
    background-color: #222222;
}

.don-card-icon {
    font-size: 50px;
}

.don-card-text {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    color: var(--text-main);
}

.don-crypto-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 30px;
    color: var(--text-main);
}

/* ==================================
   Crypto Modal Styles
   ================================== */
.crypto-modal-layout {
    width: 600px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #1e1e1e;
}

.crypto-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.crypto-logo-wrapper {
    width: 30px;
    display: flex;
    justify-content: center;
    font-size: 24px;
}

.crypto-name {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    color: var(--text-main);
    min-width: 120px;
}

.crypto-address {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #6a5acd;
    flex: 1;
    word-break: break-all;
}

.crypto-copy-btn {
    font-size: 20px;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.crypto-copy-btn:hover {
    color: #a0a0ff;
    transform: scale(1.1);
}

/* ==================================
   Authentication Views (Login & Register)
   ================================== */
.auth-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80vh;
    position: relative;
    z-index: 10;
    animation: slideDownFade 0.5s ease-out forwards;
}

/* Bejelentkezés/regisztráció: ugyanolyan űr effekt mint a ceremónián (starfield) */
.auth-view.auth-view-with-starfield {
    min-height: 100vh;
    overflow: hidden;
}

.auth-view-with-starfield .welcome-starfield {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.auth-logo-container {
    z-index: 20;
    margin-bottom: -50px;
    position: relative;
}

.auth-logo {
    width: 90px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.auth-panel {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-radius: 40px;
    padding: 50px 60px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.auth-title {
    font-family: 'Instrument Serif', serif;
    font-size: 36px;
    color: var(--text-main);
    margin: 0;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.auth-label {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.auth-input-wrapper {
    position: relative;
    flex: 1;
}

.auth-input-line {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-input-line:focus {
    outline: none;
    border-bottom-color: #5842F3;
}

.auth-input-line::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-input-line.error {
    border-bottom-color: #ff4d4d;
}

.auth-eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-eye-icon:hover {
    color: var(--text-main);
}

.auth-forgot-row {
    text-align: left;
    margin-top: -10px;
}

.auth-forgot-row span {
    font-family: 'Roboto', sans-serif;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
}

.auth-forgot-row span:hover {
    color: var(--text-main);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.auth-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.auth-arrow-btn {
    background: #111111;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.auth-arrow-btn:hover {
    background: #2a2a2a;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.auth-error-msg {
    color: #ff4d4d;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-error-msg.visible {
    opacity: 1;
}

.auth-footer-pill {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 15px 30px;
    text-align: center;
    color: white;
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Ghost mód gomb: hover kiemelkedés + szellem köröz a gomb körül */
.ghost-mode-btn-wrapper {
    position: relative;
    display: inline-block;
}

/* Gomb a szellem „fölött”, hogy a szellem a gomb alatt haladjon át (3D hatás) */
.ghost-mode-btn-wrapper .auth-footer-pill,
.ghost-mode-btn-wrapper .auth-ghost-btn {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ghost-mode-btn-wrapper:hover .auth-footer-pill,
.ghost-mode-btn-wrapper:hover .auth-ghost-btn {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.06);
}

.ghost-orbiter {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -16px;
    font-size: 22px;
    line-height: 32px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.35s ease;
}

.ghost-mode-btn-wrapper:hover .ghost-orbiter {
    opacity: 1;
    animation: ghost-orbit 2.8s linear infinite;
}

@keyframes ghost-orbit {
    from { transform: rotate(0deg) translateX(72px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(72px) rotate(-360deg); }
}

/* FULEKI logó az auth oldalak legalsó részén */
.auth-fuleki-footer {
    margin-top: auto;
    padding: 24px 0 20px;
    text-align: center;
    z-index: 10;
}
.fuleki-logo-link {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s ease;
}
.fuleki-logo-link:hover {
    opacity: 0.85;
}
.fuleki-logo-img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.auth-link-highlight {
    color: #5842F3;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
    cursor: pointer;
    display: inline-block;
    transition: color 0.3s, transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-link-highlight:hover {
    color: #7B6CF5;
    transform: translateY(-4px);
    text-shadow: 0 4px 12px rgba(88, 66, 243, 0.35);
}

.auth-terms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
}

.custom-checkbox-container {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-checkbox-container i {
    color: transparent;
    font-size: 12px;
    transition: color 0.3s;
}

.custom-checkbox-container.checked {
    background: white;
    border-color: white;
}

.custom-checkbox-container.checked i {
    color: #1a1a1a;
}

/* Flying Icons – teljes képernyő, VHS + pulzálás, kattintásra darabokra esés */
#auth-flying-icons-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Ikon körül nincs kocka/keret – csak az ikon látszik, üveg/VHS effekttel */
.auth-flying-icon-wrap {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.auth-flying-icon-wrap::before {
    display: none;
}

.auth-flying-icon-wrap::after {
    display: none;
}

.auth-flying-icon {
    position: relative;
    width: 56px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    border: none;
    background: transparent;
    /* Erősebb VHS/üveg effekt: fényes árnyék + belülről fény */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6))
            drop-shadow(0 6px 16px rgba(255, 255, 255, 0.25))
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.15))
            contrast(1.15) saturate(1.2) brightness(1.05);
    animation: auth-icon-vhs-pulse 2.2s ease-in-out infinite;
    z-index: 0;
}

@keyframes auth-icon-vhs-pulse {
    0%, 100% {
        opacity: 0.92;
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6))
               drop-shadow(0 6px 16px rgba(255,255,255,0.22))
               drop-shadow(0 0 18px rgba(255,255,255,0.12))
               contrast(1.12) saturate(1.15) brightness(1.03);
    }
    25% {
        opacity: 0.98;
        filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5))
               drop-shadow(0 8px 22px rgba(255,255,255,0.35))
               drop-shadow(0 0 28px rgba(255,255,255,0.2))
               contrast(1.18) saturate(1.22) brightness(1.08);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45))
               drop-shadow(0 10px 28px rgba(255,255,255,0.45))
               drop-shadow(0 0 32px rgba(255,255,255,0.28))
               contrast(1.2) saturate(1.25) brightness(1.1);
    }
    75% {
        opacity: 0.96;
        filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5))
               drop-shadow(0 8px 20px rgba(255,255,255,0.3))
               drop-shadow(0 0 24px rgba(255,255,255,0.18))
               contrast(1.16) saturate(1.2) brightness(1.06);
    }
}

/* Kattintás: darabok lehullanak az aljára */
.auth-icon-fragment {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(220,220,255,0.75) 100%);
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
    pointer-events: none;
    z-index: 100;
    animation: auth-fragment-fall 1.2s ease-in forwards;
    transform-origin: center center;
}

@keyframes auth-fragment-fall {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    12% {
        transform: translate(calc(var(--fall-x, 0) * 0.3), calc(var(--fall-y, 100px) * 0.05)) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--fall-x, 0), var(--fall-y, 100vh)) scale(0.4);
        opacity: 0;
    }
}

/* Blurred state for Ghost Mode */
.ghost-blurred {
    filter: blur(8px) grayscale(50%);
    pointer-events: none;
    user-select: none;
    transition: all 0.5s ease;
}

/* Ghost Mode Warning Overlay */
.ghost-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    /* Make it transparent to not tint everything again */
    backdrop-filter: none;
    /* Removed heavy blur here to not double-blur the nav */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.ghost-warning-overlay.show {
    opacity: 1;
    pointer-events: none;
    /* Let clicks pass to the nav underneath! */
}

/* Let the warning box catch clicks */
.ghost-warning-box {
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    max-width: 450px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    /* Block clicks on the box itself */
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ghost-warning-overlay.show .ghost-warning-box {
    transform: scale(1);
}

.ghost-ghost-icon {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
    animation: float 3s ease-in-out infinite;
}

.ghost-warning-title {
    font-family: 'Instrument Serif', serif;
    font-size: 40px;
    color: var(--text-main);
    margin: 0;
}

.ghost-warning-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
}

.ghost-btn-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.ghost-login-btn {
    background: var(--highlight);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.ghost-login-btn:hover {
    background: #ffb74d;
    transform: translateY(-2px);
}

.ghost-close-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 20px;
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.ghost-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Notification Bell */
.top-corner-bell {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.top-corner-bell:hover {
    background: rgba(50, 50, 50, 0.8);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ==================================
   Initial App Loading Screen
   ================================== */
#app-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 30, 0.85);
    /* Dark background */
    backdrop-filter: blur(15px);
    /* Strong blur effect */
    z-index: 99999;
    /* Higher than everything else */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#app-loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Logo pulse animation */
#app-loading-screen img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(156, 39, 176, 0.6));
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 10px rgba(156, 39, 176, 0.4));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(156, 39, 176, 0.8));
    }

    100% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 10px rgba(156, 39, 176, 0.4));
    }
}

/* ==================================
   Comments Modal & Post Reports
   ================================== */
.comments-modal-layout {
    width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    background-color: var(--post-bg);
}

.comments-header {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.comments-close-btn {
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    position: absolute;
    left: -20px;
    top: 0px;
    transition: color 0.3s;
    z-index: 10;
}

.comments-close-btn:hover {
    color: white;
}

.comments-title-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.comments-bg-icon {
    position: absolute;
    width: 40px;
    opacity: 0.15;
    z-index: 0;
}

.comments-title {
    font-family: 'Instrument Serif', serif;
    font-size: 28px;
    font-weight: 400;
    margin: 0;
    z-index: 1;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.comment-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.comment-username {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.comment-text {
    flex: 1;
    padding: 0 20px;
    font-size: 22px;
    font-family: 'Instrument Serif', serif;
    padding-top: 10px;
}

.comment-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: 'Instrument Serif', serif;
    padding-top: 15px;
}

.comment-like-icon {
    cursor: pointer;
    transition: color 0.3s;
}

.comment-menu-wrap {
    position: relative;
    margin-left: 4px;
}
.comment-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.comment-menu-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.comment-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 140px;
    background: var(--post-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 20;
    overflow: hidden;
}
.comment-menu-dropdown.show {
    display: flex;
    flex-direction: column;
}
.comment-menu-option {
    padding: 10px 14px;
    text-align: left;
    border: none;
    background: none;
    color: var(--text-primary, #e0e0e0);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.comment-menu-option:hover {
    background: rgba(255,255,255,0.08);
}
.comment-menu-option[data-action="delete"]:hover {
    color: #ff4d4d;
}

.comment-like-icon:hover {
    color: #ff4d4d;
}

.comment-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    padding: 10px 40px 10px 10px;
    outline: none;
}

.comment-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.report-option-btn {
    width: 100%;
    text-align: left;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-option-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ==================================
   Avatar Page Enhancements (Graveyard & Naming)
   ================================== */

.graveyard-section {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
}

.graveyard-title {
    display: none;
}

.tombstone {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 70px;
    background: rgba(40, 40, 40, 0.6);
    border: 2px solid rgba(100, 100, 100, 0.5);
    border-radius: 30px 30px 5px 5px;
    color: var(--text-muted);
    font-family: 'Instrument Serif', serif;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background 0.3s;
    cursor: help;
}

.tombstone:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(60, 60, 60, 0.8);
}

.tomb-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.avatar-name-modal-layout {
    flex-direction: column;
    width: 400px;
    padding: 40px;
    gap: 20px;
}

.avatar-name-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 15px;
    border-radius: 10px;
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    text-align: center;
    outline: none;
    transition: all 0.3s;
}

.avatar-name-input:focus {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* ==================================
   Public Profile Page Specific Styles
   ================================== */
.public-profile-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    padding-bottom: 100px;
    animation: slideDownFade 0.5s ease-out forwards;
}

/* Követői adatok (követi / követő / barát) középen a másik user profilján */
.public-profile-view .pf-stats {
    justify-content: center;
    width: 100%;
}

/* Másik user profilképe normál méret (nem a medve 250px) */
.public-profile-view .pf-identity .pf-avatar-container .pf-avatar-img,
.public-profile-view .pf-identity .pp-avatar-img {
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    max-width: 90px;
    max-height: 90px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

/* Másik user avatárja (jegesmedve) a profilkép és felhasználónév alatt */
.pp-bear-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.pp-bear-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pp-bear-avatar {
    height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

.pp-action-btn {
    font-size: 16px;
    padding: 10px 20px;
}

.pp-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Másik user posztjai normál, jól látható méretben */
.public-profile-view .pf-posts-grid {
    max-width: 720px;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 24px;
}

.public-profile-view .pf-post-placeholder {
    min-height: 200px;
    aspect-ratio: 1;
}

@media (min-width: 900px) {
    .public-profile-view .pf-posts-grid {
        max-width: 900px;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Privát profil overlay – idegeneknek */
.pp-private-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 320px;
    padding: 40px 24px;
    margin-top: 20px;
}

.pp-private-overlay-inner {
    text-align: center;
    max-width: 380px;
    padding: 32px 28px;
    background: rgba(30, 30, 33, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pp-private-title {
    margin: 0 0 12px 0;
    font-family: 'Instrument Serif', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--text-main);
}

.pp-private-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ==================================
   Notifications Portal Styles
   ================================== */
.notifications-modal-layout {
    width: 450px;
    max-height: 80vh;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    position: absolute;
    top: 80px;
    left: 20px;
    transform-origin: top left;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.notifications-title {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    font-weight: 300;
    margin: 0;
    color: var(--text-main);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding-right: 10px;
    flex: 1;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(60, 60, 60, 0.8);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.notification-item.unread {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
}

.notification-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.notification-title {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    color: var(--text-main);
    margin: 0;
}

.notification-text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.notification-time {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 5px;
}

.notification-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 77, 77, 0.5);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

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

.notification-delete-btn:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: bold;
    min-width: 15px;
    height: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--nav-bg);
    animation: bounce 2s infinite;
}

.top-corner-bell {
    position: relative;
}

@keyframes ringBell {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(5deg); }
    60% { transform: rotate(-5deg); }
    70% { transform: rotate(2deg); }
    80% { transform: rotate(-2deg); }
    90% { transform: rotate(1deg); }
    100% { transform: rotate(0); }
}

.top-corner-bell.ringing i {
    animation: ringBell 1s ease-in-out;
    animation-iteration-count: 3;
    transform-origin: top center;
}

/* Custom Stylish Alert System */
#custom-alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.custom-alert-box {
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 18px;
    font-family: 'Instrument Serif', serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    pointer-events: auto;
    animation: slideDownFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    min-width: 280px;
    max-width: 80vw;
}

.custom-alert-box.fade-out {
    animation: fadeOutUp 0.3s ease-in forwards;
}

.custom-alert-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s, transform 0.2s;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-alert-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

@keyframes slideDownFadeIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeOutUp {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* Választó kártya (OK / Mégse) – megerősítésekhez; magas z-index, hogy más modálok (pl. kommentek) felett legyen */
#page-confirm-modal {
    z-index: 10050;
}

.page-confirm-overlay {
    align-items: flex-start;
    padding-top: 80px;
    justify-content: center;
}

/* Komment szerkesztése kártya */
.edit-comment-card {
    max-width: 480px;
    width: 90vw;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.edit-comment-title {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    color: var(--text-main);
}
.edit-comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.edit-comment-textarea:focus {
    border-color: rgba(88, 66, 243, 0.6);
    box-shadow: 0 0 0 2px rgba(88, 66, 243, 0.2);
}
.edit-comment-textarea::placeholder {
    color: var(--text-muted);
}
.edit-comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.edit-comment-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.edit-comment-save {
    background: var(--highlight);
    color: #fff;
    border: none;
}
.edit-comment-save:hover {
    opacity: 0.95;
}

.page-confirm-card {
    background: rgba(35, 35, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 28px 32px;
    max-width: 480px;
    width: 90vw;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    animation: slideDownFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.page-confirm-msg {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.page-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.page-confirm-btn-ok {
    background: var(--highlight);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.page-confirm-btn-ok:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.page-confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #e8e0f5;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.page-confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ==================================
   Post-registration ceremony (Welcome)
   ================================== */
.welcome-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.welcome-view .welcome-starfield {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.welcome-star {
    position: absolute;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: welcome-star-up 8s linear infinite;
}

.welcome-line {
    position: absolute;
    bottom: -50px;
    background: linear-gradient(to top, rgba(255,255,255,0.15), transparent);
    animation: welcome-star-up 6s linear infinite;
}

@keyframes welcome-star-up {
    from { transform: translateY(0); opacity: 0; }
    5% { opacity: 0.8; }
    to { transform: translateY(-100vh); opacity: 0.3; }
}

.welcome-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.welcome-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    animation: welcome-logo-float 3s ease-in-out infinite;
    transition: filter 0.4s ease;
}

/* Csak drop-shadow: a kép alakját követi (nincs téglalap/kocka). box-shadow elhagyva. */
.welcome-logo:hover {
    filter: drop-shadow(0 0 20px var(--highlight)) drop-shadow(0 0 40px rgba(88, 66, 243, 0.6)) drop-shadow(0 0 60px rgba(88, 66, 243, 0.35));
}

@keyframes welcome-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-congrats {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(20px, 4vw, 28px);
    color: var(--text-main);
    text-align: center;
    margin: 0;
    animation: welcome-sparkle 1.2s ease-out 0.3s both;
}

@keyframes welcome-sparkle {
    0% { opacity: 0; transform: scale(0.9); filter: brightness(0.5); }
    50% { filter: brightness(1.4); }
    100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}

.welcome-arrow-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    animation: welcome-arrow-pulse 2s ease-in-out infinite;
}

.welcome-arrow-btn:hover {
    transform: scale(1.1);
    background: rgba(88, 66, 243, 0.3);
    box-shadow: 0 0 24px rgba(88, 66, 243, 0.4);
}

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

/* Step 2: Letter */
.welcome-letter-scene {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.welcome-envelope-wrap {
    position: relative;
}

.welcome-envelope {
    position: relative;
    width: 280px;
    height: 180px;
    perspective: 400px;
}

.welcome-envelope-flap {
    backface-visibility: hidden;
}

.welcome-envelope-body {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
}

.welcome-envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(160deg, #252525 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.welcome-envelope-open .welcome-envelope-flap {
    transform: rotateX(-180deg);
}

.welcome-letter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(80%) scale(0.85);
    width: 220px;
    padding: 24px 20px;
    background: linear-gradient(180deg, #fef9e6 0%, #f5e6c8 50%, #e8d4a0 100%);
    border-radius: 6px;
    box-shadow:
        0 0 30px rgba(255, 200, 100, 0.5),
        0 0 60px rgba(255, 180, 80, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.6);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.6s ease 0.3s;
    z-index: 2;
    text-align: center;
    font-family: 'Instrument Serif', serif;
    color: #5c4a20;
}

.welcome-letter-out {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

.welcome-letter-username {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #7d5a28;
}

.welcome-letter-text {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 16px 0;
    color: #6b5520;
}

.welcome-letter-logo {
    width: 48px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* Takeoff overlay (űrhajó felszállás) */
.welcome-takeoff-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0a0a0f;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.welcome-takeoff-overlay.active {
    opacity: 1;
}

.welcome-takeoff-inner {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.welcome-takeoff-inner.active {
    animation: welcome-takeoff-zoom 2s ease-in forwards;
}

.welcome-takeoff-star {
    position: absolute;
    bottom: -20px;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    animation: welcome-takeoff-rush 1.8s linear infinite;
}

@keyframes welcome-takeoff-rush {
    from { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    to { transform: translateY(-150vh) scale(0.3); opacity: 0.2; }
}

@keyframes welcome-takeoff-zoom {
    0% { transform: scale(1); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
