/* ==========================================================================
   ASTIGPH WEB COMMUNITY - MAIN STYLESHEET
   Google Fonts: Rockwell for all links, buttons, headers
                 Garamond for all body, post, chat, comment, story text
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400;1,700&family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

:root {
    --header-bg: linear-gradient(90deg, #5b101e, #800020, #991b1b);
    --header-text: #ffffff;
    --primary: #dc2626;
    --primary-hover: #b91c1c;
    --accent-gold: #facc15;
    --body-bg: #f8f6f2;
    --body-pattern: radial-gradient(#e2ded4 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #ede8df;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --sidebar-active: #fee2e2;
    --sidebar-active-text: #991b1b;
    --font-heading: 'Arvo', 'Rockwell', 'Courier New', serif;
    --font-body: 'EB Garamond', Garamond, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    scroll-behavior: smooth;
}

/* User Selection & Copy-Paste Fully Allowed */
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-bg);
    background-image: var(--body-pattern);
    background-size: 24px 24px;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    padding-bottom: 68px;
    position: relative;
    user-select: text;
    -webkit-user-select: text;
    padding-top: 62px;
}

/* Universal text, emoji and code wrapping - prevent any horizontal overflow or overlap */
p, span, h1, h2, h3, h4, h5, h6, a, div, td, th, li, label, input, textarea {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Code blocks & monospace formatting without overflow */
pre, code, kbd, samp {
    font-family: 'Courier New', Courier, monospace !important;
    max-width: 100%;
    overflow-x: auto;
    word-break: break-all;
    white-space: pre-wrap;
}

/* All media & canvas autofit to parent containers */
img, video, canvas, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Sidebar Backdrop Overlay on Mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.25s ease;
    touch-action: none;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* All links must use Rockwell */
a, a:visited {
    font-family: var(--font-heading);
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Rockwell applied to Headings, Buttons, Labels, Badges, Links */
h1, h2, h3, h4, h5, h6,
button, .btn, .nav-link,
.badge-role, .ladder-badge,
.pill-stat, .tab-item,
th, label, .username, .menu-item {
    font-family: var(--font-heading) !important;
}

/* Garamond applied to all text, posts, chatrooms, comments, stories, forums */
p, span, td, input, textarea, select,
.post-content, .comment-content, .message-bubble,
.story-caption, .forum-content, .chat-text,
.notification-text, .event-description, .bio-text {
    font-family: var(--font-body) !important;
}

/* ==========================================================================
   TOP HEADER NAVIGATION BAR (Matching Screenshot 2)
   ========================================================================== */
.site-header {
    background: var(--header-bg);
    color: var(--header-text);
    min-height: 62px;
    height: 62px;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    overflow: hidden;
    box-sizing: border-box !important;
}

/* Floating Emojis Track in Top Bar for Animated Themes */
.header-floating-emojis-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.moving-header-emoji {
    position: absolute;
    font-size: 0.95rem;
    line-height: 1;
    left: -40px;
    opacity: 0;
    -webkit-animation: driftHeaderEmoji 18s linear infinite;
    animation: driftHeaderEmoji 18s linear infinite;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

@-webkit-keyframes driftHeaderEmoji {
    0% {
        -webkit-transform: translate3d(0, 0, 0) rotate(0deg);
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    6% {
        opacity: 0.85;
    }
    50% {
        -webkit-transform: translate3d(50vw, -4px, 0) rotate(15deg);
        transform: translate3d(50vw, -4px, 0) rotate(15deg);
        opacity: 0.9;
    }
    94% {
        opacity: 0.85;
    }
    100% {
        -webkit-transform: translate3d(calc(100vw + 60px), 3px, 0) rotate(-15deg);
        transform: translate3d(calc(100vw + 60px), 3px, 0) rotate(-15deg);
        opacity: 0;
    }
}

@keyframes driftHeaderEmoji {
    0% {
        -webkit-transform: translate3d(0, 0, 0) rotate(0deg);
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    6% {
        opacity: 0.85;
    }
    50% {
        -webkit-transform: translate3d(50vw, -4px, 0) rotate(15deg);
        transform: translate3d(50vw, -4px, 0) rotate(15deg);
        opacity: 0.9;
    }
    94% {
        opacity: 0.85;
    }
    100% {
        -webkit-transform: translate3d(calc(100vw + 60px), 3px, 0) rotate(-15deg);
        transform: translate3d(calc(100vw + 60px), 3px, 0) rotate(-15deg);
        opacity: 0;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    z-index: 2;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-left: 20px;
    transition: transform 0.2s ease;
}

.header-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.header-logo:hover .header-logo-img {
    transform: scale(1.03);
}

.header-brand-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.header-brand-text span {
    color: var(--accent-gold);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Plusses / Coins Pill */
.coin-counter-pill {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coin-counter-pill:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: var(--accent-gold);
    transform: scale(1.03);
}

.coin-icon {
    font-size: 1.15rem;
}

.coin-counter-pill {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(250, 204, 21, 0.35);
    padding: 4px 10px;
    border-radius: 20px;
    color: #fde047;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.coin-number-text {
    color: #fde047;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Header Emoji Buttons (Visible Emojis) */
.header-emoji-btn-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.header-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

/* Icon Buttons */
.header-icon-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

.badge-counter {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--header-bg);
}

/* Header Avatar */
.header-user-avatar,
.header-user-avatar.post-menu-btn {
    position: relative;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    border: 2px solid var(--accent-gold, #facc15) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    flex-shrink: 0 !important;
    overflow: visible !important;
}

.header-user-avatar img,
.header-user-avatar .header-avatar-img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: none !important;
    box-sizing: border-box !important;
    aspect-ratio: 1 / 1 !important;
}

.header-user-avatar .header-emoji-btn-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-user-avatar .status-online-dot,
.status-online-dot {
    display: none !important;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ==========================================================================
   APP CONTAINER & 3-COLUMN LAYOUT
   ========================================================================== */
.app-container {
    max-width: 1260px;
    width: 100%;
    margin: 1.25rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 260px minmax(0, 620px) 300px;
    gap: 1.25rem;
    justify-content: center;
    align-items: start;
    flex: 1;
}

/* Android App Icon Style Left Sidebar & Hamburger Drawer (Matching Photo + 15 Themes) */
.sidebar-left {
    background: var(--card-bg, #ffffff);
    border-radius: 18px;
    border: none;
    border-right: 3px solid var(--primary, #8b5cf6);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    padding: 0;
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-sizing: border-box;
}

.sidebar-left::-webkit-scrollbar {
    width: 4px;
}
.sidebar-left::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.35);
    border-radius: 4px;
}

/* Sidebar Profile Header - Dynamically Inherits Top Bar Theme Color */
.sidebar-user-header {
    background: var(--header-bg);
    padding: 1.4rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--header-text, #ffffff);
    box-sizing: border-box;
    width: 100%;
}

.sidebar-avatar-circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    background: #ffffff;
    color: var(--primary, #4f46e5);
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    margin-bottom: 6px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    box-sizing: border-box;
}

.sidebar-username {
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
    letter-spacing: -0.01em;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-coins-pill {
    color: #fef08a;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    white-space: nowrap;
}

.sidebar-menu-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    width: 85%;
    text-align: center;
}

/* Android App Icon Grid (3 Columns) */
.sidebar-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 6px;
    padding: 14px 8px;
    background: var(--card-bg, #ffffff);
    box-sizing: border-box;
    width: 100%;
    justify-items: center;
    align-items: start;
}

.sidebar-app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    padding: 2px;
    width: 100%;
    max-width: 78px;
    box-sizing: border-box;
    transition: transform 0.15s ease;
}
.sidebar-app-link:hover {
    transform: translateY(-2px) scale(1.04);
}
.sidebar-app-link:active {
    transform: scale(0.96);
}

/* Android Squircle */
.sidebar-app-squircle {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease;
}
.sidebar-app-link:hover .sidebar-app-squircle {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.sidebar-app-emoji {
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Badge on top right of squircle: 👥 0 */
.sidebar-app-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: rgba(30, 41, 59, 0.75);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 1px 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    backdrop-filter: blur(2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    line-height: 1.1;
}

/* App Label below squircle */
.sidebar-app-label {
    margin-top: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-color, #1e293b) !important;
    font-family: inherit;
    text-align: center;
    line-height: 1.15;
    max-width: 74px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* Bottom Online Section */
.sidebar-online-section {
    padding: 12px 12px 16px 12px;
    border-top: 1px solid var(--card-border, rgba(139, 92, 246, 0.25));
    background: var(--card-bg, #ffffff);
    box-sizing: border-box;
}

.sidebar-online-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sidebar-online-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #6d28d9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-online-count-pill {
    background: #10b981;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.sidebar-online-avatars {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px 2px;
    scrollbar-width: thin;
}

.sidebar-online-user-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    gap: 4px;
    flex-shrink: 0;
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    text-align: center;
    box-sizing: border-box;
}

.sidebar-online-user-circle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex-shrink: 0;
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.sidebar-online-smallest-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
    background: #22c55e;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 3px rgba(34, 197, 94, 0.9);
    z-index: 10;
    pointer-events: none;
    box-sizing: border-box;
    display: block !important;
}

.sidebar-online-avatar-wrap {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8b5cf6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.sidebar-online-avatar-img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
}

.sidebar-online-avatar-initial {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}

.sidebar-online-user-circle .status-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #22c55e;
    border: 2px solid var(--card-bg, #ffffff);
    z-index: 2;
    pointer-events: none;
}

.sidebar-online-user-name {
    width: 100%;
    max-width: 58px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

/* Micro Smallest Nameplate for Hamburger Menu User List */
.sidebar-online-user-name .nameplate-badge,
.sidebar-online-user-name .nameplate-default {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 1px 4px !important;
    border-radius: 8px !important;
    font-size: 0.58rem !important;
    line-height: 1.15 !important;
    min-height: 15px !important;
    max-width: 58px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.sidebar-online-user-name .np-mascot-sticker {
    font-size: 0.62rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.sidebar-online-user-name .nameplate-text {
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    max-width: 40px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-block !important;
    text-align: center !important;
}

/* Hide oversized decorative wings/sparks in micro nameplate so it aligns perfectly */
.sidebar-online-user-name .nameplate-badge::before,
.sidebar-online-user-name .nameplate-badge::after {
    display: none !important;
}

.sidebar-online-user-name .nameplate-role,
.sidebar-online-user-name .nameplate-user-badge {
    display: none !important;
}

/* Center Feed Column (Slimmer, Sleek Proportions) */
.feed-center {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
}

/* Right Sidebar */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 76px;
}

/* ==========================================================================
   CARDS & WIDGETS
   ========================================================================== */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 1.25rem;
}

/* Top Profile Completion Banner */
.banner-alert {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #fed7aa;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.08);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
}

.banner-alert-text {
    font-family: var(--font-body);
    color: #475569;
}

.banner-alert-btn {
    background: #3b82f6;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

/* ==========================================================================
   WHAT'S ON YOUR MIND? POST COMPOSER
   ========================================================================== */
.composer-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 1.25rem;
}

.composer-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.composer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.composer-input {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    outline: none;
    transition: all 0.2s ease;
    resize: none;
    min-height: 44px;
}

.composer-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.composer-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--card-border);
    padding-top: 0.75rem;
}

.composer-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.composer-tool-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    color: #64748b;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s ease;
}

.composer-tool-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.composer-submit-btn {
    background: linear-gradient(135deg, var(--primary), #b91c1c);
    color: #ffffff;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 7px 20px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
    transition: transform 0.15s ease;
}

.composer-submit-btn:hover {
    transform: translateY(-1px);
}

/* Media preview & attached widgets inside composer */
.composer-preview-box {
    margin-top: 0.75rem;
    display: none;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    max-height: 250px;
    border: 1px solid var(--card-border);
}

.composer-preview-box img, .composer-preview-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
}

/* ==========================================================================
   STORIES CAROUSEL (Matching Screenshot 2)
   ========================================================================== */
.stories-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.stories-carousel {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.stories-carousel::-webkit-scrollbar {
    display: none;
}

.story-card {
    flex: 0 0 115px;
    height: 195px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    scroll-snap-align: start;
}

.story-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Create Story Card */
.story-card-create {
    background: #ffffff;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
}

.story-create-img {
    height: 135px;
    width: 100%;
    object-fit: cover;
}

.story-create-body {
    height: 60px;
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

.story-create-plus-icon {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    background: #2563eb;
    border: 3px solid #ffffff;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.story-create-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
}

/* User Story Card */
.story-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
}

.story-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    object-fit: cover;
}

.story-username {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   FEED POST CARDS (Matching Screenshot 2)
   ========================================================================== */
.post-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 1.25rem;
    position: relative;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.post-author-names {
    display: flex;
    flex-direction: column;
}

.post-username-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-username {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
}

.post-time {
    font-size: 0.82rem;
    color: #64748b;
}

.post-edited-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: italic;
    font-weight: 500;
    margin-left: 3px;
    cursor: default;
}

/* Post 3-Dots Menu */
.post-menu-wrap {
    position: relative;
}

.post-menu-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
}

.post-menu-btn:hover {
    background: #f1f5f9;
    color: var(--text-color);
}

.post-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    display: none;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
}

.post-dropdown-menu.active {
    display: flex;
}

.post-dropdown-item {
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    width: 100%;
}

.post-dropdown-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

.post-dropdown-item.danger:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Post Content */
.post-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 0.85rem;
    word-break: break-word;
}

.hashtag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #2563eb;
}

.user-mention {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #7c3aed;
}

/* Attached Media */
.post-media-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    border: 1px solid var(--card-border);
}

.post-media-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.post-video {
    width: 100%;
    max-height: 480px;
    background: #000000;
    display: block;
}

/* Audio Player */
.post-audio-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.85rem;
}

.audio-icon-spin {
    color: #ec4899;
    font-size: 1.2rem;
}

/* Embed Player (YouTube / TikTok) */
.post-embed-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: none;
    margin-bottom: 0.85rem;
}

/* Reactions Bar & Reactor Summary */
.post-reactions-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #64748b;
    padding: 0.5rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.reactors-count-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-heading);
}

.post-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 0.5rem;
    position: relative;
}

.action-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: #64748b;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.action-btn span {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.action-btn i {
    font-size: 1.05rem;
}

.action-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

/* ==========================================================================
   FLOATING FACEBOOK REACTIONS POPUP BAR
   Reactions: like, haha, angry, heart, care, wow
   ========================================================================== */
.reactions-popup-bar {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    display: none;
    align-items: center;
    gap: 6px;
    z-index: 500;
    animation: popUpBounce 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: calc(100vw - 32px);
    white-space: nowrap;
    touch-action: manipulation;
}

.reactions-popup-bar.active {
    display: flex;
}

@keyframes popUpBounce {
    0% { transform: translateY(8px) scale(0.85); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.reaction-emoji-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease;
    padding: 2px 4px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.reaction-emoji-btn:hover, .reaction-emoji-btn:active {
    transform: scale(1.3) translateY(-4px);
}

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */
.comments-section {
    margin-top: 0.85rem;
    border-top: 1px solid var(--card-border);
    padding-top: 0.75rem;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    position: relative;
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-bubble {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 8px 14px;
    max-width: 85%;
    position: relative;
}

.comment-author-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-color);
}

.comment-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 4px;
    padding-left: 42px;
}

.comment-meta button, .comment-meta a {
    background: none;
    border: none;
    color: #64748b;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
}

.comment-meta button:hover, .comment-meta a:hover {
    color: var(--primary);
}

.comment-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.comment-input {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

/* ==========================================================================
   RIGHT SIDEBAR WIDGETS (Matching Screenshot 2)
   ========================================================================== */
.widget-earn-coins {
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.05);
}

.widget-earn-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: #c2410c;
}

/* Member Widget */
.widget-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.85rem;
}

.newest-member-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.member-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
}

.member-joined {
    font-size: 0.82rem;
    color: #64748b;
}

/* Latest Forum Activity Widget */
.forum-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-activity-item {
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--card-border);
}

.forum-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.forum-topic-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #2563eb;
    display: block;
    margin-bottom: 4px;
}

.forum-snippet {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
}

.forum-author-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.forum-author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.view-more-forum-btn {
    display: block;
    text-align: center;
    padding: 8px;
    background: #f1f5f9;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #2563eb;
    margin-top: 0.85rem;
}

.view-more-forum-btn:hover {
    background: #e2e8f0;
}

/* ==========================================================================
   ROLE BADGES & STATUS LADDER BADGES (UNIFORM ONE SIZE ONLY - SMALLEST)
   ========================================================================== */
.badge-role {
    font-family: var(--font-heading);
    font-size: 0.54rem !important;
    font-weight: 800 !important;
    height: 16px !important;
    padding: 0 4.5px !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.badge-role i {
    font-size: 0.48rem !important;
    line-height: 1 !important;
}

.badge-admin {
    background: linear-gradient(135deg, #1e3a8a, #dc2626) !important;
    color: #facc15 !important;
    border-color: #facc15 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

.badge-mod {
    background: linear-gradient(135deg, #065f46, #047857) !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
}

.badge-vip {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3) !important;
}

.badge-member {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

/* 5 Status Ladder Ranks */
.ladder-badge {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.master-badge {
    background: #ccfbf1;
    color: #0f766e;
    border: 1px solid #5eead4;
}

.elite-badge {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.epic-badge {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}

.legend-badge {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.mythical-badge {
    background: linear-gradient(135deg, #f43f5e, #a855f7);
    color: #ffffff;
    border: 1px solid #f472b6;
    box-shadow: 0 2px 6px rgba(168, 85, 247, 0.4);
}

/* ==========================================================================
   MODALS (Who Reacted, Klipy GIF, Story Viewer, Mass Popup, etc.)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

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

.modal-dialog {
    background: #ffffff;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.35rem;
    color: #94a3b8;
    cursor: pointer;
}

.modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}

/* Who Reacted User List */
.reacted-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.reacted-user-row:last-child {
    border-bottom: none;
}

.reacted-user-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reacted-avatar-wrap {
    position: relative;
}

.reacted-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.reaction-badge-icon {
    position: absolute;
    bottom: -2px;
    right: -4px;
    font-size: 1rem;
}

.reacted-username {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
}

.btn-add-friend-sm {
    background: #e0f2fe;
    color: #0284c7 !important;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.btn-add-friend-sm:hover {
    background: #0284c7;
    color: #ffffff !important;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR & RESPONSIVE BREAKPOINTS
   ========================================================================== */
.mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bottom-bar-bg, #ffffff);
    border-top: 1px solid var(--bottom-bar-border, #e2e8f0);
    height: 60px;
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #334155;
    font-weight: 700;
    gap: 2px;
    padding: 4px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.mobile-bottom-bar a:hover {
    transform: translateY(-2px);
}

.mobile-bottom-bar a.active {
    color: var(--primary, #2563eb);
    font-weight: 800;
}

.mobile-bottom-bar a span.icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* ==========================================================================
   MINIGAMES AUTOFIT STYLES
   ========================================================================== */
.jep-weapon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ttt-board-grid {
    display: grid;
    grid-template-columns: repeat(3, min(80px, 25vw)) !important;
    gap: 8px !important;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.ttt-cell {
    width: min(80px, 25vw) !important;
    height: min(80px, 25vw) !important;
    font-size: min(2.5rem, 8vw) !important;
    box-sizing: border-box;
}

.chess-board-grid {
    display: grid !important;
    grid-template-columns: repeat(8, min(42px, calc((100vw - 64px) / 8))) !important;
    grid-template-rows: repeat(8, min(42px, calc((100vw - 64px) / 8))) !important;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: 3px solid #475569;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.chess-sq {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: min(1.8rem, 5.5vw) !important;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    line-height: 1;
}

.slot-cabinet {
    max-width: 440px;
    width: 100%;
    margin: 0 auto 1.5rem auto;
    box-sizing: border-box;
}

.whack-holes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto 1.5rem auto;
    box-sizing: border-box;
}

.whack-hole {
    height: min(90px, 25vw) !important;
}

.whack-mole-icon {
    font-size: min(3.2rem, 9.5vw) !important;
}

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

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS: TABLET & DESKTOP
   ========================================================================== */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 240px minmax(0, 1fr);
        padding: 0 1rem;
        gap: 1.25rem;
    }
    .sidebar-right {
        display: none;
    }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS: MOBILE DEVICES (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding-top: 58px;
        padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
        font-size: 16px;
    }

    .site-header {
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 0.65rem;
    }

    .header-left {
        gap: 0.5rem;
    }

    .header-logo {
        margin-left: 14px;
    }

    .header-logo-img {
        height: 48px;
    }

    .header-right {
        gap: 0.4rem;
    }

    .coin-counter-pill {
        padding: 3px 8px;
        font-size: 0.8rem;
    }

    .header-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }

    .header-user-avatar,
    .header-user-avatar.post-menu-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .app-container {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
        margin: 0.75rem auto;
        gap: 0.85rem;
    }

    /* Mobile Compact Hamburger Drawer (Matching Photo + 20 Themes + iPhone/Mac/Android Auto-fit) */
    .sidebar-left {
        position: fixed;
        top: 0;
        left: 0;
        width: 275px;
        height: 100%;
        height: 100vh;
        height: -webkit-fill-available;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        z-index: 99999;
        -webkit-transform: translate3d(-105%, 0, 0);
        transform: translate3d(-105%, 0, 0);
        -webkit-transition: -webkit-transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        border: none;
        border-right: 3px solid var(--primary, #8b5cf6);
        box-shadow: none;
        padding: 0;
        background: var(--card-bg, #ffffff);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        box-sizing: border-box;
        pointer-events: none;
        visibility: hidden;
    }

    .sidebar-left.open {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        box-shadow: 14px 0 35px rgba(0, 0, 0, 0.35);
        pointer-events: auto;
        visibility: visible;
    }

    .sidebar-user-header {
        background: var(--header-bg);
        color: var(--header-text, #ffffff);
        padding: calc(1.1rem + env(safe-area-inset-top, 0px)) 0.75rem 0.75rem 0.75rem;
        box-sizing: border-box;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .sidebar-avatar-circle {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        aspect-ratio: 1 / 1;
        border-radius: 50% !important;
        font-size: 1.5rem;
        flex-shrink: 0;
        border: 2px solid rgba(255, 255, 255, 0.95);
        background: #ffffff;
        color: var(--primary, #4f46e5);
        box-sizing: border-box;
    }
    .sidebar-username {
        font-size: 1rem;
        color: #ffffff;
        max-width: 90%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sidebar-coins-pill {
        font-size: 0.78rem;
        color: #fef08a;
        white-space: nowrap;
    }
    .sidebar-menu-title {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
        color: rgba(255, 255, 255, 0.85);
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

    .sidebar-app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px 4px;
        padding: 10px 4px;
        background: var(--card-bg, #ffffff);
        box-sizing: border-box;
        width: 100%;
        justify-items: center;
        align-items: start;
    }

    .sidebar-app-link {
        width: 100%;
        max-width: 68px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .sidebar-app-squircle {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        aspect-ratio: 1/1;
        box-sizing: border-box;
    }

    .sidebar-app-emoji {
        font-size: 1.25rem;
    }

    .sidebar-app-label {
        font-size: 0.68rem;
        margin-top: 3px;
        max-width: 60px;
        width: 100%;
        text-align: center;
        color: var(--text-color, #1e293b) !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar-app-badge {
        font-size: 0.55rem;
        padding: 1px 3px;
        top: -3px;
        right: -3px;
    }

    .sidebar-online-section {
        padding: 10px 8px calc(14px + env(safe-area-inset-bottom, 0px)) 8px;
        background: var(--card-bg, #ffffff);
        box-sizing: border-box;
    }

    .card {
        padding: 1rem 0.85rem;
        border-radius: 14px;
    }

    .post-card {
        padding: 1rem 0.85rem;
    }

    /* Composer bar wrap */
    .composer-actions-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .composer-tools {
        flex-wrap: wrap;
        gap: 4px;
    }

    .composer-tool-btn {
        padding: 5px 8px;
        font-size: 0.82rem;
    }

    /* Stories reel compact */
    .stories-carousel {
        gap: 0.5rem;
        padding-bottom: 0.35rem;
    }

    .story-card {
        flex: 0 0 96px;
        height: 160px;
        border-radius: 12px;
    }

    .story-create-img {
        height: 105px;
    }

    .story-create-body {
        height: 55px;
    }

    .story-user-avatar {
        width: 28px;
        height: 28px;
    }

    /* Post Author info wrap */
    .post-author-names {
        min-width: 0;
    }

    .post-username-wrap {
        flex-wrap: wrap;
        row-gap: 2px;
        column-gap: 6px;
    }

    .post-username {
        font-size: 0.95rem;
    }

    .hashtag {
        font-size: 0.95rem;
    }

    .action-btn {
        font-size: 0.95rem;
    }

    .action-btn span {
        font-size: 0.95rem;
    }

    /* Floating Reactions Bar - centered, never overflows screen */
    .reactions-popup-bar {
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(100% + 4px);
        padding: 4px 8px;
        gap: 4px;
        border-radius: 24px;
        max-width: calc(100vw - 24px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.22);
    }

    .reaction-emoji-btn {
        font-size: 1.35rem;
        padding: 2px 3px;
    }

    /* Comments mobile styling */
    .comment-bubble {
        max-width: calc(100% - 40px);
        padding: 8px 12px;
    }

    .comment-meta {
        padding-left: 0;
        margin-top: 4px;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Modals mobile view */
    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-dialog {
        max-width: 100%;
        width: 100%;
        max-height: 90vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 0.85rem 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .reacted-user-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Mobile Bottom Navigation Bar */
    .mobile-bottom-bar {
        display: flex;
        height: 58px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-bottom-bar a {
        font-size: 0.7rem;
        gap: 1px;
    }

    .mobile-bottom-bar a span.icon {
        font-size: 1.2rem;
    }

    .coin-counter-pill {
        padding: 4px 8px;
        font-size: 0.8rem;
        gap: 4px;
    }

    /* Dropdown menus keep on screen */
    .post-dropdown-menu {
        max-width: calc(100vw - 24px);
        right: 0 !important;
    }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS: SMALL PHONES (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .site-header {
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 0.5rem;
    }

    .header-logo {
        margin-left: 10px;
    }

    .header-logo-img {
        height: 44px;
    }

    .header-brand-text {
        font-size: 1.1rem;
    }

    /* Hide the word 'Plusses' on small screens to save valuable space */
    .coin-unit-text {
        display: none !important;
    }

    /* Hide trophy on small phones since accessible via sidebar */
    .header-trophy-btn {
        display: none !important;
    }

    .header-right {
        gap: 0.35rem;
    }

    .header-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .header-user-avatar,
    .header-user-avatar.post-menu-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }

    /* Hide composer tool text labels, show clean icons */
    .composer-tool-btn span {
        display: none !important;
    }

    .composer-tool-btn {
        padding: 6px 8px;
        font-size: 1rem;
    }

    .composer-actions-bar {
        gap: 6px;
    }

    .composer-submit-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    /* Minigames small screen adaptation */
    .jep-weapon-grid .choice-btn {
        padding: 8px 4px !important;
        font-size: 0.8rem !important;
    }

    .jep-weapon-grid .choice-btn span:first-child {
        font-size: 1.8rem !important;
    }

    .color-game-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .color-game-card {
        padding: 0.7rem 0.5rem !important;
    }

    .slot-cabinet {
        padding: 1.25rem 0.75rem !important;
        border-width: 3px !important;
    }

    .slot-reel {
        height: 70px !important;
        font-size: 2.4rem !important;
    }

    .whack-holes-grid {
        padding: 10px !important;
        gap: 8px !important;
    }

    .whack-hole {
        height: 75px !important;
    }

    .whack-mole-icon {
        font-size: 2.5rem !important;
    }

    /* Profile page mobile elements */
    .profile-banner-avatar {
        width: 90px !important;
        height: 90px !important;
    }

    .profile-actions-wrap {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Auth card padding */
    .login-card {
        padding: 1.5rem 1rem !important;
    }
}

/* ==========================================================================
   EXTRA SMALL SCREENS (<= 360px)
   ========================================================================== */
@media (max-width: 360px) {
    .header-brand-text {
        font-size: 0.98rem;
    }

    .coin-counter-pill {
        padding: 3px 6px;
        font-size: 0.75rem;
    }

    .reaction-emoji-btn {
        font-size: 1.2rem;
        padding: 1px 2px;
    }

    .reactions-popup-bar {
        gap: 2px;
        padding: 3px 6px;
    }
}

/* ==========================================================================
   GAME AUDIO SYNTHESIZER TOGGLE BUTTONS
   ========================================================================== */
.game-audio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.game-audio-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
}
.game-audio-toggle.muted {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
}

/* ==========================================================================
   PROFILE COVER PHOTO & CONTAINER BOX TRANSPARENCY ENHANCEMENT
   ========================================================================== */
#profileCoverBanner, .profile-cover-banner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    height: 210px !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
}

/* Three vertical dots icon popup menu for messages */
.msg-menu-btn .fa-ellipsis-vertical {
    font-size: 1.05rem;
    color: #64748b;
}
.msg-menu-btn:hover .fa-ellipsis-vertical {
    color: #0f172a;
}

/* ==========================================================================
   NOW PLAYING PROFILE BACKGROUND MUSIC PILL (User Photo Match)
   ========================================================================== */
.profile-now-playing-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    height: 56px;
    padding-right: 14px;
    max-width: 320px;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    margin-top: 4px;
}
.profile-now-playing-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}
.pnp-thumb-box {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    border-top-left-radius: 26px;
    border-bottom-left-radius: 26px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pnp-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pnp-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
    line-height: 1.25;
}
.pnp-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #64748b;
    text-transform: uppercase;
}
.pnp-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading, inherit);
}
.pnp-artist {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pnp-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.pnp-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 18px;
}
.pnp-eq .eq-bar {
    width: 3px;
    background: #cbd5e1;
    border-radius: 2px;
    height: 4px;
    transition: height 0.2s ease, background-color 0.2s ease;
}
.pnp-eq.playing .eq-bar {
    background: #94a3b8;
    animation: eqBounce 1.2s infinite ease-in-out alternate;
}
.pnp-eq.playing .eq-b1 { animation-delay: 0.1s; height: 14px; }
.pnp-eq.playing .eq-b2 { animation-delay: 0.3s; height: 18px; }
.pnp-eq.playing .eq-b3 { animation-delay: 0.2s; height: 10px; }
.pnp-eq.playing .eq-b4 { animation-delay: 0.4s; height: 16px; }

@keyframes eqBounce {
    0% { height: 4px; }
    50% { height: 18px; }
    100% { height: 6px; }
}

.pnp-vol-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.pnp-vol-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================================
   SMALLEST NAMEPLATES IN WALLPOST, ONLINE, AND FORUM
   ========================================================================== */
.wallpost-page .nameplate-badge,
.wallpost-page .nameplate-default,
.online-page .nameplate-badge,
.online-page .nameplate-default,
.forum-page .nameplate-badge,
.forum-page .nameplate-default,
.post-card .nameplate-badge,
.post-card .nameplate-default,
.post-username-wrap .nameplate-badge,
.post-username-wrap .nameplate-default,
.comment-bubble .nameplate-badge,
.comment-bubble .nameplate-default,
.comment-item .nameplate-badge,
.comment-item .nameplate-default,
.online-user-card .nameplate-badge,
.online-user-card .nameplate-default,
.online-users-list .nameplate-badge,
.online-users-list .nameplate-default,
.online-user-info .nameplate-badge,
.online-user-info .nameplate-default,
.forum-reply-item .nameplate-badge,
.forum-reply-item .nameplate-default,
.forum-topic-header .nameplate-badge,
.forum-topic-header .nameplate-default,
.forum-topic-meta .nameplate-badge,
.forum-topic-meta .nameplate-default,
.nameplate-micro .nameplate-badge,
.nameplate-micro .nameplate-default {
    padding: 1px 6px !important;
    font-size: 0.72rem !important;
    gap: 3px !important;
    border-radius: 6px !important;
    line-height: 1.15 !important;
    min-height: 18px !important;
    height: auto !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
    border-width: 1px !important;
}

/* Force smallest font on nameplate text across all 50 cosmetic variations */
.wallpost-page .nameplate-text,
.online-page .nameplate-text,
.forum-page .nameplate-text,
.post-card .nameplate-text,
.post-username-wrap .nameplate-text,
.comment-bubble .nameplate-text,
.comment-item .nameplate-text,
.online-user-card .nameplate-text,
.online-users-list .nameplate-text,
.online-user-info .nameplate-text,
.forum-reply-item .nameplate-text,
.forum-topic-header .nameplate-text,
.forum-topic-meta .nameplate-text,
.nameplate-micro .nameplate-text,
.wallpost-page [class*="np-"] .nameplate-text,
.online-page [class*="np-"] .nameplate-text,
.forum-page [class*="np-"] .nameplate-text,
.post-card [class*="np-"] .nameplate-text,
.post-username-wrap [class*="np-"] .nameplate-text,
.comment-bubble [class*="np-"] .nameplate-text,
.comment-item [class*="np-"] .nameplate-text,
.online-user-card [class*="np-"] .nameplate-text,
.online-users-list [class*="np-"] .nameplate-text,
.online-user-info [class*="np-"] .nameplate-text,
.forum-reply-item [class*="np-"] .nameplate-text,
.forum-topic-header [class*="np-"] .nameplate-text,
.forum-topic-meta [class*="np-"] .nameplate-text,
.nameplate-micro [class*="np-"] .nameplate-text {
    font-size: 0.74rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
}

/* Smallest mascot sticker / emoji */
.wallpost-page .np-mascot-sticker,
.online-page .np-mascot-sticker,
.forum-page .np-mascot-sticker,
.post-card .np-mascot-sticker,
.post-username-wrap .np-mascot-sticker,
.comment-bubble .np-mascot-sticker,
.comment-item .np-mascot-sticker,
.online-user-card .np-mascot-sticker,
.online-users-list .np-mascot-sticker,
.online-user-info .np-mascot-sticker,
.forum-reply-item .np-mascot-sticker,
.forum-topic-header .np-mascot-sticker,
.forum-topic-meta .np-mascot-sticker,
.nameplate-micro .np-mascot-sticker {
    font-size: 0.72rem !important;
    line-height: 1 !important;
    max-width: 13px !important;
    max-height: 13px !important;
}

/* Smallest pseudo-elements (hearts, stars, decals) */
.wallpost-page .nameplate-badge::before,
.wallpost-page .nameplate-badge::after,
.online-page .nameplate-badge::before,
.online-page .nameplate-badge::after,
.forum-page .nameplate-badge::before,
.forum-page .nameplate-badge::after,
.post-card .nameplate-badge::before,
.post-card .nameplate-badge::after,
.online-user-card .nameplate-badge::before,
.online-user-card .nameplate-badge::after,
.forum-reply-item .nameplate-badge::before,
.forum-reply-item .nameplate-badge::after,
.nameplate-micro .nameplate-badge::before,
.nameplate-micro .nameplate-badge::after {
    font-size: 0.52rem !important;
}

/* Inner role badge inside smallest nameplates */
.wallpost-page .nameplate-role,
.online-page .nameplate-role,
.forum-page .nameplate-role,
.post-card .nameplate-role,
.online-user-card .nameplate-role,
.forum-reply-item .nameplate-role,
.nameplate-micro .nameplate-role {
    margin-left: 2px !important;
}

.wallpost-page .nameplate-role .badge-role,
.online-page .nameplate-role .badge-role,
.forum-page .nameplate-role .badge-role,
.post-card .nameplate-role .badge-role,
.online-user-card .nameplate-role .badge-role,
.forum-reply-item .nameplate-role .badge-role,
.nameplate-micro .nameplate-role .badge-role {
    font-size: 0.50rem !important;
    height: 14px !important;
    padding: 0 3px !important;
    line-height: 1 !important;
    gap: 1.5px !important;
    border-radius: 3px !important;
}

.wallpost-page .nameplate-role .badge-role i,
.online-page .nameplate-role .badge-role i,
.forum-page .nameplate-role .badge-role i,
.post-card .nameplate-role .badge-role i,
.online-user-card .nameplate-role .badge-role i,
.forum-reply-item .nameplate-role .badge-role i,
.nameplate-micro .nameplate-role .badge-role i {
    font-size: 0.44rem !important;
}

/* ==========================================================================
   ASTIGPH 100 ANIMATED ANIMAL STICKERS SYSTEM
   ========================================================================== */
.chat-sticker {
    display: inline-block;
    width: 52px;
    height: 52px;
    max-width: 60px;
    max-height: 60px;
    vertical-align: middle;
    margin: 1px 3px;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.10));
    user-select: none;
}

.chat-sticker:hover {
    transform: scale(1.22);
    z-index: 10;
}

.msg-text .chat-sticker,
.comment-text .chat-sticker,
#chatStreamBox .chat-sticker,
.game-chat-stream .chat-sticker {
    width: 46px;
    height: 46px;
}

.sticker-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
    max-height: 380px;
    overflow-y: auto;
    padding: 4px;
}

.sticker-picker-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    position: relative;
    user-select: none;
}

.sticker-picker-item:hover {
    background: #f0fdf4;
    border-color: #86efac;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.sticker-picker-item img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: transform 0.15s ease;
}

.sticker-picker-item:hover img {
    transform: scale(1.15);
}

.sticker-picker-title {
    font-size: 0.62rem;
    font-weight: 700;
    color: #334155;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 66px;
}

.sticker-picker-bbcode {
    font-size: 0.60rem;
    color: #2563eb;
    background: #eff6ff;
    padding: 1px 4px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    margin-top: 2px;
}

/* ==========================================================================
   PINNED POST STYLES
   ========================================================================== */
.post-card-pinned {
    border: 1.5px solid #facc15 !important;
    box-shadow: 0 4px 22px rgba(250, 204, 21, 0.22) !important;
    position: relative;
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 80px) !important;
}

.pinned-post-badge-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fef08a, #facc15);
    color: #713f12;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--font-heading);
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(250, 204, 21, 0.35);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pinned-post-badge-bar i {
    font-size: 0.75rem;
    color: #854d0e;
    transform: rotate(45deg);
}

/* ==========================================================================
   SMILES & EMOTICONS GLOBAL BBCODE & CATALOG STYLES
   ========================================================================== */
.smiley-img {
    max-height: 28px;
    max-width: 32px;
    height: auto;
    width: auto;
    vertical-align: -5px;
    display: inline-block;
    object-fit: contain;
    margin: 0 2px;
    image-rendering: auto;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.smiley-img:hover {
    transform: scale(1.35);
    z-index: 10;
    position: relative;
}

/* Large preview inside Smiles catalog cards */
.smiley-card-img {
    max-height: 48px;
    max-width: 48px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.12));
    transition: transform 0.2s ease;
}

.smiley-card:hover .smiley-card-img {
    transform: scale(1.18);
}

.smiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .smiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
}

.smiley-card {
    background: #ffffff;
    border: 1.5px solid #ede8df;
    border-radius: 14px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    text-align: center;
}

.smiley-card:hover {
    border-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(245,158,11,0.18);
}

.smiley-bbcode-tag {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    font-weight: 800;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 2px 7px;
    border-radius: 8px;
    letter-spacing: -0.2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smiley-copy-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.smiley-card:hover .smiley-copy-btn {
    background: #f59e0b;
    border-color: #d97706;
    color: #ffffff;
}

/* Smiles Table List View Styles */
.smiles-table-list {
    width: 100%;
    border-collapse: collapse;
}

.smiles-table-list th,
.smiles-table-list td {
    padding: 11px 14px;
    vertical-align: middle;
}

.smiles-table-list tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.smiles-table-list tbody tr:hover {
    background: #fffdf5;
}

.smiley-table-img {
    max-height: 32px;
    max-width: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.18s ease;
}

.smiles-table-list tbody tr:hover .smiley-table-img {
    transform: scale(1.25);
}




