.community-nav-actions { display: flex; align-items: center; gap: .8rem; }
/* HIDE ALL SCROLLBARS GLOBALLY ACROSS ALL BROWSERS */
html, body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-y: auto !important;
}
html::-webkit-scrollbar, body::-webkit-scrollbar, *, *::before, *::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.community-login, .community-logout, .community-action { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 12px; padding: .75rem 1rem; color: #fff; background: linear-gradient(135deg, #7c3aed, #a855f7); font: 700 .78rem 'Montserrat', sans-serif; cursor: pointer; text-decoration: none; transition: transform .18s ease, filter .18s ease; }
.community-login:hover, .community-logout:hover, .community-action:hover { filter: brightness(1.12); transform: translateY(-1px); }
.community-logout { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.community-section { padding-top: 90px; }
.community-intro { max-width: 760px; margin: -2rem auto 2rem; text-align: center; color: #cbd5e1; }
.community-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.5rem; align-items: stretch; }
.community-card { border: 1px solid rgba(168,85,247,.25); border-radius: 24px; background: linear-gradient(145deg, rgba(30,18,57,.86), rgba(7,6,17,.94)); box-shadow: 0 20px 55px rgba(0,0,0,.32); padding: 1.5rem; }
.community-card h3 { margin-bottom: .35rem; font: 800 1.35rem 'Montserrat', sans-serif; }
.community-muted { color: #94a3b8; font-size: .9rem; }
.community-user { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.community-user img, .community-message img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(168,85,247,.55); }
.community-points { margin: .8rem 0 1.25rem; padding: 1.1rem 1.2rem; border: 1px solid rgba(34,211,238,.22); border-radius: 18px; background: rgba(34,211,238,.07); }
.community-points strong { display: block; color: #67e8f9; font: 900 2rem 'Montserrat', sans-serif; }
.community-chat { height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: .65rem; padding: .75rem 0; }
.community-message { display: flex; gap: .65rem; align-items: flex-start; }
.community-message-body { min-width: 0; padding: .65rem .8rem; border-radius: 12px; background: rgba(255,255,255,.06); }
.community-message-name { color: #c084fc; font-weight: 800; font-size: .8rem; }
.community-message-text { color: #e2e8f0; font-size: .88rem; overflow-wrap: anywhere; }
.community-form { display: flex; gap: .55rem; margin-top: .75rem; }
.community-form input { min-width: 0; flex: 1; padding: .8rem .9rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.35); color: #fff; font: 400 .88rem 'Poppins', sans-serif; }
.community-form button { border: 0; border-radius: 10px; padding: 0 .95rem; background: #7c3aed; color: #fff; font-weight: 800; cursor: pointer; }
.reward-list { display: grid; gap: .8rem; margin-top: 1rem; }
.reward-item { padding: 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.035); }
.reward-item h4 { margin-bottom: .25rem; color: #fff; }
.reward-item p { margin: 0 0 .7rem; color: #aab5c5; font-size: .82rem; }
.reward-item button { width: 100%; padding: .65rem; border: 0; border-radius: 9px; background: linear-gradient(135deg,#7c3aed,#a855f7); color:#fff; font-weight:700; cursor:pointer; }
.community-alert { margin: .8rem 0; color: #fbbf24; font-size: .82rem; }
.community-hidden { display: none !important; }
@media (max-width: 800px) { .community-grid { grid-template-columns: 1fr; } .community-nav-actions { gap: .35rem; } .community-login, .community-logout { padding: .6rem .65rem; font-size: .68rem; } nav ul { gap: .8rem; } nav ul li a { font-size: .64rem; } }
@media (max-width: 560px) { .community-nav-actions { display: none; } .community-section { padding-top: 70px; } .community-form { flex-direction: column; } .community-form button { min-height: 42px; } }

.community-message-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-delete-btn { background: transparent; border: 0; color: #ef4444; font-size: 0.8rem; font-weight: 800; cursor: pointer; padding: 0 4px; opacity: 0.7; transition: opacity 0.2s; }
.chat-delete-btn:hover { opacity: 1; }

.community-message-actions { display: flex; align-items: center; gap: 6px; }
.chat-ban-btn { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #ef4444; font-size: 0.7rem; font-weight: 700; cursor: pointer; padding: 2px 6px; border-radius: 6px; transition: all 0.2s; }
.chat-ban-btn:hover { background: rgba(239, 68, 68, 0.3); }

.gif-btn { background: rgba(124,58,237,.25) !important; border: 1px solid rgba(124,58,237,.5) !important; color: #c084fc !important; font-weight: 800; padding: 0 .75rem !important; border-radius: 10px; cursor: pointer; transition: background .2s; }
.gif-btn:hover { background: rgba(124,58,237,.4) !important; color: #fff !important; }
.gif-modal { position: absolute; bottom: 80px; left: 1.5rem; right: 1.5rem; background: #130f26; border: 1px solid rgba(168,85,247,.35); border-radius: 16px; padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.6); z-index: 100; display: flex; flex-direction: column; gap: .75rem; }
.gif-modal-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #fff; font-size: .9rem; }
.gif-modal-header button { background: transparent; border: 0; color: #94a3b8; font-size: 1.2rem; cursor: pointer; }
.gif-modal-header button:hover { color: #fff; }
.gif-modal input { width: 100%; padding: .65rem .8rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.4); color: #fff; font-size: .85rem; }
.gif-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; max-height: 220px; overflow-y: auto; padding-right: 4px; }
.gif-thumb { width: 100%; height: 75px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, border-color .15s; }
.gif-thumb:hover { transform: scale(1.03); border-color: #a855f7; }
.community-message-text img.chat-gif { max-width: 100%; max-height: 180px; border-radius: 8px; margin-top: 4px; display: block; }

/* FLOATING RIGHT COMMUNITY CHAT (Full Height & Width) */
.right-floating-chat {
    position: fixed;
    top: 20px;
    bottom: 20px;
    right: 20px;
    width: 420px;
    max-width: calc(100vw - 30px);
    background: linear-gradient(145deg, rgba(16, 9, 32, 0.99), rgba(5, 4, 12, 0.99));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(124, 58, 237, 0.25);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.right-floating-chat.minimized {
    top: auto;
    bottom: 25px;
    right: 25px;
    width: auto;
    height: auto;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.7);
}

.right-floating-chat.minimized .chat-widget-body {
    display: none;
}

.chat-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    background: rgba(124, 58, 237, 0.25);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
}

.chat-widget-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-live-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.chat-widget-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-minimize-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.chat-minimize-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.chat-widget-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
    overflow: hidden;
    height: calc(100% - 60px);
}

#chatWidgetMember {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0.75rem;
}

.chat-widget-body .community-chat {
    height: 0 !important;
    flex-grow: 1 !important;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 14px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

#chatWidgetForm {
    flex-shrink: 0;
    margin-top: auto;
}

@media (max-width: 1024px) {
    .right-floating-chat {
        top: 10px;
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    .right-floating-chat.minimized {
        top: auto;
        bottom: 15px;
        right: 15px;
        left: auto;
    }
}

/* Custom Smooth Dark/Purple Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 7, 34, 0.6);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #a855f7);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6, #c084fc);
}
* {
    scrollbar-width: thin;
    scrollbar-color: #a855f7 rgba(15, 7, 34, 0.6);
}

/* HIDE ALL SCROLLBARS VISUALLY WHILE KEEPING FULL SCROLL FUNCTIONALITY */
*, *::before, *::after {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* TORRES14X STYLE REWARDS SHOP */
.shop-notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: 1.1rem 1.4rem;
    background: rgba(234, 88, 12, 0.12);
    border: 1px solid rgba(234, 88, 12, 0.35);
    border-radius: 16px;
    color: #fdba74;
    font-size: 0.88rem;
}
.shop-notice-banner i {
    font-size: 1.4rem;
    color: #f97316;
    margin-top: 0.1rem;
}
.shop-notice-banner strong {
    display: block;
    color: #ffedd5;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin-bottom: 0.2rem;
}
.shop-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.shop-card {
    background: linear-gradient(145deg, rgba(22, 13, 42, 0.95), rgba(7, 6, 17, 0.98));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.shop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.6);
}
.shop-card.sold-out {
    opacity: 0.75;
}
.shop-card-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background: rgba(0,0,0,0.4);
    overflow: hidden;
}
.shop-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.shop-card:hover .shop-card-img-wrap img {
    transform: scale(1.04);
}
.shop-badge-esgotado {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
    border: 2px solid #f87171;
}
.shop-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.shop-card-content h4 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}
.shop-card-content p {
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    flex: 1;
}
.shop-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.8rem;
    margin-bottom: 1rem;
}
.shop-label {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.shop-card-price strong {
    color: #38bdf8;
    font-size: 1.05rem;
    font-family: 'Montserrat', sans-serif;
}
.shop-card-stock strong {
    color: #cbd5e1;
    font-size: 0.9rem;
}
.shop-cta-btn {
    width: 100%;
    padding: 0.75rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.shop-cta-btn:hover:not(.disabled) {
    filter: brightness(1.15);
    transform: translateY(-1px);
}
.shop-cta-btn.disabled {
    background: rgba(255,255,255,0.08);
    color: #64748b;
    cursor: not-allowed;
}
