@font-face {
    font-family: 'Impact';
    src: url('/fonts/impact.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/fonts/robotoregular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SFProRounded';
    src: url('/fonts/sf-pro-rounded-semibold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tangerine';
    src: url('/fonts/Tangerine_Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Mono';
    src: url('/fonts/RobotoMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/fonts/IBMPlexMono-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/static/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/static/Inter_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation; /* Prevent double-tap zoom */
}

html {
    height: 100%;
    overflow: hidden;
    background: linear-gradient(to right, #2d1414, #1a2614, #143d14, #1a2614, #2d1414); /*background-color: #17152f;*/
    background-color: #000;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.christmas .footer-container-right {
    
    border-top: 2px solid #000000;
}

body:not(.is-pwa)
{
    height: 100dvh;
}

body.is-pwa
{
    height: 100vh;
    /*min-height: 100%;*/
    padding-bottom: env(safe-area-inset-bottom);
}

@supports (-webkit-touch-callout: none) {
  body {
    overscroll-behavior-y: none;
  }
}

body {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(to right, #2d1414, #1a2614, #143d14, #1a2614, #2d1414); /*background: #17152f;*/
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/*---------------------------------------------------------
---> Dual Container Layout System
---------------------------------------------------------*/

/* ALL CONTAINER - Wraps both LEFT and RIGHT containers */
.all-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* PWA mode: add extra padding to all-container for status bar */
.is-pwa .all-container
{
    padding-top: env(safe-area-inset-top, 20px);
}

.is-pwa .groupchat-header
{
    padding-top: 50px;
}

.is-pwa .content-container-right
{
    height: calc(100% - 22%);
}

.is-pwa .header-container-left,
.is-pwa .header-container-right
{
    height: 11dvh;
}

.is-pwa .content-container-left
{
    height: 79dvh;
}

.is-pwa .footer-container-right
{
    min-height: 12%;
    padding-bottom: 30px;
    background: #17152f;
    position: sticky;
    bottom: 0;
}

.is-pwa .comment_header
{
    height: 12vh;
    padding-top: 50px;
}

.is-pwa .messages_header
{
    height: 12vh;
    padding-top: 50px;
}

.is-pwa .messages_content
{
    height: calc(100% - 21vh);
    max-height: calc(100% - 21vh);
    margin-top: 12vh;
}

.is-pwa .comment_section
{
    height: calc(100% - 21vh);
    max-height: calc(100% - 21vh);
    margin-top: 12vh;
}

.is-pwa .mini-viewer-header
{
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
}

/* LEFT CONTAINER - Main app content */
.all-container-left {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    height: 100dvh;
    width: 100vw;
    width: 100dvw;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    transition: none;
    will-change: width, filter;
    z-index: 1;
    overflow: visible; /* Allow fixed footer and toasts to show */
    filter: blur(0px);
}

/* RIGHT CONTAINER - Group chat */
.all-container-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    height: 100dvh;
    width: 0vw;
    width: 0dvw;
    display: flex;
    flex-direction: column;
    background: var(--background-primary, #0d0c1d);
    transition: none;
    will-change: width;
    z-index: 2;
    overflow: visible; /* Changed from hidden to visible for toasts */
}

/* Hide right container footer when chat is closed */
.all-container-right:not(.chat-open) .footer-container-right {
    display: none;
}

/* HEADER CONTAINERS (9% height) */
.header-container-left,
.header-container-right {
    height: 9dvh;
    flex: 0 0 auto;
    width: 100%;
    overflow: hidden;
}

/* CONTENT CONTAINERS (82% height) */
.content-container-left {
    height: 82dvh;
    flex: 0 0 auto;
    width: 100%;
    overflow: hidden;
    display: flex;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.content-container-right {
    height: calc(100% - 18%);
    flex: 1 1 auto;
    width: 100%;
    overflow: hidden;
    display: flex;
}

/* FOOTER CONTAINERS (9% height) */
.footer-container-left {
    height: 9dvh;
    flex: 0 0 auto;
    width: 100%;
    overflow: visible;
    display: flex;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: sticky;
    bottom: 0;
}

.footer-container-right {
    height: 9%;
    min-height: 9%;
    max-height: 9%;
    flex: 0 0 auto;
    width: 100%;
    overflow: visible;
    display: flex;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Desktop: Split-screen when chat is open (>768px) - no blur */
@media (min-width: 769px) {
    .all-container-left.chat-open {
        width: 66vw;
        width: 66dvw;
    }

    .all-container-left.chat-open .footer-container-left {
        width: 66vw;
        width: 66dvw;
    }

    .all-container-right.chat-open {
        width: 33vw;
        width: 33dvw;
    }
}

/* Mobile: Full-screen chat when open (≤768px) - with blur */
@media (max-width: 768px) {
    .all-container-left.chat-open {
        width: 0vw;
        width: 0dvw;
        filter: blur(8px);
    }

    .all-container-left.chat-open .footer-container-left {
        width: 0vw;
        width: 0dvw;
        opacity: 0;
        pointer-events: none;
    }

    .all-container-right.chat-open {
        width: 100vw;
        width: 100dvw;
    }
}

/* Header styles */
.header {
    background: linear-gradient(to right, #513cc9, #4230a1); /* #181630, #0f0f25 */
    border-bottom: 1px solid #2a2540;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    transform: translate3d(0,0,0); /* Force GPU rendering for Safari */
    -webkit-transform: translate3d(0,0,0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Holiday candy cane stripes (December 1-26) */
body.christmas .header {
    background-color: #228b22;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/candycane.svg');
    background-size: 100% 100%, 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    border-bottom: none;
    box-shadow: 0 2px 0 0 #000000;
}

/* Christmas: Add drop shadows to header icons */
body.christmas #hamburger,
body.christmas #refreshIcon,
body.christmas #settingsBtn,
body.christmas #groupchatCloseBtn,
body.christmas .header-btn,
body.christmas .header i {
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.8));
}

/* PWA mode: add extra padding for iOS status bar */
.is-pwa .header
{
    padding-top: calc(12px + env(safe-area-inset-top, 20px)) !important;
}

.is-pwa .feed-viewer-header
{
    padding-top: calc(12px + env(safe-area-inset-top, 20px)) !important;
}

.header-left {
    display: flex;
    align-items: center;
    /*gap: 16px;*/
    /*width: 75px;*/
}

.hamburger-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: opacity 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 90px;
    border-radius: 90px;
}

.hamburger-btn:hover {
    /*background: #2a2245;
    transform: translateY(-1px);
    background: #2a2245;
    transform: translateY(-1px);*/
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-align: center;
    font-family: "SFProRounded";
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.header-right {
    /*width: 75px;*/
    display: flex;
    justify-content: flex-end;
}

.refresh-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: opacity 0.2s;
}

.refresh-btn:hover {
    opacity: 0.7;
}

/* Main content inside content-container-left */
.main-content {
    flex: 1;
    overflow: hidden;
    background: #0a0a0a;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.main-content.menu-open {
    opacity: 0.3;
    pointer-events: none;
}

.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.main-content.menu-open::after {
    background: rgba(0, 0, 0, 0.5);
}

.side-menu {
    position: absolute;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100%;
    background: #281750;
    transition: left 0.3s ease;
    z-index: 99;
    overflow-y: auto;
    border-right: 1px solid #2a2540;
}

.side-menu.open {
    left: 0;
}

.menu-header {
    padding: 12px 20px;
    border-bottom: 1px solid #2a2540;
    font-size: 18px;
    font-weight: 600;
}

.menu-items {
    padding: 12px 0;
}

.menu-item {
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.menu-item:hover {
    background: #251f38;
}

.menu-item.active {
    background: #34137e;
    border-left-color: #4e1dba;
}

/* Expandable menu item */
.menu-item-expandable {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item-arrow {
    transition: transform 0.2s ease;
    font-size: 14px;
}

.menu-item-expandable.expanded .menu-item-arrow {
    transform: rotate(90deg);
}

/* Nested menu container */
.menu-item-nested {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #7b2fda;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.menu-item-nested-child {
    padding: 12px 20px 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.menu-item-nested-child:hover {
    background: rgba(43, 23, 87, 0.2);
}

.playlist-count {
    color: #b0b0c0;
    font-size: 13px;
    font-weight: normal;
}

.bottom-nav {
    background: #202020; /* #17152f; */
    border-top: 1px solid #2a2540;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 9dvh;
    gap: 8px;
    position: relative;
    width: 100%;
    flex: 1;
    box-sizing: border-box;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
}

/* Add shimmer/shadow gradient overlay at bottom */
.bottom-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(0, 0, 0, 0) 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Ensure nav buttons are above the gradient */
.bottom-nav > * {
    position: relative;
    z-index: 2;
}

/* Holiday Christmas green (December 1-26) */
body.christmas .bottom-nav {
    /* Option 1: Multi-color dark Christmas */
    /* background: linear-gradient(to right, #1a4d1a, #0d2818, #1a1a2e, #2d1a1a, #1a4d1a); */

    /* Option 2: Dark red to dark green gradient */
    background: linear-gradient(to right, #2d1414, #1a2614, #143d14, #1a2614, #2d1414);
    border-top: 2px solid #000000;
}

/* Christmas: Give all nav buttons red center background */
body.christmas .bottom-nav .nav-btn {
    color: #fff;
    isolation: isolate;
}

body.christmas .bottom-nav .nav-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: #7a1a1a;
    box-shadow: inset 0 4px 8px rgba(0,0,0,.6);
    z-index: -1;
}

/* Christmas: Only active button gets gold gradient border */
body.christmas .bottom-nav .nav-btn.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: conic-gradient(from 0deg, #ffd700, #ffed4e, #ffd700, #ffb700);
    z-index: -2;
}

/* Christmas: Gold gradient on bottom nav icons */
body.christmas .bottom-nav .nav-btn i {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700, #ffb700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Christmas: Base styling for groupchat menu and send buttons */
body.christmas #groupchatMenuBtn,
body.christmas .comment-post-btn,
body.christmas #commentMenuBtn {
    isolation: isolate;
    position: relative;
}

/* Christmas: Red background for menu buttons */
body.christmas #groupchatMenuBtn,
body.christmas #commentMenuBtn {
    background: #7a1a1a !important;
    box-shadow: inset 0 4px 8px rgba(0,0,0,.6);
}

/* Christmas: Red background layer for Send button */
body.christmas .comment-post-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: #7a1a1a;
    box-shadow: inset 0 4px 8px rgba(0,0,0,.6);
    z-index: -1;
}

body.christmas #groupchatMenuBtn i,
body.christmas #commentMenuBtn i,
body.christmas .comment-post-btn i {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700, #ffb700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Christmas: Group chat header */
body.christmas .groupchat-header {
    background-color: #228b22 !important;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/candycane.svg') !important;
    background-size: 100% 100%, 100% auto !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-bottom: none !important;
    box-shadow: 0 2px 0 0 #000000 !important;
}

/* Add text shadow to groupchat header title during Christmas */
body.christmas .groupchat-header .groupchat-header-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Christmas: Add drop shadows to groupchat header icons */
body.christmas .groupchat-header button,
body.christmas .groupchat-header i {
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.8));
}

/* Christmas: Group chat footer */
body.christmas .footer-container-right {
    background: linear-gradient(to right, #2d1414, #1a2614, #143d14, #1a2614, #2d1414);
    border-top: 2px solid #000000;
}

/* Christmas: Feed viewer header */
body.christmas .feed-viewer-header {
    background-color: #228b22;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/candycane.svg');
    background-size: 100% 100%, 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    border-bottom: none;
    box-shadow: 0 2px 0 0 #000000;
}

/* Christmas: Drop shadows for feed viewer header icons */
body.christmas .feed-viewer-header button,
body.christmas .feed-viewer-header i {
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.8));
}

/* Christmas: Mini viewer header */
body.christmas .mini-viewer-header {
    background-color: #228b22;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/candycane.svg');
    background-size: 100% 100%, 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    border-bottom: none;
    box-shadow: 0 2px 0 0 #000000;
}

/* Christmas: Drop shadows for mini viewer header icons */
body.christmas .mini-viewer-header button,
body.christmas .mini-viewer-header i {
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.8));
}

/* Christmas: Comments header */
body.christmas .comment_header {
    background-color: #228b22;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/candycane.svg');
    background-size: 100% 100%, 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    border-bottom: none;
    box-shadow: 0 2px 0 0 #000000;
}

/* Christmas: Drop shadows for comment header icons */
body.christmas .comment_header button,
body.christmas .comment_header i {
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.8));
}

/* Christmas: Feed viewer like/dislike buttons with icons */
body.christmas .feed-viewer #feedViewerLike:has(i),
body.christmas .feed-viewer #feedViewerDislike:has(i) {
    background: #7a1a1a;
    border-radius: 50%;
    padding: 8px;
}

/* Christmas: View comments button */
body.christmas .feed-viewer .feed-viewer-toggle {
    background: #7a1a1a;
}

body.christmas .feed-viewer .feed-viewer-toggle:hover {
    background: #8b2424;
}

body.christmas .feed-viewer .feed-viewer-toggle.is-open {
    background: #7a1a1a;
}

/* Christmas: Comment bar */
body.christmas .comment-bar {
    background: linear-gradient(to right, #2d1414, #1a2614, #143d14, #1a2614, #2d1414);
    border-top: 2px solid #000000;
}

/* Christmas Eve & Day special theme (December 24-25) - Override candy cane with animated GIF */
body.christmas.christmas-eve .header,
body.christmas.christmas-eve .groupchat-header,
body.christmas.christmas-eve .feed-viewer-header,
body.christmas.christmas-eve .mini-viewer-header,
body.christmas.christmas-eve .comment_header {
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/xmas-eve-day.gif') !important;
    background-size: 100% 100%, cover !important;
}

/* Christmas Eve & Day: Footer background */
body.christmas.christmas-eve .footer-container-right {
    background-color: #228b22 !important;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/xmas-eve-day.gif') !important;
    background-size: 100% 100%, cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Christmas Eve & Day: Bottom nav background */
body.christmas.christmas-eve .bottom-nav {
    background-color: #228b22 !important;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/xmas-eve-day.gif') !important;
    background-size: 100% 100%, cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Christmas Eve & Day: Comment bar background */
body.christmas.christmas-eve .comment-bar {
    background-color: #228b22 !important;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/xmas-eve-day.gif') !important;
    background-size: 100% 100%, cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Christmas Day special theme (December 25) - Uses xmas-day.gif */
body.christmas.christmas-day .header,
body.christmas.christmas-day .groupchat-header,
body.christmas.christmas-day .feed-viewer-header,
body.christmas.christmas-day .mini-viewer-header,
body.christmas.christmas-day .comment_header {
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/xmas-day.gif') !important;
    background-size: 100% 100%, cover !important;
}

/* Christmas Day: Footer background */
body.christmas.christmas-day .footer-container-right {
    background-color: #228b22 !important;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/xmas-day.gif') !important;
    background-size: 100% 100%, cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Christmas Day: Bottom nav background */
body.christmas.christmas-day .bottom-nav {
    background-color: #228b22 !important;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/xmas-day.gif') !important;
    background-size: 100% 100%, cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Christmas Day: Comment bar background */
body.christmas.christmas-day .comment-bar {
    background-color: #228b22 !important;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2)),
        url('/images/xmas-day.gif') !important;
    background-size: 100% 100%, cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Bottom nav in header-container-right (mobile chat mode) */
.header-container-right .bottom-nav {
    border-top: none;
    border-bottom: 1px solid #2a2540;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 12px;
}

.nav-btn {
    background: none;
    border: none;
    color: #8b8b9a;
    font-size: 24px;
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
    border-radius: 12px;
    aspect-ratio: 1;
    width: 48px;
    height: 48px;
}

.nav-btn:hover:not(.active) {
    color: #b0b0c0;
}

.nav-btn { position: relative; }

.nav-btn.active{
    color:#fff;
    background: transparent;
    isolation: isolate; /* keeps negative z-index pseudos contained */
  }
.nav-btn { position: relative; }

.nav-btn.active{
    color:#fff;
    background: transparent;
    isolation: isolate; /* keeps negative z-index pseudos contained */
  }

.nav-btn.active::before{
    content:'';
    position:absolute;
    inset:-2px;
    border-radius:12px;
    background: conic-gradient(from 0deg, #7b2fda, #595ce9, #29d1f8, #7b2fda);
    z-index:-2;
  }

.nav-btn.active::after{
    content:'';
    position:absolute;
    inset:0;
    border-radius:10px;
    background:#2a2245;
    box-shadow: inset 0 4px 8px rgba(0,0,0,.6); /* <-- put inset here */
    z-index:-1;
  }
.nav-btn.active::after{
    content:'';
    position:absolute;
    inset:0;
    border-radius:10px;
    background:#2a2245;
    box-shadow: inset 0 4px 8px rgba(0,0,0,.6); /* <-- put inset here */
    z-index:-1;
  }

.page-content {
    position: relative;
    padding: 0px;
    display: none;
    height: 100%;
    overflow-y: auto;
    z-index: 1;
    /* Ensure content doesn't get covered by fixed header on Safari */
    -webkit-overflow-scrolling: touch;
    /* Add padding for fixed header on all pages except profiles (which have their own) */
    padding-top: 20px;
    padding-top: 20px;
    box-sizing: border-box;
}

.page-content[data-page="my_profile"],
.page-content[data-page="user_profile"] {
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Safari pages need space for header to avoid content being hidden */
.is-safari .page-content[data-page="create"],
.is-safari .page-content[data-page="search"] {
    padding-top: calc(56px + env(safe-area-inset-top, 0px)) !important;
}

.page-content.active {
    display: block;
}

.page-content.feed-grid {
    padding: 4px;
    width: 100%;
    display: flex;
    justify-content: left;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-description {
    color: #b0b0c0;
    font-size: 16px;
    line-height: 1.6;
}

.search-container {
    display: none;
}

.search-page-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 60px 10px;
}

.search-page-wrapper.active {
    display: flex;
}

.search-input-large {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #2a2540;
    border-radius: 8px;
    background: #0f0f25;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 32px;
}

.search-input-large::placeholder {
    color: #8b8b9a;
}

.search-input-large:focus {
    outline: none;
    border-color: #7b2fda;
}

.search-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.search-tab {
    background: none;
    border: none;
    color: #8b8b9a;
    font-size: 16px;
    cursor: pointer;
    padding: 12px 20px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.search-tab:hover {
    color: #b0b0c0;
}

.search-tab.active {
    color: #ffffff;
    border-bottom-color: #7b2fda;
}

.search-results {
    width: 100%;
    max-width: 1300px;
}

/* User Results */
.user-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.user-result-item {
    display: flex;
    align-items: left;
    gap: 12px;
    padding: 12px;
    background: rgba(15, 15, 37, 0.6);
    border: 1px solid #2a2540;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-result-item:hover {
    background: rgba(15, 15, 37, 0.9);
    border-color: #7b2fda;
}

.user-result-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
}

.user-result-info {
    flex: 1;
    min-width: 0;
}

.user-result-username {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.user-result-bio {
    color: #8b8b9a;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stalk-button {
    background: #7b2fda;
    background: #7b2fda;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    width: 100px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.stalk-button:hover {
    background: #9857ff;
    background: #9857ff;
}

.bail-button {
    background: #f44336;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    width: 100px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.bail-button:hover {
    background: #d32f2f;
}

/* Image Results */
.image-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.image-result-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: #0f0f25;
}

.image-result-item:hover {
    opacity: 0.8;
}

.image-result-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
---> FEEDS =====================================================================================
*/

.feed-grid
{
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    justify-content: center;
}

.popular-day-divider
{
    width: 100%;
    padding: 20px 10px 10px 10px;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: solid 2px #222;
    margin-bottom: 10px;
}

.page-content.feed-grid {
    display: none;
}

.page-content.feed-grid.active {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* justify-content: flex-start; */ /* Keeping this commented out to keep the grid items centered */
    align-items: flex-start;
    align-content: flex-start;
}

.feed-grid .feed-thumb
{
    display: inline-block;
}

.feed-thumb
{
    position: relative;
    width: 32%;
    max-width: 200px;
    max-height: 200px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 0px;
    background: #141325;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.feed-thumb-img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.18s ease-out;
}

.feed-thumb:hover .feed-thumb-img
{
    transform: scale(1.06);
}

.feed-thumb-overlay
{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 6px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 40%;
}

.feed-thumb-stats
{
    color: #fff;
    font-size: 13px;
    display: flex;
    gap: 8px;
}

.feed-thumb-lock
{
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.feed-thumb-lock i
{
    color: #ffd700;
    font-size: 14px;
}

.feed-loading-indicator
{
    position: relative;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-loading-indicator img
{
    width: 400px;
    height: auto;
    object-fit: contain;
}

.feed-viewer
{
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, #151329 0%, #050509 60%);
    touch-action: auto; /* Allow all touch interactions including pinch-zoom */
}

/* Constrain viewer to ALL_CONTAINER_LEFT */
.all-container-left .feed-viewer {
    position: absolute;
    inset: 0;
}

.feed-viewer:not([style*="display: none"])
{
    display: flex;
}

.feed-viewer-header
{
    background: #17152f;
    border-bottom: 1px solid #2a2540;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    z-index: 10000;
    height: 9dvh;
}

.feed-viewer-back
{
    background: #17152f;
    border: 0px solid #2a2540;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: background 0.15s ease, transform 0.1s ease;
}

.feed-viewer-back:hover
{
    background: #2a2245;
    transform: translateY(-1px);
}

.feed-viewer-stats
{
    display: flex;
    gap: 12px;
    align-items: center;
}

.feed-viewer-stat
{
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
}

.feed-viewer-likes-count
{
    padding: 0 8px;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.15s ease;
}

.feed-viewer-likes-count.is-open
{
    color: #9b59d6;
}

.feed-viewer-stat
{
    position: relative;
}

.feed-viewer-likes-popup
{
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 75vw;
    max-width: 400px;
    height: 60vh;
    max-height: 700px;
    background: #17152f;
    border: 1px solid #2a2245;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.likes-popup-content
{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.likes-popup-header
{
    padding: 16px;
    border-bottom: 1px solid #2a2245;
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
}

.likes-popup-list
{
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
}

.feed-viewer-action
{
    background: none;
    border: none;
    color: #b0b0c0;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    transition: color 0.15s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feed-viewer-action:hover
{
    color: #ffffff;
    transform: scale(1.1);
}

.feed-viewer-action:active
{
    transform: scale(0.95);
}

.feed-viewer-toggle
{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: #17152f;
    color: #b0b0c0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.feed-viewer-toggle i
{
    font-size: 18px;
}

.feed-viewer-toggle:hover
{
    color: #ffffff;
    background: #221d3a;
}

.feed-viewer-toggle.is-open
{
    color: #ffffff;
    background: #2a2245;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.7);
}

.feed-viewer-toggle.is-open::before
{
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, #7b2fda, #595ce9, #29d1f8, #7b2fda);
    z-index: -1;
}

/* Viewer Menu Styles */
.viewer-menu-container
{
    position: relative;
    margin-right: 8px;
}

.viewer-menu-btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.0);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.15s ease;
}

.viewer-menu-btn:hover
{
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.viewer-menu-btn:active
{
    transform: scale(0.95);
}

.viewer-menu-dropdown
{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    overflow: hidden;
}

.viewer-menu-item
{
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s ease;
}

.viewer-menu-item span
{
    font-size: 16px;
}

.viewer-menu-item:hover
{
    background: rgba(255, 255, 255, 0.1);
}

.viewer-menu-item:active
{
    background: rgba(255, 255, 255, 0.15);
}

.viewer-menu-item-danger
{
    color: #ff6b6b;
}

.viewer-menu-item-danger:hover
{
    background: rgba(255, 107, 107, 0.15);
}

.viewer-menu-divider
{
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.feed-viewer-inner
{
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.feed-viewer-image,
.feed-viewer-video
{
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    touch-action: pinch-zoom; /* Allow pinch-zoom on viewer images */
}

/*
---> COMMENTS =====================================================================================
*/
.comment_container
{
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: 33vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, #151329 0%, #050509 60%);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
    overflow: hidden; /* Changed from overflow-x: hidden to ensure proper clipping */
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.22s ease-out;
}

.comment_container.is-open
{
    transform: translateX(0);
}

@media (max-width: 768px)
{
    .comment_container
    {
        width: 100vw;
        right: 0;
    }
}

/* Messages container - same style as comments */
.messages_container
{
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, #151329 0%, #050509 60%);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.22s ease-in-out;
}

.messages_container.is-open
{
    transform: translateX(0);
}

@media (max-width: 768px)
{
    .messages_container
    {
        max-width: 100%;
        right: 0;
    }
}

.messages_content
{
    flex: 1;
    overflow-y: auto;
    margin-top: 64px; /* Space for header */
    margin-bottom: 75px; /* Space for input bar */
    padding: 0px;
}

/* Messages input bar */
.messages_input-bar
{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #17152f;
    padding: 10px 16px 22px 16px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid #2a2540;
    z-index: 10001;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.messages_input-bar-inner
{
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.messages_attachment-btn
{
    background: transparent;
    border: none;
    color: #8b8ba0;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.messages_attachment-btn:hover
{
    color: #b8b8ca;
}

.messages_input-wrapper
{
    flex: 1;
}

.messages_input
{
    width: 100%;
    padding: 10px;
    background: #0d0c1a;
    border: 1px solid #2a2540;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    resize: none;
    font-family: inherit;
}

.messages_input:focus
{
    outline: none;
    border-color: #764ba2;
}

.messages_post-btn
{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s;
}

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

.messages_post-btn:disabled
{
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.messages_header
{
    position: absolute;
    border-bottom: 1px solid #2a2540;
    top: 0;
    left: 0;
    right: 0;
    background: #17152f;
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    height: 64px;
}

.messages_back-arrow
{
    position: absolute;
    left: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.messages_back-arrow:hover
{
    transform: scale(1.1);
}

.messages_title
{
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
    color: white;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 60px; /* Space for back button on left */
    flex: 1;
}

.comment_header
{
    position: absolute;
    border-bottom: 1px solid #2a2540;
    top: 0;
    left: 0;
    right: 0;
    background: #17152f;
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    height: 64px;
}

.comment_back-arrow
{
    position: absolute;
    left: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    font-weight: normal;
    line-height: 1;
    border-radius: 90px;
}

.comment_back-arrow:hover
{
    background: #2a2245;
    transform: translateY(-1px);
    border-radius: 90px;
}

.comment_back-arrow:hover
{
    background: #2a2245;
    transform: translateY(-1px);
}

.comment_title
{
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.comment_section
{
    /*height: calc(100% - 200px);  100% minus header (64px) and input bar (~75px) */
    max-height: calc(100% - 170px); /* 100% minus header (64px) and input bar (~75px) */
    margin-top: 64px; /* Position below header */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0;
    padding-right: 0px;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.comment_item
{
    /*padding: 3px 5px 2px 5px;*/
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-width: 100%;
    overflow: visible;
    overscroll-behavior: contain;
    transition: box-shadow 0.3s ease;
    position: relative;
    margin-right: 0px;
    /* Prevent individual comments from scrolling on Safari */
    height: auto;
    max-height: none;
    font-size: 16px;
}

.comment_item.highlight
{
    box-shadow: 0 0 40px rgba(255, 200, 0, 1), inset 0 0 20px rgba(255, 200, 0, 0.3);
    animation: pulse-highlight 0.6s ease-in-out 3;
}

@keyframes pulse-highlight
{
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 200, 0, 1), inset 0 0 20px rgba(255, 200, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 220, 0, 1), inset 0 0 30px rgba(255, 220, 0, 0.5);
        transform: scale(1.02);
    }
}

/* Groupchat message highlight animation (for alert clicks) */
.message-highlight
{
    box-shadow: 0 0 40px rgba(255, 200, 0, 1), inset 0 0 20px rgba(255, 200, 0, 0.3);
    animation: pulse-highlight 0.6s ease-in-out 3;
}

.comment_pink-bg
{
    background: linear-gradient(to bottom, #e855b5 0%, #d946a6 100%);
    color: white;
}

.comment_black-bg
{
    background: linear-gradient(to bottom, #222222 0%, #111111 100%);
    color: white;
}

.comment_item-header
{
    display: flex;
    /*gap: 6px;*/
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.comment_username
{
    font-size: 22px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
    margin-bottom: 0px;
    max-width: 90%;
    white-space: nowrap;
}

.comment_content
{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.comment_avatar
{
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.comment_avatar:hover
{
    opacity: 0.8;
}

.comment_info
{
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.comment_text
{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
    overflow: visible;
}

.comment_image-container
{
    margin-top: 0px;
    display: flex;
    justify-content: center;
}

.comment_image
{
    width: min(300px, calc(100% - 68px));
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    display: block;
    background-color: #000;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.comment_image:hover
{
    opacity: 0.9;
}

.comment_image-full
{
    max-width: calc(100% - 68px);
    width: auto;
    height: auto;
    max-height: 500px;
    border-radius: 8px;
    display: block;
    background-color: #000;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 0px;
    margin-bottom: 15px;
}

.comment_image-full:hover
{
    opacity: 0.9;
}

.comment_reply-arrow
{
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
    line-height: 1;
    z-index: 10;
}

.comment_reply-arrow:hover
{
    opacity: 1;
    transform: scale(1.2);
}

.comment_timestamp
{
    font-family: 'Inter', sans-serif;
    text-align: right;
    font-size: 13px;
    color: inherit;
    line-height: 20px;
    flex-shrink: 0;
    font-weight: 400;
    opacity: 0.6;
}

.comment_bottom-bin
{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0px 10px 0px;
    margin: 0px;
    gap: 10px;
    min-height: 25px;
}

.emoji-container
{
    display: none;
    flex-flow: row-reverse wrap;
    gap: 0px;
    text-align: right;
    justify-content: flex-start;
    align-items: flex-end;
    min-height: 25px;
    padding-right: 5px;
}

#avatarMenu
{
    position: fixed;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    width: 66vw;
    max-width: 350px;
}

/*---------------------------------------------------------
---> COMMENT BAR (unified structure for comments and groupchat)
---> 3-column layout: LEFT (10%) | CENTER (80%) | RIGHT (10%)
---------------------------------------------------------*/

/* Comment bar container positioning */
#commentInputBarContainer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 33vw;
    height: 9%;
    z-index: 90001;
    display: none; /* Hidden by default */
}

/* Show when comment viewer is open */
.comment_container.is-open ~ #commentInputBarContainer,
.comment_container.is-open #commentInputBarContainer {
    display: block;
}

/* Comment bar - outer container (100% width, 100% height of container) */
.comment-bar
{
    width: 100%;
    height: 100%;
    background: #17152f;
    border-top: 1px solid #2a2540;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Mobile: full width */
@media (max-width: 768px)
{
    #commentInputBarContainer
    {
        width: 100vw;
        right: 0;
        height: auto;
        min-height: 9%;
        max-height: 40vh;
    }

    /* Allow comment bar to expand when keyboard is up */
    .comment-bar {
        min-height: 60px;
        height: auto;
        max-height: 40vh;
    }

    /* Allow more lines on mobile */
    .comment-textarea {
        max-height: calc(1.4em * 6 + 18px);
    }

    .footer-container-right {
        flex: 0 0 auto;
        min-height: 9%;
        max-height: 40vh;
        max-height: 40dvh;
    }
}

/* Comment bar left section (10% width) - contains menu button */
.comment-bar-left
{
    width: 10%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Comment bar center section (80% width) - contains textarea */
.comment-bar-center
{
    width: 80%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

/* Comment bar right section (10% width) - contains post button */
.comment-bar-right
{
    width: 10%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu button (✨) */
.comment-menu-btn
{
    background: conic-gradient(from 0deg, #7b2fda, #595ce9, #29d1f8, #7b2fda);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    border-radius: 50%;
    margin-left: 10px;
}

.comment-menu-btn.has-attachment
{
    background: conic-gradient(from 0deg, #00ff88, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.comment-menu-btn:hover
{
    opacity: 0.8;
}

/* Menu dropdown */
.comment-menu-dropdown
{
    position: absolute;
    bottom: 100%;
    left: 8px;
    margin-bottom: 8px;
    background: #1a1a2e;
    border: 1px solid #2a2540;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 90002;
}

/* Menu items */
.comment-menu-item
{
    /*width: 100%;*/
    padding: 10px 16px;
    background: none;
    border: none;
    color: #f5f5ff;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-menu-item:hover
{
    background: rgba(255, 255, 255, 0.1);
}

/* Game submenu styling */
.comment-menu-item-with-submenu
{
    position: relative;
}

.comment-submenu
{
    position: absolute;
    left: 100%;
    top: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    margin-left: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 90004;
}

.submenu-indicator
{
    margin-left: auto;
    opacity: 0.5;
    font-size: 12px;
}

/* Saved messages submenu */
.saved-messages-submenu
{
    position: relative;
    z-index: 90003;
}

.saved-message-item
{
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.saved-message-item:hover
{
    background: rgba(255, 255, 255, 0.05);
}

.saved-message-item button:hover
{
    background: rgba(255, 255, 255, 0.15);
}

.saved-messages-submenu::-webkit-scrollbar
{
    width: 6px;
}

.saved-messages-submenu::-webkit-scrollbar-thumb
{
    background: #2a2540;
    border-radius: 3px;
}

/* Textarea border - no focus highlighting */
.comment-bar-center::before
{
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 18px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.2s;
}

/* Removed focus border highlighting */

/* Textarea */
.comment-textarea
{
    width: 100%;
    padding: 9px 15px;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    outline: none;
    background-color: #050509;
    color: #f5f5ff;
    resize: none;
    overflow-y: auto;
    line-height: 1.4;
    font-family: inherit;
    max-height: calc(1.4em * 3 + 18px);
    box-sizing: border-box;
}

.comment-textarea::placeholder
{
    color: #b0b0b0;
}

/* Post button */
.comment-post-btn
{
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.comment-post-btn:hover
{
    opacity: 0.7;
}

.comment-post-btn:disabled
{
    color: #d0d0d0;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar Styling */
.comment_section::-webkit-scrollbar
{
    width: 8px;
}

.comment_section::-webkit-scrollbar-track
{
    background: #f1f1f1;
}

.comment_section::-webkit-scrollbar-thumb
{
    background: #888;
    border-radius: 4px;
}

.comment_section::-webkit-scrollbar-thumb:hover
{
    background: #555;
}

/* Speshal Characters Formatting Styles */
.comment_greentext
{
    color: #789922;
}

.comment_mention
{
    color: var(--mention-color, #0949eb);
    cursor: pointer;
    text-decoration: none;
}

.comment_mention:hover
{
    text-decoration: underline;
}

.comment_bold
{
    font-weight: bold;
}

.comment_underline
{
    text-decoration: underline;
}

.comment_big
{
    font-family: 'Impact', sans-serif;
    font-size: 3.0em;
    font-weight: bold;
    line-height: 1;
}

.comment_fancy
{
    font-family: 'Tangerine', sans-serif;
    font-size: 1.8em;
    line-height: 1;
}

.comment_link
{
    color: var(--mention-color, darkblue);
    text-decoration: none;
    cursor: pointer;
}

.comment_link:hover
{
    color: var(--mention-color, darkblue);
}

.comment_fullscreen-overlay
{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.comment_fullscreen-overlay.active
{
    display: flex;
}

.comment_fullscreen-content
{
    max-width: 95vw;
    max-width: 95dvw;
    max-height: 95vh;
    max-height: 95dvh;
    object-fit: contain;
}

.comment_fullscreen-close
{
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.2s;
}

.comment_fullscreen-close:hover
{
    background: rgba(255, 255, 255, 1);
}

/*
---> PROFILE =====================================================================================
*/

.profile-banner-background
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 36%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    overflow: hidden;
}

.profile-banner-video
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-main-table
{
    width: 100%;
    max-width: 100vw;
    height: 77%;
    padding: 0;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    position: absolute;
    top: 30%;
    left: 0;
    z-index: 2;
    box-sizing: border-box;
}

.profile-avatar-row
{
    height: 15%;
    max-height: 15%;
    background: rgba(0, 0, 0, 0.3);
}

.profile-avatar-wrapper-cell
{
    width: 100%;
    /*height: 100%;*/
    padding: 0;
    margin: 0;
    border-bottom: solid 1px #999;
    vertical-align: middle;
}

.profile-info-table-inner
{
    width: 90%;
    height: 100%;
    padding: 0;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    margin-left: 5%;
}

.profile-content-row
{
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
}

.profile-content-cell
{
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    vertical-align: top;
    overflow-y: auto;
}

.profile-avatar-cell
{
    width: 25%;
    padding: 0;
    margin: 0;
    text-align: right;
    vertical-align: middle;
}

.profile-avatar-img
{
    height: 10vh;
    width: 10vh;
    display: inline-block;
    object-fit: cover;
    object-position: center;
}

.profile-info-cell
{
    width: 75%;
    padding: 0;
    margin: 0;
    text-align: left;
    vertical-align: middle;
}

.profile-info-table
{
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border-collapse: collapse;
}

.profile-username-cell
{
    width: 100%;
    margin: 0;
    text-align: left;
    vertical-align: middle;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding-left: 15px;
    font-family: 'Roboto', sans-serif;
}

.profile-stats-cell
{
    width: 100%;
    padding: 0;
    margin: 0;
}

.profile-stats-table
{
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.profile-stat-value
{
    width: 25%;
    padding: 0;
    margin: 0;
    text-align: center;
    vertical-align: top;
    color: white;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}

.profile-stat-label
{
    width: 25%;
    padding: 0;
    margin: 0;
    text-align: center;
    vertical-align: top;
    color: white;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.profile-posts-container
{
    width: 100%;
}

.profile-biography
{
    color: white;
    white-space: pre-wrap;
    font-family: 'Roboto', 'Courier New', monospace;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Collapsible Biography Styles */
.profile-bio-collapsible
{
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-bio-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(315deg, rgba(180,220,255,0.40) 0%, rgba(130,190,255,0.12) 40%, rgba(0,40,100,0.25) 75%, rgba(0,20,70,0.40) 100%);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.profile-bio-header:hover
{
    background: linear-gradient(135deg, rgba(0, 0, 0, 1.0), rgba(255, 255, 255, 0.05));
}

.profile-bio-title
{
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.profile-bio-toggle
{
    color: white;
    font-size: 14px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-bio-content
{
    padding: 0px;
    text-align: left;
}

.profile-bio-editor
{
    width: 100%;
    min-height: 120px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-family: 'Roboto', 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 6px;
}

.profile-bio-editor:focus
{
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.profile-bio-editor::placeholder
{
    color: rgba(255, 255, 255, 0.5);
}

.profile-suffix-form
{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-suffix-input
{
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.profile-suffix-input:focus
{
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.profile-suffix-input::placeholder
{
    color: rgba(255, 255, 255, 0.5);
}

/* Online Settings Form */
.profile-online-form
{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.online-visibility-row
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.online-visibility-label
{
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Toggle Switch Styles */
.toggle-switch
{
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.toggle-slider
{
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 26px;
}

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

input:checked + .toggle-slider
{
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

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

.toggle-slider:hover
{
    opacity: 0.9;
}

.online-message-row
{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-online-message-input
{
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.profile-online-message-input:focus
{
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.profile-online-message-input::placeholder
{
    color: rgba(255, 255, 255, 0.5);
}

.profile-avatar-banner-form
{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.form-section-title
{
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    margin-bottom: 4px;
}

.file-browse-btn
{
    padding: 18px 32px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 4px;
    width: auto;
}

.file-browse-btn:hover
{
    background: linear-gradient(135deg, #00d4ff 0%, #0080ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.file-browse-btn:active
{
    transform: translateY(0);
}

.browse-icon
{
    font-size: 28px;
}

.browse-text
{
    font-size: 16px;
}

.file-selected-name
{
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-style: italic;
    margin-bottom: 4px;
    min-height: 18px;
    text-align: center;
}

/* Upload Post Section */
.upload-post-section
{
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.upload-buttons-row
{
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.upload-post-btn
{
    flex: 2;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.upload-public-btn
{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.upload-private-btn
{
    flex: 1;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.upload-post-btn:hover
{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.upload-post-btn.selected
{
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.upload-btn-icon
{
    font-size: 28px;
}

.upload-btn-text
{
    font-size: 14px;
}

.upload-form-section
{
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group
{
    margin-bottom: 12px;
}

.upload-form-label
{
    display: block;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.upload-tags-input
{
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
}

.upload-tags-input:focus
{
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.upload-tags-input::placeholder
{
    color: rgba(255, 255, 255, 0.5);
}

.launch-post-btn
{
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.launch-post-btn:hover
{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.launch-icon
{
    font-size: 20px;
}

.launch-text
{
    font-size: 16px;
}

.profile-bio-save-btn
{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 6px;
    margin-right: 3px;
    width: 100%;
}

.profile-bio-save-btn:hover
{
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-bio-save-btn:active
{
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-section-placeholder
{
    min-height: 60px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Customization Form Styles */
.profile-customization-form
{
    width: 100%;
}

.profile-form-table
{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.form-label-cell
{
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding-right: 16px;
    vertical-align: top;
    padding-top: 8px;
    width: 40%;
}

.form-input-cell
{
    vertical-align: top;
    text-align: center;
    width: 60%;
}

.form-select
{
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.form-select:focus
{
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.form-file-input
{
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.form-file-input::-webkit-file-upload-button
{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    margin-right: 8px;
}

.form-file-input::-webkit-file-upload-button:hover
{
    opacity: 0.9;
}

.file-input-hint
{
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 4px;
}

.color-picker-container
{
    display: inline-block;
}

/* Add light border to color picker button so dark colors are visible */
.pickr .pcr-button
{
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) !important;
}

/* Hide HEXA button in color picker */
.pcr-type[data-type="HEXA"]
{
    display: none !important;
}

.slider-container
{
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-slider
{
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.form-slider::-webkit-slider-thumb
{
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-slider::-webkit-slider-thumb:hover
{
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.form-slider::-moz-range-thumb
{
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-slider::-moz-range-thumb:hover
{
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.slider-value
{
    color: white;
    font-size: 14px;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

.profile-customization-buttons
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.profile-action-btn
{
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.profile-action-btn:hover
{
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-action-btn:active
{
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-action-primary
{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-action-danger
{
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.profile-action-secondary
{
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.profile-action-warning
{
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    margin-bottom: 6px;
}

.profile-posts-grid
{
    width: 100%;
}

/*
---> STALKERS =====================================================================================
*/
.stalkers-overlay
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 100;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.stalkers-container
{
    padding: 20px;
    color: white;
    max-width: 100%;
    box-sizing: border-box;
}

.stalkers-container table
{
    table-layout: fixed;
    width: 100%;
}

.stalkers-container td
{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stalkers-back-btn
{
    background: #7b2fda;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.stalkers-back-btn:hover
{
    background: #6a28c0;
}

.stalkers-json
{
    background: rgba(15, 15, 37, 0.8);
    border: 1px solid #2a2540;
    border-radius: 8px;
    padding: 20px;
    color: #8b8b9a;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/*
---> ALERTS =====================================================================================
*/

.notification-badge
{
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.alerts-header
{
    padding: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-bottom: 1px solid #2a2540;
}

.alerts-clear-btn
{
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.alerts-clear-btn:hover
{
    background: #ff6666;
}

.alerts-json-btn
{
    background: #7b2fda;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.alerts-json-btn:hover
{
    background: #9b4ffa;
}

.alerts-json-section
{
    margin: 16px;
    background: #1a1625;
    border: 1px solid #2a2540;
    border-radius: 8px;
    overflow: hidden;
}

.alerts-json-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2a2540;
    color: #ffffff;
    font-weight: 600;
}

.alerts-json-close
{
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.alerts-json-close:hover
{
    color: #ff4444;
}

.alerts-json-content
{
    padding: 16px;
    margin: 0;
    background: #0d0a14;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.notification-item
{
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #2a2540;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover
{
    background: rgba(123, 47, 218, 0.1);
}

.notification-item.unseen
{
    background: rgba(218, 165, 32, 0.08);
    border-left: 3px solid rgba(218, 165, 32, 0.7);
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.3),
                inset 0 0 20px rgba(218, 165, 32, 0.1);
    animation: golden-pulse 2s ease-in-out infinite;
}

.notification-item.unseen:hover
{
    background: rgba(218, 165, 32, 0.15);
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.4),
                inset 0 0 20px rgba(218, 165, 32, 0.15);
}

@keyframes golden-pulse
{
    0%, 100%
    {
        box-shadow: 0 0 20px rgba(218, 165, 32, 0.3),
                    inset 0 0 20px rgba(218, 165, 32, 0.1);
    }
    50%
    {
        box-shadow: 0 0 30px rgba(218, 165, 32, 0.5),
                    inset 0 0 25px rgba(218, 165, 32, 0.15);
    }
}

.notification-icon
{
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-avatar
{
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
}

.notification-avatar img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.notification-content
{
    flex: 1;
}

.notification-user
{
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-text
{
    color: #ccc;
    font-size: 14px;
}

/* Swipe-to-reveal notification styles */
.notification-swipe-wrapper
{
    position: relative;
    overflow: hidden;
    background: transparent;
}

.notification-actions
{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 1;
}

.notification-action-btn
{
    height: 100%;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-clear-all-btn
{
    background: #2196F3;
    color: white;
}

.notification-clear-all-btn:hover
{
    background: #1976D2;
}

.notification-delete-btn
{
    background: #f44336;
    color: white;
}

.notification-delete-btn:hover
{
    background: #d32f2f;
}

.notification-swipe-wrapper .notification-item
{
    position: relative;
    z-index: 2;
    background: #1a1625;
    will-change: transform;
}

/* Custom confirmation popup */
.alert-confirm-overlay
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn
{
    from { opacity: 0; }
    to { opacity: 1; }
}

.alert-confirm-popup
{
    background: #2a2540;
    border-radius: 12px;
    padding: 24px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.alert-confirm-message
{
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
}

.alert-confirm-buttons
{
    display: flex;
    gap: 12px;
    justify-content: center;
}

.alert-confirm-btn
{
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.alert-confirm-cancel
{
    background: #4a4a5e;
    color: #ffffff;
}

.alert-confirm-cancel:hover
{
    background: #5a5a6e;
}

.alert-confirm-ok
{
    background: #7b2fda;
    color: #ffffff;
}

.alert-confirm-ok:hover
{
    background: #9b4ffa;
}

/*---------------------------------------------------------
---> LOADING
---------------------------------------------------------*/
.loading-overlay
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
}

.loading-overlay.hidden
{
    display: none;
}

.loading-overlay img
{
    position: absolute;
    top: calc(40% - 150px);
    left: calc(50% - 170px);

    width: 300px;
    height: 300px;
}

.stalkers-loading
{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    min-height: 300px;
}

.stalkers-loading img
{
    width: 400px;
    height: 400px;
}

/*---------------------------------------------------------
---> test buttons
---------------------------------------------------------*/
.test-btn
{
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.test-btn:hover
{
    background: #444;
}

.test-btn:active
{
    background: #222;
}

/*=====================================================================================
---> SETTINGS
=====================================================================================*/

.settings-content
{
    padding: 5px;
    margin: 0 auto;
}

.settings-collapsible
{
    background: #111;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 30px;
    border: none;
}

.settings-header
{
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    padding: 15px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    border-radius: 8px;
    background: #1a1a1a;
}

.settings-collapsible .settings-section
{
    background: #111;
}

.settings-header::-webkit-details-marker
{
    display: none;
}

.settings-header::before
{
    content: '+ ';
    display: inline-block;
    opacity: 0.6;
    font-size: 20px;
    font-weight: bold;
    margin-right: 5px;
}

.settings-collapsible[open] .settings-header::before
{
    content: '− ';
}

.settings-section
{
    background: #222;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-section p
{
    color: #aaa;
    margin: 0;
}

.setting-item
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.setting-item:not(:last-child)
{
    border-bottom: 1px solid #333;
}

.setting-label
{
    color: #fff;
    font-size: 14px;
}

/* toggle switch */
.toggle-switch
{
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

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

.toggle-slider
{
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: 0.3s;
    border-radius: 28px;
}

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

.toggle-switch input:checked + .toggle-slider
{
    background-color: #9966cc;
}

.toggle-switch input:checked + .toggle-slider:before
{
    transform: translateX(22px);
}

/* setting dropdown */
.setting-dropdown
{
    padding: 8px 12px;
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    min-width: 200px;
    text-align: center;
}

.setting-dropdown:hover
{
    background-color: #333;
    border-color: #9966cc;
}

.setting-dropdown:focus
{
    border-color: #9966cc;
    box-shadow: 0 0 0 2px rgba(153, 102, 204, 0.2);
}

.setting-dropdown option
{
    background-color: #2a2a2a;
    color: #fff;
    padding: 8px;
}

/*
=====================================================================================
*/

/*=====================================================================================
---> LOGIN
=====================================================================================*/

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 40px;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    gap: 12px;
}

.login-header-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-field label
{
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #b0b0c0;
}

.input-wrapper {
    position: relative;
}

.input-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7b2fda, #595ce9, #29d1f8, #7b2fda);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    pointer-events: none;
}

.input-wrapper.focused::before {
    opacity: 1;
}

.login-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #2a2540;
    border-radius: 10px;
    background: #050509;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
    position: relative;
    z-index: 1;
}

.login-field input::placeholder {
    color: #8b8b9a;
}

.login-field input:focus
{
    border-color: transparent;
}

.login-button
{
    padding: 14px 16px;
    background: #7b2fda;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.login-button:hover
{
    background: #9857ff;
    box-shadow: 0 8px 12px rgba(123, 47, 218, 0.3);
}

.login-button:active {
    background: #6620c3;
    transform: scale(0.98);
}

.login-error {
    padding: 12px 16px;
    background: #3d1f1f;
    border: 1px solid #8b4545;
    border-radius: 8px;
    font-size: 12px;
    color: #ff9999;
}

.logout-button
{
    width: 100%;
    padding: 14px;
    background: #aa4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.logout-button:hover
{
    background: #cc5555;
}

.logout-button:active
{
    background: #883333;
}

.login-prompt-overlay
{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    backdrop-filter: blur(4px);
    z-index: 100000;
    backdrop-filter: blur(4px);
}

.login-prompt-popup
{
    width: 100%;
    max-width: 420px;
    margin: 0 16px;
    padding: 40px;
    background: #0a0a0a;
    border: 2px solid transparent;
    border-radius: 12px;
    background:
        linear-gradient(#050509, #050509) padding-box,
        conic-gradient(from 0deg, #7b2fda, #595ce9, #29d1f8, #7b2fda) border-box;
    position: relative;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

.login-prompt-close
{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: #b0b0c0;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.login-prompt-close:hover
{
    background: #1a1625;
    border-color: #2a2540;
    color: #ffffff;
}

.login-prompt-title
{
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 24px;
}

.case-warning-text {
	color: #b8b8c8;
	font-size: 15px;
	line-height: 1.55;
	text-align: center;
	margin: 0 0 16px 0;
}

.case-warning-notice {
	margin: 0 0 22px 0;
	padding: 14px 16px;
	border-radius: 12px;

	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.10);

	text-align: center;
}

.case-warning-badge {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;

	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.6px;

	color: #ffffff;
	background: rgba(123, 47, 218, 0.22);
	border: 1px solid rgba(123, 47, 218, 0.45);

	margin-bottom: 10px;
}

.case-warning-body {
	color: #d6d6e6;
	font-size: 14px;
	line-height: 1.5;
}

.case-warning-body strong {
	color: #ffffff;
}


.case-warning-popup {
	animation: casePopIn 160ms ease-out;
}

@keyframes casePopIn {
	from {
		transform: translateY(10px) scale(0.98);
		opacity: 0;
	}

	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

.login-notice
{
    margin-top: 32px;
    padding: 12px 16px;
    background: #1a1625;
    border: 1px solid #2a2540;
    border-radius: 8px;
    font-size: 12px;
    color: #8b8b9a;
    line-height: 1.6;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

#loginPromptOverlay .login-notice {
    margin-top: 0;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #1a1625;
    border: 1px solid #2a2540;
    border-radius: 10px;
    font-size: 12px;
    color: #8b8b9a;
    line-height: 1.6;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.login-prompt-button
{
    width: 100%;
    padding: 14px;
    background: #4488cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-prompt-button:hover
{
    background: #5599dd;
}

.login-prompt-button:active
{
    background: #3377bb;
}

/* Verification UI */
.verify-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #1a1625;
}

.verify-button {
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: 2px solid #2a2540;
    border-radius: 10px;
    color: #b0b0c0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 16px;
}

.verify-button:hover {
    background: rgba(123, 47, 218, 0.1);
    border-color: #7b2fda;
    color: #ffffff;
}

.verify-notice {
    margin-top: 0;
    font-size: 13px;
}

.verify-info-text {
    color: #b8b8c8;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 24px 0;
}

.verify-success-text {
    color: #4ade80;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 12px 0;
}

.verify-back-button {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid #2a2540;
    border-radius: 8px;
    color: #8b8b9a;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.verify-back-button:hover {
    background: #1a1625;
    color: #b0b0c0;
}

.profile-limited-notice {
    padding: 16px;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    color: #ffb84d;
    font-size: 14px;
    text-align: center;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* unblock buttons in blocking lists */
.button-unblock,
.button-unblock-posts,
.button-unblock-comments
{
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 90px;
}

.button-unblock:hover,
.button-unblock-posts:hover,
.button-unblock-comments:hover
{
    background: #45a049;
}

/* comments post owner header */
#post-owner-container
{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 15px;
    background:
        conic-gradient(from 0deg, rgba(123, 47, 218, 0.15), rgba(89, 92, 233, 0.15), rgba(41, 209, 248, 0.15), rgba(123, 47, 218, 0.15)),
        #1a1a1a;
    border-bottom: 1px solid #333;
    margin-top: 0; /* No margin needed - now inside scrollable container */
    margin-bottom: 0;
    height: 70px; /* Fixed height for post owner area */
    flex-shrink: 0; /* Don't shrink if scrollable container is tight */
}

#post-owner-container .upload-label
{
    opacity: 0.25;
    /*font-style: italic;*/
    font-size: 100px;
    color: #fff;
    margin-right: 5px;
    margin-right: 10px;
    margin-bottom: 3px;
    letter-spacing: 1px;
}

#post-owner-container .comments-owner-username
{
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    margin-right: 15px;
    /*border-bottom: solid 5px #111;*/
}

#post-owner-container .comments-owner-username:hover
{
    text-decoration: underline;
}

#post-owner-container .comments-owner-avatar
{
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    object-position: center;
}

/*---------------------------------------------------------
---> MINI VIEWER (comment attachments)
---------------------------------------------------------*/
.mini-viewer
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: none;
    flex-direction: column;
}

.mini-viewer-header
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #17152f; /* linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);*/
    z-index: 10;
}

.mini-viewer-back,
.mini-viewer-save
{
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mini-viewer-back:hover,
.mini-viewer-save:hover
{
    background: rgba(0,0,0,0.8);
}

/* Mini Viewer Menu Styles */
.mini-viewer-menu-container
{
    position: relative;
}

.mini-viewer-menu-btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.15s ease;
}

.mini-viewer-menu-btn:hover
{
    background: rgba(0,0,0,0.8);
    color: #ffffff;
}

.mini-viewer-menu-btn:active
{
    transform: scale(0.95);
}

.mini-viewer-menu-dropdown
{
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 10001;
    overflow: hidden;
}

.mini-viewer-menu-item
{
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s ease;
}

.mini-viewer-menu-item i
{
    font-size: 16px;
}

.mini-viewer-menu-item:hover
{
    background: rgba(255, 255, 255, 0.1);
}

.mini-viewer-menu-item:active
{
    background: rgba(255, 255, 255, 0.15);
}
                        

.mini-viewer-inner
{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mini-viewer-image
{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mini-viewer-video
{
    max-width: 90vw;
    max-width: 90dvw;
    max-height: 90vh;
    max-height: 90dvh;
    width: auto;
    height: auto;
}

/*=====================================================================================
---> EMOJI PICKER & POPUPS
=====================================================================================*/

/* Emoji Picker Container (used by both comment reactions and vote button customization) */
#emoji-picker-container
{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px 20px 80px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-height: 470px;
    overflow-y: auto;
}

/* Emoji Picker Element */
#emoji-picker-container emoji-picker
{
    width: 100%;
    margin-top: 10px;
    background: #000;
    --border-color: rgba(0, 0, 0, 0.9);
}

/* Emoji Picker Close Button */
.emoji-picker-close-btn
{
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    transition: background 0.2s;
}

.emoji-picker-close-btn:hover
{
    background: rgba(0, 0, 0, 0.95);
}

/* Emoji Picker Button in Settings */
.emoji-picker-btn
{
    background: #17152f;
    border: 1px solid #2a2540;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 24px;
    min-width: 60px;
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
}

.emoji-picker-btn:hover
{
    background: #221d3a;
    border-color: #3a3550;
}

/* Avatar Menu Buttons */
.avatar-menu-btn
{
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    text-align: left;
    margin-bottom: 4px;
}

.avatar-menu-btn:hover
{
    background: rgba(255, 255, 255, 0.3);
}

/*=====================================================================================
---> COMMENT REACTION ANIMATIONS
=====================================================================================*/

/* Cum Splatter Effect */
.cum-splatter-effect
{
    position: absolute;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(245, 245, 245, 0.4) 30%,
        rgba(255, 255, 255, 0.35) 70%,
        rgba(255, 255, 255, 0.2) 90%,
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: cum-appear 0.3s ease-out forwards;
    box-shadow:
        0 0 3px rgba(255, 255, 255, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    filter: blur(0.3px);
}

/* Cum Drip Animation */
@keyframes comment-drip
{
    0% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
    100% { filter: brightness(1); }
}

/* Comment Shake Animation */
@keyframes comment-shake
{
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-1deg); }
    75% { transform: translateX(5px) rotate(1deg); }
}

/* Cum Appear Animation */
@keyframes cum-appear
{
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(var(--rotation, 0deg));
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1) rotate(var(--rotation, 0deg));
    }
    100% {
        opacity: 0.85;
        transform: scale(1) rotate(var(--rotation, 0deg));
    }
}

/* Shoot Animation */
.shoot-effect
{
    position: absolute;
    pointer-events: none;
    z-index: 100;
}

@keyframes shoot-fly
{
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.5);
        opacity: 0;
    }
}

/* Slap Animation */
.slap-effect
{
    position: absolute;
    font-size: 60px;
    pointer-events: none;
    z-index: 100;
    animation: slap-fly 0.8s ease-out forwards;
}

@keyframes slap-fly
{
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(var(--tx-mid), var(--ty-mid)) rotate(var(--rotation-mid, 180deg)) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rotation, 360deg)) scale(0.8);
        opacity: 0;
    }
}

/* ==============================================
   Group Chat Styles
   ============================================== */

/* Group chat container - full height layout */
.groupchat-container
{
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    padding-right: 0px;
    margin: 0;
}

/* Reuse comment_header for group chat header */
.groupchat-container .comment_header
{
    flex-shrink: 0;
}

/* Reuse comment_section for messages container */
.groupchat-container .comment_section
{
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /*padding-bottom: 105px !important;*/
}

/* Group chat doesn't render input bar inside container anymore */
/* Input bar is rendered in fixed-bottom-container instead */

/* Smooth scroll behavior for messages */
.groupchat-container .comment_section
{
    scroll-behavior: smooth;
    /*padding-bottom: 105px !important;*/
}

/* =============================================
   Avatar Drawer (Fuck Face Feature)
   ============================================= */
.avatar-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-drawer-container {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.avatar-drawer-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 15px 0;
}

.avatar-drawer-close,
.avatar-drawer-save {
    color: #ffffff;
    border: 2px solid white;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.avatar-drawer-close {
    background: rgba(255, 255, 255, 0.2);
}

.avatar-drawer-close:hover {
    opacity: 0.8;
}

.avatar-drawer-save {
    background: #4caf50;
}

.avatar-drawer-save:hover {
    opacity: 0.9;
}

.avatar-drawer-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.avatar-drawer-controls input[type="range"] {
    width: 100px;
}

.avatar-drawer-controls input[type="color"] {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.eyedropper-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid white;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.eyedropper-btn:hover {
    opacity: 0.8;
}

.eyedropper-btn.active {
    background: #2196F3;
}

.avatar-drawer-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid white;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tool-btn:hover {
    opacity: 0.8;
}

.avatar-drawer-canvas-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

#avatarCanvas {
    border: 3px solid white;
    border-radius: 8px;
    cursor: crosshair;
    max-width: 90vw;
    max-width: 90dvw;
    max-height: 70vh;
    max-height: 70dvh;
    width: auto;
    height: auto;
    touch-action: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .avatar-drawer-container {
        padding: 15px;
        max-width: 95%;
        max-height: 95%;
    }

    .avatar-drawer-tools {
        gap: 10px;
    }

    .tool-group input[type="range"] {
        width: 80px;
    }
}

/* ==========================================
   COMMAND STYLES
   ========================================== */

/* /gay command - rainbow text animation */
@keyframes rainbow-wave {
    0%, 100% {
        color: #FF0000; /* Red */
    }
    14% {
        color: #FF7F00; /* Orange */
    }
    28% {
        color: #FFFF00; /* Yellow */
    }
    42% {
        color: #00FF00; /* Green */
    }
    57% {
        color: #0000FF; /* Blue */
    }
    71% {
        color: #4B0082; /* Indigo */
    }
    85% {
        color: #9400D3; /* Violet */
    }
}

.comment_gay {
    font-weight: bold;
    font-size: 2.5em;
    line-height: 1.2;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}

.comment_gay-word {
    display: inline-block;
    white-space: nowrap;
}

.comment_gay-letter {
    display: inline-block;
    font-weight: bold;
    animation: rainbow-wave 3s ease-in-out infinite;
}

/* /supergay and /megagay command */
.comment_supergay,
.comment_megagay {
    font-family: 'Tangerine', cursive;
    font-size: 3.5em;
    font-weight: bold;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding-left: 20px;

    /* Solid pink text fill */
    color: #ff1493;

    /* Black outline underneath */
    -webkit-text-stroke: 3px rgba(0, 0, 0, 0.9);
    text-stroke: 3px rgba(0, 0, 0, 0.9);
    paint-order: stroke fill;

    animation: sparkle-gradient 3s ease infinite, text-glow 2s ease-in-out infinite;

    /* Glow around letters */
    filter: drop-shadow(0 0 12px rgba(255,105,180,1));
}

@keyframes sparkle-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes text-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.8)) drop-shadow(0 0 20px rgba(255, 20, 147, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 105, 180, 1)) drop-shadow(0 0 30px rgba(255, 20, 147, 0.8)) drop-shadow(0 0 40px rgba(255, 182, 193, 0.6));
    }
}

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

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

.comment_supergay::before,
.comment_megagay::before {
    content: '✨';
    position: absolute;
    left: -30px;
    z-index: -1;
    animation: sparkle-spin 2s linear infinite;
}

.comment_supergay::after,
.comment_megagay::after {
    content: '✨';
    position: absolute;
    right: -30px;
    z-index: -1;
    animation: sparkle-spin 2s linear infinite reverse;
}

/* /lenny and /penis command */
.comment_lenny {
    font-size: 1.5em;
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Magic 8 Ball */
.magic8ball-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    margin: 0px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: normal;
}

.magic8ball-question {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.magic8ball-orb {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.magic8ball-8ball-icon {
    font-size: 80px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.magic8ball-answer {
    text-align: center;
    width: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in;
}

.magic8ball-says {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.magic8ball-message {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    line-height: 1.4;
}

@keyframes magic8ball-shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    10% { transform: translateX(-8px) rotate(-8deg); }
    20% { transform: translateX(8px) rotate(8deg); }
    30% { transform: translateX(-8px) rotate(-8deg); }
    40% { transform: translateX(8px) rotate(8deg); }
    50% { transform: translateX(-6px) rotate(-6deg); }
    60% { transform: translateX(6px) rotate(6deg); }
    70% { transform: translateX(-4px) rotate(-4deg); }
    80% { transform: translateX(4px) rotate(4deg); }
    90% { transform: translateX(-2px) rotate(-2deg); }
}

/* /beemovie command */
.comment_beemovie-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    background: rgba(255, 200, 0, 0.1);
    padding: 10px 0;
    border-radius: 8px;
}

.comment_beemovie-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 75s linear infinite;
    font-size: 16px;
    font-weight: 500;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* /rain command */
.comment_rain-container {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 60px;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

.comment_rain-text {
    position: absolute;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
    animation: rain-fall linear forwards;
    pointer-events: none;
}

@keyframes rain-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0.3;
    }
}

/* ===================================================
   Chat page layout: Controlled by JavaScript in World.js
   Elements are moved between fixed-top-container and fixed-bottom-container
   =================================================== */

/* Disable scrolling on page-content for chat page */
.page-content[data-page="create"] {
    /*overflow: hidden;*/
}

/* Group chat input bar - rendered in fixed-bottom-container */
.groupchat-input-bar {
    background: #17152f;
    border-top: 1px solid #2a2540;
    padding: 10px 16px 22px 16px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
    width: 100%;
    display: none; /* Hidden by default, shown when groupchat panel is open */
    flex-direction: column;
    gap: 8px;
}

/* Groupchat container fills content-container-right */
.groupchat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2a 50%, #0a0a1a 100%);
}

/* Adjust chat container layout in right container */
.content-container-right .groupchat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

.content-container-right .comment_section {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 20px;
    margin: 0;
    max-height: none;
    box-sizing: border-box !important;
    position: relative; /* For loading message positioning */
    background: linear-gradient(180deg, #0a0a15 0%, #150a25 50%, #0a0a15 100%);
}

.content-container-right .groupchat-container .comment_section {
    margin-bottom: 0 !important;
}

.content-container-right .comment_section * {
    box-sizing: border-box !important;
}

/* Make comments full width in chat */
.content-container-right .comment_item {
    width: 100%;
    max-width: 100%;
}

.content-container-right .comment_item-header {
    width: 100%;
    padding-left: 5px;
}

.content-container-right .comment_content {
    width: 95%;
    max-width: 95%;
}

.content-container-right .comment_info {
    width: 100%;
    max-width: 100%;
}

.content-container-right .comment_text {
    width: 100%;
    max-width: 100%;
}

/* Groupchat menu button and dropdown */
.groupchat-menu-container {
    position: relative;
}

.groupchat-menu-btn {
    background: conic-gradient(from 0deg, #7b2fda, #595ce9, #29d1f8, #7b2fda);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.groupchat-menu-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: #17152f;
    border: 1px solid #2a2540;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 10000;
}

.groupchat-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #f5f5ff;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.groupchat-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.groupchat-menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.groupchat-menu-item:hover {
    background-color: rgba(123, 47, 218, 0.2);
}

.groupchat-menu-item i {
    font-size: 16px;
}

/* Local help message styling - distinct from regular messages */
.local-help-message {
    opacity: 0.9;
    border-left: 3px solid #8b8b9a !important;
}

.local-help-message .comment_body {
    background: rgba(42, 37, 64, 0.5) !important;
}

/*---------------------------------------------------------
---> Group Chat Styles (in RIGHT container)
---------------------------------------------------------*/

/* Groupchat header inside header-container-right */
.groupchat-header {
    background: #17152f;
    border-bottom: 1px solid #2a2540;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 100%;
    box-sizing: border-box;
    padding-top: 20px;
}

.groupchat-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #f5f5ff;
    flex: 1;
    text-align: center;
}

.groupchat-header-spacer {
    width: 40px; /* Same width as close button for centering */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.groupchat-close-btn {
    background: none;
    border: none;
    color: #f5f5ff;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.groupchat-close-btn:hover {
    opacity: 0.7;
}

.groupchat-admin-btn {
    background: none;
    border: none;
    color: #f5f5ff;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.groupchat-admin-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

/* Groupchat loading message */
.groupchat-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.groupchat-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Input bar in footer-container-right */
/* Groupchat input bar in footer-container-right */
.footer-container-right .comment-bar {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex !important;
    bottom: auto;
    left: auto;
    padding-bottom: 0;
}

/*---------------------------------------------------------
---> Emoji giggle animation for like/dislike buttons
---------------------------------------------------------*/
@keyframes emoji-giggle {
    0% {
        transform: scale(1) rotate(0deg);
    }
    10% {
        transform: scale(1.3) rotate(-10deg);
    }
    30% {
        transform: scale(1.3) rotate(10deg);
    }
    50% {
        transform: scale(1.3) rotate(-8deg);
    }
    70% {
        transform: scale(1.3) rotate(8deg);
    }
    90% {
        transform: scale(1.3) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.emoji-giggle {
    animation: emoji-giggle 0.5s ease-in-out;
}

/*---------------------------------------------------------
---> Trending post fiery glow animation
---------------------------------------------------------*/
@keyframes fiery-glow {
    0% {
        box-shadow:
            0 0 3px rgba(255, 200, 0, 0.9),
            0 0 6px rgba(255, 200, 0, 0.7),
            0 0 9px rgba(255, 200, 0, 0.5),
            inset 0 0 3px rgba(255, 200, 0, 0.3);
    }
    25% {
        box-shadow:
            0 0 5px rgba(255, 190, 0, 1),
            0 0 10px rgba(255, 190, 0, 0.8),
            0 0 15px rgba(255, 190, 0, 0.6),
            inset 0 0 5px rgba(255, 190, 0, 0.4);
    }
    50% {
        box-shadow:
            0 0 8px rgba(255, 180, 0, 1),
            0 0 16px rgba(255, 180, 0, 0.9),
            0 0 24px rgba(255, 180, 0, 0.7),
            inset 0 0 8px rgba(255, 180, 0, 0.5);
    }
    75% {
        box-shadow:
            0 0 5px rgba(255, 190, 0, 1),
            0 0 10px rgba(255, 190, 0, 0.8),
            0 0 15px rgba(255, 190, 0, 0.6),
            inset 0 0 5px rgba(255, 190, 0, 0.4);
    }
    100% {
        box-shadow:
            0 0 3px rgba(255, 200, 0, 0.9),
            0 0 6px rgba(255, 200, 0, 0.7),
            0 0 9px rgba(255, 200, 0, 0.5),
            inset 0 0 3px rgba(255, 200, 0, 0.3);
    }
}

.trending-post {
    position: relative;
    animation: fiery-glow 2s ease-in-out infinite;
    z-index: 1;
}

/* Color Picker Setting Styles */
.color-picker-setting {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
}

.save-color-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.save-color-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.save-color-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

/* Scrollbar for Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #2a2540;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7b2fda;
}

/* Scrollbar for Firefox */
* {
    scrollbar-color: #2a2540 #0a0a0a;
    scrollbar-width: thin;
}

*:hover {
    scrollbar-color: #7b2fda #0a0a0a;
}

/*=====================================================================================
---> BOX PICKER POPUP
=====================================================================================*/

.box-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: none;
}

.box-picker-popup {
    background: #17152f;
    border: 1px solid #2a2540;
    border-radius: 12px;
    width: 90vw;
    width: 90dvw;
    max-width: 600px;
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.box-picker-header {
    padding: 20px;
    border-bottom: 1px solid #2a2540;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-picker-header h3 {
    color: #f5f5ff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.box-picker-close {
    background: none;
    border: none;
    color: #b0b0c0;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.box-picker-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.box-picker-toolbar {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #2a2540;
    background: rgba(0, 0, 0, 0.2);
}

.box-toolbar-btn {
    flex: 1;
    padding: 10px 16px;
    background: rgba(123, 47, 218, 0.2);
    border: 1px solid #7b2fda;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.box-toolbar-btn:hover {
    background: rgba(123, 47, 218, 0.4);
    transform: translateY(-1px);
}

.box-toolbar-btn:active,
.box-toolbar-btn.active {
    background: #7b2fda;
    transform: translateY(0);
}

.box-toolbar-btn i {
    font-size: 16px;
}

.box-picker-content {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px;
    touch-action: pan-y;
}

.box-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.box-picker-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #0a0a0a;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.box-picker-item:hover {
    border-color: #7b2fda;
    transform: scale(1.05);
}

.box-picker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Prevent iOS context menu on long-press */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.box-picker-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 16px;
}

.box-picker-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Box Picker Arrange Mode */
.box-picker-item.arrange-mode {
    border-color: #2196F3;
    border-width: 3px;
    cursor: grab;
    touch-action: none;
}

.box-picker-item.arrange-mode:hover {
    border-color: #1976D2;
    transform: scale(1.02);
}

.box-picker-item.arrange-mode:active {
    cursor: grabbing;
}

.box-picker-item.dragging {
    opacity: 0.3;
    cursor: grabbing;
}

/* Drag clone that follows finger */
.box-drag-clone {
    position: fixed;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 3px solid #2196F3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10001;
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.1);
}

.box-drag-clone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Delete Mode */
.box-picker-item.delete-mode {
    cursor: pointer;
}

.box-picker-item.delete-mode::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transition: all 0.2s ease;
}

.box-picker-item.delete-mode.selected::before {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

.box-picker-item.delete-mode.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.box-picker-item.delete-mode.selected {
    opacity: 0.7;
    transform: scale(0.95);
}

/* Box Picker Context Menu */
.box-context-menu {
    position: fixed;
    background: #2a2a3e;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 8px;
    z-index: 10001;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    min-width: 180px;
}

.box-context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    width: 100%;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.box-context-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.box-context-menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.box-context-menu-item.danger {
    color: #ff6b6b;
}

.box-context-menu-item.danger:hover {
    background: rgba(255, 107, 107, 0.2);
}


/*=====================================================================================
---> PLAYLIST PICKER POPUP
=====================================================================================*/

/* Reuses .box-picker-overlay and .box-picker-popup from Box Picker */

.create-playlist-btn {
    width: 100%;
    padding: 16px;
    margin: 16px 0;
    background: rgba(123, 47, 218, 0.2);
    border: 2px dashed #7b2fda;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.create-playlist-btn:hover {
    background: rgba(123, 47, 218, 0.3);
    border-color: #9b4fff;
    transform: translateY(-1px);
}

.create-playlist-btn:active {
    transform: translateY(0);
}

.playlist-picker-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px 16px 16px;
    overflow-y: auto;
    max-height: 50vh;
}

.playlist-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2540;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.playlist-item:hover {
    background: rgba(123, 47, 218, 0.2);
    border-color: #7b2fda;
    transform: translateX(4px);
}

.playlist-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.playlist-item-icon {
    font-size: 24px;
    color: #7b2fda;
}

.playlist-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.playlist-item-name {
    color: #f5f5ff;
    font-size: 16px;
    font-weight: 600;
}

.playlist-item-count {
    color: #b0b0c0;
    font-size: 13px;
}

.playlist-item-actions {
    display: flex;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.playlist-item:hover .playlist-item-actions {
    opacity: 1;
}

.playlist-action-icon {
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.playlist-action-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.playlist-action-icon.edit {
    color: #7b2fda;
}

.playlist-action-icon.edit:hover {
    color: #9b4fff;
    background: rgba(123, 47, 218, 0.2);
}

.playlist-action-icon.delete {
    color: #ff6b6b;
}

.playlist-action-icon.delete:hover {
    color: #ff8787;
    background: rgba(255, 107, 107, 0.2);
}

.playlist-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: #b0b0c0;
    text-align: center;
}

.playlist-empty-state p {
    margin: 8px 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .playlist-picker-grid {
        max-height: 40vh;
    }
}

/*---------------------------------------------------------
---> Public Playlists Table Styles
---------------------------------------------------------*/
.public-playlists-table-wrapper {
    padding: 20px;
    overflow-x: auto;
}

.public-playlists-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.public-playlists-table thead {
    background: rgba(0, 0, 0, 0.5);
}

.public-playlists-table th {
    padding: 12px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.public-playlists-table td {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.public-playlist-row {
    transition: background-color 0.2s;
}

.public-playlist-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.thumbnail-col {
    width: 80px;
}

.playlist-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.name-col {
    width: auto;
}

.playlist-name {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.count-col {
    width: 100px;
    text-align: center;
}

.playlist-count-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 123, 255, 0.3);
    border: 1px solid rgba(0, 123, 255, 0.5);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
}

.action-col {
    width: 150px;
    text-align: center;
}

.view-playlist-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-playlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.view-playlist-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive for Public Playlists */
@media (max-width: 768px) {
    .public-playlists-table-wrapper {
        padding: 10px;
    }

    .public-playlists-table th,
    .public-playlists-table td {
        padding: 8px;
        font-size: 14px;
    }

    .playlist-thumbnail {
        width: 50px;
        height: 50px;
    }

    .thumbnail-col {
        width: 60px;
    }

    .count-col,
    .action-col {
        width: auto;
    }

    .view-playlist-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .playlist-name {
        font-size: 14px;
    }
}


/* =============================================
   Alert Categories (Collapsible Sections)
   ============================================= */
.alert-category {
    margin-bottom: 16px;
    border-radius: 8px;
    background: rgba(123, 47, 218, 0.05);
    border: 1px solid rgba(123, 47, 218, 0.2);
    overflow: hidden;
}

.alert-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    background: rgba(123, 47, 218, 0.1);
    transition: background 0.2s;
    user-select: none;
}

.alert-category-header:hover {
    background: rgba(123, 47, 218, 0.15);
}

.alert-category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 4px 12px;
    background: #dc3545;
    color: white;
    font-weight: 600;
    font-size: 13px;
    border-radius: 12px;
    margin-right: auto;
}

.alert-category-label {
    flex: 1;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    color: #f5f5ff;
    padding-right: 12px;
}

.alert-category-icon {
    font-size: 18px;
    color: #f5f5ff;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.alert-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.alert-category-content.open {
    max-height: 10000px;
    transition: max-height 0.5s ease-in;
}

.alert-category-content .notification-item {
    border-top: 1px solid rgba(123, 47, 218, 0.15);
}

.alert-category-content .notification-item:first-child {
    border-top: none;
}

/* ==============================================
   Game UI Styles - Meme Card Game "Shit Hand"
   ============================================== */

/* Game Area Container */
.game-area {
    position: relative;
    width: 100%;
    max-height: 400px;
    background: #0a0a0a;
    border-top: 2px solid #7b2fda;
    padding: 0px;
    box-sizing: border-box;
    display: block;
    overflow-y: auto;
}

/* Game Status Bar */
.game-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a3a 100%);
    border-radius: 8px;
    margin-bottom: 0px;
    border: 1px solid #7b2fda;
    gap: 0px !important;
}

.game-status-left {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #aaa;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.game-round {
    font-weight: bold;
    color: #fff;
}

.game-status-center {
    flex: 1;
    text-align: center;
}

.game-turn {
    font-size: 16px;
    font-weight: bold;
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.game-status-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Buttons in status bar (when card selected) */
.btn-status-action {
    padding: 6px 12px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    white-space: nowrap;
}

.btn-status-action.btn-play {
    background: linear-gradient(135deg, #7b2fda 0%, #9b4ffa 100%) !important;
}

.btn-game-collapse {
    position: absolute;
    top: 6px;
    right: 10px;
    background: rgba(123, 47, 218, 0.3);
    border: 1px solid #7b2fda;
    color: #fff;
    padding: 2px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s;
    z-index: 10;
}

.btn-game-collapse:hover {
    background: rgba(123, 47, 218, 0.5);
    transform: translateY(-2px);
}

.btn-game-close {
    background: #aa0000;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s;
}

.btn-game-close:hover {
    background: #cc0000;
}

/* Collapsed State */
.game-area.collapsed {
    padding: 0 !important;
    background: #7b2fda;
    border-top: 3px solid #9b4ffa;
}

.game-area.collapsed .btn-game-collapse {
    position: static;
    margin-left: auto;
}

.game-area.collapsed .game-status {
    margin-bottom: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #7b2fda 0%, #9b4ffa 100%);
    border: none;
    padding: 8px 15px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.game-area.collapsed .game-status-left {
    flex: 1;
}

.game-area.collapsed .game-status-right {
    flex: 0;
    margin-left: auto;
}

.game-area.collapsed #gameControls,
.game-area.collapsed #playedCardsArea,
.game-area.collapsed #playerHand,
.game-area.collapsed #jtGameContent,
.game-area.collapsed #cmGameContent {
    display: none !important;
}

/* Player List */
.player-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #7b2fda #1a1a1a;
}

.player-list::-webkit-scrollbar {
    height: 6px;
}

.player-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.player-list::-webkit-scrollbar-thumb {
    background: #7b2fda;
    border-radius: 3px;
}

.player-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: #1a1a1a;
    border-radius: 10px;
    min-width: 100px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.player-item.active {
    border-color: #00ff00;
    background: #1a2a1a;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.player-name {
    font-size: 13px;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
    word-break: break-word;
}

.player-score {
    font-size: 24px;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* Game Board */
.game-board {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 15px;
}

/* Played Cards Area */
.played-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    display: none;
    /*min-height: 220px;*/
    background: linear-gradient(135deg, #1a1a2a 0%, #2a1a3a 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #7b2fda;
}

.waiting-text {
    color: #888;
    font-style: italic;
    text-align: center;
}

.played-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: cardSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.played-card-player {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 6px;
    font-weight: bold;
}

.played-card-img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    border: 3px solid #7b2fda;
    box-shadow: 0 4px 15px rgba(123, 47, 218, 0.4);
}

.played-card-likes {
    font-size: 13px;
    color: #ff4444;
    margin-top: 6px;
    font-weight: bold;
}

/* Player Hand */
.player-hand {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 2px solid #444;
}

.hand-card {
    position: relative;
    width: 110px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid transparent;
    border-radius: 10px;
    padding: 6px;
    background: #2a2a2a;
}

.hand-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #7b2fda;
    box-shadow: 0 10px 25px rgba(123, 47, 218, 0.5);
}

.hand-card.selected {
    border-color: #00ff00;
    transform: translateY(-15px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 255, 0, 0.6);
    background: #2a3a2a;
}

.hand-card-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.hand-card-likes-center {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    display: none;
}

.hand-card-new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Game Controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0px 10px 0px 10px;
}

.btn-game-action {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    background: #4444aa;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-game-action:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(68, 68, 170, 0.4);
}

.btn-game-action:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-game-action.btn-start {
    background: linear-gradient(135deg, #00aa00 0%, #00dd00 100%);
}

.btn-game-action.btn-start:hover {
    box-shadow: 0 6px 20px rgba(0, 170, 0, 0.5);
}

.btn-game-action.btn-play {
    background: linear-gradient(135deg, #7b2fda 0%, #9b4ffa 100%);
}

.btn-game-action.btn-play:hover {
    box-shadow: 0 6px 20px rgba(123, 47, 218, 0.5);
}

.btn-game-action.btn-shit-hand {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    font-size: 18px;
    animation: shitHandPulse 2s ease-in-out infinite;
}

.btn-game-action.btn-shit-hand:hover {
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.7);
    transform: translateY(-2px) scale(1.05);
}

@keyframes shitHandPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 69, 19, 0.9);
    }
}

/* Shit Hand GIF Overlay */
.shit-hand-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: shitHandFadeIn 0.3s ease-in;
}

.shit-hand-overlay.fade-out {
    animation: shitHandFadeOut 1s ease-out forwards;
}

@keyframes shitHandFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shitHandFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.shit-hand-gif {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    display: block;
}

/* Poop Cheese Overlay (Self-Shit-Hand) */
.poop-cheese-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: poopCheeseFadeIn 0.3s ease-in;
}

.poop-cheese-overlay.fade-out {
    animation: poopCheeseFadeOut 1s ease-out forwards;
}

@keyframes poopCheeseFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes poopCheeseFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.poop-cheese-gif {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Shit Overlay on Cards */
.shit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(101, 67, 33, 0.85) 0%,
        rgba(139, 69, 19, 0.85) 25%,
        rgba(101, 67, 33, 0.85) 50%,
        rgba(160, 82, 45, 0.85) 75%,
        rgba(101, 67, 33, 0.85) 100%);
    background-size: 200% 200%;
    animation: shitAnimation 3s ease infinite;
    pointer-events: none;
    border-radius: inherit;
}

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

.shit-covered {
    position: relative;
}

.shit-covered img {
    filter: blur(8px) brightness(0.6);
}

/* Confirmation Modal */
.game-confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a3a 100%);
    border: 3px solid #7b2fda;
    border-radius: 16px;
    padding: 25px;
    z-index: 10000;
    min-width: 320px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.game-confirm-modal h3 {
    margin: 0 0 20px 0;
    color: #fff;
    font-size: 22px;
}

.game-confirm-modal p {
    color: #ffaa00;
    font-weight: bold;
    margin: 15px 0;
}

.game-confirm-card {
    width: 200px;
    margin: 0 auto 20px auto;
}

.game-confirm-card img {
    width: 100%;
    border-radius: 8px;
    border: 3px solid #7b2fda;
    box-shadow: 0 4px 20px rgba(123, 47, 218, 0.5);
}

.game-confirm-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: #aaa;
}

.game-confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.game-confirm-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-confirm-yes {
    background: linear-gradient(135deg, #00aa00 0%, #00dd00 100%);
    color: white;
}

.btn-confirm-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 170, 0, 0.5);
}

.btn-confirm-no {
    background: linear-gradient(135deg, #aa0000 0%, #dd0000 100%);
    color: white;
}

.btn-confirm-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(170, 0, 0, 0.5);
}

/* Winner Modal */
.game-winner-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    animation: modalFadeIn 0.3s ease-out;
}

.winner-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a1a5a 100%);
    border: 4px solid gold;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 30px 80px rgba(255, 215, 0, 0.4);
}

.winner-content h2 {
    margin: 0 0 20px 0;
    color: gold;
    font-size: 32px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.winner-content h3 {
    margin: 0 0 30px 0;
    color: #fff;
    font-size: 24px;
}

.winner-scores {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #7b2fda;
}

.winner-score-item {
    padding: 10px;
    color: #fff;
    font-size: 16px;
    border-bottom: 1px solid #333;
}

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

.btn-close-winner {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #7b2fda 0%, #9b4ffa 100%);
    color: white;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-close-winner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 47, 218, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-area {
        padding: 0px;
    }

    .player-hand {
        gap: 10px;
    }

    .hand-card {
        width: 90px;
    }

    .played-card-img {
        width: 100px;
    }

    .game-status {
        flex-direction: column;
        gap: 10px;
    }

    .game-status-left,
    .game-status-center,
    .game-status-right {
        width: 100%;
        justify-content: center;
    }
}

/* Game Announcement Card (for groupchat messages) */
.game-announcement-card {
    background-image: url('/images/shithand.jpg');
    background-size: cover;
    background-position: top;
    border: 2px solid rgba(138, 43, 226, 0.8);
    border-radius: 4px;
    padding: 0;
    margin: 2px 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    position: relative;
}

/* Jackotory game announcement - override background */
.game-announcement-card.jackotory-announcement {
    background-image: url('/images/jackatory/jackatory.png');
    align-items: top;
}

.game-announcement-card.cumments-announcement {
    background-image: url('/images/cumments.png');
    align-items: top;
}

/* Jackotory Round Results */
.jt-round-results {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url('/images/jackatory/table.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid #FFD700;
    border-radius: 6px;
    padding: 1px;
    margin: 4px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.jt-dealer-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.jt-dealer-label {
    color: #FFD700;
}

.jt-dealer-value {
    color: #fff;
    font-size: 18px;
}

.jt-dealer-result.dealer-bust .jt-dealer-value {
    color: #ff4444;
}

.jt-result-player {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0px; /*6px 8px;*/
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 12px;
}

.jt-result-emoji {
    font-size: 18px;
}

.jt-result-name {
    font-weight: 700;
    color: #FFD700;
    min-width: 80px;
}

.jt-result-outcome {
    font-weight: 700;
    /*min-width: 70px;*/
}

.jt-result-payout {
    font-weight: 900;
    /*min-width: 60px;*/
}

.jt-result-chips {
    font-size: 12px;
    color: #aaa;
    margin-left: auto;
}

.result-win .jt-result-outcome,
.result-win .jt-result-payout {
    color: #44ff44;
}

.result-blackjack .jt-result-outcome,
.result-blackjack .jt-result-payout {
    color: #00ff88;
}

.result-lose .jt-result-outcome,
.result-lose .jt-result-payout {
    color: #ff4444;
}

.result-push .jt-result-outcome {
    color: #ffaa44;
}

.result-surrender .jt-result-outcome {
    color: #888;
}

.jt-join-game-btn {
    background: linear-gradient(135deg, #2d8659 0%, #1a5c3a 100%);
    border: 2px solid #2d8659;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(45, 134, 89, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.jt-join-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 134, 89, 0.6);
    background: linear-gradient(135deg, #1a5c3a 0%, #2d8659 100%);
}

.jt-join-game-btn:active {
    transform: translateY(0);
}

.game-announcement-join-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 2px solid #FFD700;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.game-announcement-join-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFE55C 0%, #FFB84D 100%);
}

.game-announcement-join-btn:active {
    transform: translateY(0) scale(1);
}

.game-announcement-btn-icon {
    font-size: 22px;
    animation: game-announce-pulse 1.5s ease-in-out infinite;
}

@keyframes game-announce-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.game-announcement-btn-text {
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 0.5px;
}
/* Make game area more compact */
.game-area {
    padding: 00px !important;
    gap: 10px !important;
}

.game-status {
    padding: 8px 12px !important;
    font-size: 14px !important;
}

.game-controls {
    /*padding: 10px !important;*/
    gap: 8px !important;
}

.btn-game-action {
    padding: 8px 16px !important;
    font-size: 14px !important;
}

.player-hand {
    padding: 10px !important;
    gap: 8px !important;
}

.hand-card {
    width: 100px !important;
    height: auto !important;
}

/* Make hand cards square like feed */
.hand-card-img {
    width: 100% !important;
    height: 110px !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}

/* Round Result Display */
.round-result-announcement {
    background: linear-gradient(135deg, rgb(255, 215, 0) 0%, rgb(255, 140, 0) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    padding: 2px;
    margin: 2px 0;
    box-shadow: none;
}

.round-result-header {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: none;
}

.round-result-icon {
    font-size: 18px;
}

.round-result-title {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.round-result-winner {
    text-align: center;
    font-size: 13px;
    margin-bottom: 2px;
    color: #fff;
    font-weight: 600;
}

.round-result-cards {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
}

.round-result-card {
    position: relative;
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 2px;
    width: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.round-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.round-card-winner {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: winner-glow 1.5s ease-in-out infinite;
}

@keyframes winner-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.8); }
}

.winner-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.round-card-img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 2px;
    aspect-ratio: 1 / 1;
}

.round-card-info {
    text-align: center;
}

.round-card-player {
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.round-card-score {
    color: #ffd700;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 2px;
}

.round-card-likes {
    color: #ff6b6b;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
}

.round-card-short {
    color: #aaa;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Play Announcement */
.card-play-announcement {
    background: linear-gradient(135deg, rgb(40, 80, 120) 0%, rgb(60, 100, 160) 100%);
    border: 2px solid rgba(100, 149, 237, 0.5);
    border-radius: 4px;
    padding: 2px;
    margin: 2px 0;
    box-shadow: none;
}

.card-play-header {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: none;
}

.card-play-icon {
    font-size: 16px;
}

.card-play-title {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.round-player-slots {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.round-player-slot {
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 2px;
    width: 60px;
    text-align: center;
}

.round-player-slot.played {
    border-color: rgba(100, 200, 100, 0.6);
}

.round-player-slot.empty.next-turn {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: next-turn-pulse 1.5s ease-in-out infinite;
}

@keyframes next-turn-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.8); }
}

.slot-player-name {
    font-weight: bold;
    color: #fff;
    font-size: 11px;
    margin-bottom: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.next-turn-arrow {
    margin-right: 3px;
}

.slot-card-img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 2px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.slot-card-img:hover {
    opacity: 0.8;
}

.slot-empty-card {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.slot-card-short {
    color: #aaa;
    font-size: 10px;
    font-weight: 600;
}

/* Make player slots horizontal layout */
.round-player-slot {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 120px !important;
}

.slot-player-name {
    flex-shrink: 0 !important;
    width: auto !important;
    min-width: 50px !important;
    text-align: left !important;
    margin-bottom: 0 !important;
}

.slot-card-img,
.slot-empty-card {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 50px !important;
}

.slot-card-short {
    display: none !important;
}

.round-result-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 120px !important;
}

.round-card-info {
    text-align: left !important;
}

.round-card-img {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 50px !important;
}

/* Make played card thumbnails clearly clickable */
.slot-card-img {
    cursor: pointer !important;
}

.slot-card-img:hover {
    opacity: 0.8 !important;
    transform: scale(1.05) !important;
    transition: all 0.2s ease !important;
}

.round-card-img {
    cursor: pointer !important;
}

.round-card-img:hover {
    opacity: 0.8 !important;
    transform: scale(1.05) !important;
    transition: all 0.2s ease !important;
}

/* ========================================
   Jackotory (Blackjack) Styles
   ======================================== */

/* Jackotory Game Content */
.jt-game-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.jt-dealer-area,
.jt-player-area,
.jt-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Jackotory Messages */
.jt-message {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #ccc;
}

/* Jackotory Waiting UI */
.jt-waiting {
    text-align: center;
    padding: 15px;
}

.jt-waiting h2 {
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 18px;
    color: #fff;
}

.jt-player-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.jt-player-waiting {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
}

.jt-waiting-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Jackotory Card Styles */
.jt-card {
    position: relative;
    width: 90px;
    height: 126px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.jt-card:hover {
    transform: translateY(-3px);
}

.jt-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jt-card-meme-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.jt-card-hidden {
    opacity: 0.9;
}

/* Jackotory Hand Containers */
.jt-dealer-hand-container,
.jt-player-hand-container {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.jt-player-hand-container > h3 {
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
}

.jt-hand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.jt-hand-header h3 {
    margin: 0;
    font-size: 12px;
    color: #fff;
}

.jt-hand-value {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
    padding: 4px 12px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 6px;
    text-align: center;
    margin: 0;
    white-space: nowrap;
}


.jt-player-hand-container > .jt-hand-value {
    margin: 10px 0;
}

.jt-hand-value.jt-busted {
    color: #f44336;
    background: rgba(244, 67, 54, 0.2);
}

.jt-hand {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.jt-dealer-hand {
    justify-content: center;
}

/* Jackotory Hand Status */
.jt-hand-status {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 6px;
    margin-top: 6px;
    border-radius: 6px;
    color: #fff;
}

.jt-hand-status.jt-bust {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
    animation: pulse 1s ease-in-out;
}

.jt-hand-status.jt-blackjack {
    background: rgba(255, 215, 0, 0.3);
    color: #FFD700;
    animation: pulse 1s ease-in-out;
}

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

/* Jackotory Player Chips Display */
.jt-player-chips {
    text-align: center;
    font-size: 14px;
    color: #FFD700;
    margin-top: 8px;
    padding: 6px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
}

/* Jackotory Betting UI */
.jt-betting-ui {
    text-align: center;
    padding: 12px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.jt-betting-ui h3 {
    margin-bottom: 2px;
    margin-top: 0;
    font-size: 10px;
    color: #fff;
}

.jt-chip-display {
    font-size: 14px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 6px;
}

.jt-bet-input-group {
    margin-bottom: 10px;
}

.jt-bet-input {
    width: 150px;
    padding: 8px;
    font-size: 16px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.jt-bet-input:focus {
    outline: none;
    border-color: #FFD700;
}

.jt-bet-presets {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.jt-bet-preset {
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 6px;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.jt-bet-preset:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.jt-bet-range {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}

.btn-jt-bet {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
}

.jt-betting-placed {
    text-align: center;
    padding: 0px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 8px;
}

.jt-betting-placed h3 {
    color: #4CAF50;
    margin-bottom: 6px;
    margin-top: 0;
    font-size: 16px;
}

.jt-betting-placed p {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Jackotory Other Players */
.jt-other-players {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 8px;
}

.jt-player-bet-status {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 13px;
}

/* Jackotory Controls Row */
.jt-controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
    position: relative;
}

/* Jackotory Action Buttons */
.jt-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    justify-content: center;
}

/* Hand value positioned on the right */
.jt-controls-row .jt-hand-value {
    position: absolute;
    right: 0;
}

/* Surrender button row */
.jt-surrender-row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-jt-action {
    padding: 10px 8px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    width: 90px;
}

.btn-jt-hit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-jt-hit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-jt-stand {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.btn-jt-stand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4);
}

.btn-jt-surrender {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #333;
    width: auto !important;
}

.btn-jt-surrender:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(250, 112, 154, 0.4);
}

/* Jackotory GIF Overlay (Standard Show) */
.jackotory-gif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease-in;
}

.jackotory-gif-overlay.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

.jackotory-gif {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsive Adjustments for Jackotory */
@media (max-width: 768px) {
    .jt-card {
        width: 90px;
        height: 126px;
    }

    .jt-hand {
        gap: 8px;
    }

    .jt-betting-ui {
        padding: 15px;
    }

    .jt-bet-input {
        width: 150px;
        font-size: 16px;
    }

    .btn-jt-action {
        padding: 12px 20px;
        font-size: 14px;
    }

    .jt-hand-value {
        font-size: 20px;
    }
}

/* ===== Cumments Game Styles ===== */

/* Timer in status bar */
.cm-timer {
    color: #ff4444;
    font-weight: bold;
    font-size: 14px;
    margin-left: 8px;
}

/* Game UI container */
.cm-game-content {
    padding: 15px;
}

.cm-status-area,
.cm-content-area,
.cm-controls {
    margin-bottom: 15px;
}

/* Waiting phase */
.cm-waiting-container {
    text-align: center;
}

.cm-players-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.cm-player-item {
    padding: 8px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.cm-waiting-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.cm-waiting-note {
    padding: 10px;
    color: #fbbf24;
    font-style: italic;
}

/* Commenting phase */
.cm-meme-display {
    text-align: center;
    margin-bottom: 15px;
}

.cm-meme-display img {
    max-width: 100%;
    max-height: 100px;
    border-radius: 8px;
}

.cm-comment-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cm-comment-input {
    width: 100%;
    /*min-height: 100px;*/
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    resize: vertical;
    font-family: inherit;
}

.cm-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cm-char-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.cm-waiting-message,
.cm-voting-instruction,
.cm-voting-note {
    padding: 0px;
    text-align: center;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 8px;
    color: #e5e7eb;
}

/* Voting UI comments */
.cm-voting-comments-ui {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.cm-ui-comment {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.cm-ui-comment:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: #a855f7;
    transform: translateY(-2px);
}

.cm-ui-comment-voted {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.cm-ui-comment-avatar {
    width: 50px;
    height: 50px;
    border: 3px solid #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    border-radius: 8px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-ui-comment-content {
    flex: 1;
    min-width: 0;
}

.cm-ui-comment-label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cm-ui-comment-text {
    color: #e5e7eb;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Scores display */
.cm-scores-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.cm-scores-container h3 {
    margin: 0 0 15px 0;
    color: #a855f7;
}

.cm-score-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.cm-score-item.cm-leader {
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid #a855f7;
}

.cm-score-name {
    font-weight: 600;
}

.cm-score-value {
    color: #a855f7;
    font-weight: 700;
    font-size: 18px;
}

.cm-game-over {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
    margin-top: 20px;
}

.cm-next-round {
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

/* Voting post in groupchat */
.cm-voting-post {
    background-image: url('/images/cumments-bg.png'), linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    opacity: 0.9;
    border-radius: 12px;
    padding: 8px;
    margin: 10px 0;
}

.cm-voting-header {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9) 0%, rgba(124, 58, 237, 0.9) 100%);
    padding: 12px;
    border-radius: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cm-voting-meme {
    text-align: center;
    margin-bottom: 8px;
}

.cm-voting-meme img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.cm-voting-comments {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cm-fake-comment {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.cm-fake-comment:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: #a855f7;
    transform: translateY(-2px);
}

.cm-fake-comment.voted {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.cm-fake-comment-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    filter: grayscale(50%);
}

.cm-fake-comment-disabled:hover {
    background: rgba(0, 0, 0, 0.75) !important;
    border-color: transparent !important;
    transform: none !important;
}

.cm-vote-avatar {
    width: 60px;
    height: 60px;
    border: 3px solid #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    border-radius: 8px;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-vote-comment {
    flex: 1;
    min-width: 0;
}

.cm-vote-label {
    font-weight: 600;
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cm-vote-text {
    color: #e5e7eb;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Results post in groupchat */
.cm-results-post {
    background-image: url('/images/cumments-bg.png'), linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    opacity: 0.9;
    border-radius: 12px;
    padding: 10px;
    margin: 10px 0;
}

.cm-results-header {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9) 0%, rgba(124, 58, 237, 0.9) 100%);
    padding: 12px;
    border-radius: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: none;
}

.cm-results-table {
    width: 100%;
    /*margin-bottom: 20px;*/
    border-collapse: collapse;
}

.cm-results-meme-cell {
    /*width: 30%;*/
    vertical-align: top;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 0px;
}

.cm-results-meme-img {
    max-width: 50px;
    max-height: 50px;
    border-radius: 0px;
}

.cm-results-scores-cell {
    width: 90%;
    vertical-align: top;
    padding: 10px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 0px;
}

.cm-results-scores-cell h4 {
    margin: 0 0 10px 0;
    color: #a855f7;
    font-size: 16px;
}

.cm-results-scores-cell .cm-score-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: #e5e7eb;
}

.cm-results-winners {
    margin-top: 5px;
}

.cm-result-winner {
    display: flex;
    gap: 12px;
    padding: 6px;
    margin: 5px 0;
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid #a855f7;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    align-items: flex-start;
}

.cm-winner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #a855f7;
    flex-shrink: 0;
}

.cm-winner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cm-winner-name {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cm-winner-comment {
    font-style: italic;
    color: #e5e7eb;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.cm-winner-votes {
    color: #22c55e;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    margin-top: auto;
}

.cm-winner-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.3);
    color: #a855f7;
    font-size: 24px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .cm-vote-avatar {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }

    .cm-fake-comment {
        padding: 6px;
    }

    .cm-voting-post,
    .cm-results-post {
        padding: 6px;
    }
}
